2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU tar 1.20.
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.20'
578 PACKAGE_STRING='GNU tar 1.20'
579 PACKAGE_BUGREPORT='bug-tar@gnu.org'
581 ac_unique_file="src/tar.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
630 program_transform_name
672 INSTALL_STRIP_PROGRAM
705 GL_COND_LIBTOOL_FALSE
760 GNULIB_VFPRINTF_POSIX
763 GNULIB_VSPRINTF_POSIX
806 HAVE_UNSIGNED_LONG_LONG_INT
814 BITSIZEOF_SIG_ATOMIC_T
818 HAVE_SIGNED_SIG_ATOMIC_T
838 INT32_MAX_LT_INTMAX_MAX
839 INT64_MAX_EQ_LONG_MAX
840 UINT32_MAX_LT_UINTMAX_MAX
841 UINT64_MAX_EQ_ULONG_MAX
844 LOCALCHARSET_TESTS_ENVIRONMENT
923 HAVE_DECL_STRNCASECMP
939 TIME_H_DEFINES_STRUCT_TIMESPEC
940 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
961 DEFAULT_ARCHIVE_FORMAT
964 DEFAULT_QUOTING_STYLE
968 GETTEXT_MACRO_VERSION
976 XGETTEXT_EXTRA_OPTIONS
981 BACKUP_LIBEXEC_SCRIPTS
990 ac_precious_vars='build_alias
1002 DEFAULT_ARCHIVE_FORMAT
1005 DEFAULT_QUOTING_STYLE'
1008 # Initialize some variables set by options.
1010 ac_init_version=false
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1020 program_transform_name=s,x,x,
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1045 infodir='${datarootdir}/info'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\$ac_option
1066 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079 bindir=$ac_optarg ;;
1081 -build | --build | --buil | --bui | --bu)
1082 ac_prev=build_alias ;;
1083 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084 build_alias=$ac_optarg ;;
1086 -cache-file | --cache-file | --cache-fil | --cache-fi \
1087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088 ac_prev=cache_file ;;
1089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091 cache_file=$ac_optarg ;;
1093 --config-cache | -C)
1094 cache_file=config.cache ;;
1096 -datadir | --datadir | --datadi | --datad)
1098 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099 datadir=$ac_optarg ;;
1101 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102 | --dataroo | --dataro | --datar)
1103 ac_prev=datarootdir ;;
1104 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106 datarootdir=$ac_optarg ;;
1108 -disable-* | --disable-*)
1109 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1115 eval enable_$ac_feature=no ;;
1117 -docdir | --docdir | --docdi | --doc | --do)
1119 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120 docdir=$ac_optarg ;;
1122 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125 dvidir=$ac_optarg ;;
1127 -enable-* | --enable-*)
1128 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1134 eval enable_$ac_feature=\$ac_optarg ;;
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
1143 exec_prefix=$ac_optarg ;;
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
1156 -host | --host | --hos | --ho)
1157 ac_prev=host_alias ;;
1158 -host=* | --host=* | --hos=* | --ho=*)
1159 host_alias=$ac_optarg ;;
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 htmldir=$ac_optarg ;;
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
1172 includedir=$ac_optarg ;;
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177 infodir=$ac_optarg ;;
1179 -libdir | --libdir | --libdi | --libd)
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182 libdir=$ac_optarg ;;
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
1189 libexecdir=$ac_optarg ;;
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
1197 | --localstate | --localstat | --localsta | --localst | --locals)
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201 localstatedir=$ac_optarg ;;
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206 mandir=$ac_optarg ;;
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213 | --no-cr | --no-c | -n)
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227 oldincludedir=$ac_optarg ;;
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232 prefix=$ac_optarg ;;
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239 program_prefix=$ac_optarg ;;
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246 program_suffix=$ac_optarg ;;
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
1263 program_transform_name=$ac_optarg ;;
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1270 -psdir | --psdir | --psdi | --psd | --ps)
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1279 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283 sbindir=$ac_optarg ;;
1285 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287 | --sharedst | --shareds | --shared | --share | --shar \
1289 ac_prev=sharedstatedir ;;
1290 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294 sharedstatedir=$ac_optarg ;;
1296 -site | --site | --sit)
1298 -site=* | --site=* | --sit=*)
1301 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304 srcdir=$ac_optarg ;;
1306 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307 | --syscon | --sysco | --sysc | --sys | --sy)
1308 ac_prev=sysconfdir ;;
1309 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311 sysconfdir=$ac_optarg ;;
1313 -target | --target | --targe | --targ | --tar | --ta | --t)
1314 ac_prev=target_alias ;;
1315 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316 target_alias=$ac_optarg ;;
1318 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 -version | --version | --versio | --versi | --vers | -V)
1322 ac_init_version=: ;;
1325 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 { echo "$as_me: error: invalid package name: $ac_package" >&2
1329 { (exit 1); exit 1; }; }
1330 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1331 eval with_$ac_package=\$ac_optarg ;;
1333 -without-* | --without-*)
1334 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid package name: $ac_package" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1340 eval with_$ac_package=no ;;
1343 # Obsolete; use --with-x.
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1360 -*) { echo "$as_me: error: unrecognized option: $ac_option
1361 Try \`$0 --help' for more information." >&2
1362 { (exit 1); exit 1; }; }
1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367 # Reject names that are not valid shell variable names.
1368 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1369 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1370 { (exit 1); exit 1; }; }
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1375 # FIXME: should be removed in autoconf 3.0.
1376 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 { echo "$as_me: error: missing argument to $ac_option" >&2
1388 { (exit 1); exit 1; }; }
1391 # Be sure to have absolute directory names.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1399 [\\/$]* | ?:[\\/]* ) continue;;
1400 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403 { (exit 1); exit 1; }; }
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 { echo "$as_me: error: Working directory cannot be determined" >&2
1434 { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 { echo "$as_me: error: pwd does not report name of working directory" >&2
1437 { (exit 1); exit 1; }; }
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$0" ||
1445 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$0" : 'X\(//\)[^/]' \| \
1447 X"$0" : 'X\(//\)$' \| \
1448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477 { (exit 1); exit 1; }; }
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1482 { (exit 1); exit 1; }; }
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502 # Report the --help message.
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1508 \`configure' configures GNU tar 1.20 to adapt to many kinds of systems.
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1515 Defaults for the options are specified in brackets.
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1539 For better control, use the options below.
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of GNU tar 1.20:";;
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --disable-dependency-tracking speeds up one-time build
1586 --enable-dependency-tracking do not reject slow dependency extractors
1587 --disable-largefile omit support for large files
1588 --disable-rpath do not hardcode runtime library paths
1589 --disable-nls do not use Native Language Support
1590 --enable-backup-scripts Create and install backup and restore scripts
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --without-included-regex
1596 don't compile regex; this is the default on 32-bit
1597 systems with recent-enough versions of the GNU C
1598 Library (use with caution on other systems). On
1599 systems with 64-bit ptrdiff_t and 32-bit int,
1600 --with-included-regex is the default, in case regex
1601 functions operate on very long strings (>2GB)
1602 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
1603 included copy of `rmt'.
1604 --with-gnu-ld assume the C compiler uses GNU ld default=no
1605 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1606 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1607 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1608 --without-libintl-prefix don't search for libintl in includedir and libdir
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1619 the first program found out of: `bison -y', `byacc', `yacc'.
1620 YFLAGS The list of arguments that will be passed by default to $YACC.
1621 This script will default YFLAGS to the empty string to avoid a
1622 default value of `-d' given by some make applications.
1625 Define full file name of the directory where to install `rmt'.
1626 (default: $(libexecdir))
1627 DEFAULT_ARCHIVE_FORMAT
1628 Set the default archive format. Allowed values are: V7, OLDGNU,
1629 USTAR, POSIX, GNU. Default is GNU
1631 Set the name of the default archive (default: -)
1633 Define default blocking factor (default: 20)
1634 DEFAULT_QUOTING_STYLE
1635 Set the default quoting style. Allowed values are: literal,
1636 shell, shell-always, c, escape, locale, clocale . Default is
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 Report bugs to <bug-tar@gnu.org>.
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" || continue
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1670 .) # We are building in place.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1694 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1703 GNU tar configure 1.20
1704 generated by GNU Autoconf 2.61
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1713 cat >config.log <<_ACEOF
1714 This file contains any messages produced by compilers while
1715 running configure, to aid debugging if configure makes a mistake.
1717 It was created by GNU tar $as_me 1.20, which was
1718 generated by GNU Autoconf 2.61. Invocation command line was
1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1739 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1743 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 test -z "$as_dir" && as_dir=.
1754 echo "PATH: $as_dir"
1770 # Keep a trace of the command line.
1771 # Strip out --no-create and --no-recursion so they do not pile up.
1772 # Strip out --silent because we don't want to record it for future runs.
1773 # Also quote any args containing shell meta-characters.
1774 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_must_keep_next=false
1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786 | -silent | --silent | --silen | --sile | --sil)
1789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1794 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795 if test $ac_must_keep_next = true; then
1796 ac_must_keep_next=false # Got value, back to normal.
1799 *=* | --config-cache | -C | -disable-* | --disable-* \
1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802 | -with-* | --with-* | -without-* | --without-* | --x)
1803 case "$ac_configure_args0 " in
1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807 -* ) ac_must_keep_next=true ;;
1810 ac_configure_args="$ac_configure_args '$ac_arg'"
1815 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1818 # When interrupted or exit'd, cleanup temporary files, and complete
1819 # config.log. We remove comments because anyway the quotes in there
1820 # would cause problems or look ugly.
1821 # WARNING: Use '\'' to represent an apostrophe within the trap.
1822 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823 trap 'exit_status=$?
1824 # Save into config.log some information that might help in debugging.
1829 ## ---------------- ##
1830 ## Cache variables. ##
1831 ## ---------------- ##
1834 # The following way of writing the cache mishandles newlines in values,
1836 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837 eval ac_val=\$$ac_var
1841 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1842 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1845 _ | IFS | as_nl) ;; #(
1846 *) $as_unset $ac_var ;;
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1871 for ac_var in $ac_subst_vars
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1881 if test -n "$ac_subst_files"; then
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1888 for ac_var in $ac_subst_files
1890 eval ac_val=\$$ac_var
1892 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 echo "$ac_var='\''$ac_val'\''"
1899 if test -s confdefs.h; then
1909 test "$ac_signal" != 0 &&
1910 echo "$as_me: caught signal $ac_signal"
1911 echo "$as_me: exit $exit_status"
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1925 # Predefined preprocessor variables.
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer explicitly selected file to automatically selected ones.
1954 if test -n "$CONFIG_SITE"; then
1955 set x "$CONFIG_SITE"
1956 elif test "x$prefix" != xNONE; then
1957 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1959 set x "$ac_default_prefix/share/config.site" \
1960 "$ac_default_prefix/etc/config.site"
1965 if test -r "$ac_site_file"; then
1966 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1967 echo "$as_me: loading site script $ac_site_file" >&6;}
1968 sed 's/^/| /' "$ac_site_file" >&5
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
1977 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1978 echo "$as_me: loading cache $cache_file" >&6;}
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
1985 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1986 echo "$as_me: creating cache $cache_file" >&6;}
1990 ac_header_list="$ac_header_list fcntl.h"
1991 ac_header_list="$ac_header_list linux/fd.h"
1992 ac_header_list="$ac_header_list memory.h"
1993 ac_header_list="$ac_header_list net/errno.h"
1994 ac_header_list="$ac_header_list sgtty.h"
1995 ac_header_list="$ac_header_list string.h"
1996 ac_header_list="$ac_header_list stropts.h"
1997 ac_header_list="$ac_header_list sys/param.h"
1998 ac_header_list="$ac_header_list sys/device.h"
1999 ac_header_list="$ac_header_list sys/filio.h"
2000 ac_header_list="$ac_header_list sys/gentape.h"
2001 ac_header_list="$ac_header_list sys/inet.h"
2002 ac_header_list="$ac_header_list sys/io/trioctl.h"
2003 ac_header_list="$ac_header_list sys/mtio.h"
2004 ac_header_list="$ac_header_list sys/time.h"
2005 ac_header_list="$ac_header_list sys/tprintf.h"
2006 ac_header_list="$ac_header_list sys/tape.h"
2007 ac_header_list="$ac_header_list unistd.h"
2008 ac_header_list="$ac_header_list locale.h"
2009 ac_func_list="$ac_func_list flockfile"
2010 ac_func_list="$ac_func_list funlockfile"
2011 ac_header_list="$ac_header_list features.h"
2012 ac_header_list="$ac_header_list linewrap.h"
2013 ac_func_list="$ac_func_list pathconf"
2014 ac_func_list="$ac_func_list canonicalize_file_name"
2015 ac_func_list="$ac_func_list getcwd"
2016 ac_func_list="$ac_func_list readlink"
2017 ac_func_list="$ac_func_list dup2"
2018 ac_func_list="$ac_func_list fchdir"
2019 ac_header_list="$ac_header_list dirent.h"
2020 ac_header_list="$ac_header_list float.h"
2021 ac_func_list="$ac_func_list btowc"
2022 ac_func_list="$ac_func_list isblank"
2023 ac_func_list="$ac_func_list iswctype"
2024 ac_func_list="$ac_func_list mbsrtowcs"
2025 ac_func_list="$ac_func_list mempcpy"
2026 ac_func_list="$ac_func_list wmemchr"
2027 ac_func_list="$ac_func_list wmemcpy"
2028 ac_func_list="$ac_func_list wmempcpy"
2029 ac_header_list="$ac_header_list wctype.h"
2030 ac_header_list="$ac_header_list stdio_ext.h"
2031 ac_func_list="$ac_func_list __fpending"
2032 ac_func_list="$ac_func_list ftruncate"
2033 ac_func_list="$ac_func_list gettimeofday"
2034 ac_func_list="$ac_func_list nanotime"
2035 ac_header_list="$ac_header_list stdint.h"
2036 ac_header_list="$ac_header_list wchar.h"
2037 ac_header_list="$ac_header_list inttypes.h"
2038 ac_func_list="$ac_func_list alarm"
2039 ac_func_list="$ac_func_list lchmod"
2040 ac_func_list="$ac_func_list fdopendir"
2041 ac_func_list="$ac_func_list mbsinit"
2042 ac_func_list="$ac_func_list mbrtowc"
2043 ac_func_list="$ac_func_list wcrtomb"
2044 ac_func_list="$ac_func_list wcscoll"
2045 ac_func_list="$ac_func_list setenv"
2046 ac_func_list="$ac_func_list sleep"
2047 ac_header_list="$ac_header_list stdarg.h"
2048 ac_header_list="$ac_header_list stdio.h"
2049 ac_header_list="$ac_header_list stdlib.h"
2050 ac_header_list="$ac_header_list strings.h"
2051 ac_func_list="$ac_func_list lstat"
2052 ac_header_list="$ac_header_list sys/stat.h"
2053 ac_header_list="$ac_header_list sysexits.h"
2054 ac_header_list="$ac_header_list time.h"
2055 ac_func_list="$ac_func_list pipe"
2056 ac_header_list="$ac_header_list priv.h"
2057 ac_header_list="$ac_header_list utime.h"
2058 ac_func_list="$ac_func_list futimes"
2059 ac_func_list="$ac_func_list futimesat"
2060 ac_func_list="$ac_func_list vasnprintf"
2061 ac_func_list="$ac_func_list iswcntrl"
2062 ac_func_list="$ac_func_list wcwidth"
2063 ac_header_list="$ac_header_list netdb.h"
2064 ac_header_list="$ac_header_list sys/wait.h"
2065 ac_header_list="$ac_header_list pwd.h"
2066 ac_header_list="$ac_header_list grp.h"
2067 ac_func_list="$ac_func_list mkfifo"
2068 ac_func_list="$ac_func_list setlocale"
2069 gt_needs="$gt_needs need-formatstring-macros"
2070 # Check that the precious variables saved in the cache have kept the same
2072 ac_cache_corrupted=false
2073 for ac_var in $ac_precious_vars; do
2074 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075 eval ac_new_set=\$ac_env_${ac_var}_set
2076 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077 eval ac_new_val=\$ac_env_${ac_var}_value
2078 case $ac_old_set,$ac_new_set in
2080 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2084 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2085 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086 ac_cache_corrupted=: ;;
2089 if test "x$ac_old_val" != "x$ac_new_val"; then
2090 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2091 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2093 echo "$as_me: former value: $ac_old_val" >&2;}
2094 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2095 echo "$as_me: current value: $ac_new_val" >&2;}
2096 ac_cache_corrupted=:
2099 # Pass precious variables to config.status.
2100 if test "$ac_new_set" = set; then
2102 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 *) ac_arg=$ac_var=$ac_new_val ;;
2105 case " $ac_configure_args " in
2106 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2107 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2111 if $ac_cache_corrupted; then
2112 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2113 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2114 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2115 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2116 { (exit 1); exit 1; }; }
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152 for ac_dir in build-aux "$srcdir"/build-aux; do
2153 if test -f "$ac_dir/install-sh"; then
2155 ac_install_sh="$ac_aux_dir/install-sh -c"
2157 elif test -f "$ac_dir/install.sh"; then
2159 ac_install_sh="$ac_aux_dir/install.sh -c"
2161 elif test -f "$ac_dir/shtool"; then
2163 ac_install_sh="$ac_aux_dir/shtool install -c"
2167 if test -z "$ac_aux_dir"; then
2168 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2169 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2170 { (exit 1); exit 1; }; }
2173 # These three variables are undocumented and unsupported,
2174 # and are intended to be withdrawn in a future Autoconf release.
2175 # They can cause serious problems if a builder's source tree is in a directory
2176 # whose full name contains unusual characters.
2177 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2178 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2179 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182 ac_config_headers="$ac_config_headers config.h:config.hin"
2185 am__api_version='1.10'
2187 # Find a good install program. We prefer a C program (faster),
2188 # so one script is as good as another. But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2194 # AmigaOS /C/install, which installs bootblocks on floppy discs
2195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2198 # OS/2's system install, which has a completely different semantic
2199 # ./install, which can be erroneously created by make from ./install.sh.
2200 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2201 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2202 if test -z "$INSTALL"; then
2203 if test "${ac_cv_path_install+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 # Account for people who put trailing slashes in PATH elements.
2213 ./ | .// | /cC/* | \
2214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2218 # OSF1 and SCO ODT 3.0 have their own names for install.
2219 # Don't use installbsd from OSF since it installs stuff as root
2221 for ac_prog in ginstall scoinst install; do
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224 if test $ac_prog = install &&
2225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # AIX install. It has an incompatible calling convention.
2228 elif test $ac_prog = install &&
2229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230 # program-specific install script used by HP pwplus--don't use.
2233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2246 if test "${ac_cv_path_install+set}" = set; then
2247 INSTALL=$ac_cv_path_install
2249 # As a last resort, use the slow shell script. Don't cache a
2250 # value for INSTALL within a source directory, because that will
2251 # break other packages using the cache if that directory is
2252 # removed, or if the value is a relative name.
2253 INSTALL=$ac_install_sh
2256 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2257 echo "${ECHO_T}$INSTALL" >&6; }
2259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260 # It thinks the first close brace ends the variable substitution.
2261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2268 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2271 echo timestamp > conftest.file
2272 # Do `set' in a subshell so we don't clobber the current shell's
2273 # arguments. Must try -L first in case configure is actually a
2274 # symlink; some systems play weird games with the mod time of symlinks
2275 # (eg FreeBSD returns the mod time of the symlink's containing
2278 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2279 if test "$*" = "X"; then
2281 set X `ls -t $srcdir/configure conftest.file`
2284 if test "$*" != "X $srcdir/configure conftest.file" \
2285 && test "$*" != "X conftest.file $srcdir/configure"; then
2287 # If neither matched, then we have a broken ls. This can happen
2288 # if, for instance, CONFIG_SHELL is bash and it inherits a
2289 # broken ls alias from the environment. This has actually
2290 # happened. Such a system could not be considered "sane".
2291 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2292 alias in your environment" >&5
2293 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2294 alias in your environment" >&2;}
2295 { (exit 1); exit 1; }; }
2298 test "$2" = conftest.file
2304 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305 Check your system clock" >&5
2306 echo "$as_me: error: newly created file is older than distributed files!
2307 Check your system clock" >&2;}
2308 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $. echo might interpret backslashes.
2318 # By default was `s,x,x', remove it if useless.
2319 cat <<\_ACEOF >conftest.sed
2320 s/[\\$]/&&/g;s/;s,x,x,$//
2322 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2325 # expand $ac_aux_dir to an absolute path
2326 am_aux_dir=`cd $ac_aux_dir && pwd`
2328 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2329 # Use eval to expand $SHELL
2330 if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2334 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2335 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2338 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2339 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2340 if test -z "$MKDIR_P"; then
2341 if test "${ac_cv_path_mkdir+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2348 test -z "$as_dir" && as_dir=.
2349 for ac_prog in mkdir gmkdir; do
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2352 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2353 'mkdir (GNU coreutils) '* | \
2354 'mkdir (coreutils) '* | \
2355 'mkdir (fileutils) '4.1*)
2356 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2366 if test "${ac_cv_path_mkdir+set}" = set; then
2367 MKDIR_P="$ac_cv_path_mkdir -p"
2369 # As a last resort, use the slow shell script. Don't cache a
2370 # value for MKDIR_P within a source directory, because that will
2371 # break other packages using the cache if that directory is
2372 # removed, or if the value is a relative name.
2373 test -d ./--version && rmdir ./--version
2374 MKDIR_P="$ac_install_sh -d"
2377 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2378 echo "${ECHO_T}$MKDIR_P" >&6; }
2382 [\\/$]* | ?:[\\/]*) ;;
2383 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2386 for ac_prog in gawk mawk nawk awk
2388 # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_AWK+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$AWK"; then
2396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_AWK="$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 if test -n "$AWK"; then
2417 { echo "$as_me:$LINENO: result: $AWK" >&5
2418 echo "${ECHO_T}$AWK" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2425 test -n "$AWK" && break
2428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 cat >conftest.make <<\_ACEOF
2437 @echo '@@@%%%=$(MAKE)=@@@%%%'
2439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2442 eval ac_cv_prog_make_${ac_make}_set=yes;;
2444 eval ac_cv_prog_make_${ac_make}_set=no;;
2448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2449 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2455 SET_MAKE="MAKE=${MAKE-make}"
2458 rm -rf .tst 2>/dev/null
2459 mkdir .tst 2>/dev/null
2460 if test -d .tst; then
2465 rmdir .tst 2>/dev/null
2467 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2468 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2469 # is not polluted with repeated "-I."
2470 am__isrc=' -I$(srcdir)'
2471 # test to see if srcdir already configured
2472 if test -f $srcdir/config.status; then
2473 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475 { (exit 1); exit 1; }; }
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481 if (cygpath --version) >/dev/null 2>/dev/null; then
2482 CYGPATH_W='cygpath -w'
2489 # Define the identity of the package.
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2503 # Some tools Automake needs.
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { echo "$as_me:$LINENO: result: $STRIP" >&5
2557 echo "${ECHO_T}$STRIP" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2565 if test -z "$ac_cv_prog_STRIP"; then
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2597 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2603 if test "x$ac_ct_STRIP" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2619 STRIP="$ac_cv_prog_STRIP"
2623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2625 # We need awk for the "check" target. The system "awk" is bad on
2627 # Always define AMTAR for backward compatibility.
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2632 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2633 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2634 # Loop over all known methods to create a tar archive until one works.
2635 _am_tools='gnutar plaintar pax cpio none'
2636 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2637 # Do not fold the above two line into one, because Tru64 sh and
2638 # Solaris sh will not grok spaces in the rhs of `-'.
2639 for _am_tool in $_am_tools
2643 for _am_tar in tar gnutar gtar;
2645 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2646 ($_am_tar --version) >&5 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && break
2651 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2652 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2653 am__untar="$_am_tar -xf -"
2656 # Must skip GNU tar: if it does not support --format= it doesn't create
2657 # ustar tarball either.
2658 (tar --version) >/dev/null 2>&1 && continue
2659 am__tar='tar chf - "$$tardir"'
2660 am__tar_='tar chf - "$tardir"'
2661 am__untar='tar xf -'
2664 am__tar='pax -L -x ustar -w "$$tardir"'
2665 am__tar_='pax -L -x ustar -w "$tardir"'
2669 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2670 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2671 am__untar='cpio -i -H ustar -d'
2680 # If the value was cached, stop now. We just wanted to have am__tar
2681 # and am__untar set.
2682 test -n "${am_cv_prog_tar_ustar}" && break
2684 # tar/untar a dummy directory, and stop if the command works
2687 echo GrepMe > conftest.dir/file
2688 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2689 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2694 if test -s conftest.tar; then
2695 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2696 ($am__untar <conftest.tar) >&5 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2705 if test "${am_cv_prog_tar_ustar+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 am_cv_prog_tar_ustar=$_am_tool
2711 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2712 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2757 { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2763 if test -z "$ac_cv_prog_CC"; then
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="gcc"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6; }
2797 { echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6; }
2801 if test "x$ac_ct_CC" = x; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet. If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&5
2809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2812 ac_tool_warned=yes ;;
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}cc"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { echo "$as_me:$LINENO: result: $CC" >&5
2852 echo "${ECHO_T}$CC" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2861 if test -z "$CC"; then
2862 # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881 ac_prog_rejected=yes
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test $ac_prog_rejected = yes; then
2893 # We found a bogon in the path, so make sure we never use it.
2894 set dummy $ac_cv_prog_CC
2896 if test $# != 0; then
2897 # We chose a different compiler from the bogus one.
2898 # However, it has the same basename, so the bogon will be chosen
2899 # first if we set CC to just the basename; use the full file name.
2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 if test -n "$CC"; then
2908 { echo "$as_me:$LINENO: result: $CC" >&5
2909 echo "${ECHO_T}$CC" >&6; }
2911 { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { echo "$as_me:$LINENO: result: $CC" >&5
2951 echo "${ECHO_T}$CC" >&6; }
2953 { echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6; }
2958 test -n "$CC" && break
2961 if test -z "$CC"; then
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="$ac_prog"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2995 echo "${ECHO_T}$ac_ct_CC" >&6; }
2997 { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
3002 test -n "$ac_ct_CC" && break
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet. If you think this
3012 configuration is useful to you, please write to autoconf@gnu.org." >&5
3013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet. If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3016 ac_tool_warned=yes ;;
3025 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3031 # Provide some information about the compiler.
3032 echo "$as_me:$LINENO: checking for C compiler version" >&5
3033 ac_compiler=`set X $ac_compile; echo $2`
3034 { (ac_try="$ac_compiler --version >&5"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler --version >&5") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3044 { (ac_try="$ac_compiler -v >&5"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compiler -v >&5") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
3054 { (ac_try="$ac_compiler -V >&5"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compiler -V >&5") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 ac_clean_files_save=$ac_clean_files
3081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3082 # Try to create an executable without -o first, disregard a.out.
3083 # It will help us diagnose broken compilers, and finding out an intuition
3085 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3086 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3087 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089 # List of possible output files, starting from the most likely.
3090 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3091 # only as a last resort. b.out is created by i960 compilers.
3092 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3094 # The IRIX 6 linker writes into existing files which may not be
3095 # executable, retaining their permissions. Remove them first so a
3096 # subsequent execution test works.
3098 for ac_file in $ac_files
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3107 if { (ac_try="$ac_link_default"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_link_default") 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; then
3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3119 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3120 # so that the user can short-circuit this test for compilers unknown to
3122 for ac_file in $ac_files ''
3124 test -f "$ac_file" || continue
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3129 # We found the default executable, but exeext='' is most
3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137 # We set ac_cv_exeext here because the later test for it is not
3138 # safe: cross compilers may not add the suffix if given an `-o'
3139 # argument, so we may need to know it at that point already.
3140 # Even if this section looks crufty: it has the advantage of
3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
3153 { echo "$as_me:$LINENO: result: $ac_file" >&5
3154 echo "${ECHO_T}$ac_file" >&6; }
3155 if test -z "$ac_file"; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: C compiler cannot create executables
3162 See \`config.log' for more details." >&2;}
3163 { (exit 77); exit 77; }; }
3166 ac_exeext=$ac_cv_exeext
3168 # Check that the compiler produces executables we can run. If not, either
3169 # the compiler is broken, or we cross compile.
3170 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3173 # If not cross compiling, check that we can run a simple program.
3174 if test "$cross_compiling" != yes; then
3175 if { ac_try='./$ac_file'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 if test "$cross_compiling" = maybe; then
3190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details." >&2;}
3196 { (exit 1); exit 1; }; }
3200 { echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6; }
3203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3204 ac_clean_files=$ac_clean_files_save
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3209 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3210 echo "${ECHO_T}$cross_compiling" >&6; }
3212 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3214 if { (ac_try="$ac_link"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_link") 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; then
3224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3228 for ac_file in conftest.exe conftest conftest.*; do
3229 test -f "$ac_file" || continue
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }
3245 rm -f conftest$ac_cv_exeext
3246 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3247 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3252 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3254 if test "${ac_cv_objext+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.o conftest.obj
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
3283 for ac_file in conftest.o conftest.obj conftest.*; do
3284 test -f "$ac_file" || continue;
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&5
3297 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&2;}
3299 { (exit 1); exit 1; }; }
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3305 echo "${ECHO_T}$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3308 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compile") 2>conftest.er1
3340 grep -v '^ *+' conftest.er1 >conftest.err
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3361 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3362 GCC=`test $ac_compiler_gnu = yes && echo yes`
3363 ac_test_CFLAGS=${CFLAGS+set}
3364 ac_save_CFLAGS=$CFLAGS
3365 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3366 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_cc_g+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_save_c_werror_flag=$ac_c_werror_flag
3371 ac_c_werror_flag=yes
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } && {
3441 test -z "$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 } && test -s conftest.$ac_objext; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } && {
3480 test -z "$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 } && test -s conftest.$ac_objext; then
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3501 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3511 if test "$GCC" = yes; then
3517 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3518 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3519 if test "${ac_cv_prog_cc_c89+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 ac_cv_prog_cc_c89=no
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3548 s = g (p, va_arg (v,int));
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
3556 as 'x'. The following induces an error, until -std is added to get
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
3559 that's true only with -std. */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 CC="$ac_save_CC $ac_arg"
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3602 ac_cv_prog_cc_c89=$ac_arg
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3610 rm -f core conftest.err conftest.$ac_objext
3611 test "x$ac_cv_prog_cc_c89" != "xno" && break
3613 rm -f conftest.$ac_ext
3618 case "x$ac_cv_prog_cc_c89" in
3620 { echo "$as_me:$LINENO: result: none needed" >&5
3621 echo "${ECHO_T}none needed" >&6; } ;;
3623 { echo "$as_me:$LINENO: result: unsupported" >&5
3624 echo "${ECHO_T}unsupported" >&6; } ;;
3626 CC="$CC $ac_cv_prog_cc_c89"
3627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 DEPDIR="${am__leading_dot}deps"
3639 ac_config_commands="$ac_config_commands depfiles"
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3648 # If we don't find an include directive, just comment out the code.
3649 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3650 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # We grep out `Entering directory' and `Leaving directory'
3657 # messages which can occur if `w' ends up in MAKEFLAGS.
3658 # In particular we don't look at `^make:' because GNU make might
3659 # be invoked under some other name (usually "gmake"), in which
3660 # case it prints its new name instead of `make'.
3661 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3666 # Now try BSD make style include.
3667 if test "$am__include" = "#"; then
3668 echo '.include "confinc"' > confmf
3669 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3670 am__include=.include
3677 { echo "$as_me:$LINENO: result: $_am_result" >&5
3678 echo "${ECHO_T}$_am_result" >&6; }
3679 rm -f confinc confmf
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then
3683 enableval=$enable_dependency_tracking;
3686 if test "x$enable_dependency_tracking" != xno; then
3687 am_depcomp="$ac_aux_dir/depcomp"
3690 if test "x$enable_dependency_tracking" != xno; then
3700 depcc="$CC" am_compiler_list=
3702 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708 # We make a subdir and do the tests there. Otherwise we can end up
3709 # making bogus files that we don't know about and never remove. For
3710 # instance it was reported that on HP-UX the gcc test will end up
3711 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # Copy depcomp to subdir because otherwise we won't find it if we're
3715 # using a relative directory.
3716 cp "$am_depcomp" conftest.dir
3718 # We will build objects and dependencies in a subdirectory because
3719 # it helps to detect inapplicable dependency modes. For instance
3720 # both Tru64's cc and ICC support -MD to output dependencies as a
3721 # side effect of compilation, but ICC will put the dependencies in
3722 # the current directory while Tru64 will put them in the object
3726 am_cv_CC_dependencies_compiler_type=none
3727 if test "$am_compiler_list" = ""; then
3728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742 # Solaris 8's {/usr,}/bin/sh.
3743 touch sub/conftst$i.h
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749 # after this tag, mechanisms are not by side-effect, so they'll
3750 # only be used when explicitly requested
3751 if test "x$enable_dependency_tracking" = xyes; then
3759 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3760 # mode. It turns out that the SunPro C++ compiler does not properly
3761 # handle `-M -o', and we need to detect this.
3762 if depmode=$depmode \
3763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3766 >/dev/null 2>conftest.err &&
3767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3771 # icc doesn't choke on unknown options, it will just issue warnings
3772 # or remarks (even with -Werror). So we grep stderr for any message
3773 # that says an option was ignored or not supported.
3774 # When given -MP, icc 7.0 and 7.1 complain thusly:
3775 # icc: Command line warning: ignoring option '-M'; no argument required
3776 # The diagnosis changed in icc 8.0:
3777 # icc: Command line remark: option '-MP' not supported
3778 if (grep 'ignoring option' conftest.err ||
3779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3780 am_cv_CC_dependencies_compiler_type=$depmode
3789 am_cv_CC_dependencies_compiler_type=none
3793 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3798 test "x$enable_dependency_tracking" != xno \
3799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3801 am__fastdepCC_FALSE='#'
3803 am__fastdepCC_TRUE='#'
3804 am__fastdepCC_FALSE=
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 if test -n "$RANLIB"; then
3818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 RANLIB=$ac_cv_prog_RANLIB
3838 if test -n "$RANLIB"; then
3839 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3840 echo "${ECHO_T}$RANLIB" >&6; }
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3848 if test -z "$ac_cv_prog_RANLIB"; then
3849 ac_ct_RANLIB=$RANLIB
3850 # Extract the first word of "ranlib", so it can be a program name with args.
3851 set dummy ranlib; ac_word=$2
3852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$ac_ct_RANLIB"; then
3858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 ac_cv_prog_ac_ct_RANLIB="ranlib"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3878 if test -n "$ac_ct_RANLIB"; then
3879 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3880 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3882 { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3886 if test "x$ac_ct_RANLIB" = x; then
3889 case $cross_compiling:$ac_tool_warned in
3891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3892 whose name does not start with the host triplet. If you think this
3893 configuration is useful to you, please write to autoconf@gnu.org." >&5
3894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3895 whose name does not start with the host triplet. If you think this
3896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3897 ac_tool_warned=yes ;;
3899 RANLIB=$ac_ct_RANLIB
3902 RANLIB="$ac_cv_prog_RANLIB"
3905 for ac_prog in 'bison -y' byacc
3907 # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3911 if test "${ac_cv_prog_YACC+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test -n "$YACC"; then
3915 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924 ac_cv_prog_YACC="$ac_prog"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 YACC=$ac_cv_prog_YACC
3935 if test -n "$YACC"; then
3936 { echo "$as_me:$LINENO: result: $YACC" >&5
3937 echo "${ECHO_T}$YACC" >&6; }
3939 { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3944 test -n "$YACC" && break
3946 test -n "$YACC" || YACC="yacc"
3948 if test "x$CC" != xcc; then
3949 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3950 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3952 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3953 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3955 set dummy $CC; ac_cc=`echo $2 |
3956 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3957 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 # Make sure it works both with $CC and with simple cc.
3976 # We do the test twice because some compilers refuse to overwrite an
3977 # existing .o file with -o, though they will create one.
3978 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3980 if { (case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_try") 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_try") 2>&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); };
3999 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4000 if test "x$CC" != xcc; then
4001 # Test first that cc exists at all.
4002 if { ac_try='cc -c conftest.$ac_ext >&5'
4003 { (case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_try") 2>&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4014 if { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); };
4036 # cc exists but doesn't like -o.
4037 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4042 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4044 rm -f core conftest*
4047 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4048 { echo "$as_me:$LINENO: result: yes" >&5
4049 echo "${ECHO_T}yes" >&6; }
4051 { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4054 cat >>confdefs.h <<\_ACEOF
4055 #define NO_MINUS_C_MINUS_O 1
4060 # FIXME: we rely on the cache variable name because
4061 # there is no other way.
4063 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4064 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4065 # Losing compiler, so override with the script.
4066 # FIXME: It is wrong to rewrite CC.
4067 # But if we don't then we get into trouble of one sort or another.
4068 # A longer-term fix would be to have automake use am__CC in this case,
4069 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070 CC="$am_aux_dir/compile $CC"
4075 cat >>confdefs.h <<\_ACEOF
4076 #define _GNU_SOURCE 1
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4087 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4092 if test -z "$CPP"; then
4093 if test "${ac_cv_prog_CPP+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 # Double quotes because CPP needs to be expanded
4097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4100 for ac_c_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 # include <limits.h>
4117 # include <assert.h>
4121 if { (ac_try="$ac_cpp conftest.$ac_ext"
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } >/dev/null && {
4134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4135 test ! -s conftest.err
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 # Broken: fails on valid input.
4146 rm -f conftest.err conftest.$ac_ext
4148 # OK, works on sane cases. Now check whether nonexistent headers
4149 # can be detected and how.
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 #include <ac_nonexistent.h>
4158 if { (ac_try="$ac_cpp conftest.$ac_ext"
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } >/dev/null && {
4171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4172 test ! -s conftest.err
4174 # Broken: success on invalid input.
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 # Passes both tests.
4185 rm -f conftest.err conftest.$ac_ext
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then
4202 { echo "$as_me:$LINENO: result: $CPP" >&5
4203 echo "${ECHO_T}$CPP" >&6; }
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4220 # include <limits.h>
4222 # include <assert.h>
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 # Broken: fails on valid input.
4251 rm -f conftest.err conftest.$ac_ext
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 #include <ac_nonexistent.h>
4263 if { (ac_try="$ac_cpp conftest.$ac_ext"
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } >/dev/null && {
4276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4277 test ! -s conftest.err
4279 # Broken: success on invalid input.
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 # Passes both tests.
4290 rm -f conftest.err conftest.$ac_ext
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then
4298 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details." >&5
4300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4301 See \`config.log' for more details." >&2;}
4302 { (exit 1); exit 1; }; }
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4313 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4314 if test "${ac_cv_path_GREP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 # Extract the first word of "grep ggrep" to use in msg output
4318 if test -z "$GREP"; then
4319 set dummy grep ggrep; ac_prog_name=$2
4320 if test "${ac_cv_path_GREP+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 ac_path_GREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in grep ggrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4334 # Check for GNU ac_path_GREP and select it if it is found.
4335 # Check for GNU $ac_path_GREP
4336 case `"$ac_path_GREP" --version 2>&1` in
4338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 echo 'GREP' >> "conftest.nl"
4348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 ac_count=`expr $ac_count + 1`
4351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_GREP="$ac_path_GREP"
4354 ac_path_GREP_max=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 $ac_path_GREP_found && break 3
4373 GREP="$ac_cv_path_GREP"
4374 if test -z "$GREP"; then
4375 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4376 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4377 { (exit 1); exit 1; }; }
4381 ac_cv_path_GREP=$GREP
4386 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4387 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4388 GREP="$ac_cv_path_GREP"
4391 { echo "$as_me:$LINENO: checking for egrep" >&5
4392 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_EGREP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4397 then ac_cv_path_EGREP="$GREP -E"
4399 # Extract the first word of "egrep" to use in msg output
4400 if test -z "$EGREP"; then
4401 set dummy egrep; ac_prog_name=$2
4402 if test "${ac_cv_path_EGREP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4423 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 ac_count=`expr $ac_count + 1`
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 $ac_path_EGREP_found && break 3
4455 EGREP="$ac_cv_path_EGREP"
4456 if test -z "$EGREP"; then
4457 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4458 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4459 { (exit 1); exit 1; }; }
4463 ac_cv_path_EGREP=$EGREP
4469 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4470 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4471 EGREP="$ac_cv_path_EGREP"
4474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4476 if test "${ac_cv_header_stdc+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && {
4512 test -z "$ac_c_werror_flag" ||
4513 test ! -s conftest.err
4514 } && test -s conftest.$ac_objext; then
4515 ac_cv_header_stdc=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_cv_header_stdc=no
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 if test $ac_cv_header_stdc = yes; then
4526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "memchr" >/dev/null 2>&1; then
4540 ac_cv_header_stdc=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558 $EGREP "free" >/dev/null 2>&1; then
4561 ac_cv_header_stdc=no
4567 if test $ac_cv_header_stdc = yes; then
4568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4569 if test "$cross_compiling" = yes; then
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4580 #if ((' ' & 0x0FF) == 0x020)
4581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4584 # define ISLOWER(c) \
4585 (('a' <= (c) && (c) <= 'i') \
4586 || ('j' <= (c) && (c) <= 'r') \
4587 || ('s' <= (c) && (c) <= 'z'))
4588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4596 for (i = 0; i < 256; i++)
4597 if (XOR (islower (i), ISLOWER (i))
4598 || toupper (i) != TOUPPER (i))
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_cv_header_stdc=no
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4640 if test $ac_cv_header_stdc = yes; then
4642 cat >>confdefs.h <<\_ACEOF
4643 #define STDC_HEADERS 1
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659 inttypes.h stdint.h unistd.h
4661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 $ac_includes_default
4675 #include <$ac_header>
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4694 eval "$as_ac_Header=yes"
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 eval "$as_ac_Header=no"
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_res=`eval echo '${'$as_ac_Header'}'`
4705 { echo "$as_me:$LINENO: result: $ac_res" >&5
4706 echo "${ECHO_T}$ac_res" >&6; }
4707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708 cat >>confdefs.h <<_ACEOF
4709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 if test "${ac_cv_header_minix_config_h+set}" = set; then
4719 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4720 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4721 if test "${ac_cv_header_minix_config_h+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4725 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4727 # Is the header compilable?
4728 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4729 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 $ac_includes_default
4737 #include <minix/config.h>
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4756 ac_header_compiler=yes
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_header_compiler=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4766 echo "${ECHO_T}$ac_header_compiler" >&6; }
4768 # Is the header present?
4769 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4770 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <minix/config.h>
4779 if { (ac_try="$ac_cpp conftest.$ac_ext"
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev/null && {
4792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4795 ac_header_preproc=yes
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 ac_header_preproc=no
4803 rm -f conftest.err conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4805 echo "${ECHO_T}$ac_header_preproc" >&6; }
4807 # So? What about this header?
4808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4811 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4813 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4814 ac_header_preproc=yes
4817 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4818 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4819 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4820 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4821 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4822 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4824 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4826 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4828 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4830 ## ------------------------------ ##
4831 ## Report this to bug-tar@gnu.org ##
4832 ## ------------------------------ ##
4834 ) | sed "s/^/$as_me: WARNING: /" >&2
4837 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4838 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4839 if test "${ac_cv_header_minix_config_h+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 ac_cv_header_minix_config_h=$ac_header_preproc
4844 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4845 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4848 if test $ac_cv_header_minix_config_h = yes; then
4855 if test "$MINIX" = yes; then
4857 cat >>confdefs.h <<\_ACEOF
4858 #define _POSIX_SOURCE 1
4862 cat >>confdefs.h <<\_ACEOF
4863 #define _POSIX_1_SOURCE 2
4867 cat >>confdefs.h <<\_ACEOF
4875 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4876 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4877 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4887 # define __EXTENSIONS__ 1
4888 $ac_includes_default
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4914 ac_cv_safe_to_define___extensions__=yes
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ac_cv_safe_to_define___extensions__=no
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4925 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4926 test $ac_cv_safe_to_define___extensions__ = yes &&
4927 cat >>confdefs.h <<\_ACEOF
4928 #define __EXTENSIONS__ 1
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _ALL_SOURCE 1
4935 cat >>confdefs.h <<\_ACEOF
4936 #define _GNU_SOURCE 1
4939 cat >>confdefs.h <<\_ACEOF
4940 #define _POSIX_PTHREAD_SEMANTICS 1
4943 cat >>confdefs.h <<\_ACEOF
4944 #define _TANDEM_SOURCE 1
4949 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4950 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
4951 if test "${ac_cv_sys_largefile_source+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4965 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_link") 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest$ac_exeext &&
4987 $as_test_x conftest$ac_exeext; then
4988 ac_cv_sys_largefile_source=no; break
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4997 conftest$ac_exeext conftest.$ac_ext
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #define _LARGEFILE_SOURCE 1
5009 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && {
5028 test -z "$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 } && test -s conftest$ac_exeext &&
5031 $as_test_x conftest$ac_exeext; then
5032 ac_cv_sys_largefile_source=1; break
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5041 conftest$ac_exeext conftest.$ac_ext
5042 ac_cv_sys_largefile_source=unknown
5046 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5048 case $ac_cv_sys_largefile_source in #(
5051 cat >>confdefs.h <<_ACEOF
5052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5058 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5059 # in glibc 2.1.3, but that breaks too many other things.
5060 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5061 if test $ac_cv_sys_largefile_source != unknown; then
5063 cat >>confdefs.h <<\_ACEOF
5064 #define HAVE_FSEEKO 1
5069 case $ac_cv_prog_cc_stdc in
5070 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5071 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5072 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c99+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 ac_cv_prog_cc_c99=no
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5085 #include <stdbool.h>
5090 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5091 #define debug(...) fprintf (stderr, __VA_ARGS__)
5092 #define showlist(...) puts (#__VA_ARGS__)
5093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5095 test_varargs_macros (void)
5100 debug ("X = %d\n", x);
5101 showlist (The first, second, and third items.);
5102 report (x>y, "x is %d but y is %d", x, y);
5105 // Check long long types.
5106 #define BIG64 18446744073709551615ull
5107 #define BIG32 4294967295ul
5108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5110 your preprocessor is broken;
5114 your preprocessor is broken;
5116 static long long int bignum = -9223372036854775807LL;
5117 static unsigned long long int ubignum = BIG64;
5119 struct incomplete_array
5127 const wchar_t *name;
5131 typedef const char *ccp;
5134 test_restrict (ccp restrict text)
5136 // See if C++-style comments work.
5137 // Iterate through items via the restricted pointer.
5138 // Also check for declarations in for loops.
5139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5144 // Check varargs and va_copy.
5146 test_varargs (const char *format, ...)
5149 va_start (args, format);
5151 va_copy (args_copy, args);
5162 str = va_arg (args_copy, const char *);
5165 number = va_arg (args_copy, int);
5168 fnumber = va_arg (args_copy, double);
5183 _Bool success = false;
5186 if (test_restrict ("String literal") == 0)
5188 char *restrict newvar = "Another string";
5191 test_varargs ("s, d' f .", "string", 65, 34.234);
5192 test_varargs_macros ();
5194 // Check flexible array members.
5195 struct incomplete_array *ia =
5196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5198 for (int i = 0; i < ia->datasize; ++i)
5199 ia->data[i] = i * 1.234;
5201 // Check named initializers.
5202 struct named_init ni = {
5204 .name = L"Test wide string",
5205 .average = 543.34343,
5210 int dynamic_array[ni.number];
5211 dynamic_array[ni.number - 1] = 543;
5213 // work around unused variable warnings
5214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5215 || dynamic_array[ni.number - 1] != 543);
5221 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5223 CC="$ac_save_CC $ac_arg"
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_cv_prog_cc_c99=$ac_arg
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f core conftest.err conftest.$ac_objext
5250 test "x$ac_cv_prog_cc_c99" != "xno" && break
5252 rm -f conftest.$ac_ext
5257 case "x$ac_cv_prog_cc_c99" in
5259 { echo "$as_me:$LINENO: result: none needed" >&5
5260 echo "${ECHO_T}none needed" >&6; } ;;
5262 { echo "$as_me:$LINENO: result: unsupported" >&5
5263 echo "${ECHO_T}unsupported" >&6; } ;;
5265 CC="$CC $ac_cv_prog_cc_c99"
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
5269 if test "x$ac_cv_prog_cc_c99" != xno; then
5270 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5272 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5273 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_cc_c89+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 ac_cv_prog_cc_c89=no
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5287 #include <sys/types.h>
5288 #include <sys/stat.h>
5289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5290 struct buf { int x; };
5291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5292 static char *e (p, i)
5298 static char *f (char * (*g) (char **, int), char **p, ...)
5303 s = g (p, va_arg (v,int));
5308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5309 function prototypes and stuff, but not '\xHH' hex character constants.
5310 These don't provoke an error unfortunately, instead are silently treated
5311 as 'x'. The following induces an error, until -std is added to get
5312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5313 array size at least. It's necessary to write '\x00'==0 to get something
5314 that's true only with -std. */
5315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5318 inside strings and character constants. */
5320 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5322 int test (int i, double x);
5323 struct s1 {int (*f) (int a);};
5324 struct s2 {int (*f) (double a);};
5325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5331 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5339 CC="$ac_save_CC $ac_arg"
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && {
5354 test -z "$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5356 } && test -s conftest.$ac_objext; then
5357 ac_cv_prog_cc_c89=$ac_arg
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5365 rm -f core conftest.err conftest.$ac_objext
5366 test "x$ac_cv_prog_cc_c89" != "xno" && break
5368 rm -f conftest.$ac_ext
5373 case "x$ac_cv_prog_cc_c89" in
5375 { echo "$as_me:$LINENO: result: none needed" >&5
5376 echo "${ECHO_T}none needed" >&6; } ;;
5378 { echo "$as_me:$LINENO: result: unsupported" >&5
5379 echo "${ECHO_T}unsupported" >&6; } ;;
5381 CC="$CC $ac_cv_prog_cc_c89"
5382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5383 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5385 if test "x$ac_cv_prog_cc_c89" != xno; then
5386 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5388 ac_cv_prog_cc_stdc=no
5396 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5397 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 case $ac_cv_prog_cc_stdc in
5403 no) { echo "$as_me:$LINENO: result: unsupported" >&5
5404 echo "${ECHO_T}unsupported" >&6; } ;;
5405 '') { echo "$as_me:$LINENO: result: none needed" >&5
5406 echo "${ECHO_T}none needed" >&6; } ;;
5407 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5408 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5421 # Check whether --enable-largefile was given.
5422 if test "${enable_largefile+set}" = set; then
5423 enableval=$enable_largefile;
5426 if test "$enable_largefile" != no; then
5428 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5429 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5430 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 ac_cv_sys_largefile_CC=no
5434 if test "$GCC" != yes; then
5437 # IRIX 6.2 and later do not support large files by default,
5438 # so use the C compiler's -n32 option if that helps.
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 ac_cv_sys_largefile_CC=' -n32'; break
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5514 rm -f core conftest.err conftest.$ac_objext
5518 rm -f conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5522 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5523 if test "$ac_cv_sys_largefile_CC" != no; then
5524 CC=$CC$ac_cv_sys_largefile_CC
5527 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5528 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5529 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <sys/types.h>
5540 /* Check that off_t can represent 2**63 - 1 correctly.
5541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542 since some C++ compilers masquerading as C compilers
5543 incorrectly reject 9223372036854775807. */
5544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546 && LARGE_OFF_T % 2147483647 == 1)
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_cv_sys_file_offset_bits=no; break
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #define _FILE_OFFSET_BITS 64
5589 #include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592 since some C++ compilers masquerading as C compilers
5593 incorrectly reject 9223372036854775807. */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596 && LARGE_OFF_T % 2147483647 == 1)
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_file_offset_bits=64; break
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cv_sys_file_offset_bits=unknown
5636 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5637 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5647 if test $ac_cv_sys_file_offset_bits = unknown; then
5648 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5649 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_sys_large_files=no; break
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #define _LARGE_FILES 1
5710 #include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5736 grep -v '^ *+' conftest.er1 >conftest.err
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 ac_cv_sys_large_files=1; break
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 ac_cv_sys_large_files=unknown
5757 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5758 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5759 case $ac_cv_sys_large_files in #(
5762 cat >>confdefs.h <<_ACEOF
5763 #define _LARGE_FILES $ac_cv_sys_large_files
5772 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5773 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5774 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 ac_check_lib_save_LIBS=$LIBS
5778 LIBS="-lcposix $LIBS"
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5786 /* Override any GCC internal prototype to avoid an error.
5787 Use char because int might match the return type of a GCC
5788 builtin and then its argument prototype would still apply. */
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_link") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest$ac_exeext &&
5818 $as_test_x conftest$ac_exeext; then
5819 ac_cv_lib_cposix_strerror=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_cv_lib_cposix_strerror=no
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5828 conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5832 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5833 if test $ac_cv_lib_cposix_strerror = yes; then
5834 LIBS="$LIBS -lcposix"
5839 { echo "$as_me:$LINENO: checking for inline" >&5
5840 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5841 if test "${ac_cv_c_inline+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 for ac_kw in inline __inline__ __inline; do
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5854 static $ac_kw foo_t static_foo () {return 0; }
5855 $ac_kw foo_t foo () {return 0; }
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest.$ac_objext; then
5876 ac_cv_c_inline=$ac_kw
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 test "$ac_cv_c_inline" != no && break
5889 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5890 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5893 case $ac_cv_c_inline in
5896 case $ac_cv_c_inline in
5898 *) ac_val=$ac_cv_c_inline;;
5900 cat >>confdefs.h <<_ACEOF
5902 #define inline $ac_val
5913 for ac_header in $ac_header_list
5915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_res=`eval echo '${'$as_ac_Header'}'`
5923 { echo "$as_me:$LINENO: result: $ac_res" >&5
5924 echo "${ECHO_T}$ac_res" >&6; }
5926 # Is the header compilable?
5927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5936 #include <$ac_header>
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_compile") 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest.$ac_objext; then
5955 ac_header_compiler=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_header_compiler=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5965 echo "${ECHO_T}$ac_header_compiler" >&6; }
5967 # Is the header present?
5968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <$ac_header>
5978 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5994 ac_header_preproc=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_header_preproc=no
6002 rm -f conftest.err conftest.$ac_ext
6003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6004 echo "${ECHO_T}$ac_header_preproc" >&6; }
6006 # So? What about this header?
6007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6013 ac_header_preproc=yes
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6029 ## ------------------------------ ##
6030 ## Report this to bug-tar@gnu.org ##
6031 ## ------------------------------ ##
6033 ) | sed "s/^/$as_me: WARNING: /" >&2
6036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 eval "$as_ac_Header=\$ac_header_preproc"
6043 ac_res=`eval echo '${'$as_ac_Header'}'`
6044 { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139 for ac_header in sys/buf.h
6141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #if HAVE_SYS_PARAM_H
6154 #include <sys/param.h>
6157 #include <$ac_header>
6159 rm -f conftest.$ac_objext
6160 if { (ac_try="$ac_compile"
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_compile") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && {
6173 test -z "$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 } && test -s conftest.$ac_objext; then
6176 eval "$as_ac_Header=yes"
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 eval "$as_ac_Header=no"
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 ac_res=`eval echo '${'$as_ac_Header'}'`
6187 { echo "$as_me:$LINENO: result: $ac_res" >&5
6188 echo "${ECHO_T}$ac_res" >&6; }
6189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6190 cat >>confdefs.h <<_ACEOF
6191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6199 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6200 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6201 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <sys/types.h>
6211 #include <sys/wait.h>
6213 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6216 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6224 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 ac_cv_header_sys_wait_h=yes
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_cv_header_sys_wait_h=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6257 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6258 if test $ac_cv_header_sys_wait_h = yes; then
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_SYS_WAIT_H 1
6266 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6267 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6268 if test "${ac_cv_header_stdbool_h+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6278 #include <stdbool.h>
6280 "error: bool is not defined"
6283 "error: false is not defined"
6286 "error: false is not 0"
6289 "error: true is not defined"
6292 "error: true is not 1"
6294 #ifndef __bool_true_false_are_defined
6295 "error: __bool_true_false_are_defined is not defined"
6298 struct s { _Bool s: 1; _Bool t; } s;
6300 char a[true == 1 ? 1 : -1];
6301 char b[false == 0 ? 1 : -1];
6302 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6303 char d[(bool) 0.5 == true ? 1 : -1];
6305 char f[(_Bool) 0.0 == false ? 1 : -1];
6307 char h[sizeof (_Bool)];
6309 enum { j = false, k = true, l = false * true, m = true * 256 };
6311 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6312 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6313 #if defined __xlc__ || defined __GNUC__
6314 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6315 reported by James Lemley on 2005-10-05; see
6316 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6317 This test is not quite right, since xlc is allowed to
6318 reject this program, as the initializer for xlcbug is
6319 not one of the forms that C requires support for.
6320 However, doing the test right would require a run-time
6321 test, and that would make cross-compilation harder.
6322 Let us hope that IBM fixes the xlc bug, and also adds
6323 support for this kind of constant expression. In the
6324 meantime, this test will reject xlc, which is OK, since
6325 our stdbool.h substitute should suffice. We also test
6326 this with GCC, where it should work, to detect more
6327 quickly whether someone messes up the test in the
6329 char digs[] = "0123456789";
6330 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6332 /* Catch a bug in an HP-UX C compiler. See
6333 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6334 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6345 /* Refer to every declared value, to avoid compiler optimizations. */
6346 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6347 + !m + !n + !o + !p + !q + !pq);
6353 rm -f conftest.$ac_objext
6354 if { (ac_try="$ac_compile"
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 ac_cv_header_stdbool_h=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_cv_header_stdbool_h=no
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6381 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6382 { echo "$as_me:$LINENO: checking for _Bool" >&5
6383 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6384 if test "${ac_cv_type__Bool+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 typedef _Bool ac__type_new_;
6398 if ((ac__type_new_ *) 0)
6400 if (sizeof (ac__type_new_))
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 ac_cv_type__Bool=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6434 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6435 if test $ac_cv_type__Bool = yes; then
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE__BOOL 1
6444 if test $ac_cv_header_stdbool_h = yes; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_STDBOOL_H 1
6454 # Define two additional variables used in the Makefile substitution.
6456 if test "$ac_cv_header_stdbool_h" = yes; then
6459 STDBOOL_H='stdbool.h'
6463 if test "$ac_cv_type__Bool" = yes; then
6477 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6478 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6479 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6480 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <sys/types.h>
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_compile") 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest.$ac_objext; then
6519 eval "$as_ac_Header=yes"
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 eval "$as_ac_Header=no"
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 ac_res=`eval echo '${'$as_ac_Header'}'`
6530 { echo "$as_me:$LINENO: result: $ac_res" >&5
6531 echo "${ECHO_T}$ac_res" >&6; }
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6537 ac_header_dirent=$ac_hdr; break
6541 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6542 if test $ac_header_dirent = dirent.h; then
6543 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6545 if test "${ac_cv_search_opendir+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_func_search_save_LIBS=$LIBS
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any GCC internal prototype to avoid an error.
6557 Use char because int might match the return type of a GCC
6558 builtin and then its argument prototype would still apply. */
6571 for ac_lib in '' dir; do
6572 if test -z "$ac_lib"; then
6573 ac_res="none required"
6576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 ac_cv_search_opendir=$ac_res
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6606 if test "${ac_cv_search_opendir+set}" = set; then
6610 if test "${ac_cv_search_opendir+set}" = set; then
6613 ac_cv_search_opendir=no
6616 LIBS=$ac_func_search_save_LIBS
6618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6620 ac_res=$ac_cv_search_opendir
6621 if test "$ac_res" != no; then
6622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6627 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6628 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6629 if test "${ac_cv_search_opendir+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_func_search_save_LIBS=$LIBS
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6640 /* Override any GCC internal prototype to avoid an error.
6641 Use char because int might match the return type of a GCC
6642 builtin and then its argument prototype would still apply. */
6655 for ac_lib in '' x; do
6656 if test -z "$ac_lib"; then
6657 ac_res="none required"
6660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6662 rm -f conftest.$ac_objext conftest$ac_exeext
6663 if { (ac_try="$ac_link"
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_link") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest$ac_exeext &&
6679 $as_test_x conftest$ac_exeext; then
6680 ac_cv_search_opendir=$ac_res
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6690 if test "${ac_cv_search_opendir+set}" = set; then
6694 if test "${ac_cv_search_opendir+set}" = set; then
6697 ac_cv_search_opendir=no
6700 LIBS=$ac_func_search_save_LIBS
6702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6704 ac_res=$ac_cv_search_opendir
6705 if test "$ac_res" != no; then
6706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6712 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6713 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6727 return makedev(0, 0);
6732 rm -f conftest.$ac_objext conftest$ac_exeext
6733 if { (ac_try="$ac_link"
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_link") 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext &&
6749 $as_test_x conftest$ac_exeext; then
6750 ac_cv_header_sys_types_h_makedev=yes
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_cv_header_sys_types_h_makedev=no
6758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6759 conftest$ac_exeext conftest.$ac_ext
6762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6763 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6765 if test $ac_cv_header_sys_types_h_makedev = no; then
6766 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6767 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6768 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6769 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6773 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6775 # Is the header compilable?
6776 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6777 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 $ac_includes_default
6785 #include <sys/mkdev.h>
6787 rm -f conftest.$ac_objext
6788 if { (ac_try="$ac_compile"
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_compile") 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && {
6801 test -z "$ac_c_werror_flag" ||
6802 test ! -s conftest.err
6803 } && test -s conftest.$ac_objext; then
6804 ac_header_compiler=yes
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6809 ac_header_compiler=no
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6814 echo "${ECHO_T}$ac_header_compiler" >&6; }
6816 # Is the header present?
6817 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6818 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6819 cat >conftest.$ac_ext <<_ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/mkdev.h>
6827 if { (ac_try="$ac_cpp conftest.$ac_ext"
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1 >conftest.err
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev/null && {
6840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6843 ac_header_preproc=yes
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_header_preproc=no
6851 rm -f conftest.err conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6853 echo "${ECHO_T}$ac_header_preproc" >&6; }
6855 # So? What about this header?
6856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6858 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6859 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6860 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6861 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6862 ac_header_preproc=yes
6865 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6866 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6867 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6868 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6869 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6870 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6871 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6872 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6874 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6876 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6878 ## ------------------------------ ##
6879 ## Report this to bug-tar@gnu.org ##
6880 ## ------------------------------ ##
6882 ) | sed "s/^/$as_me: WARNING: /" >&2
6885 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6886 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6887 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6892 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6893 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6896 if test $ac_cv_header_sys_mkdev_h = yes; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define MAJOR_IN_MKDEV 1
6906 if test $ac_cv_header_sys_mkdev_h = no; then
6907 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6908 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6909 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6914 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6916 # Is the header compilable?
6917 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6918 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6926 #include <sys/sysmacros.h>
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_compile") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.$ac_objext; then
6945 ac_header_compiler=yes
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_header_compiler=no
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6955 echo "${ECHO_T}$ac_header_compiler" >&6; }
6957 # Is the header present?
6958 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6959 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6960 cat >conftest.$ac_ext <<_ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <sys/sysmacros.h>
6968 if { (ac_try="$ac_cpp conftest.$ac_ext"
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6976 grep -v '^ *+' conftest.er1 >conftest.err
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } >/dev/null && {
6981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6984 ac_header_preproc=yes
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_header_preproc=no
6992 rm -f conftest.err conftest.$ac_ext
6993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6994 echo "${ECHO_T}$ac_header_preproc" >&6; }
6996 # So? What about this header?
6997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6999 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7000 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7001 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7002 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7003 ac_header_preproc=yes
7006 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7007 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7008 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7009 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7010 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7011 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7013 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7015 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7017 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7019 ## ------------------------------ ##
7020 ## Report this to bug-tar@gnu.org ##
7021 ## ------------------------------ ##
7023 ) | sed "s/^/$as_me: WARNING: /" >&2
7026 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7027 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7028 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7034 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7037 if test $ac_cv_header_sys_sysmacros_h = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define MAJOR_IN_SYSMACROS 1
7049 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7050 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7051 if test "${ac_cv_header_stat_broken+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 #include <sys/types.h>
7061 #include <sys/stat.h>
7063 #if defined S_ISBLK && defined S_IFDIR
7064 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7067 #if defined S_ISBLK && defined S_IFCHR
7068 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7071 #if defined S_ISLNK && defined S_IFREG
7072 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7075 #if defined S_ISSOCK && defined S_IFREG
7076 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 ac_cv_header_stat_broken=no
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_cv_header_stat_broken=yes
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7108 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7109 if test $ac_cv_header_stat_broken = yes; then
7111 cat >>confdefs.h <<\_ACEOF
7112 #define STAT_MACROS_BROKEN 1
7117 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7118 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7119 if test "${ac_cv_header_stdc+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1 >conftest.err
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.$ac_objext; then
7158 ac_cv_header_stdc=yes
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7163 ac_cv_header_stdc=no
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 if test $ac_cv_header_stdc = yes; then
7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then
7183 ac_cv_header_stdc=no
7189 if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "free" >/dev/null 2>&1; then
7204 ac_cv_header_stdc=no
7210 if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212 if test "$cross_compiling" = yes; then
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7227 # define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7246 rm -f conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7257 { (case "(($ac_try" in
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_try") 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7268 echo "$as_me: program exited with status $ac_status" >&5
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7273 ac_cv_header_stdc=no
7275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7281 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7282 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7283 if test $ac_cv_header_stdc = yes; then
7285 cat >>confdefs.h <<\_ACEOF
7286 #define STDC_HEADERS 1
7292 { echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7293 echo $ECHO_N "checking for st_fstype string in struct stat... $ECHO_C" >&6; }
7294 if test "${diff_cv_st_fstype_string+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #include <sys/types.h>
7304 #include <sys/stat.h>
7308 struct stat s; s.st_fstype[0] = 'x';
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 diff_cv_st_fstype_string=yes
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 diff_cv_st_fstype_string=no
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 { echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7342 echo "${ECHO_T}$diff_cv_st_fstype_string" >&6; }
7343 if test $diff_cv_st_fstype_string = yes; then
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_ST_FSTYPE_STRING 1
7351 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7352 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7353 if test "${ac_cv_type_signal+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 cat >conftest.$ac_ext <<_ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #include <sys/types.h>
7368 return *(signal (0, 0)) (0) == 1;
7373 rm -f conftest.$ac_objext
7374 if { (ac_try="$ac_compile"
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_compile") 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest.$ac_objext; then
7390 ac_cv_type_signal=int
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_cv_type_signal=void
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7401 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7403 cat >>confdefs.h <<_ACEOF
7404 #define RETSIGTYPE $ac_cv_type_signal
7408 { echo "$as_me:$LINENO: checking for mode_t" >&5
7409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7410 if test "${ac_cv_type_mode_t+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 typedef mode_t ac__type_new_;
7424 if ((ac__type_new_ *) 0)
7426 if (sizeof (ac__type_new_))
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 ac_cv_type_mode_t=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_cv_type_mode_t=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7460 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7461 if test $ac_cv_type_mode_t = yes; then
7465 cat >>confdefs.h <<_ACEOF
7471 { echo "$as_me:$LINENO: checking for pid_t" >&5
7472 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7473 if test "${ac_cv_type_pid_t+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 $ac_includes_default
7483 typedef pid_t ac__type_new_;
7487 if ((ac__type_new_ *) 0)
7489 if (sizeof (ac__type_new_))
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_compile") 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && {
7509 test -z "$ac_c_werror_flag" ||
7510 test ! -s conftest.err
7511 } && test -s conftest.$ac_objext; then
7512 ac_cv_type_pid_t=yes
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7523 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7524 if test $ac_cv_type_pid_t = yes; then
7528 cat >>confdefs.h <<_ACEOF
7534 { echo "$as_me:$LINENO: checking for off_t" >&5
7535 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7536 if test "${ac_cv_type_off_t+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef off_t ac__type_new_;
7550 if ((ac__type_new_ *) 0)
7552 if (sizeof (ac__type_new_))
7558 rm -f conftest.$ac_objext
7559 if { (ac_try="$ac_compile"
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_type_off_t=yes
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7586 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7587 if test $ac_cv_type_off_t = yes; then
7591 cat >>confdefs.h <<_ACEOF
7592 #define off_t long int
7597 { echo "$as_me:$LINENO: checking for size_t" >&5
7598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7599 if test "${ac_cv_type_size_t+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 $ac_includes_default
7609 typedef size_t ac__type_new_;
7613 if ((ac__type_new_ *) 0)
7615 if (sizeof (ac__type_new_))
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 ac_cv_type_size_t=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_cv_type_size_t=no
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7649 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7650 if test $ac_cv_type_size_t = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define size_t unsigned int
7660 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7661 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7662 if test "${ac_cv_type_uid_t+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675 $EGREP "uid_t" >/dev/null 2>&1; then
7676 ac_cv_type_uid_t=yes
7683 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7684 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7685 if test $ac_cv_type_uid_t = no; then
7687 cat >>confdefs.h <<\_ACEOF
7692 cat >>confdefs.h <<\_ACEOF
7698 { echo "$as_me:$LINENO: checking for major_t" >&5
7699 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
7700 if test "${ac_cv_type_major_t+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 $ac_includes_default
7710 typedef major_t ac__type_new_;
7714 if ((ac__type_new_ *) 0)
7716 if (sizeof (ac__type_new_))
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_compile") 2>conftest.er1
7731 grep -v '^ *+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest.$ac_objext; then
7739 ac_cv_type_major_t=yes
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_cv_type_major_t=no
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
7750 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
7751 if test $ac_cv_type_major_t = yes; then
7755 cat >>confdefs.h <<\_ACEOF
7761 { echo "$as_me:$LINENO: checking for minor_t" >&5
7762 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
7763 if test "${ac_cv_type_minor_t+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 typedef minor_t ac__type_new_;
7777 if ((ac__type_new_ *) 0)
7779 if (sizeof (ac__type_new_))
7785 rm -f conftest.$ac_objext
7786 if { (ac_try="$ac_compile"
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
7802 ac_cv_type_minor_t=yes
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_cv_type_minor_t=no
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
7813 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
7814 if test $ac_cv_type_minor_t = yes; then
7818 cat >>confdefs.h <<\_ACEOF
7824 { echo "$as_me:$LINENO: checking for dev_t" >&5
7825 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
7826 if test "${ac_cv_type_dev_t+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 typedef dev_t ac__type_new_;
7840 if ((ac__type_new_ *) 0)
7842 if (sizeof (ac__type_new_))
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_type_dev_t=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
7876 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
7877 if test $ac_cv_type_dev_t = yes; then
7881 cat >>confdefs.h <<_ACEOF
7882 #define dev_t unsigned
7887 { echo "$as_me:$LINENO: checking for ino_t" >&5
7888 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
7889 if test "${ac_cv_type_ino_t+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7899 typedef ino_t ac__type_new_;
7903 if ((ac__type_new_ *) 0)
7905 if (sizeof (ac__type_new_))
7911 rm -f conftest.$ac_objext
7912 if { (ac_try="$ac_compile"
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_compile") 2>conftest.er1
7920 grep -v '^ *+' conftest.er1 >conftest.err
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest.$ac_objext; then
7928 ac_cv_type_ino_t=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7939 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
7940 if test $ac_cv_type_ino_t = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945 #define ino_t unsigned
7952 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7953 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7954 if test "${gt_cv_ssize_t+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <sys/types.h>
7967 int x = sizeof (ssize_t *) + sizeof (ssize_t);
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8001 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8002 if test $gt_cv_ssize_t = no; then
8004 cat >>confdefs.h <<\_ACEOF
8012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8013 # for constant arguments. Useless!
8014 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8015 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8016 if test "${ac_cv_working_alloca_h+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8029 char *p = (char *) alloca (2 * sizeof (int));
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8053 ac_cv_working_alloca_h=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_working_alloca_h=no
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 conftest$ac_exeext conftest.$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8065 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8066 if test $ac_cv_working_alloca_h = yes; then
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_ALLOCA_H 1
8074 { echo "$as_me:$LINENO: checking for alloca" >&5
8075 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8076 if test "${ac_cv_func_alloca_works+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8086 # define alloca __builtin_alloca
8089 # include <malloc.h>
8090 # define alloca _alloca
8092 # ifdef HAVE_ALLOCA_H
8093 # include <alloca.h>
8098 # ifndef alloca /* predefined by HP cc +Olibcalls */
8109 char *p = (char *) alloca (1);
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest$ac_exeext &&
8132 $as_test_x conftest$ac_exeext; then
8133 ac_cv_func_alloca_works=yes
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_cv_func_alloca_works=no
8141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142 conftest$ac_exeext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8147 if test $ac_cv_func_alloca_works = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA 1
8154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8155 # that cause trouble. Some versions do not even contain alloca or
8156 # contain a buggy version. If you still want to use their alloca,
8157 # use ar to extract alloca.o from them instead of compiling alloca.c.
8163 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8165 cat >>confdefs.h <<\_ACEOF
8170 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8172 if test "${ac_cv_os_cray+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #if defined CRAY && ! defined CRAY2
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189 $EGREP "webecray" >/dev/null 2>&1; then
8197 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8198 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8199 if test $ac_cv_os_cray = yes; then
8200 for ac_func in _getb67 GETB67 getb67; do
8201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8215 #define $ac_func innocuous_$ac_func
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char $ac_func (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8223 # include <limits.h>
8225 # include <assert.h>
8230 /* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8237 /* The GNU C library defines this for functions which it implements
8238 to always fail with ENOSYS. Some functions are actually named
8239 something starting with __ and the normal name is an alias. */
8240 #if defined __stub_$ac_func || defined __stub___$ac_func
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest$ac_exeext &&
8269 $as_test_x conftest$ac_exeext; then
8270 eval "$as_ac_var=yes"
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 eval "$as_ac_var=no"
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 conftest$ac_exeext conftest.$ac_ext
8281 ac_res=`eval echo '${'$as_ac_var'}'`
8282 { echo "$as_me:$LINENO: result: $ac_res" >&5
8283 echo "${ECHO_T}$ac_res" >&6; }
8284 if test `eval echo '${'$as_ac_var'}'` = yes; then
8286 cat >>confdefs.h <<_ACEOF
8287 #define CRAY_STACKSEG_END $ac_func
8296 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8297 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8298 if test "${ac_cv_c_stack_direction+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 if test "$cross_compiling" = yes; then
8302 ac_cv_c_stack_direction=0
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8312 find_stack_direction ()
8314 static char *addr = 0;
8319 return find_stack_direction ();
8322 return (&dummy > addr) ? 1 : -1;
8328 return find_stack_direction () < 0;
8331 rm -f conftest$ac_exeext
8332 if { (ac_try="$ac_link"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_link") 2>&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_c_stack_direction=1
8353 echo "$as_me: program exited with status $ac_status" >&5
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8358 ac_cv_c_stack_direction=-1
8360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8365 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8368 cat >>confdefs.h <<_ACEOF
8369 #define STACK_DIRECTION $ac_cv_c_stack_direction
8375 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8376 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8377 if test "${ac_cv_c_restrict+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 # The order here caters to the fact that C++ does not require restrict.
8382 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 typedef int * int_ptr;
8390 int foo (int_ptr $ac_kw ip) {
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_c_restrict=$ac_kw
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 test "$ac_cv_c_restrict" != no && break
8434 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8435 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8438 case $ac_cv_c_restrict in
8440 no) cat >>confdefs.h <<\_ACEOF
8444 *) cat >>confdefs.h <<_ACEOF
8445 #define restrict $ac_cv_c_restrict
8450 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8451 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8452 if test "${ac_cv_have_decl_getenv+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 $ac_includes_default
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 ac_cv_have_decl_getenv=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_have_decl_getenv=no
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8501 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8502 if test $ac_cv_have_decl_getenv = yes; then
8504 cat >>confdefs.h <<_ACEOF
8505 #define HAVE_DECL_GETENV 1
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_DECL_GETENV 0
8518 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
8519 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
8520 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 $ac_includes_default
8533 #ifndef clearerr_unlocked
8534 (void) clearerr_unlocked;
8541 rm -f conftest.$ac_objext
8542 if { (ac_try="$ac_compile"
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest.$ac_objext; then
8558 ac_cv_have_decl_clearerr_unlocked=yes
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 ac_cv_have_decl_clearerr_unlocked=no
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
8569 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
8570 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
8572 cat >>confdefs.h <<_ACEOF
8573 #define HAVE_DECL_CLEARERR_UNLOCKED 1
8578 cat >>confdefs.h <<_ACEOF
8579 #define HAVE_DECL_CLEARERR_UNLOCKED 0
8586 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8587 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8588 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8601 #ifndef feof_unlocked
8602 (void) feof_unlocked;
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_have_decl_feof_unlocked=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_have_decl_feof_unlocked=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8637 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8638 if test $ac_cv_have_decl_feof_unlocked = yes; then
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_DECL_FEOF_UNLOCKED 1
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DECL_FEOF_UNLOCKED 0
8654 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
8655 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
8656 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8669 #ifndef ferror_unlocked
8670 (void) ferror_unlocked;
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.$ac_objext; then
8694 ac_cv_have_decl_ferror_unlocked=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_have_decl_ferror_unlocked=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
8705 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
8706 if test $ac_cv_have_decl_ferror_unlocked = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DECL_FERROR_UNLOCKED 1
8714 cat >>confdefs.h <<_ACEOF
8715 #define HAVE_DECL_FERROR_UNLOCKED 0
8722 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
8723 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
8724 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8737 #ifndef fflush_unlocked
8738 (void) fflush_unlocked;
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_compile") 2>conftest.er1
8754 grep -v '^ *+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest.$ac_objext; then
8762 ac_cv_have_decl_fflush_unlocked=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 ac_cv_have_decl_fflush_unlocked=no
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
8773 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
8774 if test $ac_cv_have_decl_fflush_unlocked = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_DECL_FFLUSH_UNLOCKED 1
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_DECL_FFLUSH_UNLOCKED 0
8790 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8791 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8792 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8805 #ifndef fgets_unlocked
8806 (void) fgets_unlocked;
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_compile") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest.$ac_objext; then
8830 ac_cv_have_decl_fgets_unlocked=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_cv_have_decl_fgets_unlocked=no
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8841 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8842 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8844 cat >>confdefs.h <<_ACEOF
8845 #define HAVE_DECL_FGETS_UNLOCKED 1
8850 cat >>confdefs.h <<_ACEOF
8851 #define HAVE_DECL_FGETS_UNLOCKED 0
8858 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
8859 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
8860 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8873 #ifndef fputc_unlocked
8874 (void) fputc_unlocked;
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.$ac_objext; then
8898 ac_cv_have_decl_fputc_unlocked=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_cv_have_decl_fputc_unlocked=no
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
8909 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
8910 if test $ac_cv_have_decl_fputc_unlocked = yes; then
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_DECL_FPUTC_UNLOCKED 1
8918 cat >>confdefs.h <<_ACEOF
8919 #define HAVE_DECL_FPUTC_UNLOCKED 0
8926 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
8927 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
8928 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8941 #ifndef fputs_unlocked
8942 (void) fputs_unlocked;
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_compile") 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } && {
8963 test -z "$ac_c_werror_flag" ||
8964 test ! -s conftest.err
8965 } && test -s conftest.$ac_objext; then
8966 ac_cv_have_decl_fputs_unlocked=yes
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_cv_have_decl_fputs_unlocked=no
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
8977 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
8978 if test $ac_cv_have_decl_fputs_unlocked = yes; then
8980 cat >>confdefs.h <<_ACEOF
8981 #define HAVE_DECL_FPUTS_UNLOCKED 1
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_DECL_FPUTS_UNLOCKED 0
8994 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
8995 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
8996 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9009 #ifndef fread_unlocked
9010 (void) fread_unlocked;
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest.$ac_objext; then
9034 ac_cv_have_decl_fread_unlocked=yes
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_cv_have_decl_fread_unlocked=no
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9045 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
9046 if test $ac_cv_have_decl_fread_unlocked = yes; then
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_DECL_FREAD_UNLOCKED 1
9054 cat >>confdefs.h <<_ACEOF
9055 #define HAVE_DECL_FREAD_UNLOCKED 0
9062 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9063 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
9064 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9077 #ifndef fwrite_unlocked
9078 (void) fwrite_unlocked;
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_compile") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest.$ac_objext; then
9102 ac_cv_have_decl_fwrite_unlocked=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_have_decl_fwrite_unlocked=no
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9113 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
9114 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_DECL_FWRITE_UNLOCKED 1
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_DECL_FWRITE_UNLOCKED 0
9130 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9131 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9132 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 $ac_includes_default
9145 #ifndef getc_unlocked
9146 (void) getc_unlocked;
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest.$ac_objext; then
9170 ac_cv_have_decl_getc_unlocked=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_cv_have_decl_getc_unlocked=no
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9181 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9182 if test $ac_cv_have_decl_getc_unlocked = yes; then
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_DECL_GETC_UNLOCKED 1
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_DECL_GETC_UNLOCKED 0
9198 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9199 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
9200 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 $ac_includes_default
9213 #ifndef getchar_unlocked
9214 (void) getchar_unlocked;
9221 rm -f conftest.$ac_objext
9222 if { (ac_try="$ac_compile"
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_compile") 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest.$ac_objext; then
9238 ac_cv_have_decl_getchar_unlocked=yes
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_cv_have_decl_getchar_unlocked=no
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9249 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
9250 if test $ac_cv_have_decl_getchar_unlocked = yes; then
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9266 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9267 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
9268 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9281 #ifndef putc_unlocked
9282 (void) putc_unlocked;
9289 rm -f conftest.$ac_objext
9290 if { (ac_try="$ac_compile"
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_compile") 2>conftest.er1
9298 grep -v '^ *+' conftest.er1 >conftest.err
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && {
9303 test -z "$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9305 } && test -s conftest.$ac_objext; then
9306 ac_cv_have_decl_putc_unlocked=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_cv_have_decl_putc_unlocked=no
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9317 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
9318 if test $ac_cv_have_decl_putc_unlocked = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define HAVE_DECL_PUTC_UNLOCKED 1
9326 cat >>confdefs.h <<_ACEOF
9327 #define HAVE_DECL_PUTC_UNLOCKED 0
9334 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9335 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
9336 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9349 #ifndef putchar_unlocked
9350 (void) putchar_unlocked;
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9366 grep -v '^ *+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.$ac_objext; then
9374 ac_cv_have_decl_putchar_unlocked=yes
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_cv_have_decl_putchar_unlocked=no
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9385 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
9386 if test $ac_cv_have_decl_putchar_unlocked = yes; then
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9406 for ac_func in $ac_func_list
9408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9422 #define $ac_func innocuous_$ac_func
9424 /* System header to define __stub macros and hopefully few prototypes,
9425 which can conflict with char $ac_func (); below.
9426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9427 <limits.h> exists even on freestanding compilers. */
9430 # include <limits.h>
9432 # include <assert.h>
9437 /* Override any GCC internal prototype to avoid an error.
9438 Use char because int might match the return type of a GCC
9439 builtin and then its argument prototype would still apply. */
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined __stub_$ac_func || defined __stub___$ac_func
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_link") 2>conftest.er1
9468 grep -v '^ *+' conftest.er1 >conftest.err
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && {
9473 test -z "$ac_c_werror_flag" ||
9474 test ! -s conftest.err
9475 } && test -s conftest$ac_exeext &&
9476 $as_test_x conftest$ac_exeext; then
9477 eval "$as_ac_var=yes"
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 eval "$as_ac_var=no"
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
9488 ac_res=`eval echo '${'$as_ac_var'}'`
9489 { echo "$as_me:$LINENO: result: $ac_res" >&5
9490 echo "${ECHO_T}$ac_res" >&6; }
9491 if test `eval echo '${'$as_ac_var'}'` = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9508 XGETTEXT_EXTRA_OPTIONS=
9510 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9511 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9512 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 if test "$cross_compiling" = yes; then
9516 gl_cv_struct_dirent_d_ino=no
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <sys/types.h>
9525 #include <sys/stat.h>
9531 DIR *dp = opendir (".");
9538 && stat (e->d_name, &st) == 0
9539 && e->d_ino == st.st_ino);
9544 rm -f conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9555 { (case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_try") 2>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 gl_cv_struct_dirent_d_ino=yes
9566 echo "$as_me: program exited with status $ac_status" >&5
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9571 gl_cv_struct_dirent_d_ino=no
9573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9578 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
9579 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
9580 if test $gl_cv_struct_dirent_d_ino = yes; then
9582 cat >>confdefs.h <<\_ACEOF
9583 #define D_INO_IN_DIRENT 1
9590 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9591 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
9592 if test "${ac_cv_win_or_dos+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9606 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9607 neither MSDOS nor Windows
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9630 ac_cv_win_or_dos=yes
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9642 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
9644 if test x"$ac_cv_win_or_dos" = xyes; then
9645 ac_fs_accepts_drive_letter_prefix=1
9646 ac_fs_backslash_is_file_name_separator=1
9647 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
9648 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
9649 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9663 #if defined __CYGWIN__
9664 drive letters are always absolute
9670 rm -f conftest.$ac_objext
9671 if { (ac_try="$ac_compile"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ac_cv_drive_letter_can_be_relative=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_drive_letter_can_be_relative=no
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
9699 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
9700 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
9701 ac_fs_drive_letter_can_be_relative=1
9703 ac_fs_drive_letter_can_be_relative=0
9706 ac_fs_accepts_drive_letter_prefix=0
9707 ac_fs_backslash_is_file_name_separator=0
9708 ac_fs_drive_letter_can_be_relative=0
9712 cat >>confdefs.h <<_ACEOF
9713 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9721 cat >>confdefs.h <<_ACEOF
9722 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9727 cat >>confdefs.h <<_ACEOF
9728 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
9732 { echo "$as_me:$LINENO: checking for long file names" >&5
9733 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9734 if test "${ac_cv_sys_long_file_names+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_cv_sys_long_file_names=yes
9738 # Test for long file names in all the places we know might matter:
9739 # . the current directory, where building will happen
9740 # $prefix/lib where we will be installing things
9741 # $exec_prefix/lib likewise
9742 # $TMPDIR if set, where it might want to write temporary files
9743 # /tmp where it might want to write temporary files
9746 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9747 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9748 # in the usual case where exec_prefix is '${prefix}'.
9750 . | /* | ?:[\\/]*) ;; #(
9753 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9754 ac_xdir=$ac_dir/cf$$
9755 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9756 ac_tf1=$ac_xdir/conftest9012345
9757 ac_tf2=$ac_xdir/conftest9012346
9758 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9759 ac_cv_sys_long_file_names=no
9760 rm -f -r "$ac_xdir" 2>/dev/null
9761 test $ac_cv_sys_long_file_names = no && break
9764 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9765 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9766 if test $ac_cv_sys_long_file_names = yes; then
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_LONG_FILE_NAMES 1
9776 { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
9777 echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; }
9778 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9791 #ifndef canonicalize_file_name
9792 (void) canonicalize_file_name;
9799 rm -f conftest.$ac_objext
9800 if { (ac_try="$ac_compile"
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_cv_have_decl_canonicalize_file_name=yes
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_cv_have_decl_canonicalize_file_name=no
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
9827 echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; }
9828 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
9857 GNULIB_GETLOGIN_R=0;
9858 GNULIB_GETPAGESIZE=0;
9868 HAVE_DECL_ENVIRON=1;
9869 HAVE_DECL_GETLOGIN_R=1;
9875 REPLACE_GETPAGESIZE=0;
9880 for ac_header in unistd.h
9882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_res=`eval echo '${'$as_ac_Header'}'`
9890 { echo "$as_me:$LINENO: result: $ac_res" >&5
9891 echo "${ECHO_T}$ac_res" >&6; }
9893 # Is the header compilable?
9894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 #include <$ac_header>
9905 rm -f conftest.$ac_objext
9906 if { (ac_try="$ac_compile"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_compile") 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && {
9919 test -z "$ac_c_werror_flag" ||
9920 test ! -s conftest.err
9921 } && test -s conftest.$ac_objext; then
9922 ac_header_compiler=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_header_compiler=no
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932 echo "${ECHO_T}$ac_header_compiler" >&6; }
9934 # Is the header present?
9935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 #include <$ac_header>
9945 if { (ac_try="$ac_cpp conftest.$ac_ext"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } >/dev/null && {
9958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9961 ac_header_preproc=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_header_preproc=no
9969 rm -f conftest.err conftest.$ac_ext
9970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9971 echo "${ECHO_T}$ac_header_preproc" >&6; }
9973 # So? What about this header?
9974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9980 ac_header_preproc=yes
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9996 ## ------------------------------ ##
9997 ## Report this to bug-tar@gnu.org ##
9998 ## ------------------------------ ##
10000 ) | sed "s/^/$as_me: WARNING: /" >&2
10003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 eval "$as_ac_Header=\$ac_header_preproc"
10010 ac_res=`eval echo '${'$as_ac_Header'}'`
10011 { echo "$as_me:$LINENO: result: $ac_res" >&5
10012 echo "${ECHO_T}$ac_res" >&6; }
10015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10024 { echo "$as_me:$LINENO: checking for working chown" >&5
10025 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10026 if test "${ac_cv_func_chown_works+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_func_chown_works=no
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10044 char *f = "conftest.chown";
10045 struct stat before, after;
10047 if (creat (f, 0600) < 0)
10049 if (stat (f, &before) < 0)
10051 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10053 if (stat (f, &after) < 0)
10055 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10061 rm -f conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_link") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_func_chown_works=yes
10083 echo "$as_me: program exited with status $ac_status" >&5
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ( exit $ac_status )
10088 ac_cv_func_chown_works=no
10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10094 rm -f conftest.chown
10097 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10098 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10099 if test $ac_cv_func_chown_works = yes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_CHOWN 1
10108 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
10109 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
10110 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 if test "$cross_compiling" = yes; then
10115 gl_cv_func_chown_follows_symlink=yes
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 #include <unistd.h>
10126 #include <stdlib.h>
10132 char const *dangling_symlink = "conftest.dangle";
10134 unlink (dangling_symlink);
10135 if (symlink ("conftest.no-such", dangling_symlink))
10138 /* Exit successfully on a conforming system,
10139 i.e., where chown must fail with ENOENT. */
10140 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
10141 && errno == ENOENT));
10145 rm -f conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 gl_cv_func_chown_follows_symlink=yes
10167 echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ( exit $ac_status )
10172 gl_cv_func_chown_follows_symlink=no
10174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10181 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
10182 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
10184 if test $gl_cv_func_chown_follows_symlink = no; then
10186 cat >>confdefs.h <<\_ACEOF
10187 #define CHOWN_MODIFIES_SYMLINK 1
10192 # Make sure we can run config.sub.
10193 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10194 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10195 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10196 { (exit 1); exit 1; }; }
10198 { echo "$as_me:$LINENO: checking build system type" >&5
10199 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10200 if test "${ac_cv_build+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_build_alias=$build_alias
10204 test "x$ac_build_alias" = x &&
10205 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10206 test "x$ac_build_alias" = x &&
10207 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10209 { (exit 1); exit 1; }; }
10210 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10211 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10212 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10213 { (exit 1); exit 1; }; }
10216 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10217 echo "${ECHO_T}$ac_cv_build" >&6; }
10218 case $ac_cv_build in
10220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10221 echo "$as_me: error: invalid value of canonical build" >&2;}
10222 { (exit 1); exit 1; }; };;
10225 ac_save_IFS=$IFS; IFS='-'
10231 # Remember, the first character of IFS is used to create $*,
10232 # except with old shells:
10235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10238 { echo "$as_me:$LINENO: checking host system type" >&5
10239 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10240 if test "${ac_cv_host+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 if test "x$host_alias" = x; then
10244 ac_cv_host=$ac_cv_build
10246 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10247 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10249 { (exit 1); exit 1; }; }
10253 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10254 echo "${ECHO_T}$ac_cv_host" >&6; }
10255 case $ac_cv_host in
10257 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10258 echo "$as_me: error: invalid value of canonical host" >&2;}
10259 { (exit 1); exit 1; }; };;
10262 ac_save_IFS=$IFS; IFS='-'
10268 # Remember, the first character of IFS is used to create $*,
10269 # except with old shells:
10272 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10277 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10278 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
10279 if test "${gl_cv_double_slash_root+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test x"$cross_compiling" = xyes ; then
10283 # When cross-compiling, there is no way to tell whether // is special
10284 # short of a list of hosts. However, the only known hosts to date
10285 # that have a distinct // are Apollo DomainOS (too old to port to),
10286 # Cygwin, and z/OS. If anyone knows of another system for which // has
10287 # special semantics and is distinct from /, please report it to
10288 # <bug-gnulib@gnu.org>.
10290 *-cygwin | i370-ibm-openedition)
10291 gl_cv_double_slash_root=yes ;;
10293 # Be optimistic and assume that / and // are the same when we
10295 gl_cv_double_slash_root='unknown, assuming no' ;;
10298 set x `ls -di / // 2>/dev/null`
10299 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10300 gl_cv_double_slash_root=no
10302 gl_cv_double_slash_root=yes
10306 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10307 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
10308 if test "$gl_cv_double_slash_root" = yes; then
10310 cat >>confdefs.h <<\_ACEOF
10311 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10318 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
10319 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
10320 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_cv_have_decl_strerror_r=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_have_decl_strerror_r=no
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
10369 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
10370 if test $ac_cv_have_decl_strerror_r = yes; then
10372 cat >>confdefs.h <<_ACEOF
10373 #define HAVE_DECL_STRERROR_R 1
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_DECL_STRERROR_R 0
10387 for ac_func in strerror_r
10389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10403 #define $ac_func innocuous_$ac_func
10405 /* System header to define __stub macros and hopefully few prototypes,
10406 which can conflict with char $ac_func (); below.
10407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 <limits.h> exists even on freestanding compilers. */
10411 # include <limits.h>
10413 # include <assert.h>
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined __stub_$ac_func || defined __stub___$ac_func
10435 return $ac_func ();
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_link") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext &&
10457 $as_test_x conftest$ac_exeext; then
10458 eval "$as_ac_var=yes"
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 eval "$as_ac_var=no"
10466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10467 conftest$ac_exeext conftest.$ac_ext
10469 ac_res=`eval echo '${'$as_ac_var'}'`
10470 { echo "$as_me:$LINENO: result: $ac_res" >&5
10471 echo "${ECHO_T}$ac_res" >&6; }
10472 if test `eval echo '${'$as_ac_var'}'` = yes; then
10473 cat >>confdefs.h <<_ACEOF
10474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10480 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10481 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
10482 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 ac_cv_func_strerror_r_char_p=no
10487 if test $ac_cv_have_decl_strerror_r = yes; then
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10500 char x = *strerror_r (0, buf, sizeof buf);
10501 char *p = strerror_r (0, buf, sizeof buf);
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest.$ac_objext; then
10525 ac_cv_func_strerror_r_char_p=yes
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 # strerror_r is not declared. Choose between
10536 # systems that have relatively inaccessible declarations for the
10537 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
10538 # former has a strerror_r that returns char*, while the latter
10539 # has a strerror_r that returns `int'.
10540 # This test should segfault on the DEC system.
10541 if test "$cross_compiling" = yes; then
10544 cat >conftest.$ac_ext <<_ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 $ac_includes_default
10551 extern char *strerror_r ();
10556 char x = *strerror_r (0, buf, sizeof buf);
10557 return ! isalpha (x);
10562 rm -f conftest$ac_exeext
10563 if { (ac_try="$ac_link"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_link") 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_func_strerror_r_char_p=yes
10584 echo "$as_me: program exited with status $ac_status" >&5
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10596 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10597 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
10598 if test $ac_cv_func_strerror_r_char_p = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define STRERROR_R_CHAR_P 1
10610 { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
10611 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
10612 if test "${gl_cv_have_include_next+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 rm -rf conftestd1 conftestd2
10616 mkdir conftestd1 conftestd2
10617 cat <<EOF > conftestd1/conftest.h
10618 #define DEFINED_IN_CONFTESTD1
10619 #include_next <conftest.h>
10620 #ifdef DEFINED_IN_CONFTESTD2
10623 #error "include_next doesn't work"
10626 cat <<EOF > conftestd2/conftest.h
10627 #ifndef DEFINED_IN_CONFTESTD1
10628 #error "include_next test doesn't work"
10630 #define DEFINED_IN_CONFTESTD2
10632 save_CPPFLAGS="$CPPFLAGS"
10633 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #include <conftest.h>
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
10654 gl_cv_have_include_next=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 gl_cv_have_include_next=no
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 CPPFLAGS="$save_CPPFLAGS"
10664 rm -rf conftestd1 conftestd2
10667 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
10668 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
10669 if test $gl_cv_have_include_next = yes; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define HAVE_INCLUDE_NEXT 1
10677 INCLUDE_NEXT=include_next
10679 INCLUDE_NEXT=include
10691 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
10692 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
10693 if test "${ac_cv_type_mbstate_t+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 $ac_includes_default
10703 # include <wchar.h>
10707 mbstate_t x; return sizeof x;
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_compile") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest.$ac_objext; then
10729 ac_cv_type_mbstate_t=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_type_mbstate_t=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
10741 if test $ac_cv_type_mbstate_t = yes; then
10743 cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_MBSTATE_T 1
10749 cat >>confdefs.h <<\_ACEOF
10750 #define mbstate_t int
10777 GNULIB_FPRINTF_POSIX=0;
10778 GNULIB_PRINTF_POSIX=0;
10780 GNULIB_SPRINTF_POSIX=0;
10781 GNULIB_VFPRINTF_POSIX=0;
10782 GNULIB_VPRINTF_POSIX=0;
10783 GNULIB_VSNPRINTF=0;
10784 GNULIB_VSPRINTF_POSIX=0;
10785 GNULIB_VASPRINTF=0;
10796 REPLACE_VFPRINTF=0;
10799 REPLACE_SNPRINTF=0;
10800 HAVE_DECL_SNPRINTF=1;
10801 REPLACE_VSNPRINTF=0;
10802 HAVE_DECL_VSNPRINTF=1;
10804 REPLACE_VSPRINTF=0;
10806 REPLACE_VASPRINTF=0;
10816 HAVE_DECL_GETDELIM=1;
10817 HAVE_DECL_GETLINE=1;
10821 { echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
10822 echo $ECHO_N "checking whether stdin defaults to large file offsets... $ECHO_C" >&6; }
10823 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10836 #if defined __SL64 && defined __SCLE /* cygwin */
10837 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
10838 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
10839 it is easier to do a version check than building a runtime test. */
10840 # include <cygwin/version.h>
10841 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } && {
10863 test -z "$ac_c_werror_flag" ||
10864 test ! -s conftest.err
10865 } && test -s conftest$ac_exeext &&
10866 $as_test_x conftest$ac_exeext; then
10867 gl_cv_var_stdin_large_offset=yes
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 gl_cv_var_stdin_large_offset=no
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876 conftest$ac_exeext conftest.$ac_ext
10878 { echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
10879 echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
10884 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10885 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
10886 if test "${gl_cv_func_getcwd_null+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 if test "$cross_compiling" = yes; then
10890 gl_cv_func_getcwd_null=no
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10899 # include <stdlib.h>
10900 # include <unistd.h>
10907 if (chdir ("/") != 0)
10911 char *f = getcwd (NULL, 0);
10912 exit (! (f && f[0] == '/' && !f[1]));
10916 rm -f conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_link") 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10927 { (case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_try") 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10936 gl_cv_func_getcwd_null=yes
10938 echo "$as_me: program exited with status $ac_status" >&5
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ( exit $ac_status )
10943 gl_cv_func_getcwd_null=no
10945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10950 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
10951 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
10953 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
10954 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
10955 if test "${ac_cv_have_decl_getcwd+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_compile") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest.$ac_objext; then
10993 ac_cv_have_decl_getcwd=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_cv_have_decl_getcwd=no
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
11004 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
11005 if test $ac_cv_have_decl_getcwd = yes; then
11007 cat >>confdefs.h <<_ACEOF
11008 #define HAVE_DECL_GETCWD 1
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_DECL_GETCWD 0
11025 # getdate.y works with bison only.
11026 : ${YACC='bison -y'}
11029 { echo "$as_me:$LINENO: checking for compound literals" >&5
11030 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
11031 if test "${gl_cv_compound_literals+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
11044 struct s t = (struct s) { 3, 4 };
11045 if (t.i != 0) return 0;
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest.$ac_objext; then
11067 gl_cv_compound_literals=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 gl_cv_compound_literals=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
11078 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
11079 if test $gl_cv_compound_literals = yes; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_COMPOUND_LITERALS 1
11087 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11089 if test "${ac_cv_struct_tm+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 #include <sys/types.h>
11105 int *p = &tm.tm_sec;
11111 rm -f conftest.$ac_objext
11112 if { (ac_try="$ac_compile"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_compile") 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && {
11125 test -z "$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11127 } && test -s conftest.$ac_objext; then
11128 ac_cv_struct_tm=time.h
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ac_cv_struct_tm=sys/time.h
11136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11139 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11140 if test $ac_cv_struct_tm = sys/time.h; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define TM_IN_SYS_TIME 1
11149 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
11150 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
11151 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11165 static struct tm ac_aggr;
11166 if (ac_aggr.tm_gmtoff)
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11189 ac_cv_member_struct_tm_tm_gmtoff=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11205 static struct tm ac_aggr;
11206 if (sizeof ac_aggr.tm_gmtoff)
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_compile") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest.$ac_objext; then
11229 ac_cv_member_struct_tm_tm_gmtoff=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_cv_member_struct_tm_tm_gmtoff=no
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
11243 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
11244 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_TM_GMTOFF 1
11253 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
11254 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
11255 if test "${ac_cv_have_decl_getdelim+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } && {
11290 test -z "$ac_c_werror_flag" ||
11291 test ! -s conftest.err
11292 } && test -s conftest.$ac_objext; then
11293 ac_cv_have_decl_getdelim=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_cv_have_decl_getdelim=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
11304 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
11305 if test $ac_cv_have_decl_getdelim = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_GETDELIM 1
11313 cat >>confdefs.h <<_ACEOF
11314 #define HAVE_DECL_GETDELIM 0
11321 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
11322 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
11323 if test "${ac_cv_have_decl_getline+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11344 rm -f conftest.$ac_objext
11345 if { (ac_try="$ac_compile"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_compile") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest.$ac_objext; then
11361 ac_cv_have_decl_getline=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_cv_have_decl_getline=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
11372 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
11373 if test $ac_cv_have_decl_getline = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_DECL_GETLINE 1
11381 cat >>confdefs.h <<_ACEOF
11382 #define HAVE_DECL_GETLINE 0
11390 if test -z "$GETOPT_H"; then
11392 for ac_header in getopt.h
11394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 ac_res=`eval echo '${'$as_ac_Header'}'`
11402 { echo "$as_me:$LINENO: result: $ac_res" >&5
11403 echo "${ECHO_T}$ac_res" >&6; }
11405 # Is the header compilable?
11406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 $ac_includes_default
11415 #include <$ac_header>
11417 rm -f conftest.$ac_objext
11418 if { (ac_try="$ac_compile"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11434 ac_header_compiler=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_compiler=no
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 #include <$ac_header>
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null && {
11470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11473 ac_header_preproc=yes
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_header_preproc=no
11481 rm -f conftest.err conftest.$ac_ext
11482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11483 echo "${ECHO_T}$ac_header_preproc" >&6; }
11485 # So? What about this header?
11486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11492 ac_header_preproc=yes
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11508 ## ------------------------------ ##
11509 ## Report this to bug-tar@gnu.org ##
11510 ## ------------------------------ ##
11512 ) | sed "s/^/$as_me: WARNING: /" >&2
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 eval "$as_ac_Header=\$ac_header_preproc"
11522 ac_res=`eval echo '${'$as_ac_Header'}'`
11523 { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11528 cat >>confdefs.h <<_ACEOF
11529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11540 if test -z "$GETOPT_H"; then
11542 for ac_func in getopt_long_only
11544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11558 #define $ac_func innocuous_$ac_func
11560 /* System header to define __stub macros and hopefully few prototypes,
11561 which can conflict with char $ac_func (); below.
11562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563 <limits.h> exists even on freestanding compilers. */
11566 # include <limits.h>
11568 # include <assert.h>
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11580 /* The GNU C library defines this for functions which it implements
11581 to always fail with ENOSYS. Some functions are actually named
11582 something starting with __ and the normal name is an alias. */
11583 #if defined __stub_$ac_func || defined __stub___$ac_func
11590 return $ac_func ();
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_link") 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_c_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest$ac_exeext &&
11612 $as_test_x conftest$ac_exeext; then
11613 eval "$as_ac_var=yes"
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 eval "$as_ac_var=no"
11621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622 conftest$ac_exeext conftest.$ac_ext
11624 ac_res=`eval echo '${'$as_ac_var'}'`
11625 { echo "$as_me:$LINENO: result: $ac_res" >&5
11626 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_var'}'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11639 if test -z "$GETOPT_H"; then
11640 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11641 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
11642 if test "${ac_cv_have_decl_optreset+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <getopt.h>
11664 rm -f conftest.$ac_objext
11665 if { (ac_try="$ac_compile"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_compile") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && {
11678 test -z "$ac_c_werror_flag" ||
11679 test ! -s conftest.err
11680 } && test -s conftest.$ac_objext; then
11681 ac_cv_have_decl_optreset=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_have_decl_optreset=no
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
11692 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
11693 if test $ac_cv_have_decl_optreset = yes; then
11699 if test -z "$GETOPT_H"; then
11700 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11701 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
11702 if test "${gl_cv_func_gnu_getopt+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 if test "$cross_compiling" = yes; then
11706 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11707 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
11708 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 #include <getopt.h>
11722 #ifndef getopt_clip
11723 (void) getopt_clip;
11730 rm -f conftest.$ac_objext
11731 if { (ac_try="$ac_compile"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_compile") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest.$ac_objext; then
11747 ac_cv_have_decl_getopt_clip=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_have_decl_getopt_clip=no
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
11758 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
11759 if test $ac_cv_have_decl_getopt_clip = yes; then
11760 gl_cv_func_gnu_getopt=no
11762 gl_cv_func_gnu_getopt=yes
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <getopt.h>
11778 myargv[0] = "conftest";
11781 return getopt (2, myargv, "+a") != '?';
11787 rm -f conftest$ac_exeext
11788 if { (ac_try="$ac_link"
11789 case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_link") 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 gl_cv_func_gnu_getopt=yes
11809 echo "$as_me: program exited with status $ac_status" >&5
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 ( exit $ac_status )
11814 gl_cv_func_gnu_getopt=no
11816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11821 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11822 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
11823 if test "$gl_cv_func_gnu_getopt" = "no"; then
11844 if test $gl_cv_have_include_next = yes; then
11845 gl_cv_next_sys_time_h='<'sys/time.h'>'
11847 { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
11848 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
11849 if test "${gl_cv_next_sys_time_h+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 if test $ac_cv_header_sys_time_h = yes; then
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <sys/time.h>
11863 gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11864 sed -n '\#/sys/time.h#{
11865 s#.*"\(.*/sys/time.h\)".*#\1#
11871 gl_cv_next_sys_time_h='<'sys/time.h'>'
11875 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
11876 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
11878 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
11883 if test $ac_cv_header_sys_time_h = yes; then
11890 { echo "$as_me:$LINENO: checking for struct timeval" >&5
11891 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
11892 if test "${gl_cv_sys_struct_timeval+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 #if HAVE_SYS_TIME_H
11902 #include <sys/time.h>
11909 static struct timeval x; x.tv_sec = x.tv_usec;
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 gl_cv_sys_struct_timeval=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 gl_cv_sys_struct_timeval=no
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
11942 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
11943 if test $gl_cv_sys_struct_timeval = yes; then
11944 HAVE_STRUCT_TIMEVAL=1
11946 HAVE_STRUCT_TIMEVAL=0
11950 REPLACE_GETTIMEOFDAY=0
11952 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
11953 SYS_TIME_H=sys/time.h
11963 { echo "$as_me:$LINENO: checking for long long int" >&5
11964 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
11965 if test "${ac_cv_type_long_long_int+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 /* For now, do not test the preprocessor; as of 2007 there are too many
11976 implementations with broken preprocessors. Perhaps this can
11977 be revisited in 2012. In the meantime, code should not expect
11978 #if to work with literals wider than 32 bits. */
11979 /* Test literals. */
11980 long long int ll = 9223372036854775807ll;
11981 long long int nll = -9223372036854775807LL;
11982 unsigned long long int ull = 18446744073709551615ULL;
11983 /* Test constant expressions. */
11984 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11986 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11992 /* Test availability of runtime routines for shift and division. */
11993 long long int llmax = 9223372036854775807ll;
11994 unsigned long long int ullmax = 18446744073709551615ull;
11995 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11996 | (llmax / ll) | (llmax % ll)
11997 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11998 | (ullmax / ull) | (ullmax % ull));
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_link") 2>conftest.er1
12013 grep -v '^ *+' conftest.er1 >conftest.err
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && {
12018 test -z "$ac_c_werror_flag" ||
12019 test ! -s conftest.err
12020 } && test -s conftest$ac_exeext &&
12021 $as_test_x conftest$ac_exeext; then
12022 if test "$cross_compiling" = yes; then
12023 ac_cv_type_long_long_int=yes
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include <limits.h>
12034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12035 # define LLONG_MAX (HALF - 1 + HALF)
12040 long long int n = 1;
12044 long long int m = n << i;
12047 if (LLONG_MAX / 2 < m)
12055 rm -f conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066 { (case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_try") 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_type_long_long_int=yes
12077 echo "$as_me: program exited with status $ac_status" >&5
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ( exit $ac_status )
12082 ac_cv_type_long_long_int=no
12084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_cv_type_long_long_int=no
12095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096 conftest$ac_exeext conftest.$ac_ext
12098 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12099 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
12100 if test $ac_cv_type_long_long_int = yes; then
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_LONG_LONG_INT 1
12109 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
12110 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
12111 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 /* For now, do not test the preprocessor; as of 2007 there are too many
12122 implementations with broken preprocessors. Perhaps this can
12123 be revisited in 2012. In the meantime, code should not expect
12124 #if to work with literals wider than 32 bits. */
12125 /* Test literals. */
12126 long long int ll = 9223372036854775807ll;
12127 long long int nll = -9223372036854775807LL;
12128 unsigned long long int ull = 18446744073709551615ULL;
12129 /* Test constant expressions. */
12130 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12132 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12138 /* Test availability of runtime routines for shift and division. */
12139 long long int llmax = 9223372036854775807ll;
12140 unsigned long long int ullmax = 18446744073709551615ull;
12141 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12142 | (llmax / ll) | (llmax % ll)
12143 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12144 | (ullmax / ull) | (ullmax % ull));
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest$ac_exeext &&
12167 $as_test_x conftest$ac_exeext; then
12168 ac_cv_type_unsigned_long_long_int=yes
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_cv_type_unsigned_long_long_int=no
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177 conftest$ac_exeext conftest.$ac_ext
12179 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
12180 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
12181 if test $ac_cv_type_unsigned_long_long_int = yes; then
12183 cat >>confdefs.h <<\_ACEOF
12184 #define HAVE_UNSIGNED_LONG_LONG_INT 1
12196 if test $ac_cv_type_long_long_int = yes; then
12197 HAVE_LONG_LONG_INT=1
12199 HAVE_LONG_LONG_INT=0
12203 if test $ac_cv_type_unsigned_long_long_int = yes; then
12204 HAVE_UNSIGNED_LONG_LONG_INT=1
12206 HAVE_UNSIGNED_LONG_LONG_INT=0
12210 if test $ac_cv_header_inttypes_h = yes; then
12217 if test $ac_cv_header_sys_types_h = yes; then
12234 if test $gl_cv_have_include_next = yes; then
12235 gl_cv_next_stdint_h='<'stdint.h'>'
12237 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
12238 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
12239 if test "${gl_cv_next_stdint_h+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 if test $ac_cv_header_stdint_h = yes; then
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <stdint.h>
12253 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12254 sed -n '\#/stdint.h#{
12255 s#.*"\(.*/stdint.h\)".*#\1#
12261 gl_cv_next_stdint_h='<'stdint.h'>'
12265 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
12266 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
12268 NEXT_STDINT_H=$gl_cv_next_stdint_h
12272 if test $ac_cv_header_stdint_h = yes; then
12279 if test $ac_cv_header_stdint_h = yes; then
12280 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
12281 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
12282 if test "${gl_cv_header_working_stdint_h+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 gl_cv_header_working_stdint_h=no
12286 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
12295 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
12296 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12297 #include <stdint.h>
12298 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12299 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12300 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12304 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12305 included before <wchar.h>. */
12306 #include <stddef.h>
12307 #include <signal.h>
12309 # include <stdio.h>
12311 # include <wchar.h>
12316 int8_t a1 = INT8_MAX;
12317 int8_t a1min = INT8_MIN;
12320 int16_t a2 = INT16_MAX;
12321 int16_t a2min = INT16_MIN;
12324 int32_t a3 = INT32_MAX;
12325 int32_t a3min = INT32_MIN;
12328 int64_t a4 = INT64_MAX;
12329 int64_t a4min = INT64_MIN;
12332 uint8_t b1 = UINT8_MAX;
12334 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12337 uint16_t b2 = UINT16_MAX;
12340 uint32_t b3 = UINT32_MAX;
12343 uint64_t b4 = UINT64_MAX;
12345 int_least8_t c1 = INT8_C (0x7f);
12346 int_least8_t c1max = INT_LEAST8_MAX;
12347 int_least8_t c1min = INT_LEAST8_MIN;
12348 int_least16_t c2 = INT16_C (0x7fff);
12349 int_least16_t c2max = INT_LEAST16_MAX;
12350 int_least16_t c2min = INT_LEAST16_MIN;
12351 int_least32_t c3 = INT32_C (0x7fffffff);
12352 int_least32_t c3max = INT_LEAST32_MAX;
12353 int_least32_t c3min = INT_LEAST32_MIN;
12354 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12355 int_least64_t c4max = INT_LEAST64_MAX;
12356 int_least64_t c4min = INT_LEAST64_MIN;
12357 uint_least8_t d1 = UINT8_C (0xff);
12358 uint_least8_t d1max = UINT_LEAST8_MAX;
12359 uint_least16_t d2 = UINT16_C (0xffff);
12360 uint_least16_t d2max = UINT_LEAST16_MAX;
12361 uint_least32_t d3 = UINT32_C (0xffffffff);
12362 uint_least32_t d3max = UINT_LEAST32_MAX;
12363 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12364 uint_least64_t d4max = UINT_LEAST64_MAX;
12365 int_fast8_t e1 = INT_FAST8_MAX;
12366 int_fast8_t e1min = INT_FAST8_MIN;
12367 int_fast16_t e2 = INT_FAST16_MAX;
12368 int_fast16_t e2min = INT_FAST16_MIN;
12369 int_fast32_t e3 = INT_FAST32_MAX;
12370 int_fast32_t e3min = INT_FAST32_MIN;
12371 int_fast64_t e4 = INT_FAST64_MAX;
12372 int_fast64_t e4min = INT_FAST64_MIN;
12373 uint_fast8_t f1 = UINT_FAST8_MAX;
12374 uint_fast16_t f2 = UINT_FAST16_MAX;
12375 uint_fast32_t f3 = UINT_FAST32_MAX;
12376 uint_fast64_t f4 = UINT_FAST64_MAX;
12378 intptr_t g = INTPTR_MAX;
12379 intptr_t gmin = INTPTR_MIN;
12382 uintptr_t h = UINTPTR_MAX;
12384 intmax_t i = INTMAX_MAX;
12385 uintmax_t j = UINTMAX_MAX;
12387 #include <limits.h> /* for CHAR_BIT */
12388 #define TYPE_MINIMUM(t) \
12389 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
12390 #define TYPE_MAXIMUM(t) \
12391 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
12394 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12395 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12397 /* Detect bug in FreeBSD 6.0 / ia64. */
12398 int check_SIG_ATOMIC:
12399 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12400 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12402 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12404 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12405 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12407 /* Detect bug in mingw. */
12409 WINT_MIN == TYPE_MINIMUM (wint_t)
12410 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12413 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12415 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12416 int check_UINT16_C:
12417 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12419 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12421 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12424 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12427 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12430 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12432 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12433 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12434 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12435 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12436 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12437 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12438 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12439 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12440 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12441 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12442 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
12470 gl_cv_header_working_stdint_h=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
12481 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
12483 if test "$gl_cv_header_working_stdint_h" = yes; then
12488 for ac_header in sys/inttypes.h sys/bitypes.h
12490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_res=`eval echo '${'$as_ac_Header'}'`
12498 { echo "$as_me:$LINENO: result: $ac_res" >&5
12499 echo "${ECHO_T}$ac_res" >&6; }
12501 # Is the header compilable?
12502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 $ac_includes_default
12511 #include <$ac_header>
12513 rm -f conftest.$ac_objext
12514 if { (ac_try="$ac_compile"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest.$ac_objext; then
12530 ac_header_compiler=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_compiler=no
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 echo "${ECHO_T}$ac_header_compiler" >&6; }
12542 # Is the header present?
12543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12545 cat >conftest.$ac_ext <<_ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #include <$ac_header>
12553 if { (ac_try="$ac_cpp conftest.$ac_ext"
12554 case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null && {
12566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12569 ac_header_preproc=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_header_preproc=no
12577 rm -f conftest.err conftest.$ac_ext
12578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12579 echo "${ECHO_T}$ac_header_preproc" >&6; }
12581 # So? What about this header?
12582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12588 ac_header_preproc=yes
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12604 ## ------------------------------ ##
12605 ## Report this to bug-tar@gnu.org ##
12606 ## ------------------------------ ##
12608 ) | sed "s/^/$as_me: WARNING: /" >&2
12611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 eval "$as_ac_Header=\$ac_header_preproc"
12618 ac_res=`eval echo '${'$as_ac_Header'}'`
12619 { echo "$as_me:$LINENO: result: $ac_res" >&5
12620 echo "${ECHO_T}$ac_res" >&6; }
12623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12624 cat >>confdefs.h <<_ACEOF
12625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632 if test $ac_cv_header_sys_inttypes_h = yes; then
12633 HAVE_SYS_INTTYPES_H=1
12635 HAVE_SYS_INTTYPES_H=0
12638 if test $ac_cv_header_sys_bitypes_h = yes; then
12639 HAVE_SYS_BITYPES_H=1
12641 HAVE_SYS_BITYPES_H=0
12660 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12661 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
12662 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
12663 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 if test "$cross_compiling" = yes; then
12667 # Depending upon the size, compute the lo and hi bounds.
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12676 included before <wchar.h>. */
12677 #include <stddef.h>
12678 #include <signal.h>
12680 # include <stdio.h>
12682 # include <wchar.h>
12685 #include <limits.h>
12689 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12722 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12723 included before <wchar.h>. */
12724 #include <stddef.h>
12725 #include <signal.h>
12727 # include <stdio.h>
12729 # include <wchar.h>
12732 #include <limits.h>
12736 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12743 rm -f conftest.$ac_objext
12744 if { (ac_try="$ac_compile"
12745 case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_compile") 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
12760 ac_hi=$ac_mid; break
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_lo=`expr $ac_mid + 1`
12766 if test $ac_lo -le $ac_mid; then
12770 ac_mid=`expr 2 '*' $ac_mid + 1`
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 cat >conftest.$ac_ext <<_ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12786 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12787 included before <wchar.h>. */
12788 #include <stddef.h>
12789 #include <signal.h>
12791 # include <stdio.h>
12793 # include <wchar.h>
12796 #include <limits.h>
12800 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_compile") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest.$ac_objext; then
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12834 included before <wchar.h>. */
12835 #include <stddef.h>
12836 #include <signal.h>
12838 # include <stdio.h>
12840 # include <wchar.h>
12843 #include <limits.h>
12847 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_compile") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1 >conftest.err
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } && {
12868 test -z "$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 } && test -s conftest.$ac_objext; then
12871 ac_lo=$ac_mid; break
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_hi=`expr '(' $ac_mid ')' - 1`
12877 if test $ac_mid -le $ac_hi; then
12881 ac_mid=`expr 2 '*' $ac_mid`
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 # Binary search between lo and hi bounds.
12898 while test "x$ac_lo" != "x$ac_hi"; do
12899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12908 included before <wchar.h>. */
12909 #include <stddef.h>
12910 #include <signal.h>
12912 # include <stdio.h>
12914 # include <wchar.h>
12917 #include <limits.h>
12921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12928 rm -f conftest.$ac_objext
12929 if { (ac_try="$ac_compile"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_compile") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } && {
12942 test -z "$ac_c_werror_flag" ||
12943 test ! -s conftest.err
12944 } && test -s conftest.$ac_objext; then
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_lo=`expr '(' $ac_mid ')' + 1`
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 ?*) result=$ac_lo;;
12957 '') result=unknown ;;
12960 cat >conftest.$ac_ext <<_ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12967 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12968 included before <wchar.h>. */
12969 #include <stddef.h>
12970 #include <signal.h>
12972 # include <stdio.h>
12974 # include <wchar.h>
12977 #include <limits.h>
12978 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
12979 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
12981 #include <stdlib.h>
12986 FILE *f = fopen ("conftest.val", "w");
12989 if ((sizeof ($gltype) * CHAR_BIT) < 0)
12991 long int i = longval ();
12992 if (i != (sizeof ($gltype) * CHAR_BIT))
12994 fprintf (f, "%ld\n", i);
12998 unsigned long int i = ulongval ();
12999 if (i != (sizeof ($gltype) * CHAR_BIT))
13001 fprintf (f, "%lu\n", i);
13003 return ferror (f) || fclose (f) != 0;
13009 rm -f conftest$ac_exeext
13010 if { (ac_try="$ac_link"
13011 case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_link") 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 result=`cat conftest.val`
13031 echo "$as_me: program exited with status $ac_status" >&5
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 ( exit $ac_status )
13038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13041 eval gl_cv_bitsizeof_${gltype}=\$result
13044 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 eval result=\$gl_cv_bitsizeof_${gltype}
13048 if test $result = unknown; then
13051 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13052 cat >>confdefs.h <<_ACEOF
13053 #define BITSIZEOF_${GLTYPE} $result
13056 eval BITSIZEOF_${GLTYPE}=\$result
13065 for gltype in sig_atomic_t wchar_t wint_t ; do
13066 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
13067 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
13068 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13078 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13079 included before <wchar.h>. */
13080 #include <stddef.h>
13081 #include <signal.h>
13083 # include <stdio.h>
13085 # include <wchar.h>
13088 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13097 rm -f conftest.$ac_objext
13098 if { (ac_try="$ac_compile"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_compile") 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } && {
13111 test -z "$ac_c_werror_flag" ||
13112 test ! -s conftest.err
13113 } && test -s conftest.$ac_objext; then
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123 eval gl_cv_type_${gltype}_signed=\$result
13126 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
13127 { echo "$as_me:$LINENO: result: $ac_res" >&5
13128 echo "${ECHO_T}$ac_res" >&6; }
13129 eval result=\$gl_cv_type_${gltype}_signed
13130 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13131 if test "$result" = yes; then
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_SIGNED_${GLTYPE} 1
13136 eval HAVE_SIGNED_${GLTYPE}=1
13138 eval HAVE_SIGNED_${GLTYPE}=0
13143 gl_cv_type_ptrdiff_t_signed=yes
13144 gl_cv_type_size_t_signed=no
13152 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13153 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
13154 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
13155 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 eval gl_cv_type_${gltype}_suffix=no
13159 eval result=\$gl_cv_type_${gltype}_signed
13160 if test "$result" = yes; then
13165 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13167 '') gltype1='int';;
13168 l) gltype1='long int';;
13169 ll) gltype1='long long int';;
13170 i64) gltype1='__int64';;
13171 u) gltype1='unsigned int';;
13172 ul) gltype1='unsigned long int';;
13173 ull) gltype1='unsigned long long int';;
13174 ui64)gltype1='unsigned __int64';;
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13184 included before <wchar.h>. */
13185 #include <stddef.h>
13186 #include <signal.h>
13188 # include <stdio.h>
13190 # include <wchar.h>
13193 extern $gltype foo;
13194 extern $gltype1 foo;
13203 rm -f conftest.$ac_objext
13204 if { (ac_try="$ac_compile"
13205 case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_compile") 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && {
13217 test -z "$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 } && test -s conftest.$ac_objext; then
13220 eval gl_cv_type_${gltype}_suffix=\$glsuf
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 eval result=\$gl_cv_type_${gltype}_suffix
13230 test "$result" != no && break
13233 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
13234 { echo "$as_me:$LINENO: result: $ac_res" >&5
13235 echo "${ECHO_T}$ac_res" >&6; }
13236 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13237 eval result=\$gl_cv_type_${gltype}_suffix
13238 test "$result" = no && result=
13239 eval ${GLTYPE}_SUFFIX=\$result
13240 cat >>confdefs.h <<_ACEOF
13241 #define ${GLTYPE}_SUFFIX $result
13254 for ac_header in inttypes.h
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 ac_res=`eval echo '${'$as_ac_Header'}'`
13264 { echo "$as_me:$LINENO: result: $ac_res" >&5
13265 echo "${ECHO_T}$ac_res" >&6; }
13267 # Is the header compilable?
13268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 $ac_includes_default
13277 #include <$ac_header>
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_compile") 2>conftest.er1
13288 grep -v '^ *+' conftest.er1 >conftest.err
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } && {
13293 test -z "$ac_c_werror_flag" ||
13294 test ! -s conftest.err
13295 } && test -s conftest.$ac_objext; then
13296 ac_header_compiler=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_header_compiler=no
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6; }
13308 # Is the header present?
13309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 #include <$ac_header>
13319 if { (ac_try="$ac_cpp conftest.$ac_ext"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } >/dev/null && {
13332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13335 ac_header_preproc=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_header_preproc=no
13343 rm -f conftest.err conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13345 echo "${ECHO_T}$ac_header_preproc" >&6; }
13347 # So? What about this header?
13348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13354 ac_header_preproc=yes
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13370 ## ------------------------------ ##
13371 ## Report this to bug-tar@gnu.org ##
13372 ## ------------------------------ ##
13374 ) | sed "s/^/$as_me: WARNING: /" >&2
13377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 eval "$as_ac_Header=\$ac_header_preproc"
13384 ac_res=`eval echo '${'$as_ac_Header'}'`
13385 { echo "$as_me:$LINENO: result: $ac_res" >&5
13386 echo "${ECHO_T}$ac_res" >&6; }
13389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13390 cat >>confdefs.h <<_ACEOF
13391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13398 if test $ac_cv_header_inttypes_h = yes; then
13399 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
13400 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
13401 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <inttypes.h>
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 gt_cv_inttypes_pri_broken=no
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 gt_cv_inttypes_pri_broken=yes
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
13453 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
13455 if test "$gt_cv_inttypes_pri_broken" = yes; then
13457 cat >>confdefs.h <<_ACEOF
13458 #define PRI_MACROS_BROKEN 1
13461 PRI_MACROS_BROKEN=1
13463 PRI_MACROS_BROKEN=0
13467 { echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
13468 echo $ECHO_N "checking whether imaxabs is declared... $ECHO_C" >&6; }
13469 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_cv_have_decl_imaxabs=yes
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_cv_have_decl_imaxabs=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
13518 echo "${ECHO_T}$ac_cv_have_decl_imaxabs" >&6; }
13519 if test $ac_cv_have_decl_imaxabs = yes; then
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_DECL_IMAXABS 1
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_DECL_IMAXABS 0
13535 { echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
13536 echo $ECHO_N "checking whether imaxdiv is declared... $ECHO_C" >&6; }
13537 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest.$ac_objext; then
13575 ac_cv_have_decl_imaxdiv=yes
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13580 ac_cv_have_decl_imaxdiv=no
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
13586 echo "${ECHO_T}$ac_cv_have_decl_imaxdiv" >&6; }
13587 if test $ac_cv_have_decl_imaxdiv = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define HAVE_DECL_IMAXDIV 1
13595 cat >>confdefs.h <<_ACEOF
13596 #define HAVE_DECL_IMAXDIV 0
13603 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
13604 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
13605 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
13643 ac_cv_have_decl_strtoimax=yes
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_cv_have_decl_strtoimax=no
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
13654 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
13655 if test $ac_cv_have_decl_strtoimax = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_DECL_STRTOIMAX 1
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_DECL_STRTOIMAX 0
13671 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
13672 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
13673 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 cat >conftest.$ac_ext <<_ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 $ac_includes_default
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_compile") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest.$ac_objext; then
13711 ac_cv_have_decl_strtoumax=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_cv_have_decl_strtoumax=no
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
13722 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
13723 if test $ac_cv_have_decl_strtoumax = yes; then
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_DECL_STRTOUMAX 1
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE_DECL_STRTOUMAX 0
13742 GNULIB_STRTOIMAX=0;
13743 GNULIB_STRTOUMAX=0;
13744 HAVE_DECL_IMAXABS=1;
13745 HAVE_DECL_IMAXDIV=1;
13746 HAVE_DECL_STRTOIMAX=1;
13747 HAVE_DECL_STRTOUMAX=1;
13752 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13753 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13754 if test "${am_cv_langinfo_codeset+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <langinfo.h>
13767 char* cs = nl_langinfo(CODESET); return !cs;
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_link") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } && {
13786 test -z "$ac_c_werror_flag" ||
13787 test ! -s conftest.err
13788 } && test -s conftest$ac_exeext &&
13789 $as_test_x conftest$ac_exeext; then
13790 am_cv_langinfo_codeset=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 am_cv_langinfo_codeset=no
13798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13799 conftest$ac_exeext conftest.$ac_ext
13802 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13803 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13804 if test $am_cv_langinfo_codeset = yes; then
13806 cat >>confdefs.h <<\_ACEOF
13807 #define HAVE_LANGINFO_CODESET 1
13813 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13814 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
13815 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 #include <features.h>
13826 #ifdef __GNU_LIBRARY__
13827 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13834 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13835 ac_cv_gnu_library_2_1=yes
13837 ac_cv_gnu_library_2_1=no
13844 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13845 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
13847 GLIBC21="$ac_cv_gnu_library_2_1"
13851 { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13852 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
13853 if test "${gl_cv_func_malloc_posix+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13867 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 gl_cv_func_malloc_posix=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 gl_cv_func_malloc_posix=no
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
13904 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
13907 GNULIB_MALLOC_POSIX=0;
13908 GNULIB_REALLOC_POSIX=0;
13909 GNULIB_CALLOC_POSIX=0;
13910 GNULIB_GETSUBOPT=0;
13917 HAVE_CALLOC_POSIX=1;
13919 HAVE_MALLOC_POSIX=1;
13921 HAVE_REALLOC_POSIX=1;
13932 for ac_header in stdlib.h
13934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 ac_res=`eval echo '${'$as_ac_Header'}'`
13942 { echo "$as_me:$LINENO: result: $ac_res" >&5
13943 echo "${ECHO_T}$ac_res" >&6; }
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <$ac_header>
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <$ac_header>
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14013 ac_header_preproc=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14048 ## ------------------------------ ##
14049 ## Report this to bug-tar@gnu.org ##
14050 ## ------------------------------ ##
14052 ) | sed "s/^/$as_me: WARNING: /" >&2
14055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 eval "$as_ac_Header=\$ac_header_preproc"
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063 { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14068 cat >>confdefs.h <<_ACEOF
14069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14076 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14077 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
14078 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 if test "$cross_compiling" = yes; then
14082 ac_cv_func_malloc_0_nonnull=no
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14091 # include <stdlib.h>
14099 return ! malloc (0);
14104 rm -f conftest$ac_exeext
14105 if { (ac_try="$ac_link"
14106 case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_link") 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_func_malloc_0_nonnull=yes
14126 echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ( exit $ac_status )
14131 ac_cv_func_malloc_0_nonnull=no
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14138 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14139 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
14140 if test $ac_cv_func_malloc_0_nonnull = yes; then
14141 gl_cv_func_malloc_0_nonnull=1
14143 gl_cv_func_malloc_0_nonnull=0
14148 cat >>confdefs.h <<_ACEOF
14149 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14154 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
14155 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
14156 if test "${gl_cv_func_mbrtowc+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14170 char const s[] = "";
14173 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_link") 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && {
14192 test -z "$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14194 } && test -s conftest$ac_exeext &&
14195 $as_test_x conftest$ac_exeext; then
14196 gl_cv_func_mbrtowc=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 gl_cv_func_mbrtowc=no
14204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14205 conftest$ac_exeext conftest.$ac_ext
14207 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
14208 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
14209 if test $gl_cv_func_mbrtowc = yes; then
14211 cat >>confdefs.h <<\_ACEOF
14212 #define HAVE_MBRTOWC 1
14223 GNULIB_STRCHRNUL=0;
14230 GNULIB_STRCASESTR=0;
14237 GNULIB_MBSCASECMP=0;
14238 GNULIB_MBSNCASECMP=0;
14239 GNULIB_MBSPCASECMP=0;
14240 GNULIB_MBSCASESTR=0;
14247 GNULIB_STRSIGNAL=0;
14248 HAVE_DECL_MEMMEM=1;
14250 HAVE_DECL_MEMRCHR=1;
14254 HAVE_DECL_STRDUP=1;
14256 HAVE_DECL_STRNDUP=1;
14257 HAVE_DECL_STRNLEN=1;
14261 HAVE_DECL_STRTOK_R=1;
14262 HAVE_DECL_STRERROR=1;
14263 HAVE_DECL_STRSIGNAL=1;
14264 REPLACE_STRERROR=0;
14265 REPLACE_STRSIGNAL=0;
14267 REPLACE_STRCASESTR=0;
14270 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
14271 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
14272 if test "${ac_cv_have_decl_memrchr+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 $ac_includes_default
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_cv_have_decl_memrchr=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_have_decl_memrchr=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
14321 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
14322 if test $ac_cv_have_decl_memrchr = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_DECL_MEMRCHR 1
14330 cat >>confdefs.h <<_ACEOF
14331 #define HAVE_DECL_MEMRCHR 0
14356 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14357 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
14358 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 $ac_includes_default
14379 rm -f conftest.$ac_objext
14380 if { (ac_try="$ac_compile"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_compile") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest.$ac_objext; then
14396 ac_cv_have_decl_snprintf=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_cv_have_decl_snprintf=no
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14407 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
14408 if test $ac_cv_have_decl_snprintf = yes; then
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_DECL_SNPRINTF 1
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_DECL_SNPRINTF 0
14432 HAVE_DECL_STRNCASECMP=1;
14434 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
14435 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
14436 if test "${ac_cv_have_decl_strdup+set}" = set; then
14437 echo $ECHO_N "(cached) $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 $ac_includes_default
14457 rm -f conftest.$ac_objext
14458 if { (ac_try="$ac_compile"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_compile") 2>conftest.er1
14466 grep -v '^ *+' conftest.er1 >conftest.err
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && {
14471 test -z "$ac_c_werror_flag" ||
14472 test ! -s conftest.err
14473 } && test -s conftest.$ac_objext; then
14474 ac_cv_have_decl_strdup=yes
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_have_decl_strdup=no
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
14485 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
14486 if test $ac_cv_have_decl_strdup = yes; then
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_DECL_STRDUP 1
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_DECL_STRDUP 0
14504 { echo "$as_me:$LINENO: checking for working strerror function" >&5
14505 echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; }
14506 if test "${gl_cv_func_working_strerror+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 if test "$cross_compiling" = yes; then
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <string.h>
14521 return !*strerror (-2);
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_compile") 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } && {
14540 test -z "$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14542 } && test -s conftest.$ac_objext; then
14543 gl_cv_func_working_strerror=yes
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 gl_cv_func_working_strerror=no
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 #include <string.h>
14564 return !*strerror (-2);
14569 rm -f conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 gl_cv_func_working_strerror=yes
14591 echo "$as_me: program exited with status $ac_status" >&5
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ( exit $ac_status )
14596 gl_cv_func_working_strerror=no
14598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
14604 echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; }
14605 if test $gl_cv_func_working_strerror = no ; then
14608 { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14609 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
14610 if test "${ac_cv_have_decl_strerror+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1 >conftest.err
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_cv_have_decl_strerror=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_have_decl_strerror=no
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14659 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
14660 if test $ac_cv_have_decl_strerror = yes; then
14662 cat >>confdefs.h <<_ACEOF
14663 #define HAVE_DECL_STRERROR 1
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_DECL_STRERROR 0
14692 if test $gl_cv_have_include_next = yes; then
14693 gl_cv_next_string_h='<'string.h'>'
14695 { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
14696 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
14697 if test "${gl_cv_next_string_h+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 if test $ac_cv_header_string_h = yes; then
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 #include <string.h>
14711 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14712 sed -n '\#/string.h#{
14713 s#.*"\(.*/string.h\)".*#\1#
14719 gl_cv_next_string_h='<'string.h'>'
14723 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
14724 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
14726 NEXT_STRING_H=$gl_cv_next_string_h
14745 if test $gl_cv_have_include_next = yes; then
14746 gl_cv_next_strings_h='<'strings.h'>'
14748 { echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
14749 echo $ECHO_N "checking absolute name of <strings.h>... $ECHO_C" >&6; }
14750 if test "${gl_cv_next_strings_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 if test $ac_cv_header_strings_h = yes; then
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 #include <strings.h>
14764 gl_cv_next_strings_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14765 sed -n '\#/strings.h#{
14766 s#.*"\(.*/strings.h\)".*#\1#
14772 gl_cv_next_strings_h='<'strings.h'>'
14776 { echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
14777 echo "${ECHO_T}$gl_cv_next_strings_h" >&6; }
14779 NEXT_STRINGS_H=$gl_cv_next_strings_h
14784 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
14785 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
14786 if test "${ac_cv_have_decl_strndup+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 $ac_includes_default
14807 rm -f conftest.$ac_objext
14808 if { (ac_try="$ac_compile"
14809 case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_compile") 2>conftest.er1
14816 grep -v '^ *+' conftest.er1 >conftest.err
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } && {
14821 test -z "$ac_c_werror_flag" ||
14822 test ! -s conftest.err
14823 } && test -s conftest.$ac_objext; then
14824 ac_cv_have_decl_strndup=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_cv_have_decl_strndup=no
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
14835 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
14836 if test $ac_cv_have_decl_strndup = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_DECL_STRNDUP 1
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_DECL_STRNDUP 0
14852 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
14853 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
14854 if test "${ac_cv_have_decl_strnlen+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 $ac_includes_default
14875 rm -f conftest.$ac_objext
14876 if { (ac_try="$ac_compile"
14877 case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14884 grep -v '^ *+' conftest.er1 >conftest.err
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest.$ac_objext; then
14892 ac_cv_have_decl_strnlen=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_have_decl_strnlen=no
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
14903 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
14904 if test $ac_cv_have_decl_strnlen = yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_DECL_STRNLEN 1
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_DECL_STRNLEN 0
14927 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14928 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14929 REPLACE_STRPTIME=GNULIB_PORTCHECK;
14930 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14941 { echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
14942 echo $ECHO_N "checking for struct timespec in <time.h>... $ECHO_C" >&6; }
14943 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14957 static struct timespec x; x.tv_sec = x.tv_nsec;
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 gl_cv_sys_struct_timespec_in_time_h=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 gl_cv_sys_struct_timespec_in_time_h=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14990 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14992 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14993 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14994 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14995 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14997 { echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
14998 echo $ECHO_N "checking for struct timespec in <sys/time.h>... $ECHO_C" >&6; }
14999 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <sys/time.h>
15013 static struct timespec x; x.tv_sec = x.tv_nsec;
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15027 grep -v '^ *+' conftest.er1 >conftest.err
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest.$ac_objext; then
15035 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 gl_cv_sys_struct_timespec_in_sys_time_h=no
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15046 echo "${ECHO_T}$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15047 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15048 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15067 if test $gl_cv_have_include_next = yes; then
15068 gl_cv_next_time_h='<'time.h'>'
15070 { echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
15071 echo $ECHO_N "checking absolute name of <time.h>... $ECHO_C" >&6; }
15072 if test "${gl_cv_next_time_h+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 if test $ac_cv_header_time_h = yes; then
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15086 gl_cv_next_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15087 sed -n '\#/time.h#{
15088 s#.*"\(.*/time.h\)".*#\1#
15094 gl_cv_next_time_h='<'time.h'>'
15098 { echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
15099 echo "${ECHO_T}$gl_cv_next_time_h" >&6; }
15101 NEXT_TIME_H=$gl_cv_next_time_h
15119 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15120 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
15121 if test "${ac_cv_func_utime_null+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 rm -f conftest.data; >conftest.data
15125 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
15126 if test "$cross_compiling" = yes; then
15127 ac_cv_func_utime_null=no
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 $ac_includes_default
15136 #ifdef HAVE_UTIME_H
15137 # include <utime.h>
15143 return ! (stat ("conftest.data", &s) == 0
15144 && utime ("conftest.data", 0) == 0
15145 && stat ("conftest.data", &t) == 0
15146 && t.st_mtime >= s.st_mtime
15147 && t.st_mtime - s.st_mtime < 120);
15152 rm -f conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_link") 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163 { (case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_try") 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_func_utime_null=yes
15174 echo "$as_me: program exited with status $ac_status" >&5
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ( exit $ac_status )
15179 ac_cv_func_utime_null=no
15181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15187 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15188 if test $ac_cv_func_utime_null = yes; then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_UTIME_NULL 1
15195 rm -f conftest.data
15206 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
15207 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
15208 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #if HAVE_SYS_TIME_H
15218 #include <sys/time.h>
15221 #ifdef HAVE_UTIME_H
15228 static struct utimbuf x; x.actime = x.modtime;
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15250 gl_cv_sys_struct_utimbuf=yes
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 gl_cv_sys_struct_utimbuf=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
15261 echo "${ECHO_T}$gl_cv_sys_struct_utimbuf" >&6; }
15263 if test $gl_cv_sys_struct_utimbuf = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_STRUCT_UTIMBUF 1
15272 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
15273 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
15274 if test "${gl_cv_func_working_utimes+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 if test "$cross_compiling" = yes; then
15279 gl_cv_func_working_utimes=no
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 #include <sys/types.h>
15289 #include <sys/stat.h>
15291 #include <sys/time.h>
15293 #include <unistd.h>
15294 #include <stdlib.h>
15301 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
15303 char const *file = "conftest.utimes";
15308 int ok = ((f = fopen (file, "w"))
15310 && utimes (file, timeval) == 0
15311 && lstat (file, &sbuf) == 0
15312 && sbuf.st_atime == timeval[0].tv_sec
15313 && sbuf.st_mtime == timeval[1].tv_sec);
15319 ((f = fopen (file, "w"))
15321 && time (&now) != (time_t)-1
15322 && utimes (file, NULL) == 0
15323 && lstat (file, &sbuf) == 0
15324 && now - sbuf.st_atime <= 2
15325 && now - sbuf.st_mtime <= 2);
15330 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
15332 && utimes (file, NULL) == 0);
15339 rm -f conftest$ac_exeext
15340 if { (ac_try="$ac_link"
15341 case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_link") 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 gl_cv_func_working_utimes=yes
15361 echo "$as_me: program exited with status $ac_status" >&5
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ( exit $ac_status )
15366 gl_cv_func_working_utimes=no
15368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15373 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
15374 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
15376 if test $gl_cv_func_working_utimes = yes; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_WORKING_UTIMES 1
15391 { echo "$as_me:$LINENO: checking for wchar_t" >&5
15392 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
15393 if test "${gt_cv_c_wchar_t+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <stddef.h>
15403 wchar_t foo = (wchar_t)'\0';
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_compile") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest.$ac_objext; then
15429 gt_cv_c_wchar_t=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15440 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
15441 if test $gt_cv_c_wchar_t = yes; then
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_WCHAR_T 1
15450 { echo "$as_me:$LINENO: checking for wint_t" >&5
15451 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
15452 if test "${gt_cv_c_wint_t+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15462 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15464 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
15465 before <wchar.h>. */
15466 #include <stddef.h>
15470 wint_t foo = (wchar_t)'\0';
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_compile") 2>conftest.er1
15488 grep -v '^ *+' conftest.er1 >conftest.err
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && {
15493 test -z "$ac_c_werror_flag" ||
15494 test ! -s conftest.err
15495 } && test -s conftest.$ac_objext; then
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15507 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
15508 if test $gt_cv_c_wint_t = yes; then
15510 cat >>confdefs.h <<\_ACEOF
15511 #define HAVE_WINT_T 1
15517 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
15518 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
15519 if test "${gl_cv_header_inttypes_h+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 #include <sys/types.h>
15529 #include <inttypes.h>
15533 uintmax_t i = (uintmax_t) -1; return !i;
15538 rm -f conftest.$ac_objext
15539 if { (ac_try="$ac_compile"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_compile") 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } && {
15552 test -z "$ac_c_werror_flag" ||
15553 test ! -s conftest.err
15554 } && test -s conftest.$ac_objext; then
15555 gl_cv_header_inttypes_h=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 gl_cv_header_inttypes_h=no
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
15566 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
15567 if test $gl_cv_header_inttypes_h = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15576 { echo "$as_me:$LINENO: checking for stdint.h" >&5
15577 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
15578 if test "${gl_cv_header_stdint_h+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 cat >conftest.$ac_ext <<_ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #include <stdint.h>
15592 uintmax_t i = (uintmax_t) -1; return !i;
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_compile") 2>conftest.er1
15606 grep -v '^ *+' conftest.er1 >conftest.err
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } && {
15611 test -z "$ac_c_werror_flag" ||
15612 test ! -s conftest.err
15613 } && test -s conftest.$ac_objext; then
15614 gl_cv_header_stdint_h=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 gl_cv_header_stdint_h=no
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
15625 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
15626 if test $gl_cv_header_stdint_h = yes; then
15628 cat >>confdefs.h <<_ACEOF
15629 #define HAVE_STDINT_H_WITH_UINTMAX 1
15637 { echo "$as_me:$LINENO: checking for intmax_t" >&5
15638 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
15639 if test "${gt_cv_c_intmax_t+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15649 #include <stddef.h>
15650 #include <stdlib.h>
15651 #if HAVE_STDINT_H_WITH_UINTMAX
15652 #include <stdint.h>
15654 #if HAVE_INTTYPES_H_WITH_UINTMAX
15655 #include <inttypes.h>
15661 intmax_t x = -1; return !x;
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } && {
15680 test -z "$ac_c_werror_flag" ||
15681 test ! -s conftest.err
15682 } && test -s conftest.$ac_objext; then
15683 gt_cv_c_intmax_t=yes
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 gt_cv_c_intmax_t=no
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
15694 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
15695 if test $gt_cv_c_intmax_t = yes; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_INTMAX_T 1
15703 test $ac_cv_type_long_long_int = yes \
15704 && ac_type='long long' \
15707 cat >>confdefs.h <<_ACEOF
15708 #define intmax_t $ac_type
15713 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15714 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
15715 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 $ac_includes_default
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_compile") 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest.$ac_objext; then
15753 ac_cv_have_decl_vsnprintf=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_cv_have_decl_vsnprintf=no
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15764 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
15765 if test $ac_cv_have_decl_vsnprintf = yes; then
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_DECL_VSNPRINTF 1
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_DECL_VSNPRINTF 0
15783 HAVE_DECL_WCWIDTH=1;
15794 for ac_header in stdint.h
15796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804 { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15807 # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #include <$ac_header>
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 ac_header_compiler=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_compiler=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <$ac_header>
15859 if { (ac_try="$ac_cpp conftest.$ac_ext"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } >/dev/null && {
15872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15875 ac_header_preproc=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894 ac_header_preproc=yes
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15910 ## ------------------------------ ##
15911 ## Report this to bug-tar@gnu.org ##
15912 ## ------------------------------ ##
15914 ) | sed "s/^/$as_me: WARNING: /" >&2
15917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 eval "$as_ac_Header=\$ac_header_preproc"
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925 { echo "$as_me:$LINENO: result: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15938 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15939 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
15940 if test "${gl_cv_size_max+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15952 #include <limits.h>
15954 #include <stdint.h>
15961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15962 $EGREP "Found it" >/dev/null 2>&1; then
15967 if test -z "$gl_cv_size_max"; then
15968 if test "$cross_compiling" = yes; then
15969 # Depending upon the size, compute the lo and hi bounds.
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <stddef.h>
15977 #include <limits.h>
15981 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15988 rm -f conftest.$ac_objext
15989 if { (ac_try="$ac_compile"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.$ac_objext; then
16007 cat >conftest.$ac_ext <<_ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 #include <stddef.h>
16014 #include <limits.h>
16018 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16025 rm -f conftest.$ac_objext
16026 if { (ac_try="$ac_compile"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_compile") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest.$ac_objext; then
16042 ac_hi=$ac_mid; break
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_lo=`expr $ac_mid + 1`
16048 if test $ac_lo -le $ac_mid; then
16052 ac_mid=`expr 2 '*' $ac_mid + 1`
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <stddef.h>
16068 #include <limits.h>
16072 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_compile") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } && {
16093 test -z "$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 } && test -s conftest.$ac_objext; then
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 #include <stddef.h>
16105 #include <limits.h>
16109 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_compile") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && {
16130 test -z "$ac_c_werror_flag" ||
16131 test ! -s conftest.err
16132 } && test -s conftest.$ac_objext; then
16133 ac_lo=$ac_mid; break
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 ac_hi=`expr '(' $ac_mid ')' - 1`
16139 if test $ac_mid -le $ac_hi; then
16143 ac_mid=`expr 2 '*' $ac_mid`
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 # Binary search between lo and hi bounds.
16160 while test "x$ac_lo" != "x$ac_hi"; do
16161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 #include <stddef.h>
16169 #include <limits.h>
16173 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest.$ac_objext; then
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ac_lo=`expr '(' $ac_mid ')' + 1`
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 ?*) size_t_bits_minus_1=$ac_lo;;
16209 '') size_t_bits_minus_1= ;;
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <stddef.h>
16219 #include <limits.h>
16220 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
16221 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
16223 #include <stdlib.h>
16228 FILE *f = fopen ("conftest.val", "w");
16231 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
16233 long int i = longval ();
16234 if (i != (sizeof (size_t) * CHAR_BIT - 1))
16236 fprintf (f, "%ld\n", i);
16240 unsigned long int i = ulongval ();
16241 if (i != (sizeof (size_t) * CHAR_BIT - 1))
16243 fprintf (f, "%lu\n", i);
16245 return ferror (f) || fclose (f) != 0;
16251 rm -f conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_link") 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 size_t_bits_minus_1=`cat conftest.val`
16273 echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ( exit $ac_status )
16278 size_t_bits_minus_1=
16280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16283 if test "$cross_compiling" = yes; then
16284 # Depending upon the size, compute the lo and hi bounds.
16285 cat >conftest.$ac_ext <<_ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <stddef.h>
16295 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
16302 rm -f conftest.$ac_objext
16303 if { (ac_try="$ac_compile"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_compile") 2>conftest.er1
16311 grep -v '^ *+' conftest.er1 >conftest.err
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest.$ac_objext; then
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <stddef.h>
16331 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_c_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest.$ac_objext; then
16355 ac_hi=$ac_mid; break
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_lo=`expr $ac_mid + 1`
16361 if test $ac_lo -le $ac_mid; then
16365 ac_mid=`expr 2 '*' $ac_mid + 1`
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #include <stddef.h>
16384 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest.$ac_objext; then
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 #include <stddef.h>
16420 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest.$ac_objext; then
16444 ac_lo=$ac_mid; break
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_hi=`expr '(' $ac_mid ')' - 1`
16450 if test $ac_mid -le $ac_hi; then
16454 ac_mid=`expr 2 '*' $ac_mid`
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 # Binary search between lo and hi bounds.
16471 while test "x$ac_lo" != "x$ac_hi"; do
16472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16473 cat >conftest.$ac_ext <<_ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <stddef.h>
16483 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } && {
16504 test -z "$ac_c_werror_flag" ||
16505 test ! -s conftest.err
16506 } && test -s conftest.$ac_objext; then
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_lo=`expr '(' $ac_mid ')' + 1`
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 ?*) fits_in_uint=$ac_lo;;
16519 '') fits_in_uint= ;;
16522 cat >conftest.$ac_ext <<_ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 #include <stddef.h>
16529 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
16530 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
16532 #include <stdlib.h>
16537 FILE *f = fopen ("conftest.val", "w");
16540 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
16542 long int i = longval ();
16543 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16545 fprintf (f, "%ld\n", i);
16549 unsigned long int i = ulongval ();
16550 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16552 fprintf (f, "%lu\n", i);
16554 return ferror (f) || fclose (f) != 0;
16560 rm -f conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 fits_in_uint=`cat conftest.val`
16582 echo "$as_me: program exited with status $ac_status" >&5
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ( exit $ac_status )
16589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16593 if test $fits_in_uint = 1; then
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <stddef.h>
16602 extern unsigned long foo;
16612 rm -f conftest.$ac_objext
16613 if { (ac_try="$ac_compile"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.$ac_objext; then
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 if test $fits_in_uint = 1; then
16640 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16642 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16645 gl_cv_size_max='((size_t)~(size_t)0)'
16651 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
16652 echo "${ECHO_T}$gl_cv_size_max" >&6; }
16653 if test "$gl_cv_size_max" != yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define SIZE_MAX $gl_cv_size_max
16663 GL_COND_LIBTOOL_TRUE=
16664 GL_COND_LIBTOOL_FALSE='#'
16666 GL_COND_LIBTOOL_TRUE='#'
16667 GL_COND_LIBTOOL_FALSE=
16670 gl_cond_libtool=false
16676 gl_source_base='.#bootmp/lib'
16679 { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
16680 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
16681 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16699 $EGREP "yes" >/dev/null 2>&1; then
16704 if test -n "$have_eoverflow"; then
16705 ac_cv_decl_EOVERFLOW=yes
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16714 #define _XOPEN_SOURCE_EXTENDED 1
16721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16722 $EGREP "yes" >/dev/null 2>&1; then
16727 if test -n "$have_eoverflow"; then
16728 if test "$cross_compiling" = yes; then
16729 # Depending upon the size, compute the lo and hi bounds.
16730 cat >conftest.$ac_ext <<_ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16737 #define _XOPEN_SOURCE_EXTENDED 1
16739 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16741 #include <stdlib.h>
16746 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest.$ac_objext; then
16772 cat >conftest.$ac_ext <<_ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16779 #define _XOPEN_SOURCE_EXTENDED 1
16781 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16783 #include <stdlib.h>
16788 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest.$ac_objext; then
16812 ac_hi=$ac_mid; break
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ac_lo=`expr $ac_mid + 1`
16818 if test $ac_lo -le $ac_mid; then
16822 ac_mid=`expr 2 '*' $ac_mid + 1`
16825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16838 #define _XOPEN_SOURCE_EXTENDED 1
16840 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16842 #include <stdlib.h>
16847 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest.$ac_objext; then
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 #define _XOPEN_SOURCE_EXTENDED 1
16882 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16884 #include <stdlib.h>
16889 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_compile") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } && {
16910 test -z "$ac_c_werror_flag" ||
16911 test ! -s conftest.err
16912 } && test -s conftest.$ac_objext; then
16913 ac_lo=$ac_mid; break
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_hi=`expr '(' $ac_mid ')' - 1`
16919 if test $ac_mid -le $ac_hi; then
16923 ac_mid=`expr 2 '*' $ac_mid`
16926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 # Binary search between lo and hi bounds.
16940 while test "x$ac_lo" != "x$ac_hi"; do
16941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16949 #define _XOPEN_SOURCE_EXTENDED 1
16951 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16953 #include <stdlib.h>
16958 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16965 rm -f conftest.$ac_objext
16966 if { (ac_try="$ac_compile"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_compile") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest.$ac_objext; then
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ac_lo=`expr '(' $ac_mid ')' + 1`
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 #define _XOPEN_SOURCE_EXTENDED 1
17006 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17008 #include <stdlib.h>
17010 static long int longval () { return EOVERFLOW; }
17011 static unsigned long int ulongval () { return EOVERFLOW; }
17013 #include <stdlib.h>
17018 FILE *f = fopen ("conftest.val", "w");
17021 if ((EOVERFLOW) < 0)
17023 long int i = longval ();
17024 if (i != (EOVERFLOW))
17026 fprintf (f, "%ld\n", i);
17030 unsigned long int i = ulongval ();
17031 if (i != (EOVERFLOW))
17033 fprintf (f, "%lu\n", i);
17035 return ferror (f) || fclose (f) != 0;
17041 rm -f conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_decl_EOVERFLOW=`cat conftest.val`
17063 echo "$as_me: program exited with status $ac_status" >&5
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17072 ac_cv_decl_EOVERFLOW=E2BIG
17077 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
17078 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
17079 if test "$ac_cv_decl_EOVERFLOW" != yes; then
17081 cat >>confdefs.h <<_ACEOF
17082 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
17085 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
17094 if test $ac_cv_func_alloca_works = no; then
17098 # Define an additional variable used in the Makefile substitution.
17099 if test $ac_cv_working_alloca_h = yes; then
17100 { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
17101 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
17102 if test "${gl_cv_rpl_alloca+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17113 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17119 $EGREP "Need own alloca" >/dev/null 2>&1; then
17120 gl_cv_rpl_alloca=yes
17122 gl_cv_rpl_alloca=no
17128 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
17129 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
17130 if test $gl_cv_rpl_alloca = yes; then
17132 cat >>confdefs.h <<\_ACEOF
17133 #define HAVE_ALLOCA 1
17153 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
17168 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17177 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17182 cat >>confdefs.h <<\_ACEOF
17183 #define __GETOPT_PREFIX rpl_
17196 { echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
17197 echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6; }
17198 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 cat >conftest.$ac_ext <<_ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17212 #ifndef program_invocation_name
17213 (void) program_invocation_name;
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_compile") 2>conftest.er1
17229 grep -v '^ *+' conftest.er1 >conftest.err
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest.$ac_objext; then
17237 ac_cv_have_decl_program_invocation_name=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_have_decl_program_invocation_name=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
17248 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6; }
17249 if test $ac_cv_have_decl_program_invocation_name = yes; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
17257 cat >>confdefs.h <<\_ACEOF
17258 #define GNULIB_PROGRAM_INVOCATION_NAME 1
17263 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
17264 echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6; }
17265 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17279 #ifndef program_invocation_short_name
17280 (void) program_invocation_short_name;
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
17304 ac_cv_have_decl_program_invocation_short_name=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_have_decl_program_invocation_short_name=no
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
17315 echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6; }
17316 if test $ac_cv_have_decl_program_invocation_short_name = yes; then
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
17324 cat >>confdefs.h <<\_ACEOF
17325 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
17331 # Check if program_invocation_name and program_invocation_short_name
17332 # are defined elsewhere. It is improbable that only one of them will
17333 # be defined and other not, I prefer to stay on the safe side and to
17334 # test each one separately.
17335 { echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
17336 echo $ECHO_N "checking whether program_invocation_name is defined... $ECHO_C" >&6; }
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17347 program_invocation_name = "test";
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext &&
17369 $as_test_x conftest$ac_exeext; then
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_PROGRAM_INVOCATION_NAME 1
17375 { echo "$as_me:$LINENO: result: yes" >&5
17376 echo "${ECHO_T}yes" >&6; }
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 { echo "$as_me:$LINENO: result: no" >&5
17382 echo "${ECHO_T}no" >&6; }
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17388 { echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
17389 echo $ECHO_N "checking whether program_invocation_short_name is defined... $ECHO_C" >&6; }
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17400 program_invocation_short_name = "test";
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } && {
17419 test -z "$ac_c_werror_flag" ||
17420 test ! -s conftest.err
17421 } && test -s conftest$ac_exeext &&
17422 $as_test_x conftest$ac_exeext; then
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
17428 { echo "$as_me:$LINENO: result: yes" >&5
17429 echo "${ECHO_T}yes" >&6; }
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 { echo "$as_me:$LINENO: result: no" >&5
17435 echo "${ECHO_T}no" >&6; }
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17512 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17516 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17526 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
17550 if test $ac_cv_func_canonicalize_file_name = no; then
17558 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17561 cat >>confdefs.h <<\_ACEOF
17562 #define realpath rpl_realpath
17586 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
17587 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
17588 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <unistd.h>
17598 #include <limits.h>
17599 #if defined PATH_MAX || defined MAXPATHLEN
17600 have_arbitrary_file_name_length_limit
17603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17604 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
17605 gl_cv_have_arbitrary_file_name_length_limit=yes
17607 gl_cv_have_arbitrary_file_name_length_limit=no
17612 { echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17613 echo "${ECHO_T}$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17615 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17623 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
17636 if test $ac_cv_func_chown_works = no; then
17638 cat >>confdefs.h <<\_ACEOF
17639 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
17644 # If chown has either of the above problems, then we need the wrapper.
17645 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
17646 : # no wrapper needed
17656 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
17659 { echo "$as_me:$LINENO: checking for fchown" >&5
17660 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
17661 if test "${ac_cv_func_fchown+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
17671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17672 #define fchown innocuous_fchown
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char fchown (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17680 # include <limits.h>
17682 # include <assert.h>
17687 /* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17694 /* The GNU C library defines this for functions which it implements
17695 to always fail with ENOSYS. Some functions are actually named
17696 something starting with __ and the normal name is an alias. */
17697 #if defined __stub_fchown || defined __stub___fchown
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest$ac_exeext &&
17726 $as_test_x conftest$ac_exeext; then
17727 ac_cv_func_fchown=yes
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_func_fchown=no
17735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17736 conftest$ac_exeext conftest.$ac_ext
17738 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
17739 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
17740 if test $ac_cv_func_fchown = yes; then
17750 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
17764 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17765 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17767 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17768 # programs in the package would end up linked with that potentially-shared
17769 # library, inducing unnecessary run-time overhead.
17770 gl_saved_libs=$LIBS
17771 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17772 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17773 if test "${ac_cv_search_clock_gettime+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 ac_func_search_save_LIBS=$LIBS
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17790 char clock_gettime ();
17794 return clock_gettime ();
17799 for ac_lib in '' rt posix4; do
17800 if test -z "$ac_lib"; then
17801 ac_res="none required"
17804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_link") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } && {
17820 test -z "$ac_c_werror_flag" ||
17821 test ! -s conftest.err
17822 } && test -s conftest$ac_exeext &&
17823 $as_test_x conftest$ac_exeext; then
17824 ac_cv_search_clock_gettime=$ac_res
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17834 if test "${ac_cv_search_clock_gettime+set}" = set; then
17838 if test "${ac_cv_search_clock_gettime+set}" = set; then
17841 ac_cv_search_clock_gettime=no
17843 rm conftest.$ac_ext
17844 LIBS=$ac_func_search_save_LIBS
17846 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17847 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17848 ac_res=$ac_cv_search_clock_gettime
17849 if test "$ac_res" != no; then
17850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17851 test "$ac_cv_search_clock_gettime" = "none required" ||
17852 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
17858 for ac_func in clock_gettime clock_settime
17860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17874 #define $ac_func innocuous_$ac_func
17876 /* System header to define __stub macros and hopefully few prototypes,
17877 which can conflict with char $ac_func (); below.
17878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17879 <limits.h> exists even on freestanding compilers. */
17882 # include <limits.h>
17884 # include <assert.h>
17889 /* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17896 /* The GNU C library defines this for functions which it implements
17897 to always fail with ENOSYS. Some functions are actually named
17898 something starting with __ and the normal name is an alias. */
17899 #if defined __stub_$ac_func || defined __stub___$ac_func
17906 return $ac_func ();
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest$ac_exeext &&
17928 $as_test_x conftest$ac_exeext; then
17929 eval "$as_ac_var=yes"
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 eval "$as_ac_var=no"
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941 { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944 cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17951 LIBS=$gl_saved_libs
17961 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
17968 cat >>confdefs.h <<\_ACEOF
17969 #define GNULIB_CLOSE_STREAM 1
17981 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
17986 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
17987 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
17988 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 if test "$cross_compiling" = yes; then
17992 gl_cv_struct_dirent_d_ino=no
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 #include <sys/types.h>
18001 #include <sys/stat.h>
18002 #include <dirent.h>
18007 DIR *dp = opendir (".");
18014 && stat (e->d_name, &st) == 0
18015 && e->d_ino == st.st_ino);
18020 rm -f conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_link") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 gl_cv_struct_dirent_d_ino=yes
18042 echo "$as_me: program exited with status $ac_status" >&5
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 ( exit $ac_status )
18047 gl_cv_struct_dirent_d_ino=no
18049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18054 { echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
18055 echo "${ECHO_T}$gl_cv_struct_dirent_d_ino" >&6; }
18056 if test $gl_cv_struct_dirent_d_ino = yes; then
18058 cat >>confdefs.h <<\_ACEOF
18059 #define D_INO_IN_DIRENT 1
18069 for ac_func in dirfd
18071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18085 #define $ac_func innocuous_$ac_func
18087 /* System header to define __stub macros and hopefully few prototypes,
18088 which can conflict with char $ac_func (); below.
18089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18090 <limits.h> exists even on freestanding compilers. */
18093 # include <limits.h>
18095 # include <assert.h>
18100 /* Override any GCC internal prototype to avoid an error.
18101 Use char because int might match the return type of a GCC
18102 builtin and then its argument prototype would still apply. */
18107 /* The GNU C library defines this for functions which it implements
18108 to always fail with ENOSYS. Some functions are actually named
18109 something starting with __ and the normal name is an alias. */
18110 #if defined __stub_$ac_func || defined __stub___$ac_func
18117 return $ac_func ();
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_link") 2>conftest.er1
18131 grep -v '^ *+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } && {
18136 test -z "$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 } && test -s conftest$ac_exeext &&
18139 $as_test_x conftest$ac_exeext; then
18140 eval "$as_ac_var=yes"
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 eval "$as_ac_var=no"
18148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18149 conftest$ac_exeext conftest.$ac_ext
18151 ac_res=`eval echo '${'$as_ac_var'}'`
18152 { echo "$as_me:$LINENO: result: $ac_res" >&5
18153 echo "${ECHO_T}$ac_res" >&6; }
18154 if test `eval echo '${'$as_ac_var'}'` = yes; then
18155 cat >>confdefs.h <<_ACEOF
18156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
18163 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
18164 if test "${ac_cv_have_decl_dirfd+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 #include <sys/types.h>
18174 #include <dirent.h>
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.$ac_objext; then
18204 ac_cv_have_decl_dirfd=yes
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_cv_have_decl_dirfd=no
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
18215 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
18216 if test $ac_cv_have_decl_dirfd = yes; then
18218 cat >>confdefs.h <<_ACEOF
18219 #define HAVE_DECL_DIRFD 1
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_DECL_DIRFD 0
18233 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
18234 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
18235 if test "${gl_cv_func_dirfd_macro+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18245 #include <sys/types.h>
18246 #include <dirent.h>
18248 dirent_header_defines_dirfd
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
18253 gl_cv_func_dirfd_macro=yes
18255 gl_cv_func_dirfd_macro=no
18260 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
18261 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
18263 # Use the replacement only if we have no function, macro,
18264 # or declaration with that name.
18265 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
18275 for ac_func in dirfd
18277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18291 #define $ac_func innocuous_$ac_func
18293 /* System header to define __stub macros and hopefully few prototypes,
18294 which can conflict with char $ac_func (); below.
18295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18296 <limits.h> exists even on freestanding compilers. */
18299 # include <limits.h>
18301 # include <assert.h>
18306 /* Override any GCC internal prototype to avoid an error.
18307 Use char because int might match the return type of a GCC
18308 builtin and then its argument prototype would still apply. */
18313 /* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined __stub_$ac_func || defined __stub___$ac_func
18323 return $ac_func ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } && {
18342 test -z "$ac_c_werror_flag" ||
18343 test ! -s conftest.err
18344 } && test -s conftest$ac_exeext &&
18345 $as_test_x conftest$ac_exeext; then
18346 eval "$as_ac_var=yes"
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 eval "$as_ac_var=no"
18354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18355 conftest$ac_exeext conftest.$ac_ext
18357 ac_res=`eval echo '${'$as_ac_var'}'`
18358 { echo "$as_me:$LINENO: result: $ac_res" >&5
18359 echo "${ECHO_T}$ac_res" >&6; }
18360 if test `eval echo '${'$as_ac_var'}'` = yes; then
18361 cat >>confdefs.h <<_ACEOF
18362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18367 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18373 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
18374 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
18375 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 dirfd_save_CFLAGS=$CFLAGS
18380 for ac_expr in d_fd dd_fd; do
18382 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 #include <sys/types.h>
18390 #include <dirent.h>
18394 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_compile") 2>conftest.er1
18408 grep -v '^ *+' conftest.er1 >conftest.err
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && {
18413 test -z "$ac_c_werror_flag" ||
18414 test ! -s conftest.err
18415 } && test -s conftest.$ac_objext; then
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426 CFLAGS=$dirfd_save_CFLAGS
18427 test "$dir_fd_found" = yes && break
18429 test "$dir_fd_found" = yes || ac_expr=no_such_member
18431 gl_cv_sys_dir_fd_member_name=$ac_expr
18435 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
18436 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
18437 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18456 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
18465 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
18474 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
18483 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
18484 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
18485 if test "${gl_cv_double_slash_root+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 if test x"$cross_compiling" = xyes ; then
18489 # When cross-compiling, there is no way to tell whether // is special
18490 # short of a list of hosts. However, the only known hosts to date
18491 # that have a distinct // are Apollo DomainOS (too old to port to),
18492 # Cygwin, and z/OS. If anyone knows of another system for which // has
18493 # special semantics and is distinct from /, please report it to
18494 # <bug-gnulib@gnu.org>.
18496 *-cygwin | i370-ibm-openedition)
18497 gl_cv_double_slash_root=yes ;;
18499 # Be optimistic and assume that / and // are the same when we
18501 gl_cv_double_slash_root='unknown, assuming no' ;;
18504 set x `ls -di / // 2>/dev/null`
18505 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
18506 gl_cv_double_slash_root=no
18508 gl_cv_double_slash_root=yes
18512 { echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
18513 echo "${ECHO_T}$gl_cv_double_slash_root" >&6; }
18514 if test "$gl_cv_double_slash_root" = yes; then
18516 cat >>confdefs.h <<\_ACEOF
18517 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
18530 if test $ac_cv_func_dup2 = no; then
18539 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18552 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
18553 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
18554 if test "${gt_cv_var_environ_declaration+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 #include <unistd.h>
18565 extern struct { int foo; } environ;
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_compile") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } && {
18588 test -z "$ac_c_werror_flag" ||
18589 test ! -s conftest.err
18590 } && test -s conftest.$ac_objext; then
18591 gt_cv_var_environ_declaration=no
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 gt_cv_var_environ_declaration=yes
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
18603 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
18604 if test $gt_cv_var_environ_declaration = yes; then
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE_ENVIRON_DECL 1
18613 if test $gt_cv_var_environ_declaration != yes; then
18614 HAVE_DECL_ENVIRON=0
18632 { echo "$as_me:$LINENO: checking for error_at_line" >&5
18633 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
18634 if test "${ac_cv_lib_error_at_line+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18647 error_at_line (0, 0, "", 0, "an error occurred");
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } && {
18666 test -z "$ac_c_werror_flag" ||
18667 test ! -s conftest.err
18668 } && test -s conftest$ac_exeext &&
18669 $as_test_x conftest$ac_exeext; then
18670 ac_cv_lib_error_at_line=yes
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_cv_lib_error_at_line=no
18678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18679 conftest$ac_exeext conftest.$ac_ext
18681 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18682 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
18683 if test $ac_cv_lib_error_at_line = no; then
18691 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18702 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18706 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18716 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
18727 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18740 if test $ac_cv_func_fchdir = no; then
18749 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
18753 cat >>confdefs.h <<\_ACEOF
18754 #define FCHDIR_REPLACEMENT 1
18767 if test $gl_cv_have_include_next = yes; then
18768 gl_cv_next_dirent_h='<'dirent.h'>'
18770 { echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
18771 echo $ECHO_N "checking absolute name of <dirent.h>... $ECHO_C" >&6; }
18772 if test "${gl_cv_next_dirent_h+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 if test $ac_cv_header_dirent_h = yes; then
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <dirent.h>
18786 gl_cv_next_dirent_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18787 sed -n '\#/dirent.h#{
18788 s#.*"\(.*/dirent.h\)".*#\1#
18794 gl_cv_next_dirent_h='<'dirent.h'>'
18798 { echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
18799 echo "${ECHO_T}$gl_cv_next_dirent_h" >&6; }
18801 NEXT_DIRENT_H=$gl_cv_next_dirent_h
18805 DIRENT_H='dirent.h'
18817 { echo "$as_me:$LINENO: checking for working fcntl.h" >&5
18818 echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; }
18819 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 if test "$cross_compiling" = yes; then
18823 gl_cv_header_working_fcntl_h=cross-compiling
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 #include <sys/types.h>
18832 #include <sys/stat.h>
18833 #include <unistd.h>
18836 #define O_NOATIME 0
18839 #define O_NOFOLLOW 0
18841 static int const constants[] =
18843 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18844 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18851 int status = !constants;
18853 static char const sym[] = "conftest.sym";
18854 if (symlink (".", sym) != 0
18855 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
18859 static char const file[] = "confdefs.h";
18860 int fd = open (file, O_RDONLY | O_NOATIME);
18862 struct stat st0, st1;
18864 || fstat (fd, &st0) != 0
18866 || read (fd, &c, 1) != 1
18868 || stat (file, &st1) != 0
18869 || st0.st_atime != st1.st_atime)
18877 rm -f conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 gl_cv_header_working_fcntl_h=yes
18899 echo "$as_me: program exited with status $ac_status" >&5
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ( exit $ac_status )
18905 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18906 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18907 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18908 *) gl_cv_header_working_fcntl_h='no';;
18911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 { echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
18917 echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; }
18919 case $gl_cv_header_working_fcntl_h in #(
18920 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18924 cat >>confdefs.h <<_ACEOF
18925 #define HAVE_WORKING_O_NOATIME $ac_val
18929 case $gl_cv_header_working_fcntl_h in #(
18930 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18934 cat >>confdefs.h <<_ACEOF
18935 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18949 if test $gl_cv_have_include_next = yes; then
18950 gl_cv_next_fcntl_h='<'fcntl.h'>'
18952 { echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
18953 echo $ECHO_N "checking absolute name of <fcntl.h>... $ECHO_C" >&6; }
18954 if test "${gl_cv_next_fcntl_h+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 if test $ac_cv_header_fcntl_h = yes; then
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18968 gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18969 sed -n '\#/fcntl.h#{
18970 s#.*"\(.*/fcntl.h\)".*#\1#
18976 gl_cv_next_fcntl_h='<'fcntl.h'>'
18980 { echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
18981 echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; }
18983 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
18998 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
19007 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
19012 cat >>confdefs.h <<\_ACEOF
19013 #define GNULIB_FCNTL_SAFER 1
19018 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19019 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19020 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19033 static struct stat ac_aggr;
19034 if (ac_aggr.st_blocks)
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_compile") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest.$ac_objext; then
19057 ac_cv_member_struct_stat_st_blocks=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 $ac_includes_default
19072 static struct stat ac_aggr;
19073 if (sizeof ac_aggr.st_blocks)
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_compile") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest.$ac_objext; then
19096 ac_cv_member_struct_stat_st_blocks=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_member_struct_stat_st_blocks=no
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19110 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19111 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19113 cat >>confdefs.h <<_ACEOF
19114 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_ST_BLOCKS 1
19130 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19135 if test $ac_cv_member_struct_stat_st_blocks = no; then
19164 if test $gl_cv_have_include_next = yes; then
19165 gl_cv_next_float_h='<'float.h'>'
19167 { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
19168 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
19169 if test "${gl_cv_next_float_h+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 if test $ac_cv_header_float_h = yes; then
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19183 gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19184 sed -n '\#/float.h#{
19185 s#.*"\(.*/float.h\)".*#\1#
19191 gl_cv_next_float_h='<'float.h'>'
19195 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
19196 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
19198 NEXT_FLOAT_H=$gl_cv_next_float_h
19206 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
19211 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
19212 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
19213 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 if test "$cross_compiling" = yes; then
19217 ac_cv_func_fnmatch_gnu=cross
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 #include <fnmatch.h>
19227 y (char const *pattern, char const *string, int flags)
19229 return fnmatch (pattern, string, flags) == 0;
19232 n (char const *pattern, char const *string, int flags)
19234 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19240 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19241 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19242 static char const A_1[] = { 'A' - 1, 0 };
19243 static char const A01[] = { 'A' + 1, 0 };
19244 static char const a_1[] = { 'a' - 1, 0 };
19245 static char const a01[] = { 'a' + 1, 0 };
19246 static char const bs_1[] = { '\\\\' - 1, 0 };
19247 static char const bs01[] = { '\\\\' + 1, 0 };
19250 && y ("a*", "abc", 0)
19251 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19252 && y ("a\\\\bc", "abc", 0)
19253 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19254 && y ("*x", ".x", 0)
19255 && n ("*x", ".x", FNM_PERIOD)
19256 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
19257 && y (apat, "\\\\", 0) && y (apat, "a", 0)
19258 && n (Apat, A_1, 0) == ('A' < '\\\\')
19259 && n (apat, a_1, 0) == ('a' < '\\\\')
19260 && y (Apat, A01, 0) == ('A' < '\\\\')
19261 && y (apat, a01, 0) == ('a' < '\\\\')
19262 && y (Apat, bs_1, 0) == ('A' < '\\\\')
19263 && y (apat, bs_1, 0) == ('a' < '\\\\')
19264 && n (Apat, bs01, 0) == ('A' < '\\\\')
19265 && n (apat, bs01, 0) == ('a' < '\\\\')
19266 && y ("xxXX", "xXxX", FNM_CASEFOLD)
19267 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
19268 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
19269 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
19270 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
19271 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
19276 rm -f conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_link") 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_func_fnmatch_gnu=yes
19298 echo "$as_me: program exited with status $ac_status" >&5
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 ( exit $ac_status )
19303 ac_cv_func_fnmatch_gnu=no
19305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
19311 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
19312 if test $ac_cv_func_fnmatch_gnu = yes; then
19313 rm -f lib/fnmatch.h
19315 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
19316 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
19317 if test "${ac_cv_have_decl_isblank+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest.$ac_objext; then
19356 ac_cv_have_decl_isblank=yes
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_cv_have_decl_isblank=no
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
19367 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
19368 if test $ac_cv_have_decl_isblank = yes; then
19370 cat >>confdefs.h <<_ACEOF
19371 #define HAVE_DECL_ISBLANK 1
19376 cat >>confdefs.h <<_ACEOF
19377 #define HAVE_DECL_ISBLANK 0
19417 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
19419 FNMATCH_H=fnmatch.h
19424 if test $ac_cv_func_fnmatch_gnu != yes; then
19426 cat >>confdefs.h <<\_ACEOF
19427 #define fnmatch gnu_fnmatch
19447 # include <stdio.h>
19448 # if HAVE_STDIO_EXT_H
19449 # include <stdio_ext.h>
19452 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
19453 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
19454 if test "${ac_cv_have_decl___fpending+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && {
19490 test -z "$ac_c_werror_flag" ||
19491 test ! -s conftest.err
19492 } && test -s conftest.$ac_objext; then
19493 ac_cv_have_decl___fpending=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_have_decl___fpending=no
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
19504 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
19505 if test $ac_cv_have_decl___fpending = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_DECL___FPENDING 1
19513 cat >>confdefs.h <<_ACEOF
19514 #define HAVE_DECL___FPENDING 0
19521 if test $ac_cv_func___fpending = no; then
19522 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
19523 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
19524 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 'fp->_IO_write_ptr - fp->_IO_write_base' \
19533 '# traditional Unix' \
19534 'fp->_ptr - fp->_base' \
19537 'fp->_p - fp->_bf._base' \
19539 '# SCO, Unixware' \
19540 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
19543 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
19546 'fp->__bufp - fp->__buffer' \
19548 '# old glibc iostream?' \
19549 'fp->_pptr - fp->_pbase' \
19552 '(*fp)->_ptr - (*fp)->_base' \
19554 '# e.g., DGUX R4.11; the info is not available' \
19558 # Skip each embedded comment.
19559 case "$ac_expr" in '#'*) continue;; esac
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19572 FILE *fp = stdin; (void) ($ac_expr);
19577 rm -f conftest.$ac_objext
19578 if { (ac_try="$ac_compile"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } && {
19591 test -z "$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19593 } && test -s conftest.$ac_objext; then
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604 test "$fp_done" = yes && break
19607 ac_cv_sys_pending_output_n_bytes=$ac_expr
19611 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
19612 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
19614 cat >>confdefs.h <<_ACEOF
19615 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
19625 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
19636 { echo "$as_me:$LINENO: checking for fseeko" >&5
19637 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
19638 if test "${gl_cv_func_fseeko+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19652 fseeko (stdin, 0, 0);
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext &&
19674 $as_test_x conftest$ac_exeext; then
19675 gl_cv_func_fseeko=yes
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 gl_cv_func_fseeko=no
19683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19684 conftest$ac_exeext conftest.$ac_ext
19687 { echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
19688 echo "${ECHO_T}$gl_cv_func_fseeko" >&6; }
19689 if test $gl_cv_func_fseeko = no; then
19699 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
19704 elif test $gl_cv_var_stdin_large_offset = no; then
19713 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
19733 if test $ac_cv_func_ftruncate = no; then
19742 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
19746 for ac_func in chsize
19748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19762 #define $ac_func innocuous_$ac_func
19764 /* System header to define __stub macros and hopefully few prototypes,
19765 which can conflict with char $ac_func (); below.
19766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19767 <limits.h> exists even on freestanding compilers. */
19770 # include <limits.h>
19772 # include <assert.h>
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19784 /* The GNU C library defines this for functions which it implements
19785 to always fail with ENOSYS. Some functions are actually named
19786 something starting with __ and the normal name is an alias. */
19787 #if defined __stub_$ac_func || defined __stub___$ac_func
19794 return $ac_func ();
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (ac_try="$ac_link"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_link") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } && {
19813 test -z "$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19815 } && test -s conftest$ac_exeext &&
19816 $as_test_x conftest$ac_exeext; then
19817 eval "$as_ac_var=yes"
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 eval "$as_ac_var=no"
19825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19826 conftest$ac_exeext conftest.$ac_ext
19828 ac_res=`eval echo '${'$as_ac_var'}'`
19829 { echo "$as_me:$LINENO: result: $ac_res" >&5
19830 echo "${ECHO_T}$ac_res" >&6; }
19831 if test `eval echo '${'$as_ac_var'}'` = yes; then
19832 cat >>confdefs.h <<_ACEOF
19833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19842 # Yes, we know mingw lacks ftruncate.
19845 # If someone lacks ftruncate, make configure fail, and request
19846 # a bug report to inform us about it.
19847 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
19848 { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
19849 Please report this, along with the output of \"uname -a\", to the
19850 bug-coreutils@gnu.org mailing list. To continue past this point,
19851 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
19852 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
19853 See \`config.log' for more details." >&5
19854 echo "$as_me: error: Your system lacks the ftruncate function.
19855 Please report this, along with the output of \"uname -a\", to the
19856 bug-coreutils@gnu.org mailing list. To continue past this point,
19857 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
19858 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
19859 See \`config.log' for more details." >&2;}
19860 { (exit 1); exit 1; }; }
19874 case $gl_cv_func_getcwd_null in
19882 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
19883 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
19884 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 # Arrange for deletion of the temporary directory this test creates.
19888 ac_clean_files="$ac_clean_files confdir3"
19889 if test "$cross_compiling" = yes; then
19890 gl_cv_func_getcwd_path_max=no
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19900 #include <stdlib.h>
19901 #include <unistd.h>
19902 #include <string.h>
19903 #include <limits.h>
19904 #include <sys/stat.h>
19905 #include <sys/types.h>
19909 # define AT_FDCWD 0
19911 #ifdef ENAMETOOLONG
19912 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19914 # define is_ENAMETOOLONG(x) 0
19917 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19921 # define S_IRWXU 0700
19924 /* The length of this name must be 8. */
19925 #define DIR_NAME "confdir3"
19926 #define DIR_NAME_LEN 8
19927 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19929 /* The length of "../". */
19930 #define DOTDOTSLASH_LEN 3
19932 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19933 #define BUF_SLOP 20
19939 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19940 at least not on a local file system. And if we were to start worrying
19941 about remote file systems, we'd have to enable the wrapper function
19942 all of the time, just to be safe. That's not worth the cost. */
19944 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19945 - DIR_NAME_SIZE - BUF_SLOP) \
19947 /* FIXME: Assuming there's a system for which this is true,
19948 this should be done in a compile test. */
19951 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19952 + DIR_NAME_SIZE + BUF_SLOP];
19953 char *cwd = getcwd (buf, PATH_MAX);
19954 size_t initial_cwd_len;
19957 size_t n_chdirs = 0;
19962 cwd_len = initial_cwd_len = strlen (cwd);
19966 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19969 cwd_len += DIR_NAME_SIZE;
19970 /* If mkdir or chdir fails, it could be that this system cannot create
19971 any file with an absolute name longer than PATH_MAX, such as cygwin.
19972 If so, leave fail as 0, because the current working directory can't
19973 be too long for getcwd if it can't even be created. For other
19974 errors, be pessimistic and consider that as a failure, too. */
19975 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19977 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19982 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19984 c = getcwd (buf, PATH_MAX);
19985 if (!c && errno == ENOENT)
19990 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19997 if (dotdot_max <= cwd_len - initial_cwd_len)
19999 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20001 c = getcwd (buf, cwd_len + 1);
20004 if (! (errno == ERANGE || errno == ENOENT
20005 || is_ENAMETOOLONG (errno)))
20010 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20018 if (c && strlen (c) != cwd_len)
20026 /* Leaving behind such a deep directory is not polite.
20027 So clean up here, right away, even though the driving
20028 shell script would also clean up. */
20032 /* Try rmdir first, in case the chdir failed. */
20034 for (i = 0; i <= n_chdirs; i++)
20036 if (chdir ("..") < 0)
20038 if (rmdir (DIR_NAME) != 0)
20048 rm -f conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 gl_cv_func_getcwd_path_max=yes
20070 echo "$as_me: program exited with status $ac_status" >&5
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ( exit $ac_status )
20076 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
20077 *) gl_cv_func_getcwd_path_max=no;;
20080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20086 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
20087 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
20088 case $gl_cv_func_getcwd_path_max in
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_PARTLY_WORKING_GETCWD 1
20103 for ac_func in getpagesize
20105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20119 #define $ac_func innocuous_$ac_func
20121 /* System header to define __stub macros and hopefully few prototypes,
20122 which can conflict with char $ac_func (); below.
20123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20124 <limits.h> exists even on freestanding compilers. */
20127 # include <limits.h>
20129 # include <assert.h>
20134 /* Override any GCC internal prototype to avoid an error.
20135 Use char because int might match the return type of a GCC
20136 builtin and then its argument prototype would still apply. */
20141 /* The GNU C library defines this for functions which it implements
20142 to always fail with ENOSYS. Some functions are actually named
20143 something starting with __ and the normal name is an alias. */
20144 #if defined __stub_$ac_func || defined __stub___$ac_func
20151 return $ac_func ();
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_link") 2>conftest.er1
20165 grep -v '^ *+' conftest.er1 >conftest.err
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } && {
20170 test -z "$ac_c_werror_flag" ||
20171 test ! -s conftest.err
20172 } && test -s conftest$ac_exeext &&
20173 $as_test_x conftest$ac_exeext; then
20174 eval "$as_ac_var=yes"
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 eval "$as_ac_var=no"
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183 conftest$ac_exeext conftest.$ac_ext
20185 ac_res=`eval echo '${'$as_ac_var'}'`
20186 { echo "$as_me:$LINENO: result: $ac_res" >&5
20187 echo "${ECHO_T}$ac_res" >&6; }
20188 if test `eval echo '${'$as_ac_var'}'` = yes; then
20189 cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20196 { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
20197 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
20198 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 # Remove any remnants of a previous test.
20202 rm -rf confdir-14B---
20203 # Arrange for deletion of the temporary directory this test creates.
20204 ac_clean_files="$ac_clean_files confdir-14B---"
20205 if test "$cross_compiling" = yes; then
20206 gl_cv_func_getcwd_abort_bug=yes
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20215 #include <stdlib.h>
20216 #include <unistd.h>
20217 #include <limits.h>
20218 #include <string.h>
20219 #include <sys/stat.h>
20221 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
20225 # define S_IRWXU 0700
20228 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20229 #if ! HAVE_GETPAGESIZE
20230 # define getpagesize() 0
20233 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20234 the 16kB pagesize on ia64 linux. Those conditions make the code below
20235 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20236 #define TARGET_LEN (5 * 1024)
20241 char const *dir_name = "confdir-14B---";
20243 size_t initial_cwd_len;
20245 size_t desired_depth;
20248 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20249 this relative expensive and invasive test if that's not true. */
20250 if (getpagesize () <= PATH_MAX)
20253 cwd = getcwd (NULL, 0);
20257 initial_cwd_len = strlen (cwd);
20259 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20260 / (1 + strlen (dir_name)));
20261 for (d = 0; d < desired_depth; d++)
20263 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20265 fail = 3; /* Unable to construct deep hierarchy. */
20270 /* If libc has the bug in question, this invocation of getcwd
20271 results in a failed assertion. */
20272 cwd = getcwd (NULL, 0);
20274 fail = 4; /* getcwd failed. This is ok, and expected. */
20277 /* Call rmdir first, in case the above chdir failed. */
20281 if (chdir ("..") < 0)
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301 { (case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_try") 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 gl_cv_func_getcwd_abort_bug=no
20312 echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ( exit $ac_status )
20317 gl_cv_func_getcwd_abort_bug=yes
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20325 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
20326 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
20327 if test $gl_cv_func_getcwd_abort_bug = yes; then
20334 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
20345 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
20364 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20365 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20366 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <sys/types.h>
20376 #include <$ac_cv_struct_tm>
20382 static struct tm ac_aggr;
20383 if (ac_aggr.tm_zone)
20389 rm -f conftest.$ac_objext
20390 if { (ac_try="$ac_compile"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_compile") 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest.$ac_objext; then
20406 ac_cv_member_struct_tm_tm_zone=yes
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 #include <sys/types.h>
20418 #include <$ac_cv_struct_tm>
20424 static struct tm ac_aggr;
20425 if (sizeof ac_aggr.tm_zone)
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20440 grep -v '^ *+' conftest.er1 >conftest.err
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
20448 ac_cv_member_struct_tm_tm_zone=yes
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ac_cv_member_struct_tm_tm_zone=no
20456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20462 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20463 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20465 cat >>confdefs.h <<_ACEOF
20466 #define HAVE_STRUCT_TM_TM_ZONE 1
20472 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE_TM_ZONE 1
20479 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20480 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20481 if test "${ac_cv_have_decl_tzname+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20503 rm -f conftest.$ac_objext
20504 if { (ac_try="$ac_compile"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_compile") 2>conftest.er1
20512 grep -v '^ *+' conftest.er1 >conftest.err
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_c_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest.$ac_objext; then
20520 ac_cv_have_decl_tzname=yes
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_cv_have_decl_tzname=no
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20531 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20532 if test $ac_cv_have_decl_tzname = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL_TZNAME 1
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_DECL_TZNAME 0
20548 { echo "$as_me:$LINENO: checking for tzname" >&5
20549 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20550 if test "${ac_cv_var_tzname+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 cat >conftest.$ac_ext <<_ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20560 #if !HAVE_DECL_TZNAME
20561 extern char *tzname[];
20567 return tzname[0][0];
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_link") 2>conftest.er1
20581 grep -v '^ *+' conftest.er1 >conftest.err
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest$ac_exeext &&
20589 $as_test_x conftest$ac_exeext; then
20590 ac_cv_var_tzname=yes
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_cv_var_tzname=no
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599 conftest$ac_exeext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20602 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
20603 if test $ac_cv_var_tzname = yes; then
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE_TZNAME 1
20628 for ac_func in getdelim
20630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20644 #define $ac_func innocuous_$ac_func
20646 /* System header to define __stub macros and hopefully few prototypes,
20647 which can conflict with char $ac_func (); below.
20648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20649 <limits.h> exists even on freestanding compilers. */
20652 # include <limits.h>
20654 # include <assert.h>
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20666 /* The GNU C library defines this for functions which it implements
20667 to always fail with ENOSYS. Some functions are actually named
20668 something starting with __ and the normal name is an alias. */
20669 #if defined __stub_$ac_func || defined __stub___$ac_func
20676 return $ac_func ();
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_link") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest$ac_exeext &&
20698 $as_test_x conftest$ac_exeext; then
20699 eval "$as_ac_var=yes"
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 eval "$as_ac_var=no"
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20710 ac_res=`eval echo '${'$as_ac_var'}'`
20711 { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_var'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20720 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20731 if test $ac_cv_func_getdelim = no; then
20735 for ac_func in flockfile funlockfile
20737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20751 #define $ac_func innocuous_$ac_func
20753 /* System header to define __stub macros and hopefully few prototypes,
20754 which can conflict with char $ac_func (); below.
20755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20756 <limits.h> exists even on freestanding compilers. */
20759 # include <limits.h>
20761 # include <assert.h>
20766 /* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20773 /* The GNU C library defines this for functions which it implements
20774 to always fail with ENOSYS. Some functions are actually named
20775 something starting with __ and the normal name is an alias. */
20776 #if defined __stub_$ac_func || defined __stub___$ac_func
20783 return $ac_func ();
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_link") 2>conftest.er1
20797 grep -v '^ *+' conftest.er1 >conftest.err
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && {
20802 test -z "$ac_c_werror_flag" ||
20803 test ! -s conftest.err
20804 } && test -s conftest$ac_exeext &&
20805 $as_test_x conftest$ac_exeext; then
20806 eval "$as_ac_var=yes"
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 eval "$as_ac_var=no"
20814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20815 conftest$ac_exeext conftest.$ac_ext
20817 ac_res=`eval echo '${'$as_ac_var'}'`
20818 { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_var'}'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20831 if test $ac_cv_have_decl_getdelim = no; then
20832 HAVE_DECL_GETDELIM=0
20849 gl_getline_needs_run_time_check=no
20850 { echo "$as_me:$LINENO: checking for getline" >&5
20851 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
20852 if test "${ac_cv_func_getline+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
20862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20863 #define getline innocuous_getline
20865 /* System header to define __stub macros and hopefully few prototypes,
20866 which can conflict with char getline (); below.
20867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20868 <limits.h> exists even on freestanding compilers. */
20871 # include <limits.h>
20873 # include <assert.h>
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20885 /* The GNU C library defines this for functions which it implements
20886 to always fail with ENOSYS. Some functions are actually named
20887 something starting with __ and the normal name is an alias. */
20888 #if defined __stub_getline || defined __stub___getline
20900 rm -f conftest.$ac_objext conftest$ac_exeext
20901 if { (ac_try="$ac_link"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_link") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest$ac_exeext &&
20917 $as_test_x conftest$ac_exeext; then
20918 ac_cv_func_getline=yes
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_cv_func_getline=no
20926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20927 conftest$ac_exeext conftest.$ac_ext
20929 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
20930 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
20931 if test $ac_cv_func_getline = yes; then
20932 gl_getline_needs_run_time_check=yes
20934 am_cv_func_working_getline=no
20937 if test $gl_getline_needs_run_time_check = yes; then
20938 { echo "$as_me:$LINENO: checking for working getline function" >&5
20939 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
20940 if test "${am_cv_func_working_getline+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
20944 if test "$cross_compiling" = yes; then
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20952 #include <features.h>
20953 #ifdef __GNU_LIBRARY__
20954 #if (__GLIBC__ >= 2)
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20962 am_cv_func_working_getline=yes
20964 am_cv_func_working_getline=no
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20977 # include <stdio.h>
20978 # include <stdlib.h>
20979 # include <string.h>
20981 { /* Based on a test program from Karl Heuer. */
20985 FILE *in = fopen ("./conftest.data", "r");
20988 len = getline (&line, &siz, in);
20989 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
20993 rm -f conftest$ac_exeext
20994 if { (ac_try="$ac_link"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_link") 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 am_cv_func_working_getline=yes
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ( exit $ac_status )
21020 am_cv_func_working_getline=no
21022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21027 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
21028 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
21031 if test $ac_cv_have_decl_getline = no; then
21032 HAVE_DECL_GETLINE=0
21035 if test $am_cv_func_working_getline = no; then
21044 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
21061 for ac_func in getdelim
21063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 cat >conftest.$ac_ext <<_ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21077 #define $ac_func innocuous_$ac_func
21079 /* System header to define __stub macros and hopefully few prototypes,
21080 which can conflict with char $ac_func (); below.
21081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21082 <limits.h> exists even on freestanding compilers. */
21085 # include <limits.h>
21087 # include <assert.h>
21092 /* Override any GCC internal prototype to avoid an error.
21093 Use char because int might match the return type of a GCC
21094 builtin and then its argument prototype would still apply. */
21099 /* The GNU C library defines this for functions which it implements
21100 to always fail with ENOSYS. Some functions are actually named
21101 something starting with __ and the normal name is an alias. */
21102 #if defined __stub_$ac_func || defined __stub___$ac_func
21109 return $ac_func ();
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_link") 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } && {
21128 test -z "$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 } && test -s conftest$ac_exeext &&
21131 $as_test_x conftest$ac_exeext; then
21132 eval "$as_ac_var=yes"
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 eval "$as_ac_var=no"
21140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21141 conftest$ac_exeext conftest.$ac_ext
21143 ac_res=`eval echo '${'$as_ac_var'}'`
21144 { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 if test `eval echo '${'$as_ac_var'}'` = yes; then
21147 cat >>confdefs.h <<_ACEOF
21148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21153 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
21164 if test $ac_cv_func_getdelim = no; then
21168 for ac_func in flockfile funlockfile
21170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21184 #define $ac_func innocuous_$ac_func
21186 /* System header to define __stub macros and hopefully few prototypes,
21187 which can conflict with char $ac_func (); below.
21188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189 <limits.h> exists even on freestanding compilers. */
21192 # include <limits.h>
21194 # include <assert.h>
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21206 /* The GNU C library defines this for functions which it implements
21207 to always fail with ENOSYS. Some functions are actually named
21208 something starting with __ and the normal name is an alias. */
21209 #if defined __stub_$ac_func || defined __stub___$ac_func
21216 return $ac_func ();
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_link") 2>conftest.er1
21230 grep -v '^ *+' conftest.er1 >conftest.err
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext &&
21238 $as_test_x conftest$ac_exeext; then
21239 eval "$as_ac_var=yes"
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 eval "$as_ac_var=no"
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248 conftest$ac_exeext conftest.$ac_ext
21250 ac_res=`eval echo '${'$as_ac_var'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21253 if test `eval echo '${'$as_ac_var'}'` = yes; then
21254 cat >>confdefs.h <<_ACEOF
21255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264 if test $ac_cv_have_decl_getdelim = no; then
21265 HAVE_DECL_GETDELIM=0
21277 if test -n "$GETOPT_H"; then
21286 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21295 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21300 cat >>confdefs.h <<\_ACEOF
21301 #define __GETOPT_PREFIX rpl_
21320 for ac_func in getpagesize
21322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21336 #define $ac_func innocuous_$ac_func
21338 /* System header to define __stub macros and hopefully few prototypes,
21339 which can conflict with char $ac_func (); below.
21340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21341 <limits.h> exists even on freestanding compilers. */
21344 # include <limits.h>
21346 # include <assert.h>
21351 /* Override any GCC internal prototype to avoid an error.
21352 Use char because int might match the return type of a GCC
21353 builtin and then its argument prototype would still apply. */
21358 /* The GNU C library defines this for functions which it implements
21359 to always fail with ENOSYS. Some functions are actually named
21360 something starting with __ and the normal name is an alias. */
21361 #if defined __stub_$ac_func || defined __stub___$ac_func
21368 return $ac_func ();
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (ac_try="$ac_link"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_link") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest$ac_exeext &&
21390 $as_test_x conftest$ac_exeext; then
21391 eval "$as_ac_var=yes"
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 eval "$as_ac_var=no"
21399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21400 conftest$ac_exeext conftest.$ac_ext
21402 ac_res=`eval echo '${'$as_ac_var'}'`
21403 { echo "$as_me:$LINENO: result: $ac_res" >&5
21404 echo "${ECHO_T}$ac_res" >&6; }
21405 if test `eval echo '${'$as_ac_var'}'` = yes; then
21406 cat >>confdefs.h <<_ACEOF
21407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21413 if test $ac_cv_func_getpagesize = no; then
21416 for ac_header in OS.h
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426 { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21429 # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 #include <$ac_header>
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest.$ac_objext; then
21458 ac_header_compiler=yes
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ac_header_compiler=no
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 #include <$ac_header>
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } >/dev/null && {
21494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21497 ac_header_preproc=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_header_preproc=no
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21509 # So? What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516 ac_header_preproc=yes
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21532 ## ------------------------------ ##
21533 ## Report this to bug-tar@gnu.org ##
21534 ## ------------------------------ ##
21536 ) | sed "s/^/$as_me: WARNING: /" >&2
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 eval "$as_ac_Header=\$ac_header_preproc"
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21560 if test $ac_cv_header_OS_h = yes; then
21564 for ac_header in sys/param.h
21566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 ac_res=`eval echo '${'$as_ac_Header'}'`
21574 { echo "$as_me:$LINENO: result: $ac_res" >&5
21575 echo "${ECHO_T}$ac_res" >&6; }
21577 # Is the header compilable?
21578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21580 cat >conftest.$ac_ext <<_ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 $ac_includes_default
21587 #include <$ac_header>
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_compile") 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } && {
21603 test -z "$ac_c_werror_flag" ||
21604 test ! -s conftest.err
21605 } && test -s conftest.$ac_objext; then
21606 ac_header_compiler=yes
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ac_header_compiler=no
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21616 echo "${ECHO_T}$ac_header_compiler" >&6; }
21618 # Is the header present?
21619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 #include <$ac_header>
21629 if { (ac_try="$ac_cpp conftest.$ac_ext"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } >/dev/null && {
21642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21643 test ! -s conftest.err
21645 ac_header_preproc=yes
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21650 ac_header_preproc=no
21653 rm -f conftest.err conftest.$ac_ext
21654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21655 echo "${ECHO_T}$ac_header_preproc" >&6; }
21657 # So? What about this header?
21658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21664 ac_header_preproc=yes
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21680 ## ------------------------------ ##
21681 ## Report this to bug-tar@gnu.org ##
21682 ## ------------------------------ ##
21684 ) | sed "s/^/$as_me: WARNING: /" >&2
21687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 eval "$as_ac_Header=\$ac_header_preproc"
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695 { echo "$as_me:$LINENO: result: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21708 if test $ac_cv_header_sys_param_h = yes; then
21714 REPLACE_GETPAGESIZE=1
21722 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
21729 GNULIB_GETPAGESIZE=1
21742 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
21766 { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21767 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
21768 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 #include <sys/time.h>
21784 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
21786 return !(x | c.tv_sec | c.tv_usec);
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_compile") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && {
21806 test -z "$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 } && test -s conftest.$ac_objext; then
21809 gl_cv_func_gettimeofday_posix_signature=yes
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 gl_cv_func_gettimeofday_posix_signature=no
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21820 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
21825 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21826 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
21827 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 if test "$cross_compiling" = yes; then
21831 gl_cv_func_gettimeofday_clobber=yes
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 #include <string.h>
21840 #include <sys/time.h>
21842 #include <stdlib.h>
21850 struct tm saved_lt;
21852 lt = localtime (&t);
21854 gettimeofday (&tv, NULL);
21855 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21861 rm -f conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_link") 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21872 { (case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_try") 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 gl_cv_func_gettimeofday_clobber=no
21883 echo "$as_me: program exited with status $ac_status" >&5
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ( exit $ac_status )
21888 gl_cv_func_gettimeofday_clobber=yes
21890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21896 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
21898 if test $gl_cv_func_gettimeofday_clobber = yes; then
21899 REPLACE_GETTIMEOFDAY=1
21900 SYS_TIME_H=sys/time.h
21909 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21913 for ac_header in sys/timeb.h
21915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 ac_res=`eval echo '${'$as_ac_Header'}'`
21923 { echo "$as_me:$LINENO: result: $ac_res" >&5
21924 echo "${ECHO_T}$ac_res" >&6; }
21926 # Is the header compilable?
21927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21929 cat >conftest.$ac_ext <<_ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 $ac_includes_default
21936 #include <$ac_header>
21938 rm -f conftest.$ac_objext
21939 if { (ac_try="$ac_compile"
21940 case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21947 grep -v '^ *+' conftest.er1 >conftest.err
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
21955 ac_header_compiler=yes
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ac_header_compiler=no
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 #include <$ac_header>
21978 if { (ac_try="$ac_cpp conftest.$ac_ext"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null && {
21991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21994 ac_header_preproc=yes
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_header_preproc=no
22002 rm -f conftest.err conftest.$ac_ext
22003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22004 echo "${ECHO_T}$ac_header_preproc" >&6; }
22006 # So? What about this header?
22007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22013 ac_header_preproc=yes
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22029 ## ------------------------------ ##
22030 ## Report this to bug-tar@gnu.org ##
22031 ## ------------------------------ ##
22033 ) | sed "s/^/$as_me: WARNING: /" >&2
22036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 eval "$as_ac_Header=\$ac_header_preproc"
22043 ac_res=`eval echo '${'$as_ac_Header'}'`
22044 { echo "$as_me:$LINENO: result: $ac_res" >&5
22045 echo "${ECHO_T}$ac_res" >&6; }
22048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22049 cat >>confdefs.h <<_ACEOF
22050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22058 for ac_func in _ftime
22060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22074 #define $ac_func innocuous_$ac_func
22076 /* System header to define __stub macros and hopefully few prototypes,
22077 which can conflict with char $ac_func (); below.
22078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22079 <limits.h> exists even on freestanding compilers. */
22082 # include <limits.h>
22084 # include <assert.h>
22089 /* Override any GCC internal prototype to avoid an error.
22090 Use char because int might match the return type of a GCC
22091 builtin and then its argument prototype would still apply. */
22096 /* The GNU C library defines this for functions which it implements
22097 to always fail with ENOSYS. Some functions are actually named
22098 something starting with __ and the normal name is an alias. */
22099 #if defined __stub_$ac_func || defined __stub___$ac_func
22106 return $ac_func ();
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (ac_try="$ac_link"
22113 case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_link") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest$ac_exeext &&
22128 $as_test_x conftest$ac_exeext; then
22129 eval "$as_ac_var=yes"
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 eval "$as_ac_var=no"
22137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22138 conftest$ac_exeext conftest.$ac_ext
22140 ac_res=`eval echo '${'$as_ac_var'}'`
22141 { echo "$as_me:$LINENO: result: $ac_res" >&5
22142 echo "${ECHO_T}$ac_res" >&6; }
22143 if test `eval echo '${'$as_ac_var'}'` = yes; then
22144 cat >>confdefs.h <<_ACEOF
22145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22153 cat >>confdefs.h <<\_ACEOF
22154 #define gmtime rpl_gmtime
22158 cat >>confdefs.h <<\_ACEOF
22159 #define localtime rpl_localtime
22164 cat >>confdefs.h <<\_ACEOF
22165 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
22171 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
22172 REPLACE_GETTIMEOFDAY=1
22173 SYS_TIME_H=sys/time.h
22174 if test $gl_cv_func_gettimeofday_clobber != yes; then
22182 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22186 for ac_header in sys/timeb.h
22188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 ac_res=`eval echo '${'$as_ac_Header'}'`
22196 { echo "$as_me:$LINENO: result: $ac_res" >&5
22197 echo "${ECHO_T}$ac_res" >&6; }
22199 # Is the header compilable?
22200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 $ac_includes_default
22209 #include <$ac_header>
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest.$ac_objext; then
22228 ac_header_compiler=yes
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ac_header_compiler=no
22236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22238 echo "${ECHO_T}$ac_header_compiler" >&6; }
22240 # Is the header present?
22241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 #include <$ac_header>
22251 if { (ac_try="$ac_cpp conftest.$ac_ext"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22259 grep -v '^ *+' conftest.er1 >conftest.err
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } >/dev/null && {
22264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22267 ac_header_preproc=yes
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_header_preproc=no
22275 rm -f conftest.err conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22277 echo "${ECHO_T}$ac_header_preproc" >&6; }
22279 # So? What about this header?
22280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22286 ac_header_preproc=yes
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22302 ## ------------------------------ ##
22303 ## Report this to bug-tar@gnu.org ##
22304 ## ------------------------------ ##
22306 ) | sed "s/^/$as_me: WARNING: /" >&2
22309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 eval "$as_ac_Header=\$ac_header_preproc"
22316 ac_res=`eval echo '${'$as_ac_Header'}'`
22317 { echo "$as_me:$LINENO: result: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22322 cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22331 for ac_func in _ftime
22333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22347 #define $ac_func innocuous_$ac_func
22349 /* System header to define __stub macros and hopefully few prototypes,
22350 which can conflict with char $ac_func (); below.
22351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22352 <limits.h> exists even on freestanding compilers. */
22355 # include <limits.h>
22357 # include <assert.h>
22362 /* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22369 /* The GNU C library defines this for functions which it implements
22370 to always fail with ENOSYS. Some functions are actually named
22371 something starting with __ and the normal name is an alias. */
22372 #if defined __stub_$ac_func || defined __stub___$ac_func
22379 return $ac_func ();
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_link") 2>conftest.er1
22393 grep -v '^ *+' conftest.er1 >conftest.err
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest$ac_exeext &&
22401 $as_test_x conftest$ac_exeext; then
22402 eval "$as_ac_var=yes"
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 eval "$as_ac_var=no"
22410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22411 conftest$ac_exeext conftest.$ac_ext
22413 ac_res=`eval echo '${'$as_ac_var'}'`
22414 { echo "$as_me:$LINENO: result: $ac_res" >&5
22415 echo "${ECHO_T}$ac_res" >&6; }
22416 if test `eval echo '${'$as_ac_var'}'` = yes; then
22417 cat >>confdefs.h <<_ACEOF
22418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22436 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
22449 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
22456 { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
22457 echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; }
22458 if test "${gl_cv_c_inline_effective+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 if test $ac_cv_c_inline = no; then
22462 gl_cv_c_inline_effective=no
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22474 #ifdef __NO_INLINE__
22475 #error "inline is not effective"
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest.$ac_objext; then
22498 gl_cv_c_inline_effective=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 gl_cv_c_inline_effective=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
22511 echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; }
22512 if test $gl_cv_c_inline_effective = yes; then
22514 cat >>confdefs.h <<\_ACEOF
22515 #define HAVE_INLINE 1
22528 gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
22537 gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
22546 gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
22555 gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
22587 { echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
22588 echo $ECHO_N "checking whether inttypes.h conforms to C99... $ECHO_C" >&6; }
22589 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 gl_cv_header_working_inttypes_h=no
22593 if test "$gl_cv_header_working_stdint_h" = yes \
22594 && test $ac_cv_header_inttypes_h = yes \
22595 && test "$ac_cv_have_decl_imaxabs" = yes \
22596 && test "$ac_cv_have_decl_imaxdiv" = yes \
22597 && test "$ac_cv_have_decl_strtoimax" = yes \
22598 && test "$ac_cv_have_decl_strtoumax" = yes; then
22599 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22607 #include <stddef.h>
22608 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
22609 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
22610 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
22611 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
22612 #include <inttypes.h>
22614 /* No need to duplicate the tests of stdint.m4; they are subsumed by
22615 $gl_cv_header_working_stdint_h = yes. */
22617 /* Tests for macros supposed to be defined in inttypes.h. */
22619 const char *k = /* implicit string concatenation */
22624 PRIo8 PRIu8 PRIx8 PRIX8
22630 PRIo16 PRIu16 PRIx16 PRIX16
22636 PRIo32 PRIu32 PRIx32 PRIX32
22642 PRIo64 PRIu64 PRIx64 PRIX64
22644 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
22645 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
22646 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
22647 PRIdLEAST64 PRIiLEAST64
22648 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
22649 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
22650 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
22651 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
22652 PRIdFAST64 PRIiFAST64
22653 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
22654 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
22659 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
22662 const char *l = /* implicit string concatenation */
22673 SCNo16 SCNu16 SCNx16
22679 SCNo32 SCNu32 SCNx32
22685 SCNo64 SCNu64 SCNx64
22687 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
22688 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
22689 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
22690 SCNdLEAST64 SCNiLEAST64
22691 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
22692 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
22693 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
22694 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
22695 SCNdFAST64 SCNiFAST64
22696 SCNoFAST64 SCNuFAST64 SCNxFAST64
22697 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
22702 SCNoPTR SCNuPTR SCNxPTR
22714 rm -f conftest.$ac_objext
22715 if { (ac_try="$ac_compile"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_compile") 2>conftest.er1
22723 grep -v '^ *+' conftest.er1 >conftest.err
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } && {
22728 test -z "$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22730 } && test -s conftest.$ac_objext; then
22731 gl_cv_header_working_inttypes_h=yes
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 { echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
22743 echo "${ECHO_T}$gl_cv_header_working_inttypes_h" >&6; }
22745 if false && test $gl_cv_header_working_inttypes_h = yes; then
22760 if test $gl_cv_have_include_next = yes; then
22761 gl_cv_next_inttypes_h='<'inttypes.h'>'
22763 { echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
22764 echo $ECHO_N "checking absolute name of <inttypes.h>... $ECHO_C" >&6; }
22765 if test "${gl_cv_next_inttypes_h+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 if test $ac_cv_header_inttypes_h = yes; then
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <inttypes.h>
22779 gl_cv_next_inttypes_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22780 sed -n '\#/inttypes.h#{
22781 s#.*"\(.*/inttypes.h\)".*#\1#
22787 gl_cv_next_inttypes_h='<'inttypes.h'>'
22791 { echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
22792 echo "${ECHO_T}$gl_cv_next_inttypes_h" >&6; }
22794 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
22800 cat >>confdefs.h <<\_ACEOF
22801 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
22808 if test -n "$STDINT_H"; then
22809 PRIPTR_PREFIX='"l"'
22811 for glpfx in '' l ll I64; do
22813 '') gltype1='int';;
22814 l) gltype1='long int';;
22815 ll) gltype1='long long int';;
22816 I64) gltype1='__int64';;
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 #include <stdint.h>
22825 extern intptr_t foo;
22826 extern $gltype1 foo;
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22852 PRIPTR_PREFIX='"'$glpfx'"'
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 test -n "$PRIPTR_PREFIX" && break
22866 if test "$ac_cv_have_decl_imaxabs" = yes; then
22867 HAVE_DECL_IMAXABS=1
22869 HAVE_DECL_IMAXABS=0
22872 if test "$ac_cv_have_decl_imaxdiv" = yes; then
22873 HAVE_DECL_IMAXDIV=1
22875 HAVE_DECL_IMAXDIV=0
22878 if test "$ac_cv_have_decl_strtoimax" = yes; then
22879 HAVE_DECL_STRTOIMAX=1
22881 HAVE_DECL_STRTOIMAX=0
22884 if test "$ac_cv_have_decl_strtoumax" = yes; then
22885 HAVE_DECL_STRTOUMAX=1
22887 HAVE_DECL_STRTOUMAX=0
22891 { echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
22892 echo $ECHO_N "checking whether INT32_MAX < INTMAX_MAX... $ECHO_C" >&6; }
22893 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 cat >conftest.$ac_ext <<_ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22902 /* Work also in C++ mode. */
22903 #define __STDC_LIMIT_MACROS 1
22905 /* Work if build is not clean. */
22906 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22908 #include <limits.h>
22910 #include <stdint.h>
22913 #if defined INT32_MAX && defined INTMAX_MAX
22914 #define CONDITION (INT32_MAX < INTMAX_MAX)
22915 #elif HAVE_LONG_LONG_INT
22916 #define CONDITION (sizeof (int) < sizeof (long long int))
22918 #define CONDITION 0
22920 int test[CONDITION ? 1 : -1];
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_compile") 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } && {
22943 test -z "$ac_c_werror_flag" ||
22944 test ! -s conftest.err
22945 } && test -s conftest.$ac_objext; then
22946 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
22954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
22957 echo "${ECHO_T}$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
22958 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
22959 INT32_MAX_LT_INTMAX_MAX=1;
22961 INT32_MAX_LT_INTMAX_MAX=0;
22966 { echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
22967 echo $ECHO_N "checking whether INT64_MAX == LONG_MAX... $ECHO_C" >&6; }
22968 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 /* Work also in C++ mode. */
22978 #define __STDC_LIMIT_MACROS 1
22980 /* Work if build is not clean. */
22981 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22983 #include <limits.h>
22985 #include <stdint.h>
22988 #if defined INT64_MAX
22989 #define CONDITION (INT64_MAX == LONG_MAX)
22990 #elif HAVE_LONG_LONG_INT
22991 #define CONDITION (sizeof (long long int) == sizeof (long int))
22993 #define CONDITION 0
22995 int test[CONDITION ? 1 : -1];
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
23032 echo "${ECHO_T}$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
23033 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
23034 INT64_MAX_EQ_LONG_MAX=1;
23036 INT64_MAX_EQ_LONG_MAX=0;
23041 { echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
23042 echo $ECHO_N "checking whether UINT32_MAX < UINTMAX_MAX... $ECHO_C" >&6; }
23043 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 /* Work also in C++ mode. */
23053 #define __STDC_LIMIT_MACROS 1
23055 /* Work if build is not clean. */
23056 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23058 #include <limits.h>
23060 #include <stdint.h>
23063 #if defined UINT32_MAX && defined UINTMAX_MAX
23064 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
23065 #elif HAVE_LONG_LONG_INT
23066 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
23068 #define CONDITION 0
23070 int test[CONDITION ? 1 : -1];
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_compile") 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest.$ac_objext; then
23096 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
23107 echo "${ECHO_T}$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
23108 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
23109 UINT32_MAX_LT_UINTMAX_MAX=1;
23111 UINT32_MAX_LT_UINTMAX_MAX=0;
23116 { echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
23117 echo $ECHO_N "checking whether UINT64_MAX == ULONG_MAX... $ECHO_C" >&6; }
23118 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 /* Work also in C++ mode. */
23128 #define __STDC_LIMIT_MACROS 1
23130 /* Work if build is not clean. */
23131 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23133 #include <limits.h>
23135 #include <stdint.h>
23138 #if defined UINT64_MAX
23139 #define CONDITION (UINT64_MAX == ULONG_MAX)
23140 #elif HAVE_LONG_LONG_INT
23141 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
23143 #define CONDITION 0
23145 int test[CONDITION ? 1 : -1];
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23171 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 { echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
23182 echo "${ECHO_T}$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
23183 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
23184 UINT64_MAX_EQ_ULONG_MAX=1;
23186 UINT64_MAX_EQ_ULONG_MAX=0;
23191 INTTYPES_H='inttypes.h'
23206 for ac_func in lchown
23208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23222 #define $ac_func innocuous_$ac_func
23224 /* System header to define __stub macros and hopefully few prototypes,
23225 which can conflict with char $ac_func (); below.
23226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23227 <limits.h> exists even on freestanding compilers. */
23230 # include <limits.h>
23232 # include <assert.h>
23237 /* Override any GCC internal prototype to avoid an error.
23238 Use char because int might match the return type of a GCC
23239 builtin and then its argument prototype would still apply. */
23244 /* The GNU C library defines this for functions which it implements
23245 to always fail with ENOSYS. Some functions are actually named
23246 something starting with __ and the normal name is an alias. */
23247 #if defined __stub_$ac_func || defined __stub___$ac_func
23254 return $ac_func ();
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (ac_try="$ac_link"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_link") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest$ac_exeext &&
23276 $as_test_x conftest$ac_exeext; then
23277 eval "$as_ac_var=yes"
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 eval "$as_ac_var=no"
23285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23286 conftest$ac_exeext conftest.$ac_ext
23288 ac_res=`eval echo '${'$as_ac_var'}'`
23289 { echo "$as_me:$LINENO: result: $ac_res" >&5
23290 echo "${ECHO_T}$ac_res" >&6; }
23291 if test `eval echo '${'$as_ac_var'}'` = yes; then
23292 cat >>confdefs.h <<_ACEOF
23293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23298 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23304 if test $ac_cv_func_lchown = no; then
23322 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23327 { echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23328 echo $ECHO_N "checking whether lseek detects pipes... $ECHO_C" >&6; }
23329 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
23332 if test $cross_compiling = no; then
23333 cat >conftest.$ac_ext <<_ACEOF
23335 #include <sys/types.h> /* for off_t */
23336 #include <stdio.h> /* for SEEK_CUR */
23337 #include <unistd.h>
23340 /* Exit with success only if stdin is seekable. */
23341 return lseek (0, (off_t)0, SEEK_CUR) < 0;
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (ac_try="$ac_link"
23346 case "(($ac_try" in
23347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348 *) ac_try_echo=$ac_try;;
23350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23351 (eval "$ac_link") 2>conftest.er1
23353 grep -v '^ *+' conftest.er1 >conftest.err
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } && {
23358 test -z "$ac_c_werror_flag" ||
23359 test ! -s conftest.err
23360 } && test -s conftest$ac_exeext &&
23361 $as_test_x conftest$ac_exeext; then
23362 if test -s conftest$ac_exeext \
23363 && ./conftest$ac_exeext < conftest.$ac_ext \
23364 && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
23365 gl_cv_func_lseek_pipe=yes
23367 gl_cv_func_lseek_pipe=no
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23373 gl_cv_func_lseek_pipe=no
23376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23377 conftest$ac_exeext conftest.$ac_ext
23379 cat >conftest.$ac_ext <<_ACEOF
23381 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23382 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23403 gl_cv_func_lseek_pipe=yes
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 gl_cv_func_lseek_pipe=no
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23415 echo "${ECHO_T}$gl_cv_func_lseek_pipe" >&6; }
23416 if test $gl_cv_func_lseek_pipe = no; then
23425 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23430 cat >>confdefs.h <<\_ACEOF
23431 #define LSEEK_PIPE_BROKEN 1
23442 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23443 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
23444 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 rm -f conftest.sym conftest.file
23448 echo >conftest.file
23449 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23450 if test "$cross_compiling" = yes; then
23451 ac_cv_func_lstat_dereferences_slashed_symlink=no
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 $ac_includes_default
23464 /* Linux will dereference the symlink and fail.
23465 That is better in the sense that it means we will not
23466 have to compile and use the lstat wrapper. */
23467 return lstat ("conftest.sym/", &sbuf) == 0;
23472 rm -f conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_link") 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483 { (case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_try") 2>&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23494 echo "$as_me: program exited with status $ac_status" >&5
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ( exit $ac_status )
23499 ac_cv_func_lstat_dereferences_slashed_symlink=no
23501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23506 # If the `ln -s' command failed, then we probably don't even
23507 # have an lstat function.
23508 ac_cv_func_lstat_dereferences_slashed_symlink=no
23510 rm -f conftest.sym conftest.file
23513 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23514 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23516 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23518 cat >>confdefs.h <<_ACEOF
23519 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23523 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23531 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23538 for ac_header in stdlib.h
23540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23547 ac_res=`eval echo '${'$as_ac_Header'}'`
23548 { echo "$as_me:$LINENO: result: $ac_res" >&5
23549 echo "${ECHO_T}$ac_res" >&6; }
23551 # Is the header compilable?
23552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 $ac_includes_default
23561 #include <$ac_header>
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570 (eval "$ac_compile") 2>conftest.er1
23572 grep -v '^ *+' conftest.er1 >conftest.err
23574 cat conftest.err >&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && {
23577 test -z "$ac_c_werror_flag" ||
23578 test ! -s conftest.err
23579 } && test -s conftest.$ac_objext; then
23580 ac_header_compiler=yes
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ac_header_compiler=no
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23590 echo "${ECHO_T}$ac_header_compiler" >&6; }
23592 # Is the header present?
23593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23595 cat >conftest.$ac_ext <<_ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23601 #include <$ac_header>
23603 if { (ac_try="$ac_cpp conftest.$ac_ext"
23604 case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } >/dev/null && {
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23619 ac_header_preproc=yes
23621 echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_header_preproc=no
23627 rm -f conftest.err conftest.$ac_ext
23628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629 echo "${ECHO_T}$ac_header_preproc" >&6; }
23631 # So? What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638 ac_header_preproc=yes
23641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23654 ## ------------------------------ ##
23655 ## Report this to bug-tar@gnu.org ##
23656 ## ------------------------------ ##
23658 ) | sed "s/^/$as_me: WARNING: /" >&2
23661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 eval "$as_ac_Header=\$ac_header_preproc"
23668 ac_res=`eval echo '${'$as_ac_Header'}'`
23669 { echo "$as_me:$LINENO: result: $ac_res" >&5
23670 echo "${ECHO_T}$ac_res" >&6; }
23673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23674 cat >>confdefs.h <<_ACEOF
23675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23682 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23683 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
23684 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 if test "$cross_compiling" = yes; then
23688 ac_cv_func_malloc_0_nonnull=no
23690 cat >conftest.$ac_ext <<_ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23697 # include <stdlib.h>
23705 return ! malloc (0);
23710 rm -f conftest$ac_exeext
23711 if { (ac_try="$ac_link"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_link") 2>&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23721 { (case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_try") 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 ac_cv_func_malloc_0_nonnull=yes
23732 echo "$as_me: program exited with status $ac_status" >&5
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ( exit $ac_status )
23737 ac_cv_func_malloc_0_nonnull=no
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23744 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23745 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
23746 if test $ac_cv_func_malloc_0_nonnull = yes; then
23748 cat >>confdefs.h <<\_ACEOF
23749 #define HAVE_MALLOC 1
23753 cat >>confdefs.h <<\_ACEOF
23754 #define HAVE_MALLOC 0
23764 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23767 cat >>confdefs.h <<\_ACEOF
23768 #define malloc rpl_malloc
23776 cat >>confdefs.h <<\_ACEOF
23777 #define GNULIB_MALLOC_GNU 1
23782 if test $gl_cv_func_malloc_posix = yes; then
23783 HAVE_MALLOC_POSIX=1
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_MALLOC_POSIX 1
23797 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23799 HAVE_MALLOC_POSIX=0
23805 GNULIB_MALLOC_POSIX=1
23822 GNULIB_MBSCASECMP=1
23838 for ac_func in memchr
23840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 cat >conftest.$ac_ext <<_ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h. */
23852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23854 #define $ac_func innocuous_$ac_func
23856 /* System header to define __stub macros and hopefully few prototypes,
23857 which can conflict with char $ac_func (); below.
23858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23859 <limits.h> exists even on freestanding compilers. */
23862 # include <limits.h>
23864 # include <assert.h>
23869 /* Override any GCC internal prototype to avoid an error.
23870 Use char because int might match the return type of a GCC
23871 builtin and then its argument prototype would still apply. */
23876 /* The GNU C library defines this for functions which it implements
23877 to always fail with ENOSYS. Some functions are actually named
23878 something starting with __ and the normal name is an alias. */
23879 #if defined __stub_$ac_func || defined __stub___$ac_func
23886 return $ac_func ();
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_link") 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest$ac_exeext &&
23908 $as_test_x conftest$ac_exeext; then
23909 eval "$as_ac_var=yes"
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 eval "$as_ac_var=no"
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918 conftest$ac_exeext conftest.$ac_ext
23920 ac_res=`eval echo '${'$as_ac_var'}'`
23921 { echo "$as_me:$LINENO: result: $ac_res" >&5
23922 echo "${ECHO_T}$ac_res" >&6; }
23923 if test `eval echo '${'$as_ac_var'}'` = yes; then
23924 cat >>confdefs.h <<_ACEOF
23925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23930 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23936 if test $ac_cv_func_memchr = no; then
23939 for ac_header in bp-sym.h
23941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 ac_res=`eval echo '${'$as_ac_Header'}'`
23949 { echo "$as_me:$LINENO: result: $ac_res" >&5
23950 echo "${ECHO_T}$ac_res" >&6; }
23952 # Is the header compilable?
23953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 $ac_includes_default
23962 #include <$ac_header>
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
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_compile") 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); } && {
23978 test -z "$ac_c_werror_flag" ||
23979 test ! -s conftest.err
23980 } && test -s conftest.$ac_objext; then
23981 ac_header_compiler=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_header_compiler=no
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23991 echo "${ECHO_T}$ac_header_compiler" >&6; }
23993 # Is the header present?
23994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 #include <$ac_header>
24004 if { (ac_try="$ac_cpp conftest.$ac_ext"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24012 grep -v '^ *+' conftest.er1 >conftest.err
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } >/dev/null && {
24017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24020 ac_header_preproc=yes
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_header_preproc=no
24028 rm -f conftest.err conftest.$ac_ext
24029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24030 echo "${ECHO_T}$ac_header_preproc" >&6; }
24032 # So? What about this header?
24033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24039 ac_header_preproc=yes
24042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24055 ## ------------------------------ ##
24056 ## Report this to bug-tar@gnu.org ##
24057 ## ------------------------------ ##
24059 ) | sed "s/^/$as_me: WARNING: /" >&2
24062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 eval "$as_ac_Header=\$ac_header_preproc"
24069 ac_res=`eval echo '${'$as_ac_Header'}'`
24070 { echo "$as_me:$LINENO: result: $ac_res" >&5
24071 echo "${ECHO_T}$ac_res" >&6; }
24074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24075 cat >>confdefs.h <<_ACEOF
24076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24100 for ac_func in mempcpy
24102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24116 #define $ac_func innocuous_$ac_func
24118 /* System header to define __stub macros and hopefully few prototypes,
24119 which can conflict with char $ac_func (); below.
24120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24121 <limits.h> exists even on freestanding compilers. */
24124 # include <limits.h>
24126 # include <assert.h>
24131 /* Override any GCC internal prototype to avoid an error.
24132 Use char because int might match the return type of a GCC
24133 builtin and then its argument prototype would still apply. */
24138 /* The GNU C library defines this for functions which it implements
24139 to always fail with ENOSYS. Some functions are actually named
24140 something starting with __ and the normal name is an alias. */
24141 #if defined __stub_$ac_func || defined __stub___$ac_func
24148 return $ac_func ();
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (ac_try="$ac_link"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160 (eval "$ac_link") 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest$ac_exeext &&
24170 $as_test_x conftest$ac_exeext; then
24171 eval "$as_ac_var=yes"
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 eval "$as_ac_var=no"
24179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24180 conftest$ac_exeext conftest.$ac_ext
24182 ac_res=`eval echo '${'$as_ac_var'}'`
24183 { echo "$as_me:$LINENO: result: $ac_res" >&5
24184 echo "${ECHO_T}$ac_res" >&6; }
24185 if test `eval echo '${'$as_ac_var'}'` = yes; then
24186 cat >>confdefs.h <<_ACEOF
24187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24192 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24198 if test $ac_cv_func_mempcpy = no; then
24217 if test $ac_cv_have_decl_memrchr = no; then
24218 HAVE_DECL_MEMRCHR=0
24229 for ac_func in memrchr
24231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 cat >conftest.$ac_ext <<_ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24245 #define $ac_func innocuous_$ac_func
24247 /* System header to define __stub macros and hopefully few prototypes,
24248 which can conflict with char $ac_func (); below.
24249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24250 <limits.h> exists even on freestanding compilers. */
24253 # include <limits.h>
24255 # include <assert.h>
24260 /* Override any GCC internal prototype to avoid an error.
24261 Use char because int might match the return type of a GCC
24262 builtin and then its argument prototype would still apply. */
24267 /* The GNU C library defines this for functions which it implements
24268 to always fail with ENOSYS. Some functions are actually named
24269 something starting with __ and the normal name is an alias. */
24270 #if defined __stub_$ac_func || defined __stub___$ac_func
24277 return $ac_func ();
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_link") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest$ac_exeext &&
24299 $as_test_x conftest$ac_exeext; then
24300 eval "$as_ac_var=yes"
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 eval "$as_ac_var=no"
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309 conftest$ac_exeext conftest.$ac_ext
24311 ac_res=`eval echo '${'$as_ac_var'}'`
24312 { echo "$as_me:$LINENO: result: $ac_res" >&5
24313 echo "${ECHO_T}$ac_res" >&6; }
24314 if test `eval echo '${'$as_ac_var'}'` = yes; then
24315 cat >>confdefs.h <<_ACEOF
24316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24321 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24327 if test $ac_cv_func_memrchr = no; then
24344 for ac_func in memset
24346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24360 #define $ac_func innocuous_$ac_func
24362 /* System header to define __stub macros and hopefully few prototypes,
24363 which can conflict with char $ac_func (); below.
24364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24365 <limits.h> exists even on freestanding compilers. */
24368 # include <limits.h>
24370 # include <assert.h>
24375 /* Override any GCC internal prototype to avoid an error.
24376 Use char because int might match the return type of a GCC
24377 builtin and then its argument prototype would still apply. */
24382 /* The GNU C library defines this for functions which it implements
24383 to always fail with ENOSYS. Some functions are actually named
24384 something starting with __ and the normal name is an alias. */
24385 #if defined __stub_$ac_func || defined __stub___$ac_func
24392 return $ac_func ();
24397 rm -f conftest.$ac_objext conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } && {
24411 test -z "$ac_c_werror_flag" ||
24412 test ! -s conftest.err
24413 } && test -s conftest$ac_exeext &&
24414 $as_test_x conftest$ac_exeext; then
24415 eval "$as_ac_var=yes"
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 eval "$as_ac_var=no"
24423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24424 conftest$ac_exeext conftest.$ac_ext
24426 ac_res=`eval echo '${'$as_ac_var'}'`
24427 { echo "$as_me:$LINENO: result: $ac_res" >&5
24428 echo "${ECHO_T}$ac_res" >&6; }
24429 if test `eval echo '${'$as_ac_var'}'` = yes; then
24430 cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24436 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24442 if test $ac_cv_func_memset = no; then
24458 for ac_func in mkdtemp
24460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24474 #define $ac_func innocuous_$ac_func
24476 /* System header to define __stub macros and hopefully few prototypes,
24477 which can conflict with char $ac_func (); below.
24478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24479 <limits.h> exists even on freestanding compilers. */
24482 # include <limits.h>
24484 # include <assert.h>
24489 /* Override any GCC internal prototype to avoid an error.
24490 Use char because int might match the return type of a GCC
24491 builtin and then its argument prototype would still apply. */
24496 /* The GNU C library defines this for functions which it implements
24497 to always fail with ENOSYS. Some functions are actually named
24498 something starting with __ and the normal name is an alias. */
24499 #if defined __stub_$ac_func || defined __stub___$ac_func
24506 return $ac_func ();
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_link") 2>conftest.er1
24520 grep -v '^ *+' conftest.er1 >conftest.err
24522 cat conftest.err >&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } && {
24525 test -z "$ac_c_werror_flag" ||
24526 test ! -s conftest.err
24527 } && test -s conftest$ac_exeext &&
24528 $as_test_x conftest$ac_exeext; then
24529 eval "$as_ac_var=yes"
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24534 eval "$as_ac_var=no"
24537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24538 conftest$ac_exeext conftest.$ac_ext
24540 ac_res=`eval echo '${'$as_ac_var'}'`
24541 { echo "$as_me:$LINENO: result: $ac_res" >&5
24542 echo "${ECHO_T}$ac_res" >&6; }
24543 if test `eval echo '${'$as_ac_var'}'` = yes; then
24544 cat >>confdefs.h <<_ACEOF
24545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24550 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24556 if test $ac_cv_func_mkdtemp = no; then
24579 { echo "$as_me:$LINENO: checking for working mktime" >&5
24580 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
24581 if test "${ac_cv_func_working_mktime+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 if test "$cross_compiling" = yes; then
24585 ac_cv_func_working_mktime=no
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 /* Test program from Paul Eggert and Tony Leneis. */
24594 #include <limits.h>
24595 #include <stdlib.h>
24598 #ifdef HAVE_UNISTD_H
24599 # include <unistd.h>
24603 # define alarm(X) /* empty */
24606 /* Work around redefinition to rpl_putenv by other config tests. */
24609 static time_t time_t_max;
24610 static time_t time_t_min;
24612 /* Values we'll use to set the TZ environment variable. */
24613 static char *tz_strings[] = {
24614 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24615 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24617 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24619 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24620 Based on a problem report from Andreas Jaeger. */
24622 spring_forward_gap ()
24624 /* glibc (up to about 1998-10-07) failed this test. */
24627 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24628 instead of "TZ=America/Vancouver" in order to detect the bug even
24629 on systems that don't support the Olson extension, or don't have the
24630 full zoneinfo tables installed. */
24631 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24640 return mktime (&tm) != (time_t) -1;
24648 return ! (lt = localtime (&now)) || mktime (lt) == now;
24655 return (mktime_test1 (now)
24656 && mktime_test1 ((time_t) (time_t_max - now))
24657 && mktime_test1 ((time_t) (time_t_min + now)));
24663 /* Based on code from Ariel Faigon. */
24673 return tm.tm_mon == 2 && tm.tm_mday == 31;
24682 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24683 now = mktime (&tm);
24684 if (now != (time_t) -1)
24686 struct tm *lt = localtime (&now);
24688 && lt->tm_year == tm.tm_year
24689 && lt->tm_mon == tm.tm_mon
24690 && lt->tm_mday == tm.tm_mday
24691 && lt->tm_hour == tm.tm_hour
24692 && lt->tm_min == tm.tm_min
24693 && lt->tm_sec == tm.tm_sec
24694 && lt->tm_yday == tm.tm_yday
24695 && lt->tm_wday == tm.tm_wday
24696 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24697 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24706 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24707 ignoring leap seconds. */
24708 unsigned long int answer = 2527315200UL;
24712 tm.tm_year = 2050 - 1900;
24715 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24718 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24719 instead of "TZ=America/Vancouver" in order to detect the bug even
24720 on systems that don't support the Olson extension, or don't have the
24721 full zoneinfo tables installed. */
24722 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24726 /* Check that the result is either a failure, or close enough
24727 to the correct answer that we can assume the discrepancy is
24728 due to leap seconds. */
24729 return (t == (time_t) -1
24730 || (0 < t && answer - 120 <= t && t <= answer + 120));
24739 /* This test makes some buggy mktime implementations loop.
24740 Give up after 60 seconds; a mktime slower than that
24741 isn't worth using anyway. */
24746 t = (time_t_max << 1) + 1;
24747 if (t <= time_t_max)
24751 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
24753 delta = time_t_max / 997; /* a suitable prime number */
24754 for (i = 0; i < N_STRINGS; i++)
24757 putenv (tz_strings[i]);
24759 for (t = 0; t <= time_t_max - delta; t += delta)
24760 if (! mktime_test (t))
24762 if (! (mktime_test ((time_t) 1)
24763 && mktime_test ((time_t) (60 * 60))
24764 && mktime_test ((time_t) (60 * 60 * 24))))
24767 for (j = 1; ; j <<= 1)
24768 if (! bigtime_test (j))
24770 else if (INT_MAX / 2 < j)
24772 if (! bigtime_test (INT_MAX))
24775 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24789 { (case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_try") 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_cv_func_working_mktime=yes
24800 echo "$as_me: program exited with status $ac_status" >&5
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ( exit $ac_status )
24805 ac_cv_func_working_mktime=no
24807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24813 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
24814 if test $ac_cv_func_working_mktime = no; then
24822 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24826 if test $ac_cv_func_working_mktime = no; then
24828 cat >>confdefs.h <<\_ACEOF
24829 #define mktime rpl_mktime
24845 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
24858 { echo "$as_me:$LINENO: checking for obstacks" >&5
24859 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
24860 if test "${ac_cv_func_obstack+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24870 #include "obstack.h"
24874 struct obstack mem;
24875 #define obstack_chunk_alloc malloc
24876 #define obstack_chunk_free free
24877 obstack_init (&mem);
24878 obstack_free (&mem, 0);
24883 rm -f conftest.$ac_objext conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_link") 2>conftest.er1
24892 grep -v '^ *+' conftest.er1 >conftest.err
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && {
24897 test -z "$ac_c_werror_flag" ||
24898 test ! -s conftest.err
24899 } && test -s conftest$ac_exeext &&
24900 $as_test_x conftest$ac_exeext; then
24901 ac_cv_func_obstack=yes
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_cv_func_obstack=no
24909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24910 conftest$ac_exeext conftest.$ac_ext
24912 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
24913 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
24914 if test $ac_cv_func_obstack = yes; then
24916 cat >>confdefs.h <<\_ACEOF
24917 #define HAVE_OBSTACK 1
24928 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
24940 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
24977 for ac_func in fchmodat mkdirat openat
24979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24993 #define $ac_func innocuous_$ac_func
24995 /* System header to define __stub macros and hopefully few prototypes,
24996 which can conflict with char $ac_func (); below.
24997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24998 <limits.h> exists even on freestanding compilers. */
25001 # include <limits.h>
25003 # include <assert.h>
25008 /* Override any GCC internal prototype to avoid an error.
25009 Use char because int might match the return type of a GCC
25010 builtin and then its argument prototype would still apply. */
25015 /* The GNU C library defines this for functions which it implements
25016 to always fail with ENOSYS. Some functions are actually named
25017 something starting with __ and the normal name is an alias. */
25018 #if defined __stub_$ac_func || defined __stub___$ac_func
25025 return $ac_func ();
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_link") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest$ac_exeext &&
25047 $as_test_x conftest$ac_exeext; then
25048 eval "$as_ac_var=yes"
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 eval "$as_ac_var=no"
25056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25057 conftest$ac_exeext conftest.$ac_ext
25059 ac_res=`eval echo '${'$as_ac_var'}'`
25060 { echo "$as_me:$LINENO: result: $ac_res" >&5
25061 echo "${ECHO_T}$ac_res" >&6; }
25062 if test `eval echo '${'$as_ac_var'}'` = yes; then
25063 cat >>confdefs.h <<_ACEOF
25064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25069 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25075 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
25084 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
25088 cat >>confdefs.h <<\_ACEOF
25089 #define __OPENAT_PREFIX rpl_
25097 # Assume we'll use the replacement function.
25098 # The only case in which we won't is when we have fchownat, and it works.
25099 use_replacement_fchownat=yes
25101 { echo "$as_me:$LINENO: checking for fchownat" >&5
25102 echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
25103 if test "${ac_cv_func_fchownat+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25106 cat >conftest.$ac_ext <<_ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
25113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25114 #define fchownat innocuous_fchownat
25116 /* System header to define __stub macros and hopefully few prototypes,
25117 which can conflict with char fchownat (); below.
25118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25119 <limits.h> exists even on freestanding compilers. */
25122 # include <limits.h>
25124 # include <assert.h>
25129 /* Override any GCC internal prototype to avoid an error.
25130 Use char because int might match the return type of a GCC
25131 builtin and then its argument prototype would still apply. */
25136 /* The GNU C library defines this for functions which it implements
25137 to always fail with ENOSYS. Some functions are actually named
25138 something starting with __ and the normal name is an alias. */
25139 #if defined __stub_fchownat || defined __stub___fchownat
25146 return fchownat ();
25151 rm -f conftest.$ac_objext conftest$ac_exeext
25152 if { (ac_try="$ac_link"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_link") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest$ac_exeext &&
25168 $as_test_x conftest$ac_exeext; then
25169 ac_cv_func_fchownat=yes
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_func_fchownat=no
25177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25178 conftest$ac_exeext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
25181 echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
25182 if test $ac_cv_func_fchownat = yes; then
25188 if test $have_fchownat = yes; then
25190 { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
25191 echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
25192 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25196 gl_dangle=conftest.dangle
25197 # Remove any remnants of a previous test.
25199 # Arrange for deletion of the temporary file this test creates.
25200 ac_clean_files="$ac_clean_files $gl_dangle"
25201 ln -s conftest.no-such $gl_dangle
25202 if test "$cross_compiling" = yes; then
25203 gl_cv_func_fchownat_nofollow_works=no
25205 cat >conftest.$ac_ext <<_ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h. */
25213 #include <unistd.h>
25214 #include <stdlib.h>
25216 #include <sys/types.h>
25220 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
25221 AT_SYMLINK_NOFOLLOW) != 0
25222 && errno == ENOENT);
25226 rm -f conftest$ac_exeext
25227 if { (ac_try="$ac_link"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_link") 2>&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25237 { (case "(($ac_try" in
25238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25239 *) ac_try_echo=$ac_try;;
25241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25242 (eval "$ac_try") 2>&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; }; then
25246 gl_cv_func_fchownat_nofollow_works=yes
25248 echo "$as_me: program exited with status $ac_status" >&5
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ( exit $ac_status )
25253 gl_cv_func_fchownat_nofollow_works=no
25255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25261 { echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
25262 echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
25263 if test $gl_cv_func_fchownat_nofollow_works = no; then
25266 use_replacement_fchownat=no
25272 if test $use_replacement_fchownat = yes; then
25280 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
25283 cat >>confdefs.h <<\_ACEOF
25284 #define fchownat rpl_fchownat
25306 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
25318 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
25327 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
25328 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
25329 if test "${ac_cv_type_mbstate_t+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25332 cat >conftest.$ac_ext <<_ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 $ac_includes_default
25339 # include <wchar.h>
25343 mbstate_t x; return sizeof x;
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25365 ac_cv_type_mbstate_t=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_cv_type_mbstate_t=no
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25376 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25377 if test $ac_cv_type_mbstate_t = yes; then
25379 cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_MBSTATE_T 1
25385 cat >>confdefs.h <<\_ACEOF
25386 #define mbstate_t int
25391 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25392 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
25393 if test "${gl_cv_func_mbrtowc+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 cat >conftest.$ac_ext <<_ACEOF
25399 cat confdefs.h >>conftest.$ac_ext
25400 cat >>conftest.$ac_ext <<_ACEOF
25401 /* end confdefs.h. */
25407 char const s[] = "";
25410 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
25415 rm -f conftest.$ac_objext conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422 (eval "$ac_link") 2>conftest.er1
25424 grep -v '^ *+' conftest.er1 >conftest.err
25426 cat conftest.err >&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } && {
25429 test -z "$ac_c_werror_flag" ||
25430 test ! -s conftest.err
25431 } && test -s conftest$ac_exeext &&
25432 $as_test_x conftest$ac_exeext; then
25433 gl_cv_func_mbrtowc=yes
25435 echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 gl_cv_func_mbrtowc=no
25441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25442 conftest$ac_exeext conftest.$ac_ext
25444 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
25445 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
25446 if test $gl_cv_func_mbrtowc = yes; then
25448 cat >>confdefs.h <<\_ACEOF
25449 #define HAVE_MBRTOWC 1
25463 if test $ac_cv_func_readlink = no; then
25472 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25485 if test $gl_cv_func_malloc_posix = yes; then
25486 HAVE_REALLOC_POSIX=1
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_REALLOC_POSIX 1
25500 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25502 HAVE_REALLOC_POSIX=0
25508 GNULIB_REALLOC_POSIX=1
25519 # Check whether --with-included-regex was given.
25520 if test "${with_included_regex+set}" = set; then
25521 withval=$with_included_regex;
25525 case $with_included_regex in #(
25526 yes|no) ac_use_included_regex=$with_included_regex
25529 # If the system regex support is good enough that it passes the
25530 # following run test, then default to *not* using the included regex.c.
25531 # If cross compiling, assume the test would fail and use the included
25533 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25534 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
25535 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 if test "$cross_compiling" = yes; then
25539 gl_cv_func_re_compile_pattern_working=no
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 $ac_includes_default
25549 #include <locale.h>
25551 #include <limits.h>
25557 static struct re_pattern_buffer regex;
25558 unsigned char folded_chars[UCHAR_MAX + 1];
25561 struct re_registers regs;
25564 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25565 This test needs valgrind to catch the bug on Debian
25566 GNU/Linux 3.1 x86, but it might catch the bug better
25567 on other platforms and it shouldn't hurt to try the
25569 if (setlocale (LC_ALL, "en_US.UTF-8"))
25571 static char const pat[] = "insert into";
25572 static char const data[] =
25573 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25574 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25576 memset (®ex, 0, sizeof regex);
25577 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
25580 if (re_search (®ex, data, sizeof data - 1,
25581 0, sizeof data - 1, ®s)
25584 if (! setlocale (LC_ALL, "C"))
25589 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
25590 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25591 memset (®ex, 0, sizeof regex);
25592 s = re_compile_pattern ("a[^x]b", 6, ®ex);
25596 /* This should fail, but succeeds for glibc-2.5. */
25597 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
25600 /* This regular expression is from Spencer ere test number 75
25602 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25603 memset (®ex, 0, sizeof regex);
25604 for (i = 0; i <= UCHAR_MAX; i++)
25605 folded_chars[i] = i;
25606 regex.translate = folded_chars;
25607 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
25608 /* This should fail with _Invalid character class name_ error. */
25612 /* This should succeed, but does not for glibc-2.1.3. */
25613 memset (®ex, 0, sizeof regex);
25614 s = re_compile_pattern ("{1", 2, ®ex);
25619 /* The following example is derived from a problem report
25620 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
25621 memset (®ex, 0, sizeof regex);
25622 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
25626 /* This should match, but does not for glibc-2.2.1. */
25627 if (re_match (®ex, "an", 2, 0, ®s) != 2)
25630 memset (®ex, 0, sizeof regex);
25631 s = re_compile_pattern ("x", 1, ®ex);
25635 /* glibc-2.2.93 does not work with a negative RANGE argument. */
25636 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
25639 /* The version of regex.c in older versions of gnulib
25640 ignored RE_ICASE. Detect that problem too. */
25641 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25642 memset (®ex, 0, sizeof regex);
25643 s = re_compile_pattern ("x", 1, ®ex);
25647 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
25650 /* Catch a bug reported by Vin Shelton in
25651 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
25653 re_set_syntax (RE_SYNTAX_POSIX_BASIC
25654 & ~RE_CONTEXT_INVALID_DUP
25655 & ~RE_NO_EMPTY_RANGES);
25656 memset (®ex, 0, sizeof regex);
25657 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
25661 /* REG_STARTEND was added to glibc on 2004-01-15.
25662 Reject older versions. */
25663 if (! REG_STARTEND)
25666 /* Reject hosts whose regoff_t values are too narrow.
25667 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
25669 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
25670 || sizeof (regoff_t) < sizeof (ssize_t))
25678 rm -f conftest$ac_exeext
25679 if { (ac_try="$ac_link"
25680 case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685 (eval "$ac_link") 2>&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25689 { (case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694 (eval "$ac_try") 2>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; }; then
25698 gl_cv_func_re_compile_pattern_working=yes
25700 echo "$as_me: program exited with status $ac_status" >&5
25701 echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25704 ( exit $ac_status )
25705 gl_cv_func_re_compile_pattern_working=no
25707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25712 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
25713 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
25714 case $gl_cv_func_re_compile_pattern_working in #(
25715 yes) ac_use_included_regex=no;; #(
25716 no) ac_use_included_regex=yes;;
25719 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
25720 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
25721 { (exit 1); exit 1; }; }
25725 if test $ac_use_included_regex = yes; then
25727 cat >>confdefs.h <<\_ACEOF
25728 #define _REGEX_LARGE_OFFSETS 1
25732 cat >>confdefs.h <<\_ACEOF
25733 #define re_syntax_options rpl_re_syntax_options
25737 cat >>confdefs.h <<\_ACEOF
25738 #define re_set_syntax rpl_re_set_syntax
25742 cat >>confdefs.h <<\_ACEOF
25743 #define re_compile_pattern rpl_re_compile_pattern
25747 cat >>confdefs.h <<\_ACEOF
25748 #define re_compile_fastmap rpl_re_compile_fastmap
25752 cat >>confdefs.h <<\_ACEOF
25753 #define re_search rpl_re_search
25757 cat >>confdefs.h <<\_ACEOF
25758 #define re_search_2 rpl_re_search_2
25762 cat >>confdefs.h <<\_ACEOF
25763 #define re_match rpl_re_match
25767 cat >>confdefs.h <<\_ACEOF
25768 #define re_match_2 rpl_re_match_2
25772 cat >>confdefs.h <<\_ACEOF
25773 #define re_set_registers rpl_re_set_registers
25777 cat >>confdefs.h <<\_ACEOF
25778 #define re_comp rpl_re_comp
25782 cat >>confdefs.h <<\_ACEOF
25783 #define re_exec rpl_re_exec
25787 cat >>confdefs.h <<\_ACEOF
25788 #define regcomp rpl_regcomp
25792 cat >>confdefs.h <<\_ACEOF
25793 #define regexec rpl_regexec
25797 cat >>confdefs.h <<\_ACEOF
25798 #define regerror rpl_regerror
25802 cat >>confdefs.h <<\_ACEOF
25803 #define regfree rpl_regfree
25813 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
25833 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
25834 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
25835 if test "${ac_cv_have_decl_isblank+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25864 (eval "$ac_compile") 2>conftest.er1
25866 grep -v '^ *+' conftest.er1 >conftest.err
25868 cat conftest.err >&5
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } && {
25871 test -z "$ac_c_werror_flag" ||
25872 test ! -s conftest.err
25873 } && test -s conftest.$ac_objext; then
25874 ac_cv_have_decl_isblank=yes
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25879 ac_cv_have_decl_isblank=no
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
25885 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
25886 if test $ac_cv_have_decl_isblank = yes; then
25888 cat >>confdefs.h <<_ACEOF
25889 #define HAVE_DECL_ISBLANK 1
25894 cat >>confdefs.h <<_ACEOF
25895 #define HAVE_DECL_ISBLANK 0
25914 for ac_func in rmdir
25916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25930 #define $ac_func innocuous_$ac_func
25932 /* System header to define __stub macros and hopefully few prototypes,
25933 which can conflict with char $ac_func (); below.
25934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25935 <limits.h> exists even on freestanding compilers. */
25938 # include <limits.h>
25940 # include <assert.h>
25945 /* Override any GCC internal prototype to avoid an error.
25946 Use char because int might match the return type of a GCC
25947 builtin and then its argument prototype would still apply. */
25952 /* The GNU C library defines this for functions which it implements
25953 to always fail with ENOSYS. Some functions are actually named
25954 something starting with __ and the normal name is an alias. */
25955 #if defined __stub_$ac_func || defined __stub___$ac_func
25962 return $ac_func ();
25967 rm -f conftest.$ac_objext conftest$ac_exeext
25968 if { (ac_try="$ac_link"
25969 case "(($ac_try" in
25970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971 *) ac_try_echo=$ac_try;;
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974 (eval "$ac_link") 2>conftest.er1
25976 grep -v '^ *+' conftest.er1 >conftest.err
25978 cat conftest.err >&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); } && {
25981 test -z "$ac_c_werror_flag" ||
25982 test ! -s conftest.err
25983 } && test -s conftest$ac_exeext &&
25984 $as_test_x conftest$ac_exeext; then
25985 eval "$as_ac_var=yes"
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 eval "$as_ac_var=no"
25993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25994 conftest$ac_exeext conftest.$ac_ext
25996 ac_res=`eval echo '${'$as_ac_var'}'`
25997 { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000 cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26006 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26022 for ac_func in rpmatch
26024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26030 cat >conftest.$ac_ext <<_ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h. */
26036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26038 #define $ac_func innocuous_$ac_func
26040 /* System header to define __stub macros and hopefully few prototypes,
26041 which can conflict with char $ac_func (); below.
26042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26043 <limits.h> exists even on freestanding compilers. */
26046 # include <limits.h>
26048 # include <assert.h>
26053 /* Override any GCC internal prototype to avoid an error.
26054 Use char because int might match the return type of a GCC
26055 builtin and then its argument prototype would still apply. */
26060 /* The GNU C library defines this for functions which it implements
26061 to always fail with ENOSYS. Some functions are actually named
26062 something starting with __ and the normal name is an alias. */
26063 #if defined __stub_$ac_func || defined __stub___$ac_func
26070 return $ac_func ();
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (ac_try="$ac_link"
26077 case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082 (eval "$ac_link") 2>conftest.er1
26084 grep -v '^ *+' conftest.er1 >conftest.err
26086 cat conftest.err >&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } && {
26089 test -z "$ac_c_werror_flag" ||
26090 test ! -s conftest.err
26091 } && test -s conftest$ac_exeext &&
26092 $as_test_x conftest$ac_exeext; then
26093 eval "$as_ac_var=yes"
26095 echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 eval "$as_ac_var=no"
26101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26102 conftest$ac_exeext conftest.$ac_ext
26104 ac_res=`eval echo '${'$as_ac_var'}'`
26105 { echo "$as_me:$LINENO: result: $ac_res" >&5
26106 echo "${ECHO_T}$ac_res" >&6; }
26107 if test `eval echo '${'$as_ac_var'}'` = yes; then
26108 cat >>confdefs.h <<_ACEOF
26109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26114 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
26120 if test $ac_cv_func_rpmatch = no; then
26132 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26147 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26164 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
26181 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
26192 if test $ac_cv_func_setenv = no; then
26201 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
26213 for ac_header in search.h
26215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 ac_res=`eval echo '${'$as_ac_Header'}'`
26223 { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26226 # Is the header compilable?
26227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26229 cat >conftest.$ac_ext <<_ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 $ac_includes_default
26236 #include <$ac_header>
26238 rm -f conftest.$ac_objext
26239 if { (ac_try="$ac_compile"
26240 case "(($ac_try" in
26241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242 *) ac_try_echo=$ac_try;;
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245 (eval "$ac_compile") 2>conftest.er1
26247 grep -v '^ *+' conftest.er1 >conftest.err
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } && {
26252 test -z "$ac_c_werror_flag" ||
26253 test ! -s conftest.err
26254 } && test -s conftest.$ac_objext; then
26255 ac_header_compiler=yes
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26260 ac_header_compiler=no
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26265 echo "${ECHO_T}$ac_header_compiler" >&6; }
26267 # Is the header present?
26268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 #include <$ac_header>
26278 if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 case "(($ac_try" in
26280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 *) ac_try_echo=$ac_try;;
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26286 grep -v '^ *+' conftest.er1 >conftest.err
26288 cat conftest.err >&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } >/dev/null && {
26291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292 test ! -s conftest.err
26294 ac_header_preproc=yes
26296 echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26299 ac_header_preproc=no
26302 rm -f conftest.err conftest.$ac_ext
26303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26304 echo "${ECHO_T}$ac_header_preproc" >&6; }
26306 # So? What about this header?
26307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26313 ac_header_preproc=yes
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26329 ## ------------------------------ ##
26330 ## Report this to bug-tar@gnu.org ##
26331 ## ------------------------------ ##
26333 ) | sed "s/^/$as_me: WARNING: /" >&2
26336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 eval "$as_ac_Header=\$ac_header_preproc"
26343 ac_res=`eval echo '${'$as_ac_Header'}'`
26344 { echo "$as_me:$LINENO: result: $ac_res" >&5
26345 echo "${ECHO_T}$ac_res" >&6; }
26348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26349 cat >>confdefs.h <<_ACEOF
26350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26358 for ac_func in tsearch
26360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26364 echo $ECHO_N "(cached) $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26374 #define $ac_func innocuous_$ac_func
26376 /* System header to define __stub macros and hopefully few prototypes,
26377 which can conflict with char $ac_func (); below.
26378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26379 <limits.h> exists even on freestanding compilers. */
26382 # include <limits.h>
26384 # include <assert.h>
26389 /* Override any GCC internal prototype to avoid an error.
26390 Use char because int might match the return type of a GCC
26391 builtin and then its argument prototype would still apply. */
26396 /* The GNU C library defines this for functions which it implements
26397 to always fail with ENOSYS. Some functions are actually named
26398 something starting with __ and the normal name is an alias. */
26399 #if defined __stub_$ac_func || defined __stub___$ac_func
26406 return $ac_func ();
26411 rm -f conftest.$ac_objext conftest$ac_exeext
26412 if { (ac_try="$ac_link"
26413 case "(($ac_try" in
26414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415 *) ac_try_echo=$ac_try;;
26417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26418 (eval "$ac_link") 2>conftest.er1
26420 grep -v '^ *+' conftest.er1 >conftest.err
26422 cat conftest.err >&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); } && {
26425 test -z "$ac_c_werror_flag" ||
26426 test ! -s conftest.err
26427 } && test -s conftest$ac_exeext &&
26428 $as_test_x conftest$ac_exeext; then
26429 eval "$as_ac_var=yes"
26431 echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26434 eval "$as_ac_var=no"
26437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26438 conftest$ac_exeext conftest.$ac_ext
26440 ac_res=`eval echo '${'$as_ac_var'}'`
26441 { echo "$as_me:$LINENO: result: $ac_res" >&5
26442 echo "${ECHO_T}$ac_res" >&6; }
26443 if test `eval echo '${'$as_ac_var'}'` = yes; then
26444 cat >>confdefs.h <<_ACEOF
26445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26466 if test $ac_cv_func_sleep = no; then
26475 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
26487 for ac_func in snprintf
26489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26495 cat >conftest.$ac_ext <<_ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26503 #define $ac_func innocuous_$ac_func
26505 /* System header to define __stub macros and hopefully few prototypes,
26506 which can conflict with char $ac_func (); below.
26507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26508 <limits.h> exists even on freestanding compilers. */
26511 # include <limits.h>
26513 # include <assert.h>
26518 /* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26525 /* The GNU C library defines this for functions which it implements
26526 to always fail with ENOSYS. Some functions are actually named
26527 something starting with __ and the normal name is an alias. */
26528 #if defined __stub_$ac_func || defined __stub___$ac_func
26535 return $ac_func ();
26540 rm -f conftest.$ac_objext conftest$ac_exeext
26541 if { (ac_try="$ac_link"
26542 case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547 (eval "$ac_link") 2>conftest.er1
26549 grep -v '^ *+' conftest.er1 >conftest.err
26551 cat conftest.err >&5
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } && {
26554 test -z "$ac_c_werror_flag" ||
26555 test ! -s conftest.err
26556 } && test -s conftest$ac_exeext &&
26557 $as_test_x conftest$ac_exeext; then
26558 eval "$as_ac_var=yes"
26560 echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26563 eval "$as_ac_var=no"
26566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26567 conftest$ac_exeext conftest.$ac_ext
26569 ac_res=`eval echo '${'$as_ac_var'}'`
26570 { echo "$as_me:$LINENO: result: $ac_res" >&5
26571 echo "${ECHO_T}$ac_res" >&6; }
26572 if test `eval echo '${'$as_ac_var'}'` = yes; then
26573 cat >>confdefs.h <<_ACEOF
26574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26580 if test $ac_cv_func_snprintf = no; then
26590 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
26592 if test $ac_cv_func_snprintf = yes; then
26602 if test $ac_cv_have_decl_snprintf = no; then
26603 HAVE_DECL_SNPRINTF=0
26611 { echo "$as_me:$LINENO: checking for ssize_t" >&5
26612 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26613 if test "${gt_cv_ssize_t+set}" = set; then
26614 echo $ECHO_N "(cached) $ECHO_C" >&6
26616 cat >conftest.$ac_ext <<_ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 #include <sys/types.h>
26626 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26632 rm -f conftest.$ac_objext
26633 if { (ac_try="$ac_compile"
26634 case "(($ac_try" in
26635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636 *) ac_try_echo=$ac_try;;
26638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639 (eval "$ac_compile") 2>conftest.er1
26641 grep -v '^ *+' conftest.er1 >conftest.err
26643 cat conftest.err >&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } && {
26646 test -z "$ac_c_werror_flag" ||
26647 test ! -s conftest.err
26648 } && test -s conftest.$ac_objext; then
26651 echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
26660 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
26661 if test $gt_cv_ssize_t = no; then
26663 cat >>confdefs.h <<\_ACEOF
26664 #define ssize_t int
26679 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
26680 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
26681 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26684 cat >conftest.$ac_ext <<_ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 #include <sys/types.h>
26691 #include <sys/stat.h>
26696 static struct stat ac_aggr;
26697 if (ac_aggr.st_atim.tv_nsec)
26703 rm -f conftest.$ac_objext
26704 if { (ac_try="$ac_compile"
26705 case "(($ac_try" in
26706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707 *) ac_try_echo=$ac_try;;
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710 (eval "$ac_compile") 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } && {
26717 test -z "$ac_c_werror_flag" ||
26718 test ! -s conftest.err
26719 } && test -s conftest.$ac_objext; then
26720 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26722 echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26731 #include <sys/types.h>
26732 #include <sys/stat.h>
26737 static struct stat ac_aggr;
26738 if (sizeof ac_aggr.st_atim.tv_nsec)
26744 rm -f conftest.$ac_objext
26745 if { (ac_try="$ac_compile"
26746 case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_compile") 2>conftest.er1
26753 grep -v '^ *+' conftest.er1 >conftest.err
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } && {
26758 test -z "$ac_c_werror_flag" ||
26759 test ! -s conftest.err
26760 } && test -s conftest.$ac_objext; then
26761 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
26763 echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 ac_cv_member_struct_stat_st_atim_tv_nsec=no
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
26775 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
26776 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26782 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
26783 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
26784 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26794 #include <sys/types.h>
26795 #include <sys/stat.h>
26796 #if HAVE_SYS_TIME_H
26797 # include <sys/time.h>
26800 struct timespec ts;
26813 rm -f conftest.$ac_objext
26814 if { (ac_try="$ac_compile"
26815 case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_compile") 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && {
26827 test -z "$ac_c_werror_flag" ||
26828 test ! -s conftest.err
26829 } && test -s conftest.$ac_objext; then
26830 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26835 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26840 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26841 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26842 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26844 cat >>confdefs.h <<\_ACEOF
26845 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
26850 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
26851 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
26852 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
26853 echo $ECHO_N "(cached) $ECHO_C" >&6
26855 cat >conftest.$ac_ext <<_ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h. */
26861 #include <sys/types.h>
26862 #include <sys/stat.h>
26867 static struct stat ac_aggr;
26868 if (ac_aggr.st_atimespec.tv_nsec)
26874 rm -f conftest.$ac_objext
26875 if { (ac_try="$ac_compile"
26876 case "(($ac_try" in
26877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878 *) ac_try_echo=$ac_try;;
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881 (eval "$ac_compile") 2>conftest.er1
26883 grep -v '^ *+' conftest.er1 >conftest.err
26885 cat conftest.err >&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } && {
26888 test -z "$ac_c_werror_flag" ||
26889 test ! -s conftest.err
26890 } && test -s conftest.$ac_objext; then
26891 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 cat >conftest.$ac_ext <<_ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h. */
26902 #include <sys/types.h>
26903 #include <sys/stat.h>
26908 static struct stat ac_aggr;
26909 if (sizeof ac_aggr.st_atimespec.tv_nsec)
26915 rm -f conftest.$ac_objext
26916 if { (ac_try="$ac_compile"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_compile") 2>conftest.er1
26924 grep -v '^ *+' conftest.er1 >conftest.err
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } && {
26929 test -z "$ac_c_werror_flag" ||
26930 test ! -s conftest.err
26931 } && test -s conftest.$ac_objext; then
26932 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
26946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
26947 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
26949 cat >>confdefs.h <<_ACEOF
26950 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26955 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
26956 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
26957 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26960 cat >conftest.$ac_ext <<_ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26966 #include <sys/types.h>
26967 #include <sys/stat.h>
26972 static struct stat ac_aggr;
26973 if (ac_aggr.st_atimensec)
26979 rm -f conftest.$ac_objext
26980 if { (ac_try="$ac_compile"
26981 case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_compile") 2>conftest.er1
26988 grep -v '^ *+' conftest.er1 >conftest.err
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } && {
26993 test -z "$ac_c_werror_flag" ||
26994 test ! -s conftest.err
26995 } && test -s conftest.$ac_objext; then
26996 ac_cv_member_struct_stat_st_atimensec=yes
26998 echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27001 cat >conftest.$ac_ext <<_ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27007 #include <sys/types.h>
27008 #include <sys/stat.h>
27013 static struct stat ac_aggr;
27014 if (sizeof ac_aggr.st_atimensec)
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_compile") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } && {
27034 test -z "$ac_c_werror_flag" ||
27035 test ! -s conftest.err
27036 } && test -s conftest.$ac_objext; then
27037 ac_cv_member_struct_stat_st_atimensec=yes
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ac_cv_member_struct_stat_st_atimensec=no
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27050 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
27051 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
27052 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
27054 cat >>confdefs.h <<_ACEOF
27055 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27060 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
27061 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
27062 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27071 #include <sys/types.h>
27072 #include <sys/stat.h>
27077 static struct stat ac_aggr;
27078 if (ac_aggr.st_atim.st__tim.tv_nsec)
27084 rm -f conftest.$ac_objext
27085 if { (ac_try="$ac_compile"
27086 case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_compile") 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest.$ac_objext; then
27101 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27103 echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 #include <sys/types.h>
27113 #include <sys/stat.h>
27118 static struct stat ac_aggr;
27119 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
27125 rm -f conftest.$ac_objext
27126 if { (ac_try="$ac_compile"
27127 case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_compile") 2>conftest.er1
27134 grep -v '^ *+' conftest.er1 >conftest.err
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest.$ac_objext; then
27142 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27147 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
27156 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
27157 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27182 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
27183 echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
27184 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27187 cat >conftest.$ac_ext <<_ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h. */
27193 #include <sys/types.h>
27194 #include <sys/stat.h>
27199 static struct stat ac_aggr;
27200 if (ac_aggr.st_birthtimespec.tv_nsec)
27206 rm -f conftest.$ac_objext
27207 if { (ac_try="$ac_compile"
27208 case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_compile") 2>conftest.er1
27215 grep -v '^ *+' conftest.er1 >conftest.err
27217 cat conftest.err >&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } && {
27220 test -z "$ac_c_werror_flag" ||
27221 test ! -s conftest.err
27222 } && test -s conftest.$ac_objext; then
27223 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27225 echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27228 cat >conftest.$ac_ext <<_ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27234 #include <sys/types.h>
27235 #include <sys/stat.h>
27240 static struct stat ac_aggr;
27241 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
27247 rm -f conftest.$ac_objext
27248 if { (ac_try="$ac_compile"
27249 case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_compile") 2>conftest.er1
27256 grep -v '^ *+' conftest.er1 >conftest.err
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } && {
27261 test -z "$ac_c_werror_flag" ||
27262 test ! -s conftest.err
27263 } && test -s conftest.$ac_objext; then
27264 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
27278 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
27279 if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27287 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
27288 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
27289 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
27290 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 cat >conftest.$ac_ext <<_ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h. */
27298 #include <sys/types.h>
27299 #include <sys/stat.h>
27304 static struct stat ac_aggr;
27305 if (ac_aggr.st_birthtimensec)
27311 rm -f conftest.$ac_objext
27312 if { (ac_try="$ac_compile"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_compile") 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } && {
27325 test -z "$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27327 } && test -s conftest.$ac_objext; then
27328 ac_cv_member_struct_stat_st_birthtimensec=yes
27330 echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 #include <sys/types.h>
27340 #include <sys/stat.h>
27345 static struct stat ac_aggr;
27346 if (sizeof ac_aggr.st_birthtimensec)
27352 rm -f conftest.$ac_objext
27353 if { (ac_try="$ac_compile"
27354 case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359 (eval "$ac_compile") 2>conftest.er1
27361 grep -v '^ *+' conftest.er1 >conftest.err
27363 cat conftest.err >&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && {
27366 test -z "$ac_c_werror_flag" ||
27367 test ! -s conftest.err
27368 } && test -s conftest.$ac_objext; then
27369 ac_cv_member_struct_stat_st_birthtimensec=yes
27371 echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374 ac_cv_member_struct_stat_st_birthtimensec=no
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
27383 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
27384 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
27386 cat >>confdefs.h <<_ACEOF
27387 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27392 { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
27393 echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
27394 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
27395 echo $ECHO_N "(cached) $ECHO_C" >&6
27397 cat >conftest.$ac_ext <<_ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h. */
27403 #include <sys/types.h>
27404 #include <sys/stat.h>
27409 static struct stat ac_aggr;
27410 if (ac_aggr.st_birthtim.tv_nsec)
27416 rm -f conftest.$ac_objext
27417 if { (ac_try="$ac_compile"
27418 case "(($ac_try" in
27419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420 *) ac_try_echo=$ac_try;;
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_compile") 2>conftest.er1
27425 grep -v '^ *+' conftest.er1 >conftest.err
27427 cat conftest.err >&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); } && {
27430 test -z "$ac_c_werror_flag" ||
27431 test ! -s conftest.err
27432 } && test -s conftest.$ac_objext; then
27433 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27435 echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27438 cat >conftest.$ac_ext <<_ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h. */
27444 #include <sys/types.h>
27445 #include <sys/stat.h>
27450 static struct stat ac_aggr;
27451 if (sizeof ac_aggr.st_birthtim.tv_nsec)
27457 rm -f conftest.$ac_objext
27458 if { (ac_try="$ac_compile"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_compile") 2>conftest.er1
27466 grep -v '^ *+' conftest.er1 >conftest.err
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } && {
27471 test -z "$ac_c_werror_flag" ||
27472 test ! -s conftest.err
27473 } && test -s conftest.$ac_objext; then
27474 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
27476 echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27479 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
27482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
27488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
27489 if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
27491 cat >>confdefs.h <<_ACEOF
27492 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27505 NEXT_STDARG_H='<stdarg.h>';
27506 { echo "$as_me:$LINENO: checking for va_copy" >&5
27507 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27508 if test "${gl_cv_func_va_copy+set}" = set; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 #include <stdarg.h>
27524 void (*func) (va_list, va_list) = va_copy;
27531 rm -f conftest.$ac_objext
27532 if { (ac_try="$ac_compile"
27533 case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_compile") 2>conftest.er1
27540 grep -v '^ *+' conftest.er1 >conftest.err
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } && {
27545 test -z "$ac_c_werror_flag" ||
27546 test ! -s conftest.err
27547 } && test -s conftest.$ac_objext; then
27548 gl_cv_func_va_copy=yes
27550 echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27553 gl_cv_func_va_copy=no
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27559 { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
27560 echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
27561 if test $gl_cv_func_va_copy = no; then
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27568 #if defined _AIX && !defined __GNUC__
27573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27574 $EGREP "vaccine" >/dev/null 2>&1; then
27581 if test $gl_aixcc = yes; then
27593 if test $gl_cv_have_include_next = yes; then
27594 gl_cv_next_stdarg_h='<'stdarg.h'>'
27596 { echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
27597 echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6; }
27598 if test "${gl_cv_next_stdarg_h+set}" = set; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 if test $ac_cv_header_stdarg_h = yes; then
27603 cat >conftest.$ac_ext <<_ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h. */
27609 #include <stdarg.h>
27612 gl_cv_next_stdarg_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27613 sed -n '\#/stdarg.h#{
27614 s#.*"\(.*/stdarg.h\)".*#\1#
27620 gl_cv_next_stdarg_h='<'stdarg.h'>'
27624 { echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
27625 echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6; }
27627 NEXT_STDARG_H=$gl_cv_next_stdarg_h
27631 if test "$gl_cv_next_stdarg_h" = '""'; then
27632 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
27633 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
27636 if test "${gl_cv_func___va_copy+set}" = set; then
27637 echo $ECHO_N "(cached) $ECHO_C" >&6
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27646 #include <stdarg.h>
27659 rm -f conftest.$ac_objext
27660 if { (ac_try="$ac_compile"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_compile") 2>conftest.er1
27668 grep -v '^ *+' conftest.er1 >conftest.err
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } && {
27673 test -z "$ac_c_werror_flag" ||
27674 test ! -s conftest.err
27675 } && test -s conftest.$ac_objext; then
27676 gl_cv_func___va_copy=yes
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27681 gl_cv_func___va_copy=no
27684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27687 if test $gl_cv_func___va_copy = yes; then
27689 cat >>confdefs.h <<\_ACEOF
27690 #define va_copy __va_copy
27697 cat >>confdefs.h <<\_ACEOF
27698 #define va_copy gl_va_copy
27708 # Define two additional variables used in the Makefile substitution.
27710 if test "$ac_cv_header_stdbool_h" = yes; then
27713 STDBOOL_H='stdbool.h'
27717 if test "$ac_cv_type__Bool" = yes; then
27727 if test $ac_cv_type_long_long_int = yes; then
27728 HAVE_LONG_LONG_INT=1
27730 HAVE_LONG_LONG_INT=0
27734 if test $ac_cv_type_unsigned_long_long_int = yes; then
27735 HAVE_UNSIGNED_LONG_LONG_INT=1
27737 HAVE_UNSIGNED_LONG_LONG_INT=0
27741 if test $ac_cv_header_inttypes_h = yes; then
27748 if test $ac_cv_header_sys_types_h = yes; then
27765 if test $gl_cv_have_include_next = yes; then
27766 gl_cv_next_stdint_h='<'stdint.h'>'
27768 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
27769 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
27770 if test "${gl_cv_next_stdint_h+set}" = set; then
27771 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 if test $ac_cv_header_stdint_h = yes; then
27775 cat >conftest.$ac_ext <<_ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27781 #include <stdint.h>
27784 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27785 sed -n '\#/stdint.h#{
27786 s#.*"\(.*/stdint.h\)".*#\1#
27792 gl_cv_next_stdint_h='<'stdint.h'>'
27796 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
27797 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
27799 NEXT_STDINT_H=$gl_cv_next_stdint_h
27803 if test $ac_cv_header_stdint_h = yes; then
27810 if test $ac_cv_header_stdint_h = yes; then
27811 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
27812 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
27813 if test "${gl_cv_header_working_stdint_h+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27816 gl_cv_header_working_stdint_h=no
27817 cat >conftest.$ac_ext <<_ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27825 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
27826 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
27827 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27828 #include <stdint.h>
27829 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
27830 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
27831 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
27835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27836 included before <wchar.h>. */
27837 #include <stddef.h>
27838 #include <signal.h>
27840 # include <stdio.h>
27842 # include <wchar.h>
27847 int8_t a1 = INT8_MAX;
27848 int8_t a1min = INT8_MIN;
27851 int16_t a2 = INT16_MAX;
27852 int16_t a2min = INT16_MIN;
27855 int32_t a3 = INT32_MAX;
27856 int32_t a3min = INT32_MIN;
27859 int64_t a4 = INT64_MAX;
27860 int64_t a4min = INT64_MIN;
27863 uint8_t b1 = UINT8_MAX;
27865 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
27868 uint16_t b2 = UINT16_MAX;
27871 uint32_t b3 = UINT32_MAX;
27874 uint64_t b4 = UINT64_MAX;
27876 int_least8_t c1 = INT8_C (0x7f);
27877 int_least8_t c1max = INT_LEAST8_MAX;
27878 int_least8_t c1min = INT_LEAST8_MIN;
27879 int_least16_t c2 = INT16_C (0x7fff);
27880 int_least16_t c2max = INT_LEAST16_MAX;
27881 int_least16_t c2min = INT_LEAST16_MIN;
27882 int_least32_t c3 = INT32_C (0x7fffffff);
27883 int_least32_t c3max = INT_LEAST32_MAX;
27884 int_least32_t c3min = INT_LEAST32_MIN;
27885 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
27886 int_least64_t c4max = INT_LEAST64_MAX;
27887 int_least64_t c4min = INT_LEAST64_MIN;
27888 uint_least8_t d1 = UINT8_C (0xff);
27889 uint_least8_t d1max = UINT_LEAST8_MAX;
27890 uint_least16_t d2 = UINT16_C (0xffff);
27891 uint_least16_t d2max = UINT_LEAST16_MAX;
27892 uint_least32_t d3 = UINT32_C (0xffffffff);
27893 uint_least32_t d3max = UINT_LEAST32_MAX;
27894 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
27895 uint_least64_t d4max = UINT_LEAST64_MAX;
27896 int_fast8_t e1 = INT_FAST8_MAX;
27897 int_fast8_t e1min = INT_FAST8_MIN;
27898 int_fast16_t e2 = INT_FAST16_MAX;
27899 int_fast16_t e2min = INT_FAST16_MIN;
27900 int_fast32_t e3 = INT_FAST32_MAX;
27901 int_fast32_t e3min = INT_FAST32_MIN;
27902 int_fast64_t e4 = INT_FAST64_MAX;
27903 int_fast64_t e4min = INT_FAST64_MIN;
27904 uint_fast8_t f1 = UINT_FAST8_MAX;
27905 uint_fast16_t f2 = UINT_FAST16_MAX;
27906 uint_fast32_t f3 = UINT_FAST32_MAX;
27907 uint_fast64_t f4 = UINT_FAST64_MAX;
27909 intptr_t g = INTPTR_MAX;
27910 intptr_t gmin = INTPTR_MIN;
27913 uintptr_t h = UINTPTR_MAX;
27915 intmax_t i = INTMAX_MAX;
27916 uintmax_t j = UINTMAX_MAX;
27918 #include <limits.h> /* for CHAR_BIT */
27919 #define TYPE_MINIMUM(t) \
27920 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
27921 #define TYPE_MAXIMUM(t) \
27922 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
27925 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
27926 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
27928 /* Detect bug in FreeBSD 6.0 / ia64. */
27929 int check_SIG_ATOMIC:
27930 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
27931 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
27933 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
27935 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
27936 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
27938 /* Detect bug in mingw. */
27940 WINT_MIN == TYPE_MINIMUM (wint_t)
27941 && WINT_MAX == TYPE_MAXIMUM (wint_t)
27944 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
27946 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
27947 int check_UINT16_C:
27948 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
27950 /* Detect bugs in OpenBSD 3.9 stdint.h. */
27952 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
27955 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
27958 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
27961 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
27963 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
27964 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
27965 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
27966 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
27967 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
27968 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
27969 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
27970 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
27971 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
27972 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
27973 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
27984 rm -f conftest.$ac_objext
27985 if { (ac_try="$ac_compile"
27986 case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_compile") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } && {
27998 test -z "$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 } && test -s conftest.$ac_objext; then
28001 gl_cv_header_working_stdint_h=yes
28003 echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28012 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
28014 if test "$gl_cv_header_working_stdint_h" = yes; then
28019 for ac_header in sys/inttypes.h sys/bitypes.h
28021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 ac_res=`eval echo '${'$as_ac_Header'}'`
28029 { echo "$as_me:$LINENO: result: $ac_res" >&5
28030 echo "${ECHO_T}$ac_res" >&6; }
28032 # Is the header compilable?
28033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28035 cat >conftest.$ac_ext <<_ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28041 $ac_includes_default
28042 #include <$ac_header>
28044 rm -f conftest.$ac_objext
28045 if { (ac_try="$ac_compile"
28046 case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_compile") 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } && {
28058 test -z "$ac_c_werror_flag" ||
28059 test ! -s conftest.err
28060 } && test -s conftest.$ac_objext; then
28061 ac_header_compiler=yes
28063 echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28066 ac_header_compiler=no
28069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28071 echo "${ECHO_T}$ac_header_compiler" >&6; }
28073 # Is the header present?
28074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28076 cat >conftest.$ac_ext <<_ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h. */
28082 #include <$ac_header>
28084 if { (ac_try="$ac_cpp conftest.$ac_ext"
28085 case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28092 grep -v '^ *+' conftest.er1 >conftest.err
28094 cat conftest.err >&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); } >/dev/null && {
28097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28098 test ! -s conftest.err
28100 ac_header_preproc=yes
28102 echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28105 ac_header_preproc=no
28108 rm -f conftest.err conftest.$ac_ext
28109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28110 echo "${ECHO_T}$ac_header_preproc" >&6; }
28112 # So? What about this header?
28113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28119 ac_header_preproc=yes
28122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28135 ## ------------------------------ ##
28136 ## Report this to bug-tar@gnu.org ##
28137 ## ------------------------------ ##
28139 ) | sed "s/^/$as_me: WARNING: /" >&2
28142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28147 eval "$as_ac_Header=\$ac_header_preproc"
28149 ac_res=`eval echo '${'$as_ac_Header'}'`
28150 { echo "$as_me:$LINENO: result: $ac_res" >&5
28151 echo "${ECHO_T}$ac_res" >&6; }
28154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28155 cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28163 if test $ac_cv_header_sys_inttypes_h = yes; then
28164 HAVE_SYS_INTTYPES_H=1
28166 HAVE_SYS_INTTYPES_H=0
28169 if test $ac_cv_header_sys_bitypes_h = yes; then
28170 HAVE_SYS_BITYPES_H=1
28172 HAVE_SYS_BITYPES_H=0
28191 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
28192 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
28193 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
28194 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
28195 echo $ECHO_N "(cached) $ECHO_C" >&6
28197 if test "$cross_compiling" = yes; then
28198 # Depending upon the size, compute the lo and hi bounds.
28199 cat >conftest.$ac_ext <<_ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28207 included before <wchar.h>. */
28208 #include <stddef.h>
28209 #include <signal.h>
28211 # include <stdio.h>
28213 # include <wchar.h>
28216 #include <limits.h>
28220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
28227 rm -f conftest.$ac_objext
28228 if { (ac_try="$ac_compile"
28229 case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_compile") 2>conftest.er1
28236 grep -v '^ *+' conftest.er1 >conftest.err
28238 cat conftest.err >&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); } && {
28241 test -z "$ac_c_werror_flag" ||
28242 test ! -s conftest.err
28243 } && test -s conftest.$ac_objext; then
28246 cat >conftest.$ac_ext <<_ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28253 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28254 included before <wchar.h>. */
28255 #include <stddef.h>
28256 #include <signal.h>
28258 # include <stdio.h>
28260 # include <wchar.h>
28263 #include <limits.h>
28267 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278 *) ac_try_echo=$ac_try;;
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281 (eval "$ac_compile") 2>conftest.er1
28283 grep -v '^ *+' conftest.er1 >conftest.err
28285 cat conftest.err >&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); } && {
28288 test -z "$ac_c_werror_flag" ||
28289 test ! -s conftest.err
28290 } && test -s conftest.$ac_objext; then
28291 ac_hi=$ac_mid; break
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ac_lo=`expr $ac_mid + 1`
28297 if test $ac_lo -le $ac_mid; then
28301 ac_mid=`expr 2 '*' $ac_mid + 1`
28304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 cat >conftest.$ac_ext <<_ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28317 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28318 included before <wchar.h>. */
28319 #include <stddef.h>
28320 #include <signal.h>
28322 # include <stdio.h>
28324 # include <wchar.h>
28327 #include <limits.h>
28331 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345 (eval "$ac_compile") 2>conftest.er1
28347 grep -v '^ *+' conftest.er1 >conftest.err
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } && {
28352 test -z "$ac_c_werror_flag" ||
28353 test ! -s conftest.err
28354 } && test -s conftest.$ac_objext; then
28357 cat >conftest.$ac_ext <<_ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h. */
28364 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28365 included before <wchar.h>. */
28366 #include <stddef.h>
28367 #include <signal.h>
28369 # include <stdio.h>
28371 # include <wchar.h>
28374 #include <limits.h>
28378 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392 (eval "$ac_compile") 2>conftest.er1
28394 grep -v '^ *+' conftest.er1 >conftest.err
28396 cat conftest.err >&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } && {
28399 test -z "$ac_c_werror_flag" ||
28400 test ! -s conftest.err
28401 } && test -s conftest.$ac_objext; then
28402 ac_lo=$ac_mid; break
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28407 ac_hi=`expr '(' $ac_mid ')' - 1`
28408 if test $ac_mid -le $ac_hi; then
28412 ac_mid=`expr 2 '*' $ac_mid`
28415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28428 # Binary search between lo and hi bounds.
28429 while test "x$ac_lo" != "x$ac_hi"; do
28430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28431 cat >conftest.$ac_ext <<_ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28439 included before <wchar.h>. */
28440 #include <stddef.h>
28441 #include <signal.h>
28443 # include <stdio.h>
28445 # include <wchar.h>
28448 #include <limits.h>
28452 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
28459 rm -f conftest.$ac_objext
28460 if { (ac_try="$ac_compile"
28461 case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466 (eval "$ac_compile") 2>conftest.er1
28468 grep -v '^ *+' conftest.er1 >conftest.err
28470 cat conftest.err >&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); } && {
28473 test -z "$ac_c_werror_flag" ||
28474 test ! -s conftest.err
28475 } && test -s conftest.$ac_objext; then
28478 echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28481 ac_lo=`expr '(' $ac_mid ')' + 1`
28484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28487 ?*) result=$ac_lo;;
28488 '') result=unknown ;;
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28498 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28499 included before <wchar.h>. */
28500 #include <stddef.h>
28501 #include <signal.h>
28503 # include <stdio.h>
28505 # include <wchar.h>
28508 #include <limits.h>
28509 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
28510 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
28512 #include <stdlib.h>
28517 FILE *f = fopen ("conftest.val", "w");
28520 if ((sizeof ($gltype) * CHAR_BIT) < 0)
28522 long int i = longval ();
28523 if (i != (sizeof ($gltype) * CHAR_BIT))
28525 fprintf (f, "%ld\n", i);
28529 unsigned long int i = ulongval ();
28530 if (i != (sizeof ($gltype) * CHAR_BIT))
28532 fprintf (f, "%lu\n", i);
28534 return ferror (f) || fclose (f) != 0;
28540 rm -f conftest$ac_exeext
28541 if { (ac_try="$ac_link"
28542 case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_link") 2>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 result=`cat conftest.val`
28562 echo "$as_me: program exited with status $ac_status" >&5
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28566 ( exit $ac_status )
28569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28572 eval gl_cv_bitsizeof_${gltype}=\$result
28575 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
28576 { echo "$as_me:$LINENO: result: $ac_res" >&5
28577 echo "${ECHO_T}$ac_res" >&6; }
28578 eval result=\$gl_cv_bitsizeof_${gltype}
28579 if test $result = unknown; then
28582 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28583 cat >>confdefs.h <<_ACEOF
28584 #define BITSIZEOF_${GLTYPE} $result
28587 eval BITSIZEOF_${GLTYPE}=\$result
28596 for gltype in sig_atomic_t wchar_t wint_t ; do
28597 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
28598 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
28599 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28602 cat >conftest.$ac_ext <<_ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28609 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28610 included before <wchar.h>. */
28611 #include <stddef.h>
28612 #include <signal.h>
28614 # include <stdio.h>
28616 # include <wchar.h>
28619 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
28628 rm -f conftest.$ac_objext
28629 if { (ac_try="$ac_compile"
28630 case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635 (eval "$ac_compile") 2>conftest.er1
28637 grep -v '^ *+' conftest.er1 >conftest.err
28639 cat conftest.err >&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } && {
28642 test -z "$ac_c_werror_flag" ||
28643 test ! -s conftest.err
28644 } && test -s conftest.$ac_objext; then
28647 echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28654 eval gl_cv_type_${gltype}_signed=\$result
28657 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
28658 { echo "$as_me:$LINENO: result: $ac_res" >&5
28659 echo "${ECHO_T}$ac_res" >&6; }
28660 eval result=\$gl_cv_type_${gltype}_signed
28661 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28662 if test "$result" = yes; then
28663 cat >>confdefs.h <<_ACEOF
28664 #define HAVE_SIGNED_${GLTYPE} 1
28667 eval HAVE_SIGNED_${GLTYPE}=1
28669 eval HAVE_SIGNED_${GLTYPE}=0
28674 gl_cv_type_ptrdiff_t_signed=yes
28675 gl_cv_type_size_t_signed=no
28683 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
28684 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
28685 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
28686 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
28687 echo $ECHO_N "(cached) $ECHO_C" >&6
28689 eval gl_cv_type_${gltype}_suffix=no
28690 eval result=\$gl_cv_type_${gltype}_signed
28691 if test "$result" = yes; then
28696 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
28698 '') gltype1='int';;
28699 l) gltype1='long int';;
28700 ll) gltype1='long long int';;
28701 i64) gltype1='__int64';;
28702 u) gltype1='unsigned int';;
28703 ul) gltype1='unsigned long int';;
28704 ull) gltype1='unsigned long long int';;
28705 ui64)gltype1='unsigned __int64';;
28707 cat >conftest.$ac_ext <<_ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h. */
28714 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28715 included before <wchar.h>. */
28716 #include <stddef.h>
28717 #include <signal.h>
28719 # include <stdio.h>
28721 # include <wchar.h>
28724 extern $gltype foo;
28725 extern $gltype1 foo;
28734 rm -f conftest.$ac_objext
28735 if { (ac_try="$ac_compile"
28736 case "(($ac_try" in
28737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738 *) ac_try_echo=$ac_try;;
28740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741 (eval "$ac_compile") 2>conftest.er1
28743 grep -v '^ *+' conftest.er1 >conftest.err
28745 cat conftest.err >&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } && {
28748 test -z "$ac_c_werror_flag" ||
28749 test ! -s conftest.err
28750 } && test -s conftest.$ac_objext; then
28751 eval gl_cv_type_${gltype}_suffix=\$glsuf
28753 echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 eval result=\$gl_cv_type_${gltype}_suffix
28761 test "$result" != no && break
28764 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
28765 { echo "$as_me:$LINENO: result: $ac_res" >&5
28766 echo "${ECHO_T}$ac_res" >&6; }
28767 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
28768 eval result=\$gl_cv_type_${gltype}_suffix
28769 test "$result" = no && result=
28770 eval ${GLTYPE}_SUFFIX=\$result
28771 cat >>confdefs.h <<_ACEOF
28772 #define ${GLTYPE}_SUFFIX $result
28795 if test $gl_cv_have_include_next = yes; then
28796 gl_cv_next_stdio_h='<'stdio.h'>'
28798 { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
28799 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
28800 if test "${gl_cv_next_stdio_h+set}" = set; then
28801 echo $ECHO_N "(cached) $ECHO_C" >&6
28804 if test $ac_cv_header_stdio_h = yes; then
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28814 gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28815 sed -n '\#/stdio.h#{
28816 s#.*"\(.*/stdio.h\)".*#\1#
28822 gl_cv_next_stdio_h='<'stdio.h'>'
28826 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
28827 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
28829 NEXT_STDIO_H=$gl_cv_next_stdio_h
28846 if test $gl_cv_have_include_next = yes; then
28847 gl_cv_next_stdlib_h='<'stdlib.h'>'
28849 { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
28850 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
28851 if test "${gl_cv_next_stdlib_h+set}" = set; then
28852 echo $ECHO_N "(cached) $ECHO_C" >&6
28855 if test $ac_cv_header_stdlib_h = yes; then
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28862 #include <stdlib.h>
28865 gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28866 sed -n '\#/stdlib.h#{
28867 s#.*"\(.*/stdlib.h\)".*#\1#
28873 gl_cv_next_stdlib_h='<'stdlib.h'>'
28877 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
28878 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
28880 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
28899 for ac_func in stpcpy
28901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28915 #define $ac_func innocuous_$ac_func
28917 /* System header to define __stub macros and hopefully few prototypes,
28918 which can conflict with char $ac_func (); below.
28919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28920 <limits.h> exists even on freestanding compilers. */
28923 # include <limits.h>
28925 # include <assert.h>
28930 /* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28937 /* The GNU C library defines this for functions which it implements
28938 to always fail with ENOSYS. Some functions are actually named
28939 something starting with __ and the normal name is an alias. */
28940 #if defined __stub_$ac_func || defined __stub___$ac_func
28947 return $ac_func ();
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_link") 2>conftest.er1
28961 grep -v '^ *+' conftest.er1 >conftest.err
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest$ac_exeext &&
28969 $as_test_x conftest$ac_exeext; then
28970 eval "$as_ac_var=yes"
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 eval "$as_ac_var=no"
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979 conftest$ac_exeext conftest.$ac_ext
28981 ac_res=`eval echo '${'$as_ac_var'}'`
28982 { echo "$as_me:$LINENO: result: $ac_res" >&5
28983 echo "${ECHO_T}$ac_res" >&6; }
28984 if test `eval echo '${'$as_ac_var'}'` = yes; then
28985 cat >>confdefs.h <<_ACEOF
28986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28991 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28997 if test $ac_cv_func_stpcpy = no; then
29019 for ac_func in strcasecmp
29021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 cat >conftest.$ac_ext <<_ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h. */
29033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29035 #define $ac_func innocuous_$ac_func
29037 /* System header to define __stub macros and hopefully few prototypes,
29038 which can conflict with char $ac_func (); below.
29039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29040 <limits.h> exists even on freestanding compilers. */
29043 # include <limits.h>
29045 # include <assert.h>
29050 /* Override any GCC internal prototype to avoid an error.
29051 Use char because int might match the return type of a GCC
29052 builtin and then its argument prototype would still apply. */
29057 /* The GNU C library defines this for functions which it implements
29058 to always fail with ENOSYS. Some functions are actually named
29059 something starting with __ and the normal name is an alias. */
29060 #if defined __stub_$ac_func || defined __stub___$ac_func
29067 return $ac_func ();
29072 rm -f conftest.$ac_objext conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076 *) ac_try_echo=$ac_try;;
29078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29079 (eval "$ac_link") 2>conftest.er1
29081 grep -v '^ *+' conftest.er1 >conftest.err
29083 cat conftest.err >&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); } && {
29086 test -z "$ac_c_werror_flag" ||
29087 test ! -s conftest.err
29088 } && test -s conftest$ac_exeext &&
29089 $as_test_x conftest$ac_exeext; then
29090 eval "$as_ac_var=yes"
29092 echo "$as_me: failed program was:" >&5
29093 sed 's/^/| /' conftest.$ac_ext >&5
29095 eval "$as_ac_var=no"
29098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29099 conftest$ac_exeext conftest.$ac_ext
29101 ac_res=`eval echo '${'$as_ac_var'}'`
29102 { echo "$as_me:$LINENO: result: $ac_res" >&5
29103 echo "${ECHO_T}$ac_res" >&6; }
29104 if test `eval echo '${'$as_ac_var'}'` = yes; then
29105 cat >>confdefs.h <<_ACEOF
29106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29111 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29117 if test $ac_cv_func_strcasecmp = no; then
29134 for ac_func in strncasecmp
29136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150 #define $ac_func innocuous_$ac_func
29152 /* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
29158 # include <limits.h>
29160 # include <assert.h>
29165 /* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29172 /* The GNU C library defines this for functions which it implements
29173 to always fail with ENOSYS. Some functions are actually named
29174 something starting with __ and the normal name is an alias. */
29175 #if defined __stub_$ac_func || defined __stub___$ac_func
29182 return $ac_func ();
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (ac_try="$ac_link"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
29196 grep -v '^ *+' conftest.er1 >conftest.err
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext &&
29204 $as_test_x conftest$ac_exeext; then
29205 eval "$as_ac_var=yes"
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 eval "$as_ac_var=no"
29213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29214 conftest$ac_exeext conftest.$ac_ext
29216 ac_res=`eval echo '${'$as_ac_var'}'`
29217 { echo "$as_me:$LINENO: result: $ac_res" >&5
29218 echo "${ECHO_T}$ac_res" >&6; }
29219 if test `eval echo '${'$as_ac_var'}'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29226 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29232 if test $ac_cv_func_strncasecmp = no; then
29237 { echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
29238 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6; }
29239 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 $ac_includes_default
29252 #ifndef strncasecmp
29253 (void) strncasecmp;
29260 rm -f conftest.$ac_objext
29261 if { (ac_try="$ac_compile"
29262 case "(($ac_try" in
29263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264 *) ac_try_echo=$ac_try;;
29266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267 (eval "$ac_compile") 2>conftest.er1
29269 grep -v '^ *+' conftest.er1 >conftest.err
29271 cat conftest.err >&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); } && {
29274 test -z "$ac_c_werror_flag" ||
29275 test ! -s conftest.err
29276 } && test -s conftest.$ac_objext; then
29277 ac_cv_have_decl_strncasecmp=yes
29279 echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29282 ac_cv_have_decl_strncasecmp=no
29285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
29288 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6; }
29289 if test $ac_cv_have_decl_strncasecmp = yes; then
29291 cat >>confdefs.h <<_ACEOF
29292 #define HAVE_DECL_STRNCASECMP 1
29297 cat >>confdefs.h <<_ACEOF
29298 #define HAVE_DECL_STRNCASECMP 0
29305 if test $ac_cv_have_decl_strncasecmp = no; then
29306 HAVE_DECL_STRNCASECMP=0
29322 for ac_func in strchrnul
29324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29338 #define $ac_func innocuous_$ac_func
29340 /* System header to define __stub macros and hopefully few prototypes,
29341 which can conflict with char $ac_func (); below.
29342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29343 <limits.h> exists even on freestanding compilers. */
29346 # include <limits.h>
29348 # include <assert.h>
29353 /* Override any GCC internal prototype to avoid an error.
29354 Use char because int might match the return type of a GCC
29355 builtin and then its argument prototype would still apply. */
29360 /* The GNU C library defines this for functions which it implements
29361 to always fail with ENOSYS. Some functions are actually named
29362 something starting with __ and the normal name is an alias. */
29363 #if defined __stub_$ac_func || defined __stub___$ac_func
29370 return $ac_func ();
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_link") 2>conftest.er1
29384 grep -v '^ *+' conftest.er1 >conftest.err
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } && {
29389 test -z "$ac_c_werror_flag" ||
29390 test ! -s conftest.err
29391 } && test -s conftest$ac_exeext &&
29392 $as_test_x conftest$ac_exeext; then
29393 eval "$as_ac_var=yes"
29395 echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29398 eval "$as_ac_var=no"
29401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402 conftest$ac_exeext conftest.$ac_ext
29404 ac_res=`eval echo '${'$as_ac_var'}'`
29405 { echo "$as_me:$LINENO: result: $ac_res" >&5
29406 echo "${ECHO_T}$ac_res" >&6; }
29407 if test `eval echo '${'$as_ac_var'}'` = yes; then
29408 cat >>confdefs.h <<_ACEOF
29409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29414 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29420 if test $ac_cv_func_strchrnul = no; then
29439 for ac_func in strdup
29441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29447 cat >conftest.$ac_ext <<_ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h. */
29453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29455 #define $ac_func innocuous_$ac_func
29457 /* System header to define __stub macros and hopefully few prototypes,
29458 which can conflict with char $ac_func (); below.
29459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29460 <limits.h> exists even on freestanding compilers. */
29463 # include <limits.h>
29465 # include <assert.h>
29470 /* Override any GCC internal prototype to avoid an error.
29471 Use char because int might match the return type of a GCC
29472 builtin and then its argument prototype would still apply. */
29477 /* The GNU C library defines this for functions which it implements
29478 to always fail with ENOSYS. Some functions are actually named
29479 something starting with __ and the normal name is an alias. */
29480 #if defined __stub_$ac_func || defined __stub___$ac_func
29487 return $ac_func ();
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_link") 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } && {
29506 test -z "$ac_c_werror_flag" ||
29507 test ! -s conftest.err
29508 } && test -s conftest$ac_exeext &&
29509 $as_test_x conftest$ac_exeext; then
29510 eval "$as_ac_var=yes"
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29515 eval "$as_ac_var=no"
29518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29519 conftest$ac_exeext conftest.$ac_ext
29521 ac_res=`eval echo '${'$as_ac_var'}'`
29522 { echo "$as_me:$LINENO: result: $ac_res" >&5
29523 echo "${ECHO_T}$ac_res" >&6; }
29524 if test `eval echo '${'$as_ac_var'}'` = yes; then
29525 cat >>confdefs.h <<_ACEOF
29526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29531 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29541 if test $ac_cv_have_decl_strdup = no; then
29552 if test $gl_cv_func_working_strerror = no; then
29560 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
29563 cat >>confdefs.h <<_ACEOF
29564 #define REPLACE_STRERROR $REPLACE_STRERROR
29587 if test $ac_cv_have_decl_strndup = no; then
29588 HAVE_DECL_STRNDUP=0
29591 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
29592 { echo "$as_me:$LINENO: checking for working strndup" >&5
29593 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
29594 if test "${gl_cv_func_strndup+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 if test "$cross_compiling" = yes; then
29598 { echo "$as_me:$LINENO: checking for strndup" >&5
29599 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
29600 if test "${ac_cv_func_strndup+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29603 cat >conftest.$ac_ext <<_ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29609 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
29610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29611 #define strndup innocuous_strndup
29613 /* System header to define __stub macros and hopefully few prototypes,
29614 which can conflict with char strndup (); below.
29615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29616 <limits.h> exists even on freestanding compilers. */
29619 # include <limits.h>
29621 # include <assert.h>
29626 /* Override any GCC internal prototype to avoid an error.
29627 Use char because int might match the return type of a GCC
29628 builtin and then its argument prototype would still apply. */
29633 /* The GNU C library defines this for functions which it implements
29634 to always fail with ENOSYS. Some functions are actually named
29635 something starting with __ and the normal name is an alias. */
29636 #if defined __stub_strndup || defined __stub___strndup
29648 rm -f conftest.$ac_objext conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_link") 2>conftest.er1
29657 grep -v '^ *+' conftest.er1 >conftest.err
29659 cat conftest.err >&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && {
29662 test -z "$ac_c_werror_flag" ||
29663 test ! -s conftest.err
29664 } && test -s conftest$ac_exeext &&
29665 $as_test_x conftest$ac_exeext; then
29666 ac_cv_func_strndup=yes
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ac_cv_func_strndup=no
29674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29675 conftest$ac_exeext conftest.$ac_ext
29677 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
29678 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
29679 if test $ac_cv_func_strndup = yes; then
29680 cat >conftest.$ac_ext <<_ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29693 $EGREP "too risky" >/dev/null 2>&1; then
29694 gl_cv_func_strndup=no
29696 gl_cv_func_strndup=yes
29701 gl_cv_func_strndup=no
29705 cat >conftest.$ac_ext <<_ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h. */
29712 #include <string.h>
29713 #include <stdlib.h>
29718 #ifndef HAVE_DECL_STRNDUP
29719 extern char *strndup (const char *, size_t);
29722 s = strndup ("some longer string", 15);
29724 s = strndup ("shorter string", 13);
29725 return s[13] != '\0';
29730 rm -f conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737 (eval "$ac_link") 2>&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746 (eval "$ac_try") 2>&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; }; then
29750 gl_cv_func_strndup=yes
29752 echo "$as_me: program exited with status $ac_status" >&5
29753 echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29756 ( exit $ac_status )
29757 gl_cv_func_strndup=no
29759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29764 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
29765 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
29766 if test $gl_cv_func_strndup = yes; then
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_STRNDUP 1
29781 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
29798 if test $ac_cv_have_decl_strnlen = no; then
29799 HAVE_DECL_STRNLEN=0
29802 { echo "$as_me:$LINENO: checking for working strnlen" >&5
29803 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
29804 if test "${ac_cv_func_strnlen_working+set}" = set; then
29805 echo $ECHO_N "(cached) $ECHO_C" >&6
29807 if test "$cross_compiling" = yes; then
29808 ac_cv_func_strnlen_working=no
29810 cat >conftest.$ac_ext <<_ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h. */
29816 $ac_includes_default
29822 #define S_LEN (sizeof S - 1)
29824 /* At least one implementation is buggy: that of AIX 4.3 would
29825 give strnlen (S, 1) == 3. */
29828 for (i = 0; i < S_LEN + 1; ++i)
29830 int expected = i <= S_LEN ? i : S_LEN;
29831 if (strnlen (S, i) != expected)
29840 rm -f conftest$ac_exeext
29841 if { (ac_try="$ac_link"
29842 case "(($ac_try" in
29843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844 *) ac_try_echo=$ac_try;;
29846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29847 (eval "$ac_link") 2>&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 ac_cv_func_strnlen_working=yes
29862 echo "$as_me: program exited with status $ac_status" >&5
29863 echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866 ( exit $ac_status )
29867 ac_cv_func_strnlen_working=no
29869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29874 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
29875 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
29876 test $ac_cv_func_strnlen_working = no &&
29883 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
29886 if test $ac_cv_func_strnlen_working = no; then
29887 # This is necessary because automake-1.6.1 doesn't understand
29888 # that the above use of AC_FUNC_STRNLEN means we may have to use
29890 #AC_LIBOBJ(strnlen)
29892 cat >>confdefs.h <<\_ACEOF
29893 #define strnlen rpl_strnlen
29907 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
29908 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
29909 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29918 #include <inttypes.h>
29920 inttypes_h_defines_strtoimax
29923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29924 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
29925 gl_cv_func_strtoimax_macro=yes
29927 gl_cv_func_strtoimax_macro=no
29932 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
29933 echo "${ECHO_T}$gl_cv_func_strtoimax_macro" >&6; }
29935 if test "$gl_cv_func_strtoimax_macro" != yes; then
29944 for ac_func in strtoimax
29946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29950 echo $ECHO_N "(cached) $ECHO_C" >&6
29952 cat >conftest.$ac_ext <<_ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h. */
29958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29960 #define $ac_func innocuous_$ac_func
29962 /* System header to define __stub macros and hopefully few prototypes,
29963 which can conflict with char $ac_func (); below.
29964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29965 <limits.h> exists even on freestanding compilers. */
29968 # include <limits.h>
29970 # include <assert.h>
29975 /* Override any GCC internal prototype to avoid an error.
29976 Use char because int might match the return type of a GCC
29977 builtin and then its argument prototype would still apply. */
29982 /* The GNU C library defines this for functions which it implements
29983 to always fail with ENOSYS. Some functions are actually named
29984 something starting with __ and the normal name is an alias. */
29985 #if defined __stub_$ac_func || defined __stub___$ac_func
29992 return $ac_func ();
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004 (eval "$ac_link") 2>conftest.er1
30006 grep -v '^ *+' conftest.er1 >conftest.err
30008 cat conftest.err >&5
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); } && {
30011 test -z "$ac_c_werror_flag" ||
30012 test ! -s conftest.err
30013 } && test -s conftest$ac_exeext &&
30014 $as_test_x conftest$ac_exeext; then
30015 eval "$as_ac_var=yes"
30017 echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30020 eval "$as_ac_var=no"
30023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30024 conftest$ac_exeext conftest.$ac_ext
30026 ac_res=`eval echo '${'$as_ac_var'}'`
30027 { echo "$as_me:$LINENO: result: $ac_res" >&5
30028 echo "${ECHO_T}$ac_res" >&6; }
30029 if test `eval echo '${'$as_ac_var'}'` = yes; then
30030 cat >>confdefs.h <<_ACEOF
30031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30036 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30042 if test $ac_cv_func_strtoimax = no; then
30044 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
30045 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
30046 if test "${ac_cv_have_decl_strtoll+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 $ac_includes_default
30067 rm -f conftest.$ac_objext
30068 if { (ac_try="$ac_compile"
30069 case "(($ac_try" in
30070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071 *) ac_try_echo=$ac_try;;
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074 (eval "$ac_compile") 2>conftest.er1
30076 grep -v '^ *+' conftest.er1 >conftest.err
30078 cat conftest.err >&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } && {
30081 test -z "$ac_c_werror_flag" ||
30082 test ! -s conftest.err
30083 } && test -s conftest.$ac_objext; then
30084 ac_cv_have_decl_strtoll=yes
30086 echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30089 ac_cv_have_decl_strtoll=no
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
30095 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
30096 if test $ac_cv_have_decl_strtoll = yes; then
30098 cat >>confdefs.h <<_ACEOF
30099 #define HAVE_DECL_STRTOLL 1
30104 cat >>confdefs.h <<_ACEOF
30105 #define HAVE_DECL_STRTOLL 0
30130 for ac_func in strtol
30132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30136 echo $ECHO_N "(cached) $ECHO_C" >&6
30138 cat >conftest.$ac_ext <<_ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30146 #define $ac_func innocuous_$ac_func
30148 /* System header to define __stub macros and hopefully few prototypes,
30149 which can conflict with char $ac_func (); below.
30150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30151 <limits.h> exists even on freestanding compilers. */
30154 # include <limits.h>
30156 # include <assert.h>
30161 /* Override any GCC internal prototype to avoid an error.
30162 Use char because int might match the return type of a GCC
30163 builtin and then its argument prototype would still apply. */
30168 /* The GNU C library defines this for functions which it implements
30169 to always fail with ENOSYS. Some functions are actually named
30170 something starting with __ and the normal name is an alias. */
30171 #if defined __stub_$ac_func || defined __stub___$ac_func
30178 return $ac_func ();
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (ac_try="$ac_link"
30185 case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_link") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } && {
30197 test -z "$ac_c_werror_flag" ||
30198 test ! -s conftest.err
30199 } && test -s conftest$ac_exeext &&
30200 $as_test_x conftest$ac_exeext; then
30201 eval "$as_ac_var=yes"
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 eval "$as_ac_var=no"
30209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30210 conftest$ac_exeext conftest.$ac_ext
30212 ac_res=`eval echo '${'$as_ac_var'}'`
30213 { echo "$as_me:$LINENO: result: $ac_res" >&5
30214 echo "${ECHO_T}$ac_res" >&6; }
30215 if test `eval echo '${'$as_ac_var'}'` = yes; then
30216 cat >>confdefs.h <<_ACEOF
30217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30222 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30231 if test "$ac_cv_type_long_long_int" = yes; then
30240 for ac_func in strtoll
30242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 cat >conftest.$ac_ext <<_ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h. */
30254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30256 #define $ac_func innocuous_$ac_func
30258 /* System header to define __stub macros and hopefully few prototypes,
30259 which can conflict with char $ac_func (); below.
30260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30261 <limits.h> exists even on freestanding compilers. */
30264 # include <limits.h>
30266 # include <assert.h>
30271 /* Override any GCC internal prototype to avoid an error.
30272 Use char because int might match the return type of a GCC
30273 builtin and then its argument prototype would still apply. */
30278 /* The GNU C library defines this for functions which it implements
30279 to always fail with ENOSYS. Some functions are actually named
30280 something starting with __ and the normal name is an alias. */
30281 #if defined __stub_$ac_func || defined __stub___$ac_func
30288 return $ac_func ();
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300 (eval "$ac_link") 2>conftest.er1
30302 grep -v '^ *+' conftest.er1 >conftest.err
30304 cat conftest.err >&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); } && {
30307 test -z "$ac_c_werror_flag" ||
30308 test ! -s conftest.err
30309 } && test -s conftest$ac_exeext &&
30310 $as_test_x conftest$ac_exeext; then
30311 eval "$as_ac_var=yes"
30313 echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30316 eval "$as_ac_var=no"
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320 conftest$ac_exeext conftest.$ac_ext
30322 ac_res=`eval echo '${'$as_ac_var'}'`
30323 { echo "$as_me:$LINENO: result: $ac_res" >&5
30324 echo "${ECHO_T}$ac_res" >&6; }
30325 if test `eval echo '${'$as_ac_var'}'` = yes; then
30326 cat >>confdefs.h <<_ACEOF
30327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30332 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30338 if test $ac_cv_func_strtoll = no; then
30354 for ac_func in strtoul
30356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30360 echo $ECHO_N "(cached) $ECHO_C" >&6
30362 cat >conftest.$ac_ext <<_ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h. */
30368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30370 #define $ac_func innocuous_$ac_func
30372 /* System header to define __stub macros and hopefully few prototypes,
30373 which can conflict with char $ac_func (); below.
30374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30375 <limits.h> exists even on freestanding compilers. */
30378 # include <limits.h>
30380 # include <assert.h>
30385 /* Override any GCC internal prototype to avoid an error.
30386 Use char because int might match the return type of a GCC
30387 builtin and then its argument prototype would still apply. */
30392 /* The GNU C library defines this for functions which it implements
30393 to always fail with ENOSYS. Some functions are actually named
30394 something starting with __ and the normal name is an alias. */
30395 #if defined __stub_$ac_func || defined __stub___$ac_func
30402 return $ac_func ();
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_link") 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } && {
30421 test -z "$ac_c_werror_flag" ||
30422 test ! -s conftest.err
30423 } && test -s conftest$ac_exeext &&
30424 $as_test_x conftest$ac_exeext; then
30425 eval "$as_ac_var=yes"
30427 echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30430 eval "$as_ac_var=no"
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434 conftest$ac_exeext conftest.$ac_ext
30436 ac_res=`eval echo '${'$as_ac_var'}'`
30437 { echo "$as_me:$LINENO: result: $ac_res" >&5
30438 echo "${ECHO_T}$ac_res" >&6; }
30439 if test `eval echo '${'$as_ac_var'}'` = yes; then
30440 cat >>confdefs.h <<_ACEOF
30441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30446 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30455 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
30464 for ac_func in strtoull
30466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30472 cat >conftest.$ac_ext <<_ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30480 #define $ac_func innocuous_$ac_func
30482 /* System header to define __stub macros and hopefully few prototypes,
30483 which can conflict with char $ac_func (); below.
30484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30485 <limits.h> exists even on freestanding compilers. */
30488 # include <limits.h>
30490 # include <assert.h>
30495 /* Override any GCC internal prototype to avoid an error.
30496 Use char because int might match the return type of a GCC
30497 builtin and then its argument prototype would still apply. */
30502 /* The GNU C library defines this for functions which it implements
30503 to always fail with ENOSYS. Some functions are actually named
30504 something starting with __ and the normal name is an alias. */
30505 #if defined __stub_$ac_func || defined __stub___$ac_func
30512 return $ac_func ();
30517 rm -f conftest.$ac_objext conftest$ac_exeext
30518 if { (ac_try="$ac_link"
30519 case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_link") 2>conftest.er1
30526 grep -v '^ *+' conftest.er1 >conftest.err
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && {
30531 test -z "$ac_c_werror_flag" ||
30532 test ! -s conftest.err
30533 } && test -s conftest$ac_exeext &&
30534 $as_test_x conftest$ac_exeext; then
30535 eval "$as_ac_var=yes"
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30540 eval "$as_ac_var=no"
30543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30544 conftest$ac_exeext conftest.$ac_ext
30546 ac_res=`eval echo '${'$as_ac_var'}'`
30547 { echo "$as_me:$LINENO: result: $ac_res" >&5
30548 echo "${ECHO_T}$ac_res" >&6; }
30549 if test `eval echo '${'$as_ac_var'}'` = yes; then
30550 cat >>confdefs.h <<_ACEOF
30551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30556 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30562 if test $ac_cv_func_strtoull = no; then
30573 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
30574 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
30575 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 cat >conftest.$ac_ext <<_ACEOF
30581 cat confdefs.h >>conftest.$ac_ext
30582 cat >>conftest.$ac_ext <<_ACEOF
30583 /* end confdefs.h. */
30584 #include <inttypes.h>
30586 inttypes_h_defines_strtoumax
30589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30590 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
30591 gl_cv_func_strtoumax_macro=yes
30593 gl_cv_func_strtoumax_macro=no
30598 { echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
30599 echo "${ECHO_T}$gl_cv_func_strtoumax_macro" >&6; }
30601 if test "$gl_cv_func_strtoumax_macro" != yes; then
30610 for ac_func in strtoumax
30612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30618 cat >conftest.$ac_ext <<_ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h. */
30624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30626 #define $ac_func innocuous_$ac_func
30628 /* System header to define __stub macros and hopefully few prototypes,
30629 which can conflict with char $ac_func (); below.
30630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631 <limits.h> exists even on freestanding compilers. */
30634 # include <limits.h>
30636 # include <assert.h>
30641 /* Override any GCC internal prototype to avoid an error.
30642 Use char because int might match the return type of a GCC
30643 builtin and then its argument prototype would still apply. */
30648 /* The GNU C library defines this for functions which it implements
30649 to always fail with ENOSYS. Some functions are actually named
30650 something starting with __ and the normal name is an alias. */
30651 #if defined __stub_$ac_func || defined __stub___$ac_func
30658 return $ac_func ();
30663 rm -f conftest.$ac_objext conftest$ac_exeext
30664 if { (ac_try="$ac_link"
30665 case "(($ac_try" in
30666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667 *) ac_try_echo=$ac_try;;
30669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30670 (eval "$ac_link") 2>conftest.er1
30672 grep -v '^ *+' conftest.er1 >conftest.err
30674 cat conftest.err >&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); } && {
30677 test -z "$ac_c_werror_flag" ||
30678 test ! -s conftest.err
30679 } && test -s conftest$ac_exeext &&
30680 $as_test_x conftest$ac_exeext; then
30681 eval "$as_ac_var=yes"
30683 echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30686 eval "$as_ac_var=no"
30689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30690 conftest$ac_exeext conftest.$ac_ext
30692 ac_res=`eval echo '${'$as_ac_var'}'`
30693 { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696 cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30702 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30708 if test $ac_cv_func_strtoumax = no; then
30710 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
30711 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
30712 if test "${ac_cv_have_decl_strtoull+set}" = set; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 cat >conftest.$ac_ext <<_ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721 $ac_includes_default
30733 rm -f conftest.$ac_objext
30734 if { (ac_try="$ac_compile"
30735 case "(($ac_try" in
30736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737 *) ac_try_echo=$ac_try;;
30739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740 (eval "$ac_compile") 2>conftest.er1
30742 grep -v '^ *+' conftest.er1 >conftest.err
30744 cat conftest.err >&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); } && {
30747 test -z "$ac_c_werror_flag" ||
30748 test ! -s conftest.err
30749 } && test -s conftest.$ac_objext; then
30750 ac_cv_have_decl_strtoull=yes
30752 echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30755 ac_cv_have_decl_strtoull=no
30758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30760 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
30761 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
30762 if test $ac_cv_have_decl_strtoull = yes; then
30764 cat >>confdefs.h <<_ACEOF
30765 #define HAVE_DECL_STRTOULL 1
30770 cat >>confdefs.h <<_ACEOF
30771 #define HAVE_DECL_STRTOULL 0
30794 if test $ac_cv_func_lstat = yes; then
30801 { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
30802 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
30803 if test "${ac_cv_have_decl_mkdir+set}" = set; then
30804 echo $ECHO_N "(cached) $ECHO_C" >&6
30806 cat >conftest.$ac_ext <<_ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h. */
30812 #include <sys/stat.h>
30825 rm -f conftest.$ac_objext
30826 if { (ac_try="$ac_compile"
30827 case "(($ac_try" in
30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_compile") 2>conftest.er1
30834 grep -v '^ *+' conftest.er1 >conftest.err
30836 cat conftest.err >&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } && {
30839 test -z "$ac_c_werror_flag" ||
30840 test ! -s conftest.err
30841 } && test -s conftest.$ac_objext; then
30842 ac_cv_have_decl_mkdir=yes
30844 echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30847 ac_cv_have_decl_mkdir=no
30850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30852 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
30853 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
30854 if test $ac_cv_have_decl_mkdir = yes; then
30856 cat >>confdefs.h <<_ACEOF
30857 #define HAVE_DECL_MKDIR 1
30862 cat >>confdefs.h <<_ACEOF
30863 #define HAVE_DECL_MKDIR 0
30867 for ac_header in io.h
30869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30876 ac_res=`eval echo '${'$as_ac_Header'}'`
30877 { echo "$as_me:$LINENO: result: $ac_res" >&5
30878 echo "${ECHO_T}$ac_res" >&6; }
30880 # Is the header compilable?
30881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30883 cat >conftest.$ac_ext <<_ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h. */
30889 $ac_includes_default
30890 #include <$ac_header>
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_compile") 2>conftest.er1
30901 grep -v '^ *+' conftest.er1 >conftest.err
30903 cat conftest.err >&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } && {
30906 test -z "$ac_c_werror_flag" ||
30907 test ! -s conftest.err
30908 } && test -s conftest.$ac_objext; then
30909 ac_header_compiler=yes
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 ac_header_compiler=no
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30919 echo "${ECHO_T}$ac_header_compiler" >&6; }
30921 # Is the header present?
30922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30924 cat >conftest.$ac_ext <<_ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h. */
30930 #include <$ac_header>
30932 if { (ac_try="$ac_cpp conftest.$ac_ext"
30933 case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30940 grep -v '^ *+' conftest.er1 >conftest.err
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } >/dev/null && {
30945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30946 test ! -s conftest.err
30948 ac_header_preproc=yes
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 ac_header_preproc=no
30956 rm -f conftest.err conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30958 echo "${ECHO_T}$ac_header_preproc" >&6; }
30960 # So? What about this header?
30961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30967 ac_header_preproc=yes
30970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30983 ## ------------------------------ ##
30984 ## Report this to bug-tar@gnu.org ##
30985 ## ------------------------------ ##
30987 ) | sed "s/^/$as_me: WARNING: /" >&2
30990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30995 eval "$as_ac_Header=\$ac_header_preproc"
30997 ac_res=`eval echo '${'$as_ac_Header'}'`
30998 { echo "$as_me:$LINENO: result: $ac_res" >&5
30999 echo "${ECHO_T}$ac_res" >&6; }
31002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31003 cat >>confdefs.h <<_ACEOF
31004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31014 if test $ac_cv_have_decl_mkdir = yes; then
31020 if test "$ac_cv_header_io_h" = yes; then
31040 if test $gl_cv_have_include_next = yes; then
31041 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31043 { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31044 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
31045 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31046 echo $ECHO_N "(cached) $ECHO_C" >&6
31049 if test $ac_cv_header_sys_stat_h = yes; then
31050 cat >conftest.$ac_ext <<_ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h. */
31056 #include <sys/stat.h>
31059 gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31060 sed -n '\#/sys/stat.h#{
31061 s#.*"\(.*/sys/stat.h\)".*#\1#
31067 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31071 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31072 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
31074 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31078 SYS_STAT_H='sys/stat.h'
31081 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31082 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31083 if test -z "$MKDIR_P"; then
31084 if test "${ac_cv_path_mkdir+set}" = set; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
31087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31091 test -z "$as_dir" && as_dir=.
31092 for ac_prog in mkdir gmkdir; do
31093 for ac_exec_ext in '' $ac_executable_extensions; do
31094 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31096 'mkdir (GNU coreutils) '* | \
31097 'mkdir (coreutils) '* | \
31098 'mkdir (fileutils) '4.1*)
31099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31109 if test "${ac_cv_path_mkdir+set}" = set; then
31110 MKDIR_P="$ac_cv_path_mkdir -p"
31112 # As a last resort, use the slow shell script. Don't cache a
31113 # value for MKDIR_P within a source directory, because that will
31114 # break other packages using the cache if that directory is
31115 # removed, or if the value is a relative name.
31116 test -d ./--version && rmdir ./--version
31117 MKDIR_P="$ac_install_sh -d"
31120 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31121 echo "${ECHO_T}$MKDIR_P" >&6; }
31126 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31127 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31128 if test -z "$MKDIR_P"; then
31129 if test "${ac_cv_path_mkdir+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31136 test -z "$as_dir" && as_dir=.
31137 for ac_prog in mkdir gmkdir; do
31138 for ac_exec_ext in '' $ac_executable_extensions; do
31139 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31141 'mkdir (GNU coreutils) '* | \
31142 'mkdir (coreutils) '* | \
31143 'mkdir (fileutils) '4.1*)
31144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31154 if test "${ac_cv_path_mkdir+set}" = set; then
31155 MKDIR_P="$ac_cv_path_mkdir -p"
31157 # As a last resort, use the slow shell script. Don't cache a
31158 # value for MKDIR_P within a source directory, because that will
31159 # break other packages using the cache if that directory is
31160 # removed, or if the value is a relative name.
31161 test -d ./--version && rmdir ./--version
31162 MKDIR_P="$ac_install_sh -d"
31165 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31166 echo "${ECHO_T}$MKDIR_P" >&6; }
31175 if test $ac_cv_header_sysexits_h = yes; then
31187 if test $gl_cv_have_include_next = yes; then
31188 gl_cv_next_sysexits_h='<'sysexits.h'>'
31190 { echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
31191 echo $ECHO_N "checking absolute name of <sysexits.h>... $ECHO_C" >&6; }
31192 if test "${gl_cv_next_sysexits_h+set}" = set; then
31193 echo $ECHO_N "(cached) $ECHO_C" >&6
31196 if test $ac_cv_header_sysexits_h = yes; then
31197 cat >conftest.$ac_ext <<_ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h. */
31203 #include <sysexits.h>
31206 gl_cv_next_sysexits_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31207 sed -n '\#/sysexits.h#{
31208 s#.*"\(.*/sysexits.h\)".*#\1#
31214 gl_cv_next_sysexits_h='<'sysexits.h'>'
31218 { echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
31219 echo "${ECHO_T}$gl_cv_next_sysexits_h" >&6; }
31221 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
31225 cat >conftest.$ac_ext <<_ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31231 #include <sysexits.h>
31243 case EX_UNAVAILABLE:
31260 rm -f conftest.$ac_objext
31261 if { (ac_try="$ac_compile"
31262 case "(($ac_try" in
31263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264 *) ac_try_echo=$ac_try;;
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267 (eval "$ac_compile") 2>conftest.er1
31269 grep -v '^ *+' conftest.er1 >conftest.err
31271 cat conftest.err >&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); } && {
31274 test -z "$ac_c_werror_flag" ||
31275 test ! -s conftest.err
31276 } && test -s conftest.$ac_objext; then
31279 echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31282 SYSEXITS_H=sysexits.h
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31288 SYSEXITS_H=sysexits.h
31303 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
31318 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
31319 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
31320 if test "${gl_cv_time_r_posix+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31333 /* We don't need to append 'restrict's to the argument types,
31334 even though the POSIX signature has the 'restrict's,
31335 since C99 says they can't affect type compatibility. */
31336 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
31338 /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */
31339 *localtime_r (0, 0);
31344 rm -f conftest.$ac_objext
31345 if { (ac_try="$ac_compile"
31346 case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_compile") 2>conftest.er1
31353 grep -v '^ *+' conftest.er1 >conftest.err
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } && {
31358 test -z "$ac_c_werror_flag" ||
31359 test ! -s conftest.err
31360 } && test -s conftest.$ac_objext; then
31361 gl_cv_time_r_posix=yes
31363 echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31366 gl_cv_time_r_posix=no
31369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31371 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
31372 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
31373 if test $gl_cv_time_r_posix = yes; then
31374 REPLACE_LOCALTIME_R=0
31376 REPLACE_LOCALTIME_R=1
31384 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
31407 if test $gl_cv_have_include_next = yes; then
31408 gl_cv_next_unistd_h='<'unistd.h'>'
31410 { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
31411 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
31412 if test "${gl_cv_next_unistd_h+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 if test $ac_cv_header_unistd_h = yes; then
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31423 #include <unistd.h>
31426 gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31427 sed -n '\#/unistd.h#{
31428 s#.*"\(.*/unistd.h\)".*#\1#
31434 gl_cv_next_unistd_h='<'unistd.h'>'
31438 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
31439 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
31441 NEXT_UNISTD_H=$gl_cv_next_unistd_h
31452 if test $ac_cv_header_unistd_h = yes; then
31473 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
31482 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
31491 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
31510 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
31513 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
31514 # and Cygwin never let anyone (even root) unlink directories.
31515 # If anyone knows of another system for which unlink can never
31516 # remove a directory, please report it to <bug-coreutils@gnu.org>.
31517 # Unfortunately this is difficult to test for, since it requires root access
31518 # and might create garbage in the file system,
31519 # so the code below simply relies on the kernel name and version number.
31522 *-*-linux-* | *-*-linux | \
31523 *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
31526 cat >>confdefs.h <<\_ACEOF
31527 #define UNLINK_CANNOT_UNLINK_DIR 1
31534 cat >>confdefs.h <<\_ACEOF
31535 #define USE_UNLOCKED_IO 1
31597 for ac_func in unsetenv
31599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31603 echo $ECHO_N "(cached) $ECHO_C" >&6
31605 cat >conftest.$ac_ext <<_ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h. */
31611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31613 #define $ac_func innocuous_$ac_func
31615 /* System header to define __stub macros and hopefully few prototypes,
31616 which can conflict with char $ac_func (); below.
31617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31618 <limits.h> exists even on freestanding compilers. */
31621 # include <limits.h>
31623 # include <assert.h>
31628 /* Override any GCC internal prototype to avoid an error.
31629 Use char because int might match the return type of a GCC
31630 builtin and then its argument prototype would still apply. */
31635 /* The GNU C library defines this for functions which it implements
31636 to always fail with ENOSYS. Some functions are actually named
31637 something starting with __ and the normal name is an alias. */
31638 #if defined __stub_$ac_func || defined __stub___$ac_func
31645 return $ac_func ();
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (ac_try="$ac_link"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_link") 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } && {
31664 test -z "$ac_c_werror_flag" ||
31665 test ! -s conftest.err
31666 } && test -s conftest$ac_exeext &&
31667 $as_test_x conftest$ac_exeext; then
31668 eval "$as_ac_var=yes"
31670 echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31673 eval "$as_ac_var=no"
31676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31677 conftest$ac_exeext conftest.$ac_ext
31679 ac_res=`eval echo '${'$as_ac_var'}'`
31680 { echo "$as_me:$LINENO: result: $ac_res" >&5
31681 echo "${ECHO_T}$ac_res" >&6; }
31682 if test `eval echo '${'$as_ac_var'}'` = yes; then
31683 cat >>confdefs.h <<_ACEOF
31684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31690 if test $ac_cv_func_unsetenv = no; then
31699 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
31711 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
31712 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
31713 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31716 cat >conftest.$ac_ext <<_ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h. */
31722 #include <stdlib.h>
31727 #if defined(__STDC__) || defined(__cplusplus)
31728 int unsetenv (const char *name);
31741 rm -f conftest.$ac_objext
31742 if { (ac_try="$ac_compile"
31743 case "(($ac_try" in
31744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31745 *) ac_try_echo=$ac_try;;
31747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31748 (eval "$ac_compile") 2>conftest.er1
31750 grep -v '^ *+' conftest.er1 >conftest.err
31752 cat conftest.err >&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); } && {
31755 test -z "$ac_c_werror_flag" ||
31756 test ! -s conftest.err
31757 } && test -s conftest.$ac_objext; then
31758 gt_cv_func_unsetenv_ret='int'
31760 echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31763 gt_cv_func_unsetenv_ret='void'
31766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
31769 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
31770 if test $gt_cv_func_unsetenv_ret = 'void'; then
31781 if test $ac_cv_func_utime_null = no; then
31789 gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
31792 cat >>confdefs.h <<\_ACEOF
31793 #define utime rpl_utime
31804 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
31805 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
31806 if test "${ac_cv_func_utimes_null+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 rm -f conftest.data; > conftest.data
31810 if test "$cross_compiling" = yes; then
31811 ac_cv_func_utimes_null=no
31813 cat >conftest.$ac_ext <<_ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31820 /* In case stat has been defined to rpl_stat, undef it here. */
31822 #include <sys/types.h>
31823 #include <sys/stat.h>
31824 #include <sys/time.h>
31828 return ! (stat ("conftest.data", &s) == 0
31829 && utimes ("conftest.data", 0) == 0
31830 && stat ("conftest.data", &t) == 0
31831 && t.st_mtime >= s.st_mtime
31832 && t.st_mtime - s.st_mtime < 120));
31835 rm -f conftest$ac_exeext
31836 if { (ac_try="$ac_link"
31837 case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_link") 2>&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31846 { (case "(($ac_try" in
31847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31848 *) ac_try_echo=$ac_try;;
31850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31851 (eval "$ac_try") 2>&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); }; }; then
31855 ac_cv_func_utimes_null=yes
31857 echo "$as_me: program exited with status $ac_status" >&5
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31861 ( exit $ac_status )
31862 ac_cv_func_utimes_null=no
31864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31868 rm -f core core.* *.core
31870 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
31871 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
31873 if test $ac_cv_func_utimes_null = yes; then
31875 cat >>confdefs.h <<\_ACEOF
31876 #define HAVE_UTIMES_NULL 1
31893 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
31915 if test $ac_cv_func_vasnprintf = no; then
31930 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
31939 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
31948 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
31957 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
31959 if test $ac_cv_func_vasnprintf = yes; then
31961 cat >>confdefs.h <<\_ACEOF
31962 #define REPLACE_VASNPRINTF 1
31976 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31977 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31978 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31981 cat >conftest.$ac_ext <<_ACEOF
31984 cat confdefs.h >>conftest.$ac_ext
31985 cat >>conftest.$ac_ext <<_ACEOF
31986 /* end confdefs.h. */
31987 $ac_includes_default
31988 typedef ptrdiff_t ac__type_new_;
31992 if ((ac__type_new_ *) 0)
31994 if (sizeof (ac__type_new_))
32000 rm -f conftest.$ac_objext
32001 if { (ac_try="$ac_compile"
32002 case "(($ac_try" in
32003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004 *) ac_try_echo=$ac_try;;
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007 (eval "$ac_compile") 2>conftest.er1
32009 grep -v '^ *+' conftest.er1 >conftest.err
32011 cat conftest.err >&5
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); } && {
32014 test -z "$ac_c_werror_flag" ||
32015 test ! -s conftest.err
32016 } && test -s conftest.$ac_objext; then
32017 ac_cv_type_ptrdiff_t=yes
32019 echo "$as_me: failed program was:" >&5
32020 sed 's/^/| /' conftest.$ac_ext >&5
32022 ac_cv_type_ptrdiff_t=no
32025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32027 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32028 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32029 if test $ac_cv_type_ptrdiff_t = yes; then
32033 cat >>confdefs.h <<\_ACEOF
32034 #define ptrdiff_t long
32049 for ac_func in snprintf wcslen
32051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32055 echo $ECHO_N "(cached) $ECHO_C" >&6
32057 cat >conftest.$ac_ext <<_ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h. */
32063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32065 #define $ac_func innocuous_$ac_func
32067 /* System header to define __stub macros and hopefully few prototypes,
32068 which can conflict with char $ac_func (); below.
32069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32070 <limits.h> exists even on freestanding compilers. */
32073 # include <limits.h>
32075 # include <assert.h>
32080 /* Override any GCC internal prototype to avoid an error.
32081 Use char because int might match the return type of a GCC
32082 builtin and then its argument prototype would still apply. */
32087 /* The GNU C library defines this for functions which it implements
32088 to always fail with ENOSYS. Some functions are actually named
32089 something starting with __ and the normal name is an alias. */
32090 #if defined __stub_$ac_func || defined __stub___$ac_func
32097 return $ac_func ();
32102 rm -f conftest.$ac_objext conftest$ac_exeext
32103 if { (ac_try="$ac_link"
32104 case "(($ac_try" in
32105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106 *) ac_try_echo=$ac_try;;
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_link") 2>conftest.er1
32111 grep -v '^ *+' conftest.er1 >conftest.err
32113 cat conftest.err >&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } && {
32116 test -z "$ac_c_werror_flag" ||
32117 test ! -s conftest.err
32118 } && test -s conftest$ac_exeext &&
32119 $as_test_x conftest$ac_exeext; then
32120 eval "$as_ac_var=yes"
32122 echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32125 eval "$as_ac_var=no"
32128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32129 conftest$ac_exeext conftest.$ac_ext
32131 ac_res=`eval echo '${'$as_ac_var'}'`
32132 { echo "$as_me:$LINENO: result: $ac_res" >&5
32133 echo "${ECHO_T}$ac_res" >&6; }
32134 if test `eval echo '${'$as_ac_var'}'` = yes; then
32135 cat >>confdefs.h <<_ACEOF
32136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32142 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
32143 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
32144 if test "${ac_cv_have_decl__snprintf+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32147 cat >conftest.$ac_ext <<_ACEOF
32150 cat confdefs.h >>conftest.$ac_ext
32151 cat >>conftest.$ac_ext <<_ACEOF
32152 /* end confdefs.h. */
32166 rm -f conftest.$ac_objext
32167 if { (ac_try="$ac_compile"
32168 case "(($ac_try" in
32169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170 *) ac_try_echo=$ac_try;;
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173 (eval "$ac_compile") 2>conftest.er1
32175 grep -v '^ *+' conftest.er1 >conftest.err
32177 cat conftest.err >&5
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); } && {
32180 test -z "$ac_c_werror_flag" ||
32181 test ! -s conftest.err
32182 } && test -s conftest.$ac_objext; then
32183 ac_cv_have_decl__snprintf=yes
32185 echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32188 ac_cv_have_decl__snprintf=no
32191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32193 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
32194 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
32195 if test $ac_cv_have_decl__snprintf = yes; then
32197 cat >>confdefs.h <<_ACEOF
32198 #define HAVE_DECL__SNPRINTF 1
32203 cat >>confdefs.h <<_ACEOF
32204 #define HAVE_DECL__SNPRINTF 0
32220 for ac_func in vsnprintf
32222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32226 echo $ECHO_N "(cached) $ECHO_C" >&6
32228 cat >conftest.$ac_ext <<_ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h. */
32234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32236 #define $ac_func innocuous_$ac_func
32238 /* System header to define __stub macros and hopefully few prototypes,
32239 which can conflict with char $ac_func (); below.
32240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32241 <limits.h> exists even on freestanding compilers. */
32244 # include <limits.h>
32246 # include <assert.h>
32251 /* Override any GCC internal prototype to avoid an error.
32252 Use char because int might match the return type of a GCC
32253 builtin and then its argument prototype would still apply. */
32258 /* The GNU C library defines this for functions which it implements
32259 to always fail with ENOSYS. Some functions are actually named
32260 something starting with __ and the normal name is an alias. */
32261 #if defined __stub_$ac_func || defined __stub___$ac_func
32268 return $ac_func ();
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_link") 2>conftest.er1
32282 grep -v '^ *+' conftest.er1 >conftest.err
32284 cat conftest.err >&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } && {
32287 test -z "$ac_c_werror_flag" ||
32288 test ! -s conftest.err
32289 } && test -s conftest$ac_exeext &&
32290 $as_test_x conftest$ac_exeext; then
32291 eval "$as_ac_var=yes"
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32296 eval "$as_ac_var=no"
32299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32300 conftest$ac_exeext conftest.$ac_ext
32302 ac_res=`eval echo '${'$as_ac_var'}'`
32303 { echo "$as_me:$LINENO: result: $ac_res" >&5
32304 echo "${ECHO_T}$ac_res" >&6; }
32305 if test `eval echo '${'$as_ac_var'}'` = yes; then
32306 cat >>confdefs.h <<_ACEOF
32307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32313 if test $ac_cv_func_vsnprintf = no; then
32323 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
32325 if test $ac_cv_func_vsnprintf = yes; then
32326 REPLACE_VSNPRINTF=1
32335 if test $ac_cv_have_decl_vsnprintf = no; then
32336 HAVE_DECL_VSNPRINTF=0
32345 { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
32346 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
32347 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
32348 echo $ECHO_N "(cached) $ECHO_C" >&6
32350 cat >conftest.$ac_ext <<_ACEOF
32354 rm -f conftest.$ac_objext
32355 if { (ac_try="$ac_compile"
32356 case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_compile") 2>conftest.er1
32363 grep -v '^ *+' conftest.er1 >conftest.err
32365 cat conftest.err >&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } && {
32368 test -z "$ac_c_werror_flag" ||
32369 test ! -s conftest.err
32370 } && test -s conftest.$ac_objext; then
32371 gl_cv_header_wchar_h_standalone=yes
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32376 gl_cv_header_wchar_h_standalone=no
32379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32381 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
32382 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
32383 if test $gl_cv_header_wchar_h_standalone != yes; then
32393 if test $ac_cv_header_wchar_h = yes; then
32409 if test $gl_cv_have_include_next = yes; then
32410 gl_cv_next_wchar_h='<'wchar.h'>'
32412 { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32413 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
32414 if test "${gl_cv_next_wchar_h+set}" = set; then
32415 echo $ECHO_N "(cached) $ECHO_C" >&6
32418 if test $ac_cv_header_wchar_h = yes; then
32419 cat >conftest.$ac_ext <<_ACEOF
32422 cat confdefs.h >>conftest.$ac_ext
32423 cat >>conftest.$ac_ext <<_ACEOF
32424 /* end confdefs.h. */
32428 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32429 sed -n '\#/wchar.h#{
32430 s#.*"\(.*/wchar.h\)".*#\1#
32436 gl_cv_next_wchar_h='<'wchar.h'>'
32440 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32441 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
32443 NEXT_WCHAR_H=$gl_cv_next_wchar_h
32455 if test $ac_cv_func_iswcntrl = yes; then
32470 if test $gt_cv_c_wint_t = yes; then
32478 if test $ac_cv_header_wctype_h = yes; then
32479 if test $ac_cv_func_iswcntrl = yes; then
32492 if test $gl_cv_have_include_next = yes; then
32493 gl_cv_next_wctype_h='<'wctype.h'>'
32495 { echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
32496 echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
32497 if test "${gl_cv_next_wctype_h+set}" = set; then
32498 echo $ECHO_N "(cached) $ECHO_C" >&6
32501 if test $ac_cv_header_wctype_h = yes; then
32502 cat >conftest.$ac_ext <<_ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 #include <wctype.h>
32511 gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32512 sed -n '\#/wctype.h#{
32513 s#.*"\(.*/wctype.h\)".*#\1#
32519 gl_cv_next_wctype_h='<'wctype.h'>'
32523 { echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
32524 echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
32526 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
32558 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
32559 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
32560 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
32561 echo $ECHO_N "(cached) $ECHO_C" >&6
32563 cat >conftest.$ac_ext <<_ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h. */
32570 /* AIX 3.2.5 declares wcwidth in <string.h>. */
32571 #include <string.h>
32572 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32574 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32575 before <wchar.h>. */
32576 #include <stddef.h>
32593 rm -f conftest.$ac_objext
32594 if { (ac_try="$ac_compile"
32595 case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_compile") 2>conftest.er1
32602 grep -v '^ *+' conftest.er1 >conftest.err
32604 cat conftest.err >&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } && {
32607 test -z "$ac_c_werror_flag" ||
32608 test ! -s conftest.err
32609 } && test -s conftest.$ac_objext; then
32610 ac_cv_have_decl_wcwidth=yes
32612 echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32615 ac_cv_have_decl_wcwidth=no
32618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
32621 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
32622 if test $ac_cv_have_decl_wcwidth = yes; then
32624 cat >>confdefs.h <<_ACEOF
32625 #define HAVE_DECL_WCWIDTH 1
32630 cat >>confdefs.h <<_ACEOF
32631 #define HAVE_DECL_WCWIDTH 0
32638 if test $ac_cv_have_decl_wcwidth != yes; then
32639 HAVE_DECL_WCWIDTH=0
32642 if test $ac_cv_func_wcwidth = no; then
32645 { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
32646 echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
32647 if test "${gl_cv_func_wcwidth_works+set}" = set; then
32648 echo $ECHO_N "(cached) $ECHO_C" >&6
32651 if test "$cross_compiling" = yes; then
32652 gl_cv_func_wcwidth_works="guessing no"
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32661 #include <locale.h>
32662 /* AIX 3.2.5 declares wcwidth in <string.h>. */
32663 #include <string.h>
32664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32667 before <wchar.h>. */
32668 #include <stddef.h>
32672 #if !HAVE_DECL_WCWIDTH
32674 # ifdef __cplusplus
32681 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
32682 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
32687 rm -f conftest$ac_exeext
32688 if { (ac_try="$ac_link"
32689 case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_link") 2>&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32698 { (case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_try") 2>&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; }; then
32707 gl_cv_func_wcwidth_works=yes
32709 echo "$as_me: program exited with status $ac_status" >&5
32710 echo "$as_me: failed program was:" >&5
32711 sed 's/^/| /' conftest.$ac_ext >&5
32713 ( exit $ac_status )
32714 gl_cv_func_wcwidth_works=no
32716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32722 { echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
32723 echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
32724 case "$gl_cv_func_wcwidth_works" in
32726 *no) REPLACE_WCWIDTH=1 ;;
32729 if test $REPLACE_WCWIDTH = 1; then
32737 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
32741 if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
32757 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
32776 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
32785 for ac_header in stdint.h
32787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32792 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 ac_res=`eval echo '${'$as_ac_Header'}'`
32795 { echo "$as_me:$LINENO: result: $ac_res" >&5
32796 echo "${ECHO_T}$ac_res" >&6; }
32798 # Is the header compilable?
32799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h. */
32807 $ac_includes_default
32808 #include <$ac_header>
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.$ac_objext; then
32827 ac_header_compiler=yes
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32832 ac_header_compiler=no
32835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32837 echo "${ECHO_T}$ac_header_compiler" >&6; }
32839 # Is the header present?
32840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32842 cat >conftest.$ac_ext <<_ACEOF
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h. */
32848 #include <$ac_header>
32850 if { (ac_try="$ac_cpp conftest.$ac_ext"
32851 case "(($ac_try" in
32852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32853 *) ac_try_echo=$ac_try;;
32855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32858 grep -v '^ *+' conftest.er1 >conftest.err
32860 cat conftest.err >&5
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } >/dev/null && {
32863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32864 test ! -s conftest.err
32866 ac_header_preproc=yes
32868 echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32871 ac_header_preproc=no
32874 rm -f conftest.err conftest.$ac_ext
32875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32876 echo "${ECHO_T}$ac_header_preproc" >&6; }
32878 # So? What about this header?
32879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32885 ac_header_preproc=yes
32888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32901 ## ------------------------------ ##
32902 ## Report this to bug-tar@gnu.org ##
32903 ## ------------------------------ ##
32905 ) | sed "s/^/$as_me: WARNING: /" >&2
32908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32913 eval "$as_ac_Header=\$ac_header_preproc"
32915 ac_res=`eval echo '${'$as_ac_Header'}'`
32916 { echo "$as_me:$LINENO: result: $ac_res" >&5
32917 echo "${ECHO_T}$ac_res" >&6; }
32920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32921 cat >>confdefs.h <<_ACEOF
32922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32943 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
32952 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
32961 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
32973 gl_source_base='.#bootmp/tests'
32978 LIBTAR_LIBDEPS="$gl_libdeps"
32980 LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
32992 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32993 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32994 if test "${ac_cv_header_time+set}" = set; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32997 cat >conftest.$ac_ext <<_ACEOF
33000 cat confdefs.h >>conftest.$ac_ext
33001 cat >>conftest.$ac_ext <<_ACEOF
33002 /* end confdefs.h. */
33003 #include <sys/types.h>
33004 #include <sys/time.h>
33010 if ((struct tm *) 0)
33016 rm -f conftest.$ac_objext
33017 if { (ac_try="$ac_compile"
33018 case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_compile") 2>conftest.er1
33025 grep -v '^ *+' conftest.er1 >conftest.err
33027 cat conftest.err >&5
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); } && {
33030 test -z "$ac_c_werror_flag" ||
33031 test ! -s conftest.err
33032 } && test -s conftest.$ac_objext; then
33033 ac_cv_header_time=yes
33035 echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33038 ac_cv_header_time=no
33041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33043 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33044 echo "${ECHO_T}$ac_cv_header_time" >&6; }
33045 if test $ac_cv_header_time = yes; then
33047 cat >>confdefs.h <<\_ACEOF
33048 #define TIME_WITH_SYS_TIME 1
33053 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33054 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33055 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33056 echo $ECHO_N "(cached) $ECHO_C" >&6
33058 cat >conftest.$ac_ext <<_ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h. */
33064 $ac_includes_default
33068 static struct stat ac_aggr;
33069 if (ac_aggr.st_blksize)
33075 rm -f conftest.$ac_objext
33076 if { (ac_try="$ac_compile"
33077 case "(($ac_try" in
33078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079 *) ac_try_echo=$ac_try;;
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082 (eval "$ac_compile") 2>conftest.er1
33084 grep -v '^ *+' conftest.er1 >conftest.err
33086 cat conftest.err >&5
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); } && {
33089 test -z "$ac_c_werror_flag" ||
33090 test ! -s conftest.err
33091 } && test -s conftest.$ac_objext; then
33092 ac_cv_member_struct_stat_st_blksize=yes
33094 echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 $ac_includes_default
33107 static struct stat ac_aggr;
33108 if (sizeof ac_aggr.st_blksize)
33114 rm -f conftest.$ac_objext
33115 if { (ac_try="$ac_compile"
33116 case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_compile") 2>conftest.er1
33123 grep -v '^ *+' conftest.er1 >conftest.err
33125 cat conftest.err >&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); } && {
33128 test -z "$ac_c_werror_flag" ||
33129 test ! -s conftest.err
33130 } && test -s conftest.$ac_objext; then
33131 ac_cv_member_struct_stat_st_blksize=yes
33133 echo "$as_me: failed program was:" >&5
33134 sed 's/^/| /' conftest.$ac_ext >&5
33136 ac_cv_member_struct_stat_st_blksize=no
33139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33148 cat >>confdefs.h <<_ACEOF
33149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33153 cat >>confdefs.h <<\_ACEOF
33154 #define HAVE_ST_BLKSIZE 1
33166 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
33169 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33170 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33171 if test "${ac_cv_search_setsockopt+set}" = set; then
33172 echo $ECHO_N "(cached) $ECHO_C" >&6
33174 ac_func_search_save_LIBS=$LIBS
33175 cat >conftest.$ac_ext <<_ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33182 /* Override any GCC internal prototype to avoid an error.
33183 Use char because int might match the return type of a GCC
33184 builtin and then its argument prototype would still apply. */
33188 char setsockopt ();
33192 return setsockopt ();
33197 for ac_lib in '' socket; do
33198 if test -z "$ac_lib"; then
33199 ac_res="none required"
33202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33204 rm -f conftest.$ac_objext conftest$ac_exeext
33205 if { (ac_try="$ac_link"
33206 case "(($ac_try" in
33207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208 *) ac_try_echo=$ac_try;;
33210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211 (eval "$ac_link") 2>conftest.er1
33213 grep -v '^ *+' conftest.er1 >conftest.err
33215 cat conftest.err >&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); } && {
33218 test -z "$ac_c_werror_flag" ||
33219 test ! -s conftest.err
33220 } && test -s conftest$ac_exeext &&
33221 $as_test_x conftest$ac_exeext; then
33222 ac_cv_search_setsockopt=$ac_res
33224 echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33232 if test "${ac_cv_search_setsockopt+set}" = set; then
33236 if test "${ac_cv_search_setsockopt+set}" = set; then
33239 ac_cv_search_setsockopt=no
33241 rm conftest.$ac_ext
33242 LIBS=$ac_func_search_save_LIBS
33244 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33245 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33246 ac_res=$ac_cv_search_setsockopt
33247 if test "$ac_res" != no; then
33248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33251 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33252 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33253 if test "${ac_cv_search_setsockopt+set}" = set; then
33254 echo $ECHO_N "(cached) $ECHO_C" >&6
33256 ac_func_search_save_LIBS=$LIBS
33257 cat >conftest.$ac_ext <<_ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h. */
33264 /* Override any GCC internal prototype to avoid an error.
33265 Use char because int might match the return type of a GCC
33266 builtin and then its argument prototype would still apply. */
33270 char setsockopt ();
33274 return setsockopt ();
33279 for ac_lib in '' socket; do
33280 if test -z "$ac_lib"; then
33281 ac_res="none required"
33284 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
33286 rm -f conftest.$ac_objext conftest$ac_exeext
33287 if { (ac_try="$ac_link"
33288 case "(($ac_try" in
33289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290 *) ac_try_echo=$ac_try;;
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293 (eval "$ac_link") 2>conftest.er1
33295 grep -v '^ *+' conftest.er1 >conftest.err
33297 cat conftest.err >&5
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); } && {
33300 test -z "$ac_c_werror_flag" ||
33301 test ! -s conftest.err
33302 } && test -s conftest$ac_exeext &&
33303 $as_test_x conftest$ac_exeext; then
33304 ac_cv_search_setsockopt=$ac_res
33306 echo "$as_me: failed program was:" >&5
33307 sed 's/^/| /' conftest.$ac_ext >&5
33312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33314 if test "${ac_cv_search_setsockopt+set}" = set; then
33318 if test "${ac_cv_search_setsockopt+set}" = set; then
33321 ac_cv_search_setsockopt=no
33323 rm conftest.$ac_ext
33324 LIBS=$ac_func_search_save_LIBS
33326 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33327 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33328 ac_res=$ac_cv_search_setsockopt
33329 if test "$ac_res" != no; then
33330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33336 { echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
33337 echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6; }
33338 if test "${ac_cv_search_setsockopt+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33341 ac_func_search_save_LIBS=$LIBS
33342 cat >conftest.$ac_ext <<_ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h. */
33349 /* Override any GCC internal prototype to avoid an error.
33350 Use char because int might match the return type of a GCC
33351 builtin and then its argument prototype would still apply. */
33355 char setsockopt ();
33359 return setsockopt ();
33364 for ac_lib in '' nsl; do
33365 if test -z "$ac_lib"; then
33366 ac_res="none required"
33369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33371 rm -f conftest.$ac_objext conftest$ac_exeext
33372 if { (ac_try="$ac_link"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_link") 2>conftest.er1
33380 grep -v '^ *+' conftest.er1 >conftest.err
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && {
33385 test -z "$ac_c_werror_flag" ||
33386 test ! -s conftest.err
33387 } && test -s conftest$ac_exeext &&
33388 $as_test_x conftest$ac_exeext; then
33389 ac_cv_search_setsockopt=$ac_res
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33399 if test "${ac_cv_search_setsockopt+set}" = set; then
33403 if test "${ac_cv_search_setsockopt+set}" = set; then
33406 ac_cv_search_setsockopt=no
33408 rm conftest.$ac_ext
33409 LIBS=$ac_func_search_save_LIBS
33411 { echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
33412 echo "${ECHO_T}$ac_cv_search_setsockopt" >&6; }
33413 ac_res=$ac_cv_search_setsockopt
33414 if test "$ac_res" != no; then
33415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33420 case "$ac_cv_search_setsockopt" in
33421 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
33427 if test $ac_cv_header_sys_mtio_h = yes; then
33428 { echo "$as_me:$LINENO: checking for remote tape header files" >&5
33429 echo $ECHO_N "checking for remote tape header files... $ECHO_C" >&6; }
33430 if test "${pu_cv_header_rmt+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33433 cat >conftest.$ac_ext <<_ACEOF
33436 cat confdefs.h >>conftest.$ac_ext
33437 cat >>conftest.$ac_ext <<_ACEOF
33438 /* end confdefs.h. */
33441 # include <sgtty.h>
33443 #include <sys/socket.h>
33445 if { (ac_try="$ac_cpp conftest.$ac_ext"
33446 case "(($ac_try" in
33447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448 *) ac_try_echo=$ac_try;;
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33453 grep -v '^ *+' conftest.er1 >conftest.err
33455 cat conftest.err >&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); } >/dev/null && {
33458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33459 test ! -s conftest.err
33461 pu_cv_header_rmt=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 pu_cv_header_rmt=no
33469 rm -f conftest.err conftest.$ac_ext
33471 { echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
33472 echo "${ECHO_T}$pu_cv_header_rmt" >&6; }
33473 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
33479 for ac_header in sys/mtio.h
33481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33486 echo $ECHO_N "(cached) $ECHO_C" >&6
33488 ac_res=`eval echo '${'$as_ac_Header'}'`
33489 { echo "$as_me:$LINENO: result: $ac_res" >&5
33490 echo "${ECHO_T}$ac_res" >&6; }
33492 # Is the header compilable?
33493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33495 cat >conftest.$ac_ext <<_ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h. */
33501 $ac_includes_default
33502 #include <$ac_header>
33504 rm -f conftest.$ac_objext
33505 if { (ac_try="$ac_compile"
33506 case "(($ac_try" in
33507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508 *) ac_try_echo=$ac_try;;
33510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511 (eval "$ac_compile") 2>conftest.er1
33513 grep -v '^ *+' conftest.er1 >conftest.err
33515 cat conftest.err >&5
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); } && {
33518 test -z "$ac_c_werror_flag" ||
33519 test ! -s conftest.err
33520 } && test -s conftest.$ac_objext; then
33521 ac_header_compiler=yes
33523 echo "$as_me: failed program was:" >&5
33524 sed 's/^/| /' conftest.$ac_ext >&5
33526 ac_header_compiler=no
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33531 echo "${ECHO_T}$ac_header_compiler" >&6; }
33533 # Is the header present?
33534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33536 cat >conftest.$ac_ext <<_ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h. */
33542 #include <$ac_header>
33544 if { (ac_try="$ac_cpp conftest.$ac_ext"
33545 case "(($ac_try" in
33546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547 *) ac_try_echo=$ac_try;;
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33552 grep -v '^ *+' conftest.er1 >conftest.err
33554 cat conftest.err >&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); } >/dev/null && {
33557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33558 test ! -s conftest.err
33560 ac_header_preproc=yes
33562 echo "$as_me: failed program was:" >&5
33563 sed 's/^/| /' conftest.$ac_ext >&5
33565 ac_header_preproc=no
33568 rm -f conftest.err conftest.$ac_ext
33569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33570 echo "${ECHO_T}$ac_header_preproc" >&6; }
33572 # So? What about this header?
33573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33579 ac_header_preproc=yes
33582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33595 ## ------------------------------ ##
33596 ## Report this to bug-tar@gnu.org ##
33597 ## ------------------------------ ##
33599 ) | sed "s/^/$as_me: WARNING: /" >&2
33602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33605 echo $ECHO_N "(cached) $ECHO_C" >&6
33607 eval "$as_ac_Header=\$ac_header_preproc"
33609 ac_res=`eval echo '${'$as_ac_Header'}'`
33610 { echo "$as_me:$LINENO: result: $ac_res" >&5
33611 echo "${ECHO_T}$ac_res" >&6; }
33614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33615 cat >>confdefs.h <<_ACEOF
33616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33623 { echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
33624 echo $ECHO_N "checking which ioctl field to test for reversed bytes... $ECHO_C" >&6; }
33625 if test "${pu_cv_header_mtio_check_field+set}" = set; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 cat >conftest.$ac_ext <<_ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 #include <sys/mtio.h>
33637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33638 $EGREP "mt_model" >/dev/null 2>&1; then
33639 pu_cv_header_mtio_check_field=mt_model
33641 pu_cv_header_mtio_check_field=mt_type
33646 { echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
33647 echo "${ECHO_T}$pu_cv_header_mtio_check_field" >&6; }
33649 cat >>confdefs.h <<_ACEOF
33650 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
33656 if test "x$DEFAULT_RMT_DIR" != x; then
33657 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
33659 DEFAULT_RMT_DIR='$(libexecdir)'
33662 { echo "$as_me:$LINENO: checking whether to build rmt" >&5
33663 echo $ECHO_N "checking whether to build rmt... $ECHO_C" >&6; }
33665 # Check whether --with-rmt was given.
33666 if test "${with_rmt+set}" = set; then
33667 withval=$with_rmt; case $withval in
33668 yes|no) { { echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
33669 echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
33670 { (exit 1); exit 1; }; };;
33671 /*) DEFAULT_RMT_COMMAND=$withval
33672 { echo "$as_me:$LINENO: result: no, use $withval instead" >&5
33673 echo "${ECHO_T}no, use $withval instead" >&6; };;
33674 *) { { echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
33675 echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
33676 { (exit 1); exit 1; }; };;
33679 { echo "$as_me:$LINENO: result: yes" >&5
33680 echo "${ECHO_T}yes" >&6; }
33682 if test "$PU_RMT_PROG" = ""; then
33683 { echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
33684 echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
33690 if test "x$DEFAULT_RMT_COMMAND" != x; then
33692 cat >>confdefs.h <<_ACEOF
33693 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
33749 for ac_header in sys/buf.h
33751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33755 echo $ECHO_N "(cached) $ECHO_C" >&6
33757 cat >conftest.$ac_ext <<_ACEOF
33760 cat confdefs.h >>conftest.$ac_ext
33761 cat >>conftest.$ac_ext <<_ACEOF
33762 /* end confdefs.h. */
33763 #if HAVE_SYS_PARAM_H
33764 #include <sys/param.h>
33767 #include <$ac_header>
33769 rm -f conftest.$ac_objext
33770 if { (ac_try="$ac_compile"
33771 case "(($ac_try" in
33772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33773 *) ac_try_echo=$ac_try;;
33775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33776 (eval "$ac_compile") 2>conftest.er1
33778 grep -v '^ *+' conftest.er1 >conftest.err
33780 cat conftest.err >&5
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } && {
33783 test -z "$ac_c_werror_flag" ||
33784 test ! -s conftest.err
33785 } && test -s conftest.$ac_objext; then
33786 eval "$as_ac_Header=yes"
33788 echo "$as_me: failed program was:" >&5
33789 sed 's/^/| /' conftest.$ac_ext >&5
33791 eval "$as_ac_Header=no"
33794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33796 ac_res=`eval echo '${'$as_ac_Header'}'`
33797 { echo "$as_me:$LINENO: result: $ac_res" >&5
33798 echo "${ECHO_T}$ac_res" >&6; }
33799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33800 cat >>confdefs.h <<_ACEOF
33801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33811 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33812 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33813 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33814 echo $ECHO_N "(cached) $ECHO_C" >&6
33816 cat >conftest.$ac_ext <<_ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h. */
33822 $ac_includes_default
33826 static struct stat ac_aggr;
33827 if (ac_aggr.st_blksize)
33833 rm -f conftest.$ac_objext
33834 if { (ac_try="$ac_compile"
33835 case "(($ac_try" in
33836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837 *) ac_try_echo=$ac_try;;
33839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33840 (eval "$ac_compile") 2>conftest.er1
33842 grep -v '^ *+' conftest.er1 >conftest.err
33844 cat conftest.err >&5
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); } && {
33847 test -z "$ac_c_werror_flag" ||
33848 test ! -s conftest.err
33849 } && test -s conftest.$ac_objext; then
33850 ac_cv_member_struct_stat_st_blksize=yes
33852 echo "$as_me: failed program was:" >&5
33853 sed 's/^/| /' conftest.$ac_ext >&5
33855 cat >conftest.$ac_ext <<_ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h. */
33861 $ac_includes_default
33865 static struct stat ac_aggr;
33866 if (sizeof ac_aggr.st_blksize)
33872 rm -f conftest.$ac_objext
33873 if { (ac_try="$ac_compile"
33874 case "(($ac_try" in
33875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876 *) ac_try_echo=$ac_try;;
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879 (eval "$ac_compile") 2>conftest.er1
33881 grep -v '^ *+' conftest.er1 >conftest.err
33883 cat conftest.err >&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } && {
33886 test -z "$ac_c_werror_flag" ||
33887 test ! -s conftest.err
33888 } && test -s conftest.$ac_objext; then
33889 ac_cv_member_struct_stat_st_blksize=yes
33891 echo "$as_me: failed program was:" >&5
33892 sed 's/^/| /' conftest.$ac_ext >&5
33894 ac_cv_member_struct_stat_st_blksize=no
33897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33902 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33903 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33904 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33906 cat >>confdefs.h <<_ACEOF
33907 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33938 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
33940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33944 echo $ECHO_N "(cached) $ECHO_C" >&6
33946 cat >conftest.$ac_ext <<_ACEOF
33949 cat confdefs.h >>conftest.$ac_ext
33950 cat >>conftest.$ac_ext <<_ACEOF
33951 /* end confdefs.h. */
33952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33954 #define $ac_func innocuous_$ac_func
33956 /* System header to define __stub macros and hopefully few prototypes,
33957 which can conflict with char $ac_func (); below.
33958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33959 <limits.h> exists even on freestanding compilers. */
33962 # include <limits.h>
33964 # include <assert.h>
33969 /* Override any GCC internal prototype to avoid an error.
33970 Use char because int might match the return type of a GCC
33971 builtin and then its argument prototype would still apply. */
33976 /* The GNU C library defines this for functions which it implements
33977 to always fail with ENOSYS. Some functions are actually named
33978 something starting with __ and the normal name is an alias. */
33979 #if defined __stub_$ac_func || defined __stub___$ac_func
33986 return $ac_func ();
33991 rm -f conftest.$ac_objext conftest$ac_exeext
33992 if { (ac_try="$ac_link"
33993 case "(($ac_try" in
33994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33995 *) ac_try_echo=$ac_try;;
33997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33998 (eval "$ac_link") 2>conftest.er1
34000 grep -v '^ *+' conftest.er1 >conftest.err
34002 cat conftest.err >&5
34003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004 (exit $ac_status); } && {
34005 test -z "$ac_c_werror_flag" ||
34006 test ! -s conftest.err
34007 } && test -s conftest$ac_exeext &&
34008 $as_test_x conftest$ac_exeext; then
34009 eval "$as_ac_var=yes"
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34014 eval "$as_ac_var=no"
34017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34018 conftest$ac_exeext conftest.$ac_ext
34020 ac_res=`eval echo '${'$as_ac_var'}'`
34021 { echo "$as_me:$LINENO: result: $ac_res" >&5
34022 echo "${ECHO_T}$ac_res" >&6; }
34023 if test `eval echo '${'$as_ac_var'}'` = yes; then
34024 cat >>confdefs.h <<_ACEOF
34025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
34032 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
34033 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 cat >conftest.$ac_ext <<_ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h. */
34055 rm -f conftest.$ac_objext
34056 if { (ac_try="$ac_compile"
34057 case "(($ac_try" in
34058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059 *) ac_try_echo=$ac_try;;
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062 (eval "$ac_compile") 2>conftest.er1
34064 grep -v '^ *+' conftest.er1 >conftest.err
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } && {
34069 test -z "$ac_c_werror_flag" ||
34070 test ! -s conftest.err
34071 } && test -s conftest.$ac_objext; then
34072 ac_cv_have_decl_getgrgid=yes
34074 echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34077 ac_cv_have_decl_getgrgid=no
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34082 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
34083 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
34084 if test $ac_cv_have_decl_getgrgid = yes; then
34086 cat >>confdefs.h <<_ACEOF
34087 #define HAVE_DECL_GETGRGID 1
34092 cat >>confdefs.h <<_ACEOF
34093 #define HAVE_DECL_GETGRGID 0
34100 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
34101 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
34102 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
34103 echo $ECHO_N "(cached) $ECHO_C" >&6
34105 cat >conftest.$ac_ext <<_ACEOF
34108 cat confdefs.h >>conftest.$ac_ext
34109 cat >>conftest.$ac_ext <<_ACEOF
34110 /* end confdefs.h. */
34124 rm -f conftest.$ac_objext
34125 if { (ac_try="$ac_compile"
34126 case "(($ac_try" in
34127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34128 *) ac_try_echo=$ac_try;;
34130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34131 (eval "$ac_compile") 2>conftest.er1
34133 grep -v '^ *+' conftest.er1 >conftest.err
34135 cat conftest.err >&5
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); } && {
34138 test -z "$ac_c_werror_flag" ||
34139 test ! -s conftest.err
34140 } && test -s conftest.$ac_objext; then
34141 ac_cv_have_decl_getpwuid=yes
34143 echo "$as_me: failed program was:" >&5
34144 sed 's/^/| /' conftest.$ac_ext >&5
34146 ac_cv_have_decl_getpwuid=no
34149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34151 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
34152 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
34153 if test $ac_cv_have_decl_getpwuid = yes; then
34155 cat >>confdefs.h <<_ACEOF
34156 #define HAVE_DECL_GETPWUID 1
34161 cat >>confdefs.h <<_ACEOF
34162 #define HAVE_DECL_GETPWUID 0
34169 { echo "$as_me:$LINENO: checking whether time is declared" >&5
34170 echo $ECHO_N "checking whether time is declared... $ECHO_C" >&6; }
34171 if test "${ac_cv_have_decl_time+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34174 cat >conftest.$ac_ext <<_ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_compile") 2>conftest.er1
34202 grep -v '^ *+' conftest.er1 >conftest.err
34204 cat conftest.err >&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } && {
34207 test -z "$ac_c_werror_flag" ||
34208 test ! -s conftest.err
34209 } && test -s conftest.$ac_objext; then
34210 ac_cv_have_decl_time=yes
34212 echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34215 ac_cv_have_decl_time=no
34218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
34221 echo "${ECHO_T}$ac_cv_have_decl_time" >&6; }
34222 if test $ac_cv_have_decl_time = yes; then
34224 cat >>confdefs.h <<_ACEOF
34225 #define HAVE_DECL_TIME 1
34230 cat >>confdefs.h <<_ACEOF
34231 #define HAVE_DECL_TIME 0
34240 for ac_func in waitpid
34242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34248 cat >conftest.$ac_ext <<_ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h. */
34254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34256 #define $ac_func innocuous_$ac_func
34258 /* System header to define __stub macros and hopefully few prototypes,
34259 which can conflict with char $ac_func (); below.
34260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34261 <limits.h> exists even on freestanding compilers. */
34264 # include <limits.h>
34266 # include <assert.h>
34271 /* Override any GCC internal prototype to avoid an error.
34272 Use char because int might match the return type of a GCC
34273 builtin and then its argument prototype would still apply. */
34278 /* The GNU C library defines this for functions which it implements
34279 to always fail with ENOSYS. Some functions are actually named
34280 something starting with __ and the normal name is an alias. */
34281 #if defined __stub_$ac_func || defined __stub___$ac_func
34288 return $ac_func ();
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (ac_try="$ac_link"
34295 case "(($ac_try" in
34296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297 *) ac_try_echo=$ac_try;;
34299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300 (eval "$ac_link") 2>conftest.er1
34302 grep -v '^ *+' conftest.er1 >conftest.err
34304 cat conftest.err >&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); } && {
34307 test -z "$ac_c_werror_flag" ||
34308 test ! -s conftest.err
34309 } && test -s conftest$ac_exeext &&
34310 $as_test_x conftest$ac_exeext; then
34311 eval "$as_ac_var=yes"
34313 echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34316 eval "$as_ac_var=no"
34319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34320 conftest$ac_exeext conftest.$ac_ext
34322 ac_res=`eval echo '${'$as_ac_var'}'`
34323 { echo "$as_me:$LINENO: result: $ac_res" >&5
34324 echo "${ECHO_T}$ac_res" >&6; }
34325 if test `eval echo '${'$as_ac_var'}'` = yes; then
34326 cat >>confdefs.h <<_ACEOF
34327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34331 case " $LIBOBJS " in
34332 *" $ac_func.$ac_objext "* ) ;;
34333 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34342 { echo "$as_me:$LINENO: checking for remote shell" >&5
34343 echo $ECHO_N "checking for remote shell... $ECHO_C" >&6; }
34344 if test "${tar_cv_path_RSH+set}" = set; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 if test -n "$RSH"; then
34348 tar_cv_path_RSH=$RSH
34351 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
34352 /usr/bin/nsh /usr/bin/rcmd
34354 # Prefer a non-symlink rsh to a symlink one, so that binaries built
34355 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
34356 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
34357 if test -f $ac_file; then
34358 if (test -h $ac_file) 2>/dev/null; then
34359 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
34361 tar_cv_path_RSH=$ac_file
34368 { echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
34369 echo "${ECHO_T}$tar_cv_path_RSH" >&6; }
34370 if test $tar_cv_path_RSH = no; then
34372 for ac_header in netdb.h
34374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34381 ac_res=`eval echo '${'$as_ac_Header'}'`
34382 { echo "$as_me:$LINENO: result: $ac_res" >&5
34383 echo "${ECHO_T}$ac_res" >&6; }
34385 # Is the header compilable?
34386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34388 cat >conftest.$ac_ext <<_ACEOF
34391 cat confdefs.h >>conftest.$ac_ext
34392 cat >>conftest.$ac_ext <<_ACEOF
34393 /* end confdefs.h. */
34394 $ac_includes_default
34395 #include <$ac_header>
34397 rm -f conftest.$ac_objext
34398 if { (ac_try="$ac_compile"
34399 case "(($ac_try" in
34400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34401 *) ac_try_echo=$ac_try;;
34403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34404 (eval "$ac_compile") 2>conftest.er1
34406 grep -v '^ *+' conftest.er1 >conftest.err
34408 cat conftest.err >&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); } && {
34411 test -z "$ac_c_werror_flag" ||
34412 test ! -s conftest.err
34413 } && test -s conftest.$ac_objext; then
34414 ac_header_compiler=yes
34416 echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34419 ac_header_compiler=no
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34424 echo "${ECHO_T}$ac_header_compiler" >&6; }
34426 # Is the header present?
34427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34429 cat >conftest.$ac_ext <<_ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h. */
34435 #include <$ac_header>
34437 if { (ac_try="$ac_cpp conftest.$ac_ext"
34438 case "(($ac_try" in
34439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34440 *) ac_try_echo=$ac_try;;
34442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34445 grep -v '^ *+' conftest.er1 >conftest.err
34447 cat conftest.err >&5
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); } >/dev/null && {
34450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34451 test ! -s conftest.err
34453 ac_header_preproc=yes
34455 echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34458 ac_header_preproc=no
34461 rm -f conftest.err conftest.$ac_ext
34462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34463 echo "${ECHO_T}$ac_header_preproc" >&6; }
34465 # So? What about this header?
34466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34472 ac_header_preproc=yes
34475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34488 ## ------------------------------ ##
34489 ## Report this to bug-tar@gnu.org ##
34490 ## ------------------------------ ##
34492 ) | sed "s/^/$as_me: WARNING: /" >&2
34495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34498 echo $ECHO_N "(cached) $ECHO_C" >&6
34500 eval "$as_ac_Header=\$ac_header_preproc"
34502 ac_res=`eval echo '${'$as_ac_Header'}'`
34503 { echo "$as_me:$LINENO: result: $ac_res" >&5
34504 echo "${ECHO_T}$ac_res" >&6; }
34507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34508 cat >>confdefs.h <<_ACEOF
34509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34518 cat >>confdefs.h <<_ACEOF
34519 #define REMOTE_SHELL "$tar_cv_path_RSH"
34524 { echo "$as_me:$LINENO: checking for default archive format" >&5
34525 echo $ECHO_N "checking for default archive format... $ECHO_C" >&6; }
34529 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
34530 DEFAULT_ARCHIVE_FORMAT="GNU"
34532 case $DEFAULT_ARCHIVE_FORMAT in
34533 V7|OLDGNU|USTAR|POSIX|GNU) ;;
34534 *) { { echo "$as_me:$LINENO: error: Invalid format name" >&5
34535 echo "$as_me: error: Invalid format name" >&2;}
34536 { (exit 1); exit 1; }; };;
34539 cat >>confdefs.h <<_ACEOF
34540 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
34543 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
34544 echo "${ECHO_T}$DEFAULT_ARCHIVE_FORMAT" >&6; }
34546 { echo "$as_me:$LINENO: checking for default archive" >&5
34547 echo $ECHO_N "checking for default archive... $ECHO_C" >&6; }
34550 if test -z "$DEFAULT_ARCHIVE"; then
34553 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
34554 { echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
34555 echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
34557 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
34558 # FIXME: Let DEVICE_PREFIX be configured from the environment.
34559 # FIXME: Rearrange, here.
34560 case $DEFAULT_ARCHIVE in
34563 cat >>confdefs.h <<\_ACEOF
34564 #define DENSITY_LETTER 1
34567 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
34570 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
34576 case "$device_prefix" in
34579 cat >>confdefs.h <<_ACEOF
34580 #define DEVICE_PREFIX "$device_prefix"
34587 cat >>confdefs.h <<_ACEOF
34588 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
34591 { echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
34592 echo "${ECHO_T}$DEFAULT_ARCHIVE" >&6; }
34595 { echo "$as_me:$LINENO: checking for default blocking" >&5
34596 echo $ECHO_N "checking for default blocking... $ECHO_C" >&6; }
34597 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
34599 cat >>confdefs.h <<_ACEOF
34600 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
34603 { echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
34604 echo "${ECHO_T}$DEFAULT_BLOCKING" >&6; }
34606 { echo "$as_me:$LINENO: checking for default quoting style" >&5
34607 echo $ECHO_N "checking for default quoting style... $ECHO_C" >&6; }
34610 DEFAULT_QUOTING_STYLE="escape"
34613 case $DEFAULT_QUOTING_STYLE in
34614 literal|shell|shell-always|c|escape|locale|clocale) ;;
34615 *) { { echo "$as_me:$LINENO: error: Invalid quoting style" >&5
34616 echo "$as_me: error: Invalid quoting style" >&2;}
34617 { (exit 1); exit 1; }; };;
34619 { echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
34620 echo "${ECHO_T}$DEFAULT_QUOTING_STYLE" >&6; }
34621 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
34623 cat >>confdefs.h <<_ACEOF
34624 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
34630 if test "X$prefix" = "XNONE"; then
34631 acl_final_prefix="$ac_default_prefix"
34633 acl_final_prefix="$prefix"
34635 if test "X$exec_prefix" = "XNONE"; then
34636 acl_final_exec_prefix='${prefix}'
34638 acl_final_exec_prefix="$exec_prefix"
34640 acl_save_prefix="$prefix"
34641 prefix="$acl_final_prefix"
34642 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
34643 prefix="$acl_save_prefix"
34646 # Check whether --with-gnu-ld was given.
34647 if test "${with_gnu_ld+set}" = set; then
34648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34653 # Prepare PATH_SEPARATOR.
34654 # The user is always right.
34655 if test "${PATH_SEPARATOR+set}" != set; then
34656 echo "#! /bin/sh" >conf$$.sh
34657 echo "exit 0" >>conf$$.sh
34659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34667 if test "$GCC" = yes; then
34668 # Check if gcc -print-prog-name=ld gives a path.
34669 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
34670 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
34673 # gcc leaves a trailing carriage return which upsets mingw
34674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34679 # Accept absolute paths.
34680 [\\/]* | [A-Za-z]:[\\/]*)
34681 re_direlt='/[^/][^/]*/\.\./'
34682 # Canonicalize the path of ld
34683 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
34684 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34685 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
34687 test -z "$LD" && LD="$ac_prog"
34690 # If it fails, then pretend we aren't using GCC.
34694 # If it is relative, then search for the first ld in PATH.
34695 with_gnu_ld=unknown
34698 elif test "$with_gnu_ld" = yes; then
34699 { echo "$as_me:$LINENO: checking for GNU ld" >&5
34700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
34702 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
34705 if test "${acl_cv_path_LD+set}" = set; then
34706 echo $ECHO_N "(cached) $ECHO_C" >&6
34708 if test -z "$LD"; then
34709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
34710 for ac_dir in $PATH; do
34711 test -z "$ac_dir" && ac_dir=.
34712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34713 acl_cv_path_LD="$ac_dir/$ac_prog"
34714 # Check to see if the program is GNU ld. I'd rather use --version,
34715 # but apparently some GNU ld's only accept -v.
34716 # Break only if it was the GNU/non-GNU ld that we prefer.
34717 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
34718 *GNU* | *'with BFD'*)
34719 test "$with_gnu_ld" != no && break ;;
34721 test "$with_gnu_ld" != yes && break ;;
34727 acl_cv_path_LD="$LD" # Let the user override the test with a path.
34731 LD="$acl_cv_path_LD"
34732 if test -n "$LD"; then
34733 { echo "$as_me:$LINENO: result: $LD" >&5
34734 echo "${ECHO_T}$LD" >&6; }
34736 { echo "$as_me:$LINENO: result: no" >&5
34737 echo "${ECHO_T}no" >&6; }
34739 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34740 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34741 { (exit 1); exit 1; }; }
34742 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34743 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
34744 if test "${acl_cv_prog_gnu_ld+set}" = set; then
34745 echo $ECHO_N "(cached) $ECHO_C" >&6
34747 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
34748 case `$LD -v 2>&1 </dev/null` in
34749 *GNU* | *'with BFD'*)
34750 acl_cv_prog_gnu_ld=yes ;;
34752 acl_cv_prog_gnu_ld=no ;;
34755 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
34756 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
34757 with_gnu_ld=$acl_cv_prog_gnu_ld
34762 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
34763 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
34764 if test "${acl_cv_rpath+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
34769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
34771 rm -f ./conftest.sh
34775 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
34776 echo "${ECHO_T}$acl_cv_rpath" >&6; }
34778 acl_libext="$acl_cv_libext"
34779 acl_shlibext="$acl_cv_shlibext"
34780 acl_libname_spec="$acl_cv_libname_spec"
34781 acl_library_names_spec="$acl_cv_library_names_spec"
34782 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
34783 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
34784 acl_hardcode_direct="$acl_cv_hardcode_direct"
34785 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
34786 # Check whether --enable-rpath was given.
34787 if test "${enable_rpath+set}" = set; then
34788 enableval=$enable_rpath; :
34796 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
34797 if test -n "$searchpath"; then
34798 acl_save_IFS="${IFS= }"; IFS=":"
34799 for searchdir in $searchpath; do
34800 if test -d "$searchdir"; then
34801 case "$searchdir" in
34802 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
34803 *) searchdir=`cd "$searchdir" && pwd`
34804 case "$searchdir" in
34805 */lib64 ) acl_libdirstem=lib64 ;;
34810 IFS="$acl_save_IFS"
34826 acl_save_prefix="$prefix"
34827 prefix="$acl_final_prefix"
34828 acl_save_exec_prefix="$exec_prefix"
34829 exec_prefix="$acl_final_exec_prefix"
34831 eval additional_includedir=\"$includedir\"
34832 eval additional_libdir=\"$libdir\"
34834 exec_prefix="$acl_save_exec_prefix"
34835 prefix="$acl_save_prefix"
34838 # Check whether --with-libiconv-prefix was given.
34839 if test "${with_libiconv_prefix+set}" = set; then
34840 withval=$with_libiconv_prefix;
34841 if test "X$withval" = "Xno"; then
34844 if test "X$withval" = "X"; then
34846 acl_save_prefix="$prefix"
34847 prefix="$acl_final_prefix"
34848 acl_save_exec_prefix="$exec_prefix"
34849 exec_prefix="$acl_final_exec_prefix"
34851 eval additional_includedir=\"$includedir\"
34852 eval additional_libdir=\"$libdir\"
34854 exec_prefix="$acl_save_exec_prefix"
34855 prefix="$acl_save_prefix"
34858 additional_includedir="$withval/include"
34859 additional_libdir="$withval/$acl_libdirstem"
34871 names_already_handled=
34872 names_next_round='iconv '
34873 while test -n "$names_next_round"; do
34874 names_this_round="$names_next_round"
34876 for name in $names_this_round; do
34878 for n in $names_already_handled; do
34879 if test "$n" = "$name"; then
34880 already_handled=yes
34884 if test -z "$already_handled"; then
34885 names_already_handled="$names_already_handled $name"
34886 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34887 eval value=\"\$HAVE_LIB$uppername\"
34888 if test -n "$value"; then
34889 if test "$value" = yes; then
34890 eval value=\"\$LIB$uppername\"
34891 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
34892 eval value=\"\$LTLIB$uppername\"
34893 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
34902 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
34903 if test -n "$acl_shlibext"; then
34904 shrext=".$acl_shlibext" # typically: shrext=.so
34908 if test $use_additional = yes; then
34909 dir="$additional_libdir"
34910 if test -n "$acl_shlibext"; then
34911 if test -f "$dir/$libname$shrext"; then
34913 found_so="$dir/$libname$shrext"
34915 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34916 ver=`(cd "$dir" && \
34917 for f in "$libname$shrext".*; do echo "$f"; done \
34918 | sed -e "s,^$libname$shrext\\\\.,," \
34919 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34920 | sed 1q ) 2>/dev/null`
34921 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34923 found_so="$dir/$libname$shrext.$ver"
34926 eval library_names=\"$acl_library_names_spec\"
34927 for f in $library_names; do
34928 if test -f "$dir/$f"; then
34937 if test "X$found_dir" = "X"; then
34938 if test -f "$dir/$libname.$acl_libext"; then
34940 found_a="$dir/$libname.$acl_libext"
34943 if test "X$found_dir" != "X"; then
34944 if test -f "$dir/$libname.la"; then
34945 found_la="$dir/$libname.la"
34949 if test "X$found_dir" = "X"; then
34950 for x in $LDFLAGS $LTLIBICONV; do
34952 acl_save_prefix="$prefix"
34953 prefix="$acl_final_prefix"
34954 acl_save_exec_prefix="$exec_prefix"
34955 exec_prefix="$acl_final_exec_prefix"
34957 exec_prefix="$acl_save_exec_prefix"
34958 prefix="$acl_save_prefix"
34962 dir=`echo "X$x" | sed -e 's/^X-L//'`
34963 if test -n "$acl_shlibext"; then
34964 if test -f "$dir/$libname$shrext"; then
34966 found_so="$dir/$libname$shrext"
34968 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34969 ver=`(cd "$dir" && \
34970 for f in "$libname$shrext".*; do echo "$f"; done \
34971 | sed -e "s,^$libname$shrext\\\\.,," \
34972 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34973 | sed 1q ) 2>/dev/null`
34974 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34976 found_so="$dir/$libname$shrext.$ver"
34979 eval library_names=\"$acl_library_names_spec\"
34980 for f in $library_names; do
34981 if test -f "$dir/$f"; then
34990 if test "X$found_dir" = "X"; then
34991 if test -f "$dir/$libname.$acl_libext"; then
34993 found_a="$dir/$libname.$acl_libext"
34996 if test "X$found_dir" != "X"; then
34997 if test -f "$dir/$libname.la"; then
34998 found_la="$dir/$libname.la"
35003 if test "X$found_dir" != "X"; then
35008 if test "X$found_dir" != "X"; then
35009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
35010 if test "X$found_so" != "X"; then
35011 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
35012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35015 for x in $ltrpathdirs; do
35016 if test "X$x" = "X$found_dir"; then
35021 if test -z "$haveit"; then
35022 ltrpathdirs="$ltrpathdirs $found_dir"
35024 if test "$acl_hardcode_direct" = yes; then
35025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35027 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35028 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35030 for x in $rpathdirs; do
35031 if test "X$x" = "X$found_dir"; then
35036 if test -z "$haveit"; then
35037 rpathdirs="$rpathdirs $found_dir"
35041 for x in $LDFLAGS $LIBICONV; do
35043 acl_save_prefix="$prefix"
35044 prefix="$acl_final_prefix"
35045 acl_save_exec_prefix="$exec_prefix"
35046 exec_prefix="$acl_final_exec_prefix"
35048 exec_prefix="$acl_save_exec_prefix"
35049 prefix="$acl_save_prefix"
35051 if test "X$x" = "X-L$found_dir"; then
35056 if test -z "$haveit"; then
35057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
35059 if test "$acl_hardcode_minus_L" != no; then
35060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35062 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35068 if test "X$found_a" != "X"; then
35069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
35071 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
35074 additional_includedir=
35075 case "$found_dir" in
35076 */$acl_libdirstem | */$acl_libdirstem/)
35077 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35078 LIBICONV_PREFIX="$basedir"
35079 additional_includedir="$basedir/include"
35082 if test "X$additional_includedir" != "X"; then
35083 if test "X$additional_includedir" != "X/usr/include"; then
35085 if test "X$additional_includedir" = "X/usr/local/include"; then
35086 if test -n "$GCC"; then
35088 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35092 if test -z "$haveit"; then
35093 for x in $CPPFLAGS $INCICONV; do
35095 acl_save_prefix="$prefix"
35096 prefix="$acl_final_prefix"
35097 acl_save_exec_prefix="$exec_prefix"
35098 exec_prefix="$acl_final_exec_prefix"
35100 exec_prefix="$acl_save_exec_prefix"
35101 prefix="$acl_save_prefix"
35103 if test "X$x" = "X-I$additional_includedir"; then
35108 if test -z "$haveit"; then
35109 if test -d "$additional_includedir"; then
35110 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
35116 if test -n "$found_la"; then
35117 save_libdir="$libdir"
35118 case "$found_la" in
35119 */* | *\\*) . "$found_la" ;;
35120 *) . "./$found_la" ;;
35122 libdir="$save_libdir"
35123 for dep in $dependency_libs; do
35126 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35127 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
35129 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
35130 if test -n "$GCC"; then
35132 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35136 if test -z "$haveit"; then
35138 for x in $LDFLAGS $LIBICONV; do
35140 acl_save_prefix="$prefix"
35141 prefix="$acl_final_prefix"
35142 acl_save_exec_prefix="$exec_prefix"
35143 exec_prefix="$acl_final_exec_prefix"
35145 exec_prefix="$acl_save_exec_prefix"
35146 prefix="$acl_save_prefix"
35148 if test "X$x" = "X-L$additional_libdir"; then
35153 if test -z "$haveit"; then
35154 if test -d "$additional_libdir"; then
35155 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
35159 for x in $LDFLAGS $LTLIBICONV; do
35161 acl_save_prefix="$prefix"
35162 prefix="$acl_final_prefix"
35163 acl_save_exec_prefix="$exec_prefix"
35164 exec_prefix="$acl_final_exec_prefix"
35166 exec_prefix="$acl_save_exec_prefix"
35167 prefix="$acl_save_prefix"
35169 if test "X$x" = "X-L$additional_libdir"; then
35174 if test -z "$haveit"; then
35175 if test -d "$additional_libdir"; then
35176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
35183 dir=`echo "X$dep" | sed -e 's/^X-R//'`
35184 if test "$enable_rpath" != no; then
35186 for x in $rpathdirs; do
35187 if test "X$x" = "X$dir"; then
35192 if test -z "$haveit"; then
35193 rpathdirs="$rpathdirs $dir"
35196 for x in $ltrpathdirs; do
35197 if test "X$x" = "X$dir"; then
35202 if test -z "$haveit"; then
35203 ltrpathdirs="$ltrpathdirs $dir"
35208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35214 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
35215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
35221 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35222 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
35228 if test "X$rpathdirs" != "X"; then
35229 if test -n "$acl_hardcode_libdir_separator"; then
35231 for found_dir in $rpathdirs; do
35232 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35234 acl_save_libdir="$libdir"
35236 eval flag=\"$acl_hardcode_libdir_flag_spec\"
35237 libdir="$acl_save_libdir"
35238 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35240 for found_dir in $rpathdirs; do
35241 acl_save_libdir="$libdir"
35242 libdir="$found_dir"
35243 eval flag=\"$acl_hardcode_libdir_flag_spec\"
35244 libdir="$acl_save_libdir"
35245 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35249 if test "X$ltrpathdirs" != "X"; then
35250 for found_dir in $ltrpathdirs; do
35251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
35266 am_save_CPPFLAGS="$CPPFLAGS"
35268 for element in $INCICONV; do
35270 for x in $CPPFLAGS; do
35272 acl_save_prefix="$prefix"
35273 prefix="$acl_final_prefix"
35274 acl_save_exec_prefix="$exec_prefix"
35275 exec_prefix="$acl_final_exec_prefix"
35277 exec_prefix="$acl_save_exec_prefix"
35278 prefix="$acl_save_prefix"
35280 if test "X$x" = "X$element"; then
35285 if test -z "$haveit"; then
35286 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
35291 { echo "$as_me:$LINENO: checking for iconv" >&5
35292 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35293 if test "${am_cv_func_iconv+set}" = set; then
35294 echo $ECHO_N "(cached) $ECHO_C" >&6
35297 am_cv_func_iconv="no, consider installing GNU libiconv"
35299 cat >conftest.$ac_ext <<_ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h. */
35305 #include <stdlib.h>
35310 iconv_t cd = iconv_open("","");
35311 iconv(cd,NULL,NULL,NULL,NULL);
35317 rm -f conftest.$ac_objext conftest$ac_exeext
35318 if { (ac_try="$ac_link"
35319 case "(($ac_try" in
35320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35321 *) ac_try_echo=$ac_try;;
35323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35324 (eval "$ac_link") 2>conftest.er1
35326 grep -v '^ *+' conftest.er1 >conftest.err
35328 cat conftest.err >&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); } && {
35331 test -z "$ac_c_werror_flag" ||
35332 test ! -s conftest.err
35333 } && test -s conftest$ac_exeext &&
35334 $as_test_x conftest$ac_exeext; then
35335 am_cv_func_iconv=yes
35337 echo "$as_me: failed program was:" >&5
35338 sed 's/^/| /' conftest.$ac_ext >&5
35343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35344 conftest$ac_exeext conftest.$ac_ext
35345 if test "$am_cv_func_iconv" != yes; then
35346 am_save_LIBS="$LIBS"
35347 LIBS="$LIBS $LIBICONV"
35348 cat >conftest.$ac_ext <<_ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h. */
35354 #include <stdlib.h>
35359 iconv_t cd = iconv_open("","");
35360 iconv(cd,NULL,NULL,NULL,NULL);
35366 rm -f conftest.$ac_objext conftest$ac_exeext
35367 if { (ac_try="$ac_link"
35368 case "(($ac_try" in
35369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35370 *) ac_try_echo=$ac_try;;
35372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35373 (eval "$ac_link") 2>conftest.er1
35375 grep -v '^ *+' conftest.er1 >conftest.err
35377 cat conftest.err >&5
35378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); } && {
35380 test -z "$ac_c_werror_flag" ||
35381 test ! -s conftest.err
35382 } && test -s conftest$ac_exeext &&
35383 $as_test_x conftest$ac_exeext; then
35384 am_cv_lib_iconv=yes
35385 am_cv_func_iconv=yes
35387 echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35394 conftest$ac_exeext conftest.$ac_ext
35395 LIBS="$am_save_LIBS"
35399 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35400 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35401 if test "$am_cv_func_iconv" = yes; then
35402 { echo "$as_me:$LINENO: checking for working iconv" >&5
35403 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
35404 if test "${am_cv_func_iconv_works+set}" = set; then
35405 echo $ECHO_N "(cached) $ECHO_C" >&6
35408 am_save_LIBS="$LIBS"
35409 if test $am_cv_lib_iconv = yes; then
35410 LIBS="$LIBS $LIBICONV"
35412 if test "$cross_compiling" = yes; then
35414 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
35415 *) am_cv_func_iconv_works="guessing yes" ;;
35418 cat >conftest.$ac_ext <<_ACEOF
35421 cat confdefs.h >>conftest.$ac_ext
35422 cat >>conftest.$ac_ext <<_ACEOF
35423 /* end confdefs.h. */
35426 #include <string.h>
35429 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
35432 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
35433 if (cd_utf8_to_88591 != (iconv_t)(-1))
35435 static const char input[] = "\342\202\254"; /* EURO SIGN */
35437 const char *inptr = input;
35438 size_t inbytesleft = strlen (input);
35439 char *outptr = buf;
35440 size_t outbytesleft = sizeof (buf);
35441 size_t res = iconv (cd_utf8_to_88591,
35442 (char **) &inptr, &inbytesleft,
35443 &outptr, &outbytesleft);
35448 #if 0 /* This bug could be worked around by the caller. */
35449 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
35451 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
35452 if (cd_88591_to_utf8 != (iconv_t)(-1))
35454 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
35456 const char *inptr = input;
35457 size_t inbytesleft = strlen (input);
35458 char *outptr = buf;
35459 size_t outbytesleft = sizeof (buf);
35460 size_t res = iconv (cd_88591_to_utf8,
35461 (char **) &inptr, &inbytesleft,
35462 &outptr, &outbytesleft);
35468 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
35470 if (/* Try standardized names. */
35471 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
35472 /* Try IRIX, OSF/1 names. */
35473 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
35474 /* Try AIX names. */
35475 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
35476 /* Try HP-UX names. */
35477 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
35482 rm -f conftest$ac_exeext
35483 if { (ac_try="$ac_link"
35484 case "(($ac_try" in
35485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486 *) ac_try_echo=$ac_try;;
35488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35489 (eval "$ac_link") 2>&5
35491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35493 { (case "(($ac_try" in
35494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495 *) ac_try_echo=$ac_try;;
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498 (eval "$ac_try") 2>&5
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; }; then
35502 am_cv_func_iconv_works=yes
35504 echo "$as_me: program exited with status $ac_status" >&5
35505 echo "$as_me: failed program was:" >&5
35506 sed 's/^/| /' conftest.$ac_ext >&5
35508 ( exit $ac_status )
35509 am_cv_func_iconv_works=no
35511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35515 LIBS="$am_save_LIBS"
35518 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
35519 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
35520 case "$am_cv_func_iconv_works" in
35521 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
35522 *) am_func_iconv=yes ;;
35525 am_func_iconv=no am_cv_lib_iconv=no
35527 if test "$am_func_iconv" = yes; then
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_ICONV 1
35534 if test "$am_cv_lib_iconv" = yes; then
35535 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
35536 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
35537 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
35538 echo "${ECHO_T}$LIBICONV" >&6; }
35540 CPPFLAGS="$am_save_CPPFLAGS"
35547 if test "$am_cv_func_iconv" = yes; then
35548 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
35549 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
35550 if test "${am_cv_proto_iconv+set}" = set; then
35551 echo $ECHO_N "(cached) $ECHO_C" >&6
35554 cat >conftest.$ac_ext <<_ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35561 #include <stdlib.h>
35567 #if defined(__STDC__) || defined(__cplusplus)
35568 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35581 rm -f conftest.$ac_objext
35582 if { (ac_try="$ac_compile"
35583 case "(($ac_try" in
35584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585 *) ac_try_echo=$ac_try;;
35587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35588 (eval "$ac_compile") 2>conftest.er1
35590 grep -v '^ *+' conftest.er1 >conftest.err
35592 cat conftest.err >&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); } && {
35595 test -z "$ac_c_werror_flag" ||
35596 test ! -s conftest.err
35597 } && test -s conftest.$ac_objext; then
35598 am_cv_proto_iconv_arg1=""
35600 echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35603 am_cv_proto_iconv_arg1="const"
35606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607 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);"
35610 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
35611 { echo "$as_me:$LINENO: result: ${ac_t:-
35612 }$am_cv_proto_iconv" >&5
35613 echo "${ECHO_T}${ac_t:-
35614 }$am_cv_proto_iconv" >&6; }
35616 cat >>confdefs.h <<_ACEOF
35617 #define ICONV_CONST $am_cv_proto_iconv_arg1
35623 for ac_header in iconv.h
35625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35632 ac_res=`eval echo '${'$as_ac_Header'}'`
35633 { echo "$as_me:$LINENO: result: $ac_res" >&5
35634 echo "${ECHO_T}$ac_res" >&6; }
35636 # Is the header compilable?
35637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35639 cat >conftest.$ac_ext <<_ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h. */
35645 $ac_includes_default
35646 #include <$ac_header>
35648 rm -f conftest.$ac_objext
35649 if { (ac_try="$ac_compile"
35650 case "(($ac_try" in
35651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35652 *) ac_try_echo=$ac_try;;
35654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35655 (eval "$ac_compile") 2>conftest.er1
35657 grep -v '^ *+' conftest.er1 >conftest.err
35659 cat conftest.err >&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); } && {
35662 test -z "$ac_c_werror_flag" ||
35663 test ! -s conftest.err
35664 } && test -s conftest.$ac_objext; then
35665 ac_header_compiler=yes
35667 echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35670 ac_header_compiler=no
35673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35675 echo "${ECHO_T}$ac_header_compiler" >&6; }
35677 # Is the header present?
35678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35680 cat >conftest.$ac_ext <<_ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h. */
35686 #include <$ac_header>
35688 if { (ac_try="$ac_cpp conftest.$ac_ext"
35689 case "(($ac_try" in
35690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35691 *) ac_try_echo=$ac_try;;
35693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35696 grep -v '^ *+' conftest.er1 >conftest.err
35698 cat conftest.err >&5
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } >/dev/null && {
35701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35702 test ! -s conftest.err
35704 ac_header_preproc=yes
35706 echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35709 ac_header_preproc=no
35712 rm -f conftest.err conftest.$ac_ext
35713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35714 echo "${ECHO_T}$ac_header_preproc" >&6; }
35716 # So? What about this header?
35717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35723 ac_header_preproc=yes
35726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35739 ## ------------------------------ ##
35740 ## Report this to bug-tar@gnu.org ##
35741 ## ------------------------------ ##
35743 ) | sed "s/^/$as_me: WARNING: /" >&2
35746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35749 echo $ECHO_N "(cached) $ECHO_C" >&6
35751 eval "$as_ac_Header=\$ac_header_preproc"
35753 ac_res=`eval echo '${'$as_ac_Header'}'`
35754 { echo "$as_me:$LINENO: result: $ac_res" >&5
35755 echo "${ECHO_T}$ac_res" >&6; }
35758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35759 cat >>confdefs.h <<_ACEOF
35760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35767 { echo "$as_me:$LINENO: checking for iconv_t" >&5
35768 echo $ECHO_N "checking for iconv_t... $ECHO_C" >&6; }
35769 if test "${ac_cv_type_iconv_t+set}" = set; then
35770 echo $ECHO_N "(cached) $ECHO_C" >&6
35772 cat >conftest.$ac_ext <<_ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h. */
35779 #ifdef HAVE_ICONV_H
35780 # include <iconv.h>
35784 typedef iconv_t ac__type_new_;
35788 if ((ac__type_new_ *) 0)
35790 if (sizeof (ac__type_new_))
35796 rm -f conftest.$ac_objext
35797 if { (ac_try="$ac_compile"
35798 case "(($ac_try" in
35799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800 *) ac_try_echo=$ac_try;;
35802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35803 (eval "$ac_compile") 2>conftest.er1
35805 grep -v '^ *+' conftest.er1 >conftest.err
35807 cat conftest.err >&5
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); } && {
35810 test -z "$ac_c_werror_flag" ||
35811 test ! -s conftest.err
35812 } && test -s conftest.$ac_objext; then
35813 ac_cv_type_iconv_t=yes
35815 echo "$as_me: failed program was:" >&5
35816 sed 's/^/| /' conftest.$ac_ext >&5
35818 ac_cv_type_iconv_t=no
35821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35823 { echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
35824 echo "${ECHO_T}$ac_cv_type_iconv_t" >&6; }
35825 if test $ac_cv_type_iconv_t = yes; then
35829 cat >>confdefs.h <<\_ACEOF
35830 #define iconv_t int
35838 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
35839 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
35840 # Check whether --enable-nls was given.
35841 if test "${enable_nls+set}" = set; then
35842 enableval=$enable_nls; USE_NLS=$enableval
35847 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
35848 echo "${ECHO_T}$USE_NLS" >&6; }
35853 GETTEXT_MACRO_VERSION=0.17
35858 # Prepare PATH_SEPARATOR.
35859 # The user is always right.
35860 if test "${PATH_SEPARATOR+set}" != set; then
35861 echo "#! /bin/sh" >conf$$.sh
35862 echo "exit 0" >>conf$$.sh
35864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35872 # Find out how to test for executable files. Don't use a zero-byte file,
35873 # as systems may use methods other than mode bits to determine executability.
35874 cat >conf$$.file <<_ASEOF
35878 chmod +x conf$$.file
35879 if test -x conf$$.file >/dev/null 2>&1; then
35880 ac_executable_p="test -x"
35882 ac_executable_p="test -f"
35886 # Extract the first word of "msgfmt", so it can be a program name with args.
35887 set dummy msgfmt; ac_word=$2
35888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35890 if test "${ac_cv_path_MSGFMT+set}" = set; then
35891 echo $ECHO_N "(cached) $ECHO_C" >&6
35895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
35898 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35899 for ac_dir in $PATH; do
35901 test -z "$ac_dir" && ac_dir=.
35902 for ac_exec_ext in '' $ac_executable_extensions; do
35903 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35904 echo "$as_me: trying $ac_dir/$ac_word..." >&5
35905 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
35906 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35907 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
35914 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
35918 MSGFMT="$ac_cv_path_MSGFMT"
35919 if test "$MSGFMT" != ":"; then
35920 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
35921 echo "${ECHO_T}$MSGFMT" >&6; }
35923 { echo "$as_me:$LINENO: result: no" >&5
35924 echo "${ECHO_T}no" >&6; }
35927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
35928 set dummy gmsgfmt; ac_word=$2
35929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
35932 echo $ECHO_N "(cached) $ECHO_C" >&6
35936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
35939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35940 for as_dir in $PATH
35943 test -z "$as_dir" && as_dir=.
35944 for ac_exec_ext in '' $ac_executable_extensions; do
35945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35946 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
35947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35954 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
35958 GMSGFMT=$ac_cv_path_GMSGFMT
35959 if test -n "$GMSGFMT"; then
35960 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
35961 echo "${ECHO_T}$GMSGFMT" >&6; }
35963 { echo "$as_me:$LINENO: result: no" >&5
35964 echo "${ECHO_T}no" >&6; }
35969 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35970 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
35971 *) MSGFMT_015=$MSGFMT ;;
35974 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35975 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
35976 *) GMSGFMT_015=$GMSGFMT ;;
35981 # Prepare PATH_SEPARATOR.
35982 # The user is always right.
35983 if test "${PATH_SEPARATOR+set}" != set; then
35984 echo "#! /bin/sh" >conf$$.sh
35985 echo "exit 0" >>conf$$.sh
35987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35995 # Find out how to test for executable files. Don't use a zero-byte file,
35996 # as systems may use methods other than mode bits to determine executability.
35997 cat >conf$$.file <<_ASEOF
36001 chmod +x conf$$.file
36002 if test -x conf$$.file >/dev/null 2>&1; then
36003 ac_executable_p="test -x"
36005 ac_executable_p="test -f"
36009 # Extract the first word of "xgettext", so it can be a program name with args.
36010 set dummy xgettext; ac_word=$2
36011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36013 if test "${ac_cv_path_XGETTEXT+set}" = set; then
36014 echo $ECHO_N "(cached) $ECHO_C" >&6
36016 case "$XGETTEXT" in
36018 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
36021 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36022 for ac_dir in $PATH; do
36024 test -z "$ac_dir" && ac_dir=.
36025 for ac_exec_ext in '' $ac_executable_extensions; do
36026 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36027 echo "$as_me: trying $ac_dir/$ac_word..." >&5
36028 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
36029 (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
36030 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
36037 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
36041 XGETTEXT="$ac_cv_path_XGETTEXT"
36042 if test "$XGETTEXT" != ":"; then
36043 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
36044 echo "${ECHO_T}$XGETTEXT" >&6; }
36046 { echo "$as_me:$LINENO: result: no" >&5
36047 echo "${ECHO_T}no" >&6; }
36052 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
36053 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
36054 *) XGETTEXT_015=$XGETTEXT ;;
36059 # Prepare PATH_SEPARATOR.
36060 # The user is always right.
36061 if test "${PATH_SEPARATOR+set}" != set; then
36062 echo "#! /bin/sh" >conf$$.sh
36063 echo "exit 0" >>conf$$.sh
36065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36073 # Find out how to test for executable files. Don't use a zero-byte file,
36074 # as systems may use methods other than mode bits to determine executability.
36075 cat >conf$$.file <<_ASEOF
36079 chmod +x conf$$.file
36080 if test -x conf$$.file >/dev/null 2>&1; then
36081 ac_executable_p="test -x"
36083 ac_executable_p="test -f"
36087 # Extract the first word of "msgmerge", so it can be a program name with args.
36088 set dummy msgmerge; ac_word=$2
36089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36091 if test "${ac_cv_path_MSGMERGE+set}" = set; then
36092 echo $ECHO_N "(cached) $ECHO_C" >&6
36094 case "$MSGMERGE" in
36096 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
36099 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
36100 for ac_dir in $PATH; do
36102 test -z "$ac_dir" && ac_dir=.
36103 for ac_exec_ext in '' $ac_executable_extensions; do
36104 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
36105 echo "$as_me: trying $ac_dir/$ac_word..." >&5
36106 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
36107 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
36114 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
36118 MSGMERGE="$ac_cv_path_MSGMERGE"
36119 if test "$MSGMERGE" != ":"; then
36120 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
36121 echo "${ECHO_T}$MSGMERGE" >&6; }
36123 { echo "$as_me:$LINENO: result: no" >&5
36124 echo "${ECHO_T}no" >&6; }
36128 test -n "$localedir" || localedir='${datadir}/locale'
36131 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
36134 ac_config_commands="$ac_config_commands po-directories"
36160 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
36161 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
36162 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
36163 echo $ECHO_N "(cached) $ECHO_C" >&6
36165 gt_save_LIBS="$LIBS"
36166 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36167 cat >conftest.$ac_ext <<_ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h. */
36173 #include <CoreFoundation/CFPreferences.h>
36177 CFPreferencesCopyAppValue(NULL, NULL)
36182 rm -f conftest.$ac_objext conftest$ac_exeext
36183 if { (ac_try="$ac_link"
36184 case "(($ac_try" in
36185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186 *) ac_try_echo=$ac_try;;
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189 (eval "$ac_link") 2>conftest.er1
36191 grep -v '^ *+' conftest.er1 >conftest.err
36193 cat conftest.err >&5
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); } && {
36196 test -z "$ac_c_werror_flag" ||
36197 test ! -s conftest.err
36198 } && test -s conftest$ac_exeext &&
36199 $as_test_x conftest$ac_exeext; then
36200 gt_cv_func_CFPreferencesCopyAppValue=yes
36202 echo "$as_me: failed program was:" >&5
36203 sed 's/^/| /' conftest.$ac_ext >&5
36205 gt_cv_func_CFPreferencesCopyAppValue=no
36208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36209 conftest$ac_exeext conftest.$ac_ext
36210 LIBS="$gt_save_LIBS"
36212 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36213 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
36214 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36216 cat >>confdefs.h <<\_ACEOF
36217 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
36221 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
36222 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
36223 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
36224 echo $ECHO_N "(cached) $ECHO_C" >&6
36226 gt_save_LIBS="$LIBS"
36227 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
36228 cat >conftest.$ac_ext <<_ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h. */
36234 #include <CoreFoundation/CFLocale.h>
36238 CFLocaleCopyCurrent();
36243 rm -f conftest.$ac_objext conftest$ac_exeext
36244 if { (ac_try="$ac_link"
36245 case "(($ac_try" in
36246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247 *) ac_try_echo=$ac_try;;
36249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36250 (eval "$ac_link") 2>conftest.er1
36252 grep -v '^ *+' conftest.er1 >conftest.err
36254 cat conftest.err >&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } && {
36257 test -z "$ac_c_werror_flag" ||
36258 test ! -s conftest.err
36259 } && test -s conftest$ac_exeext &&
36260 $as_test_x conftest$ac_exeext; then
36261 gt_cv_func_CFLocaleCopyCurrent=yes
36263 echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36266 gt_cv_func_CFLocaleCopyCurrent=no
36269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36270 conftest$ac_exeext conftest.$ac_ext
36271 LIBS="$gt_save_LIBS"
36273 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36274 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
36275 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36277 cat >>confdefs.h <<\_ACEOF
36278 #define HAVE_CFLOCALECOPYCURRENT 1
36283 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36284 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36296 case " $gt_needs " in
36297 *" need-formatstring-macros "*) gt_api_version=3 ;;
36298 *" need-ngettext "*) gt_api_version=2 ;;
36299 *) gt_api_version=1 ;;
36301 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
36302 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
36304 if test "$USE_NLS" = "yes"; then
36305 gt_use_preinstalled_gnugettext=no
36308 if test $gt_api_version -ge 3; then
36309 gt_revision_test_code='
36310 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
36311 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
36313 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
36316 gt_revision_test_code=
36318 if test $gt_api_version -ge 2; then
36319 gt_expression_test_code=' + * ngettext ("", "", 0)'
36321 gt_expression_test_code=
36324 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
36325 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
36326 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36329 cat >conftest.$ac_ext <<_ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h. */
36335 #include <libintl.h>
36336 $gt_revision_test_code
36337 extern int _nl_msg_cat_cntr;
36338 extern int *_nl_domain_bindings;
36342 bindtextdomain ("", "");
36343 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
36348 rm -f conftest.$ac_objext conftest$ac_exeext
36349 if { (ac_try="$ac_link"
36350 case "(($ac_try" in
36351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36352 *) ac_try_echo=$ac_try;;
36354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36355 (eval "$ac_link") 2>conftest.er1
36357 grep -v '^ *+' conftest.er1 >conftest.err
36359 cat conftest.err >&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); } && {
36362 test -z "$ac_c_werror_flag" ||
36363 test ! -s conftest.err
36364 } && test -s conftest$ac_exeext &&
36365 $as_test_x conftest$ac_exeext; then
36366 eval "$gt_func_gnugettext_libc=yes"
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36371 eval "$gt_func_gnugettext_libc=no"
36374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36375 conftest$ac_exeext conftest.$ac_ext
36377 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
36378 { echo "$as_me:$LINENO: result: $ac_res" >&5
36379 echo "${ECHO_T}$ac_res" >&6; }
36381 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
36387 am_save_CPPFLAGS="$CPPFLAGS"
36389 for element in $INCICONV; do
36391 for x in $CPPFLAGS; do
36393 acl_save_prefix="$prefix"
36394 prefix="$acl_final_prefix"
36395 acl_save_exec_prefix="$exec_prefix"
36396 exec_prefix="$acl_final_exec_prefix"
36398 exec_prefix="$acl_save_exec_prefix"
36399 prefix="$acl_save_prefix"
36401 if test "X$x" = "X$element"; then
36406 if test -z "$haveit"; then
36407 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36412 { echo "$as_me:$LINENO: checking for iconv" >&5
36413 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36414 if test "${am_cv_func_iconv+set}" = set; then
36415 echo $ECHO_N "(cached) $ECHO_C" >&6
36418 am_cv_func_iconv="no, consider installing GNU libiconv"
36420 cat >conftest.$ac_ext <<_ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h. */
36426 #include <stdlib.h>
36431 iconv_t cd = iconv_open("","");
36432 iconv(cd,NULL,NULL,NULL,NULL);
36438 rm -f conftest.$ac_objext conftest$ac_exeext
36439 if { (ac_try="$ac_link"
36440 case "(($ac_try" in
36441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36442 *) ac_try_echo=$ac_try;;
36444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36445 (eval "$ac_link") 2>conftest.er1
36447 grep -v '^ *+' conftest.er1 >conftest.err
36449 cat conftest.err >&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); } && {
36452 test -z "$ac_c_werror_flag" ||
36453 test ! -s conftest.err
36454 } && test -s conftest$ac_exeext &&
36455 $as_test_x conftest$ac_exeext; then
36456 am_cv_func_iconv=yes
36458 echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36465 conftest$ac_exeext conftest.$ac_ext
36466 if test "$am_cv_func_iconv" != yes; then
36467 am_save_LIBS="$LIBS"
36468 LIBS="$LIBS $LIBICONV"
36469 cat >conftest.$ac_ext <<_ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h. */
36475 #include <stdlib.h>
36480 iconv_t cd = iconv_open("","");
36481 iconv(cd,NULL,NULL,NULL,NULL);
36487 rm -f conftest.$ac_objext conftest$ac_exeext
36488 if { (ac_try="$ac_link"
36489 case "(($ac_try" in
36490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491 *) ac_try_echo=$ac_try;;
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494 (eval "$ac_link") 2>conftest.er1
36496 grep -v '^ *+' conftest.er1 >conftest.err
36498 cat conftest.err >&5
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); } && {
36501 test -z "$ac_c_werror_flag" ||
36502 test ! -s conftest.err
36503 } && test -s conftest$ac_exeext &&
36504 $as_test_x conftest$ac_exeext; then
36505 am_cv_lib_iconv=yes
36506 am_cv_func_iconv=yes
36508 echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36515 conftest$ac_exeext conftest.$ac_ext
36516 LIBS="$am_save_LIBS"
36520 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36521 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36522 if test "$am_cv_func_iconv" = yes; then
36523 { echo "$as_me:$LINENO: checking for working iconv" >&5
36524 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
36525 if test "${am_cv_func_iconv_works+set}" = set; then
36526 echo $ECHO_N "(cached) $ECHO_C" >&6
36529 am_save_LIBS="$LIBS"
36530 if test $am_cv_lib_iconv = yes; then
36531 LIBS="$LIBS $LIBICONV"
36533 if test "$cross_compiling" = yes; then
36535 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
36536 *) am_cv_func_iconv_works="guessing yes" ;;
36539 cat >conftest.$ac_ext <<_ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h. */
36547 #include <string.h>
36550 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
36553 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
36554 if (cd_utf8_to_88591 != (iconv_t)(-1))
36556 static const char input[] = "\342\202\254"; /* EURO SIGN */
36558 const char *inptr = input;
36559 size_t inbytesleft = strlen (input);
36560 char *outptr = buf;
36561 size_t outbytesleft = sizeof (buf);
36562 size_t res = iconv (cd_utf8_to_88591,
36563 (char **) &inptr, &inbytesleft,
36564 &outptr, &outbytesleft);
36569 #if 0 /* This bug could be worked around by the caller. */
36570 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
36572 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
36573 if (cd_88591_to_utf8 != (iconv_t)(-1))
36575 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
36577 const char *inptr = input;
36578 size_t inbytesleft = strlen (input);
36579 char *outptr = buf;
36580 size_t outbytesleft = sizeof (buf);
36581 size_t res = iconv (cd_88591_to_utf8,
36582 (char **) &inptr, &inbytesleft,
36583 &outptr, &outbytesleft);
36589 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
36591 if (/* Try standardized names. */
36592 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
36593 /* Try IRIX, OSF/1 names. */
36594 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
36595 /* Try AIX names. */
36596 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
36597 /* Try HP-UX names. */
36598 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
36603 rm -f conftest$ac_exeext
36604 if { (ac_try="$ac_link"
36605 case "(($ac_try" in
36606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36607 *) ac_try_echo=$ac_try;;
36609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36610 (eval "$ac_link") 2>&5
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36614 { (case "(($ac_try" in
36615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36616 *) ac_try_echo=$ac_try;;
36618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36619 (eval "$ac_try") 2>&5
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; }; then
36623 am_cv_func_iconv_works=yes
36625 echo "$as_me: program exited with status $ac_status" >&5
36626 echo "$as_me: failed program was:" >&5
36627 sed 's/^/| /' conftest.$ac_ext >&5
36629 ( exit $ac_status )
36630 am_cv_func_iconv_works=no
36632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36636 LIBS="$am_save_LIBS"
36639 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
36640 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
36641 case "$am_cv_func_iconv_works" in
36642 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
36643 *) am_func_iconv=yes ;;
36646 am_func_iconv=no am_cv_lib_iconv=no
36648 if test "$am_func_iconv" = yes; then
36650 cat >>confdefs.h <<\_ACEOF
36651 #define HAVE_ICONV 1
36655 if test "$am_cv_lib_iconv" = yes; then
36656 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36657 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
36658 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
36659 echo "${ECHO_T}$LIBICONV" >&6; }
36661 CPPFLAGS="$am_save_CPPFLAGS"
36678 acl_save_prefix="$prefix"
36679 prefix="$acl_final_prefix"
36680 acl_save_exec_prefix="$exec_prefix"
36681 exec_prefix="$acl_final_exec_prefix"
36683 eval additional_includedir=\"$includedir\"
36684 eval additional_libdir=\"$libdir\"
36686 exec_prefix="$acl_save_exec_prefix"
36687 prefix="$acl_save_prefix"
36690 # Check whether --with-libintl-prefix was given.
36691 if test "${with_libintl_prefix+set}" = set; then
36692 withval=$with_libintl_prefix;
36693 if test "X$withval" = "Xno"; then
36696 if test "X$withval" = "X"; then
36698 acl_save_prefix="$prefix"
36699 prefix="$acl_final_prefix"
36700 acl_save_exec_prefix="$exec_prefix"
36701 exec_prefix="$acl_final_exec_prefix"
36703 eval additional_includedir=\"$includedir\"
36704 eval additional_libdir=\"$libdir\"
36706 exec_prefix="$acl_save_exec_prefix"
36707 prefix="$acl_save_prefix"
36710 additional_includedir="$withval/include"
36711 additional_libdir="$withval/$acl_libdirstem"
36723 names_already_handled=
36724 names_next_round='intl '
36725 while test -n "$names_next_round"; do
36726 names_this_round="$names_next_round"
36728 for name in $names_this_round; do
36730 for n in $names_already_handled; do
36731 if test "$n" = "$name"; then
36732 already_handled=yes
36736 if test -z "$already_handled"; then
36737 names_already_handled="$names_already_handled $name"
36738 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36739 eval value=\"\$HAVE_LIB$uppername\"
36740 if test -n "$value"; then
36741 if test "$value" = yes; then
36742 eval value=\"\$LIB$uppername\"
36743 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
36744 eval value=\"\$LTLIB$uppername\"
36745 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
36754 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
36755 if test -n "$acl_shlibext"; then
36756 shrext=".$acl_shlibext" # typically: shrext=.so
36760 if test $use_additional = yes; then
36761 dir="$additional_libdir"
36762 if test -n "$acl_shlibext"; then
36763 if test -f "$dir/$libname$shrext"; then
36765 found_so="$dir/$libname$shrext"
36767 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
36768 ver=`(cd "$dir" && \
36769 for f in "$libname$shrext".*; do echo "$f"; done \
36770 | sed -e "s,^$libname$shrext\\\\.,," \
36771 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
36772 | sed 1q ) 2>/dev/null`
36773 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
36775 found_so="$dir/$libname$shrext.$ver"
36778 eval library_names=\"$acl_library_names_spec\"
36779 for f in $library_names; do
36780 if test -f "$dir/$f"; then
36789 if test "X$found_dir" = "X"; then
36790 if test -f "$dir/$libname.$acl_libext"; then
36792 found_a="$dir/$libname.$acl_libext"
36795 if test "X$found_dir" != "X"; then
36796 if test -f "$dir/$libname.la"; then
36797 found_la="$dir/$libname.la"
36801 if test "X$found_dir" = "X"; then
36802 for x in $LDFLAGS $LTLIBINTL; do
36804 acl_save_prefix="$prefix"
36805 prefix="$acl_final_prefix"
36806 acl_save_exec_prefix="$exec_prefix"
36807 exec_prefix="$acl_final_exec_prefix"
36809 exec_prefix="$acl_save_exec_prefix"
36810 prefix="$acl_save_prefix"
36814 dir=`echo "X$x" | sed -e 's/^X-L//'`
36815 if test -n "$acl_shlibext"; then
36816 if test -f "$dir/$libname$shrext"; then
36818 found_so="$dir/$libname$shrext"
36820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
36821 ver=`(cd "$dir" && \
36822 for f in "$libname$shrext".*; do echo "$f"; done \
36823 | sed -e "s,^$libname$shrext\\\\.,," \
36824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
36825 | sed 1q ) 2>/dev/null`
36826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
36828 found_so="$dir/$libname$shrext.$ver"
36831 eval library_names=\"$acl_library_names_spec\"
36832 for f in $library_names; do
36833 if test -f "$dir/$f"; then
36842 if test "X$found_dir" = "X"; then
36843 if test -f "$dir/$libname.$acl_libext"; then
36845 found_a="$dir/$libname.$acl_libext"
36848 if test "X$found_dir" != "X"; then
36849 if test -f "$dir/$libname.la"; then
36850 found_la="$dir/$libname.la"
36855 if test "X$found_dir" != "X"; then
36860 if test "X$found_dir" != "X"; then
36861 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
36862 if test "X$found_so" != "X"; then
36863 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
36864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36867 for x in $ltrpathdirs; do
36868 if test "X$x" = "X$found_dir"; then
36873 if test -z "$haveit"; then
36874 ltrpathdirs="$ltrpathdirs $found_dir"
36876 if test "$acl_hardcode_direct" = yes; then
36877 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36879 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
36880 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36882 for x in $rpathdirs; do
36883 if test "X$x" = "X$found_dir"; then
36888 if test -z "$haveit"; then
36889 rpathdirs="$rpathdirs $found_dir"
36893 for x in $LDFLAGS $LIBINTL; do
36895 acl_save_prefix="$prefix"
36896 prefix="$acl_final_prefix"
36897 acl_save_exec_prefix="$exec_prefix"
36898 exec_prefix="$acl_final_exec_prefix"
36900 exec_prefix="$acl_save_exec_prefix"
36901 prefix="$acl_save_prefix"
36903 if test "X$x" = "X-L$found_dir"; then
36908 if test -z "$haveit"; then
36909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
36911 if test "$acl_hardcode_minus_L" != no; then
36912 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36914 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
36920 if test "X$found_a" != "X"; then
36921 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
36923 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
36926 additional_includedir=
36927 case "$found_dir" in
36928 */$acl_libdirstem | */$acl_libdirstem/)
36929 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
36930 LIBINTL_PREFIX="$basedir"
36931 additional_includedir="$basedir/include"
36934 if test "X$additional_includedir" != "X"; then
36935 if test "X$additional_includedir" != "X/usr/include"; then
36937 if test "X$additional_includedir" = "X/usr/local/include"; then
36938 if test -n "$GCC"; then
36940 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36944 if test -z "$haveit"; then
36945 for x in $CPPFLAGS $INCINTL; do
36947 acl_save_prefix="$prefix"
36948 prefix="$acl_final_prefix"
36949 acl_save_exec_prefix="$exec_prefix"
36950 exec_prefix="$acl_final_exec_prefix"
36952 exec_prefix="$acl_save_exec_prefix"
36953 prefix="$acl_save_prefix"
36955 if test "X$x" = "X-I$additional_includedir"; then
36960 if test -z "$haveit"; then
36961 if test -d "$additional_includedir"; then
36962 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
36968 if test -n "$found_la"; then
36969 save_libdir="$libdir"
36970 case "$found_la" in
36971 */* | *\\*) . "$found_la" ;;
36972 *) . "./$found_la" ;;
36974 libdir="$save_libdir"
36975 for dep in $dependency_libs; do
36978 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36979 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
36981 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
36982 if test -n "$GCC"; then
36984 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36988 if test -z "$haveit"; then
36990 for x in $LDFLAGS $LIBINTL; do
36992 acl_save_prefix="$prefix"
36993 prefix="$acl_final_prefix"
36994 acl_save_exec_prefix="$exec_prefix"
36995 exec_prefix="$acl_final_exec_prefix"
36997 exec_prefix="$acl_save_exec_prefix"
36998 prefix="$acl_save_prefix"
37000 if test "X$x" = "X-L$additional_libdir"; then
37005 if test -z "$haveit"; then
37006 if test -d "$additional_libdir"; then
37007 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37011 for x in $LDFLAGS $LTLIBINTL; do
37013 acl_save_prefix="$prefix"
37014 prefix="$acl_final_prefix"
37015 acl_save_exec_prefix="$exec_prefix"
37016 exec_prefix="$acl_final_exec_prefix"
37018 exec_prefix="$acl_save_exec_prefix"
37019 prefix="$acl_save_prefix"
37021 if test "X$x" = "X-L$additional_libdir"; then
37026 if test -z "$haveit"; then
37027 if test -d "$additional_libdir"; then
37028 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37035 dir=`echo "X$dep" | sed -e 's/^X-R//'`
37036 if test "$enable_rpath" != no; then
37038 for x in $rpathdirs; do
37039 if test "X$x" = "X$dir"; then
37044 if test -z "$haveit"; then
37045 rpathdirs="$rpathdirs $dir"
37048 for x in $ltrpathdirs; do
37049 if test "X$x" = "X$dir"; then
37054 if test -z "$haveit"; then
37055 ltrpathdirs="$ltrpathdirs $dir"
37060 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37066 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
37067 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37073 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
37074 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37080 if test "X$rpathdirs" != "X"; then
37081 if test -n "$acl_hardcode_libdir_separator"; then
37083 for found_dir in $rpathdirs; do
37084 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37086 acl_save_libdir="$libdir"
37088 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37089 libdir="$acl_save_libdir"
37090 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37092 for found_dir in $rpathdirs; do
37093 acl_save_libdir="$libdir"
37094 libdir="$found_dir"
37095 eval flag=\"$acl_hardcode_libdir_flag_spec\"
37096 libdir="$acl_save_libdir"
37097 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
37101 if test "X$ltrpathdirs" != "X"; then
37102 for found_dir in $ltrpathdirs; do
37103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37112 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
37113 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
37114 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37117 gt_save_CPPFLAGS="$CPPFLAGS"
37118 CPPFLAGS="$CPPFLAGS $INCINTL"
37119 gt_save_LIBS="$LIBS"
37120 LIBS="$LIBS $LIBINTL"
37121 cat >conftest.$ac_ext <<_ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 #include <libintl.h>
37128 $gt_revision_test_code
37129 extern int _nl_msg_cat_cntr;
37134 const char *_nl_expand_alias (const char *);
37138 bindtextdomain ("", "");
37139 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (ac_try="$ac_link"
37146 case "(($ac_try" in
37147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37148 *) ac_try_echo=$ac_try;;
37150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37151 (eval "$ac_link") 2>conftest.er1
37153 grep -v '^ *+' conftest.er1 >conftest.err
37155 cat conftest.err >&5
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); } && {
37158 test -z "$ac_c_werror_flag" ||
37159 test ! -s conftest.err
37160 } && test -s conftest$ac_exeext &&
37161 $as_test_x conftest$ac_exeext; then
37162 eval "$gt_func_gnugettext_libintl=yes"
37164 echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37167 eval "$gt_func_gnugettext_libintl=no"
37170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37171 conftest$ac_exeext conftest.$ac_ext
37172 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
37173 LIBS="$LIBS $LIBICONV"
37174 cat >conftest.$ac_ext <<_ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 #include <libintl.h>
37181 $gt_revision_test_code
37182 extern int _nl_msg_cat_cntr;
37187 const char *_nl_expand_alias (const char *);
37191 bindtextdomain ("", "");
37192 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
37197 rm -f conftest.$ac_objext conftest$ac_exeext
37198 if { (ac_try="$ac_link"
37199 case "(($ac_try" in
37200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37201 *) ac_try_echo=$ac_try;;
37203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37204 (eval "$ac_link") 2>conftest.er1
37206 grep -v '^ *+' conftest.er1 >conftest.err
37208 cat conftest.err >&5
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); } && {
37211 test -z "$ac_c_werror_flag" ||
37212 test ! -s conftest.err
37213 } && test -s conftest$ac_exeext &&
37214 $as_test_x conftest$ac_exeext; then
37215 LIBINTL="$LIBINTL $LIBICONV"
37216 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
37217 eval "$gt_func_gnugettext_libintl=yes"
37220 echo "$as_me: failed program was:" >&5
37221 sed 's/^/| /' conftest.$ac_ext >&5
37226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37227 conftest$ac_exeext conftest.$ac_ext
37229 CPPFLAGS="$gt_save_CPPFLAGS"
37230 LIBS="$gt_save_LIBS"
37232 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
37233 { echo "$as_me:$LINENO: result: $ac_res" >&5
37234 echo "${ECHO_T}$ac_res" >&6; }
37237 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
37238 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
37239 && test "$PACKAGE" != gettext-runtime \
37240 && test "$PACKAGE" != gettext-tools; }; then
37241 gt_use_preinstalled_gnugettext=yes
37250 if test -n "$INTL_MACOSX_LIBS"; then
37251 if test "$gt_use_preinstalled_gnugettext" = "yes" \
37252 || test "$nls_cv_use_gnu_gettext" = "yes"; then
37253 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
37254 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
37258 if test "$gt_use_preinstalled_gnugettext" = "yes" \
37259 || test "$nls_cv_use_gnu_gettext" = "yes"; then
37261 cat >>confdefs.h <<\_ACEOF
37262 #define ENABLE_NLS 1
37270 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
37271 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
37272 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
37273 echo "${ECHO_T}$USE_NLS" >&6; }
37274 if test "$USE_NLS" = "yes"; then
37275 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
37276 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
37277 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37278 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37279 gt_source="external libintl"
37284 gt_source="included intl directory"
37286 { echo "$as_me:$LINENO: result: $gt_source" >&5
37287 echo "${ECHO_T}$gt_source" >&6; }
37290 if test "$USE_NLS" = "yes"; then
37292 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37293 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
37294 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
37295 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
37296 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
37297 echo "${ECHO_T}$LIBINTL" >&6; }
37299 for element in $INCINTL; do
37301 for x in $CPPFLAGS; do
37303 acl_save_prefix="$prefix"
37304 prefix="$acl_final_prefix"
37305 acl_save_exec_prefix="$exec_prefix"
37306 exec_prefix="$acl_final_exec_prefix"
37308 exec_prefix="$acl_save_exec_prefix"
37309 prefix="$acl_save_prefix"
37311 if test "X$x" = "X$element"; then
37316 if test -z "$haveit"; then
37317 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37324 cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_GETTEXT 1
37329 cat >>confdefs.h <<\_ACEOF
37330 #define HAVE_DCGETTEXT 1
37340 INTLLIBS="$LIBINTL"
37349 # Initialize the test suite.
37350 ac_config_commands="$ac_config_commands tests/atconfig"
37353 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
37354 # FIXME: tests/preset?
37356 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
37361 # Check whether --enable-backup-scripts was given.
37362 if test "${enable_backup_scripts+set}" = set; then
37363 enableval=$enable_backup_scripts; case $enableval in
37364 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
37365 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
37372 if date +%Y-%m-%d 2>/dev/null >&2; then
37373 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
37375 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
37378 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
37380 cat >confcache <<\_ACEOF
37381 # This file is a shell script that caches the results of configure
37382 # tests run on this system so they can be shared between configure
37383 # scripts and configure runs, see configure's option --config-cache.
37384 # It is not useful on other systems. If it contains results you don't
37385 # want to keep, you may remove or edit it.
37387 # config.status only pays attention to the cache file if you give it
37388 # the --recheck option to rerun configure.
37390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37392 # following values.
37396 # The following way of writing the cache mishandles newlines in values,
37397 # but we know of no workaround that is simple, portable, and efficient.
37398 # So, we kill variables containing newlines.
37399 # Ultrix sh set writes to stderr and can't be redirected directly,
37400 # and sets the high bit in the cache file unless we assign to the vars.
37402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37403 eval ac_val=\$$ac_var
37407 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37408 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37411 _ | IFS | as_nl) ;; #(
37412 *) $as_unset $ac_var ;;
37418 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37419 *${as_nl}ac_space=\ *)
37420 # `set' does not quote correctly, so add quotes (double-quote
37421 # substitution turns \\\\ into \\, and sed turns \\ into \).
37424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37427 # `set' quotes correctly as required by POSIX, so do not add quotes.
37428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37441 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37442 if test -w "$cache_file"; then
37443 test "x$cache_file" != "x/dev/null" &&
37444 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37445 echo "$as_me: updating cache $cache_file" >&6;}
37446 cat confcache >$cache_file
37448 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37449 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37455 # Let make expand exec_prefix.
37456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37458 DEFS=-DHAVE_CONFIG_H
37462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37463 # 1. Remove the extension, and $U if already installed.
37464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37465 ac_i=`echo "$ac_i" | sed "$ac_script"`
37466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37467 # will be set to the directory where LIBOBJS objects are built.
37468 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37469 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37471 LIBOBJS=$ac_libobjs
37473 LTLIBOBJS=$ac_ltlibobjs
37476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37477 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37478 Usually this means the macro was only invoked conditionally." >&5
37479 echo "$as_me: error: conditional \"AMDEP\" was never defined.
37480 Usually this means the macro was only invoked conditionally." >&2;}
37481 { (exit 1); exit 1; }; }
37483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37484 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37485 Usually this means the macro was only invoked conditionally." >&5
37486 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37487 Usually this means the macro was only invoked conditionally." >&2;}
37488 { (exit 1); exit 1; }; }
37490 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
37491 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37492 Usually this means the macro was only invoked conditionally." >&5
37493 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
37494 Usually this means the macro was only invoked conditionally." >&2;}
37495 { (exit 1); exit 1; }; }
37500 if test -n "$gl_LIBOBJS"; then
37501 # Remove the extension.
37502 sed_drop_objext='s/\.o$//;s/\.obj$//'
37503 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
37504 gl_libobjs="$gl_libobjs $i.$ac_objext"
37505 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
37508 gl_LIBOBJS=$gl_libobjs
37510 gl_LTLIBOBJS=$gl_ltlibobjs
37516 if test -n "$gltests_LIBOBJS"; then
37517 # Remove the extension.
37518 sed_drop_objext='s/\.o$//;s/\.obj$//'
37519 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
37520 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
37521 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
37524 gltests_LIBOBJS=$gltests_libobjs
37526 gltests_LTLIBOBJS=$gltests_ltlibobjs
37530 : ${CONFIG_STATUS=./config.status}
37531 ac_clean_files_save=$ac_clean_files
37532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37535 cat >$CONFIG_STATUS <<_ACEOF
37537 # Generated by $as_me.
37538 # Run this file to recreate the current configuration.
37539 # Compiler output produced by configure, useful for debugging
37540 # configure, is in config.log if it exists.
37543 ac_cs_recheck=false
37545 SHELL=\${CONFIG_SHELL-$SHELL}
37548 cat >>$CONFIG_STATUS <<\_ACEOF
37549 ## --------------------- ##
37550 ## M4sh Initialization. ##
37551 ## --------------------- ##
37553 # Be more Bourne compatible
37554 DUALCASE=1; export DUALCASE # for MKS sh
37555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37559 # is contrary to our usage. Disable this feature.
37560 alias -g '${1+"$@"}'='"$@"'
37561 setopt NO_GLOB_SUBST
37563 case `(set -o) 2>/dev/null` in
37564 *posix*) set -o posix ;;
37573 # Avoid depending upon Character Ranges.
37574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37577 as_cr_digits='0123456789'
37578 as_cr_alnum=$as_cr_Letters$as_cr_digits
37580 # The user is always right.
37581 if test "${PATH_SEPARATOR+set}" != set; then
37582 echo "#! /bin/sh" >conf$$.sh
37583 echo "exit 0" >>conf$$.sh
37585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37593 # Support unset when possible.
37594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37602 # We need space, tab and new line, in precisely that order. Quoting is
37603 # there to prevent editors from complaining about space-tab.
37604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37605 # splitting by setting IFS to empty value.)
37610 # Find who we are. Look in the path if we contain no directory separator.
37612 *[\\/]* ) as_myself=$0 ;;
37613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37614 for as_dir in $PATH
37617 test -z "$as_dir" && as_dir=.
37618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37624 # We did not find ourselves, most probably we were run as `sh COMMAND'
37625 # in which case we are not to be found in the path.
37626 if test "x$as_myself" = x; then
37629 if test ! -f "$as_myself"; then
37630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37631 { (exit 1); exit 1; }
37634 # Work around bugs in pre-3.0 UWIN ksh.
37635 for as_var in ENV MAIL MAILPATH
37636 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37646 LC_TELEPHONE LC_TIME
37648 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37649 eval $as_var=C; export $as_var
37651 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37655 # Required to use basename.
37656 if expr a : '\(a\)' >/dev/null 2>&1 &&
37657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37664 as_basename=basename
37670 # Name of the executable.
37671 as_me=`$as_basename -- "$0" ||
37672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37673 X"$0" : 'X\(//\)$' \| \
37674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37676 sed '/^.*\/\([^/][^/]*\)\/*$/{
37695 as_lineno_1=$LINENO
37696 as_lineno_2=$LINENO
37697 test "x$as_lineno_1" != "x$as_lineno_2" &&
37698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37701 # uniformly replaced by the line number. The first 'sed' inserts a
37702 # line-number line after each line using $LINENO; the second 'sed'
37703 # does the real work. The second script uses 'N' to pair each
37704 # line-number line with the line containing $LINENO, and appends
37705 # trailing '-' during substitution so that $LINENO is not a special
37706 # case at line end.
37707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37708 # scripts with optimization help from Paolo Bonzini. Blame Lee
37709 # E. McMahon (1931-1989) for sed's syntax. :-)
37721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37724 ' >$as_me.lineno &&
37725 chmod +x "$as_me.lineno" ||
37726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37727 { (exit 1); exit 1; }; }
37729 # Don't try to exec as it changes $[0], causing all sort of problems
37730 # (the dirname of $[0] is not the place where we might find the
37731 # original and so on. Autoconf is especially sensitive to this).
37732 . "./$as_me.lineno"
37733 # Exit status is that of the last command.
37738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37744 ECHO_C= ECHO_N= ECHO_T=
37745 case `echo -n x` in
37747 case `echo 'x\c'` in
37748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37755 if expr a : '\(a\)' >/dev/null 2>&1 &&
37756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37762 rm -f conf$$ conf$$.exe conf$$.file
37763 if test -d conf$$.dir; then
37764 rm -f conf$$.dir/conf$$.file
37770 if ln -s conf$$.file conf$$ 2>/dev/null; then
37772 # ... but there are two gotchas:
37773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37775 # In both cases, we have to default to `cp -p'.
37776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37778 elif ln conf$$.file conf$$ 2>/dev/null; then
37783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37784 rmdir conf$$.dir 2>/dev/null
37786 if mkdir -p . 2>/dev/null; then
37789 test -d ./-p && rmdir ./-p
37793 if test -x / >/dev/null 2>&1; then
37794 as_test_x='test -x'
37796 if ls -dL / >/dev/null 2>&1; then
37803 if test -d "$1"; then
37809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37810 ???[sx]*):;;*)false;;esac;fi
37814 as_executable_p=$as_test_x
37816 # Sed expression to map a string onto a valid CPP name.
37817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37819 # Sed expression to map a string onto a valid variable name.
37820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37825 # Save the log message, to keep $[0] and so on meaningful, and to
37826 # report actual input values of CONFIG_FILES etc. instead of their
37827 # values after options handling.
37829 This file was extended by GNU tar $as_me 1.20, which was
37830 generated by GNU Autoconf 2.61. Invocation command line was
37832 CONFIG_FILES = $CONFIG_FILES
37833 CONFIG_HEADERS = $CONFIG_HEADERS
37834 CONFIG_LINKS = $CONFIG_LINKS
37835 CONFIG_COMMANDS = $CONFIG_COMMANDS
37838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37843 cat >>$CONFIG_STATUS <<_ACEOF
37844 # Files that config.status was made for.
37845 config_files="$ac_config_files"
37846 config_headers="$ac_config_headers"
37847 config_commands="$ac_config_commands"
37851 cat >>$CONFIG_STATUS <<\_ACEOF
37853 \`$as_me' instantiates files from templates according to the
37854 current configuration.
37856 Usage: $0 [OPTIONS] [FILE]...
37858 -h, --help print this help, then exit
37859 -V, --version print version number and configuration settings, then exit
37860 -q, --quiet do not print progress messages
37861 -d, --debug don't remove temporary files
37862 --recheck update $as_me by reconfiguring in the same conditions
37863 --file=FILE[:TEMPLATE]
37864 instantiate the configuration file FILE
37865 --header=FILE[:TEMPLATE]
37866 instantiate the configuration header FILE
37868 Configuration files:
37871 Configuration headers:
37874 Configuration commands:
37877 Report bugs to <bug-autoconf@gnu.org>."
37880 cat >>$CONFIG_STATUS <<_ACEOF
37882 GNU tar config.status 1.20
37883 configured by $0, generated by GNU Autoconf 2.61,
37884 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37886 Copyright (C) 2006 Free Software Foundation, Inc.
37887 This config.status script is free software; the Free Software Foundation
37888 gives unlimited permission to copy, distribute and modify it."
37896 cat >>$CONFIG_STATUS <<\_ACEOF
37897 # If no file are specified by the user, then we need to provide default
37898 # value. By we need to know if files were specified by the user.
37904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37916 # Handling of the options.
37917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37920 echo "$ac_cs_version"; exit ;;
37921 --debug | --debu | --deb | --de | --d | -d )
37923 --file | --fil | --fi | --f )
37925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37926 ac_need_defaults=false;;
37927 --header | --heade | --head | --hea )
37929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37930 ac_need_defaults=false;;
37932 # Conflict between --help and --header
37933 { echo "$as_me: error: ambiguous option: $1
37934 Try \`$0 --help' for more information." >&2
37935 { (exit 1); exit 1; }; };;
37936 --help | --hel | -h )
37937 echo "$ac_cs_usage"; exit ;;
37938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37942 # This is an error.
37943 -*) { echo "$as_me: error: unrecognized option: $1
37944 Try \`$0 --help' for more information." >&2
37945 { (exit 1); exit 1; }; } ;;
37947 *) ac_config_targets="$ac_config_targets $1"
37948 ac_need_defaults=false ;;
37954 ac_configure_extra_args=
37956 if $ac_cs_silent; then
37958 ac_configure_extra_args="$ac_configure_extra_args --silent"
37962 cat >>$CONFIG_STATUS <<_ACEOF
37963 if \$ac_cs_recheck; then
37964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37965 CONFIG_SHELL=$SHELL
37966 export CONFIG_SHELL
37967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37971 cat >>$CONFIG_STATUS <<\_ACEOF
37975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37976 ## Running $as_me. ##
37982 cat >>$CONFIG_STATUS <<_ACEOF
37986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37987 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
37988 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
37989 # from automake < 1.5.
37990 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
37991 # Capture the value of LINGUAS because we need it to compute CATALOGS.
37992 LINGUAS="${LINGUAS-%UNSET%}"
37997 cat >>$CONFIG_STATUS <<\_ACEOF
37999 # Handling of arguments.
38000 for ac_config_target in $ac_config_targets
38002 case $ac_config_target in
38003 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
38004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38005 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
38006 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
38007 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38008 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
38009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38010 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
38011 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
38012 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
38013 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38014 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
38015 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
38017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38019 { (exit 1); exit 1; }; };;
38024 # If the user did not use the arguments to specify the items to instantiate,
38025 # then the envvar interface is used. Set only those that are not.
38026 # We use the long form for the default assignment because of an extremely
38027 # bizarre bug on SunOS 4.1.3.
38028 if $ac_need_defaults; then
38029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38034 # Have a temporary directory for convenience. Make it in the build tree
38035 # simply because there is no reason against having it here, and in addition,
38036 # creating and moving files from /tmp can sometimes cause problems.
38037 # Hook for its removal unless debugging.
38038 # Note that there is a small window in which the directory will not be cleaned:
38039 # after its creation but before its name has been assigned to `$tmp'.
38043 trap 'exit_status=$?
38044 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
38046 trap '{ (exit 1); exit 1; }' 1 2 13 15
38048 # Create a (secure) tmp directory for tmp files.
38051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38052 test -n "$tmp" && test -d "$tmp"
38055 tmp=./conf$$-$RANDOM
38056 (umask 077 && mkdir "$tmp")
38059 echo "$me: cannot create a temporary directory in ." >&2
38060 { (exit 1); exit 1; }
38064 # Set up the sed scripts for CONFIG_FILES section.
38067 # No need to generate the scripts if there are no CONFIG_FILES.
38068 # This happens for instance when ./config.status config.h
38069 if test -n "$CONFIG_FILES"; then
38076 for ac_last_try in false false false false false :; do
38077 cat >conf$$subs.sed <<_ACEOF
38078 SHELL!$SHELL$ac_delim
38079 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
38080 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
38081 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
38082 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
38083 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38084 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38085 exec_prefix!$exec_prefix$ac_delim
38086 prefix!$prefix$ac_delim
38087 program_transform_name!$program_transform_name$ac_delim
38088 bindir!$bindir$ac_delim
38089 sbindir!$sbindir$ac_delim
38090 libexecdir!$libexecdir$ac_delim
38091 datarootdir!$datarootdir$ac_delim
38092 datadir!$datadir$ac_delim
38093 sysconfdir!$sysconfdir$ac_delim
38094 sharedstatedir!$sharedstatedir$ac_delim
38095 localstatedir!$localstatedir$ac_delim
38096 includedir!$includedir$ac_delim
38097 oldincludedir!$oldincludedir$ac_delim
38098 docdir!$docdir$ac_delim
38099 infodir!$infodir$ac_delim
38100 htmldir!$htmldir$ac_delim
38101 dvidir!$dvidir$ac_delim
38102 pdfdir!$pdfdir$ac_delim
38103 psdir!$psdir$ac_delim
38104 libdir!$libdir$ac_delim
38105 localedir!$localedir$ac_delim
38106 mandir!$mandir$ac_delim
38107 DEFS!$DEFS$ac_delim
38108 ECHO_C!$ECHO_C$ac_delim
38109 ECHO_N!$ECHO_N$ac_delim
38110 ECHO_T!$ECHO_T$ac_delim
38111 LIBS!$LIBS$ac_delim
38112 build_alias!$build_alias$ac_delim
38113 host_alias!$host_alias$ac_delim
38114 target_alias!$target_alias$ac_delim
38115 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38116 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38117 INSTALL_DATA!$INSTALL_DATA$ac_delim
38118 am__isrc!$am__isrc$ac_delim
38119 CYGPATH_W!$CYGPATH_W$ac_delim
38120 PACKAGE!$PACKAGE$ac_delim
38121 VERSION!$VERSION$ac_delim
38122 ACLOCAL!$ACLOCAL$ac_delim
38123 AUTOCONF!$AUTOCONF$ac_delim
38124 AUTOMAKE!$AUTOMAKE$ac_delim
38125 AUTOHEADER!$AUTOHEADER$ac_delim
38126 MAKEINFO!$MAKEINFO$ac_delim
38127 install_sh!$install_sh$ac_delim
38128 STRIP!$STRIP$ac_delim
38129 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38130 mkdir_p!$mkdir_p$ac_delim
38132 SET_MAKE!$SET_MAKE$ac_delim
38133 am__leading_dot!$am__leading_dot$ac_delim
38134 AMTAR!$AMTAR$ac_delim
38135 am__tar!$am__tar$ac_delim
38136 am__untar!$am__untar$ac_delim
38138 CFLAGS!$CFLAGS$ac_delim
38139 LDFLAGS!$LDFLAGS$ac_delim
38140 CPPFLAGS!$CPPFLAGS$ac_delim
38141 ac_ct_CC!$ac_ct_CC$ac_delim
38142 EXEEXT!$EXEEXT$ac_delim
38143 OBJEXT!$OBJEXT$ac_delim
38144 DEPDIR!$DEPDIR$ac_delim
38145 am__include!$am__include$ac_delim
38146 am__quote!$am__quote$ac_delim
38147 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38148 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38149 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38150 CCDEPMODE!$CCDEPMODE$ac_delim
38151 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38152 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38153 RANLIB!$RANLIB$ac_delim
38154 YACC!$YACC$ac_delim
38155 YFLAGS!$YFLAGS$ac_delim
38157 GREP!$GREP$ac_delim
38158 EGREP!$EGREP$ac_delim
38159 STDBOOL_H!$STDBOOL_H$ac_delim
38160 HAVE__BOOL!$HAVE__BOOL$ac_delim
38161 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
38162 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
38163 EOVERFLOW!$EOVERFLOW$ac_delim
38164 ALLOCA!$ALLOCA$ac_delim
38165 ALLOCA_H!$ALLOCA_H$ac_delim
38166 GETOPT_H!$GETOPT_H$ac_delim
38167 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
38168 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
38169 GNULIB_ENVIRON!$GNULIB_ENVIRON$ac_delim
38170 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
38171 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
38172 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
38173 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
38174 GNULIB_GETPAGESIZE!$GNULIB_GETPAGESIZE$ac_delim
38177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38179 elif $ac_last_try; then
38180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38182 { (exit 1); exit 1; }; }
38184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38189 if test -n "$ac_eof"; then
38190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38191 ac_eof=`expr $ac_eof + 1`
38194 cat >>$CONFIG_STATUS <<_ACEOF
38195 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38200 s/^/s,@/; s/!/@,|#_!!_#|/
38203 s/'"$ac_delim"'$/,g/; t
38205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38206 ' >>$CONFIG_STATUS <conf$$subs.sed
38207 rm -f conf$$subs.sed
38208 cat >>$CONFIG_STATUS <<_ACEOF
38214 for ac_last_try in false false false false false :; do
38215 cat >conf$$subs.sed <<_ACEOF
38216 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
38217 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
38218 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
38219 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
38220 HAVE_DUP2!$HAVE_DUP2$ac_delim
38221 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
38222 HAVE_GETPAGESIZE!$HAVE_GETPAGESIZE$ac_delim
38223 HAVE_READLINK!$HAVE_READLINK$ac_delim
38224 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
38225 HAVE_DECL_ENVIRON!$HAVE_DECL_ENVIRON$ac_delim
38226 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
38227 HAVE_OS_H!$HAVE_OS_H$ac_delim
38228 HAVE_SYS_PARAM_H!$HAVE_SYS_PARAM_H$ac_delim
38229 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
38230 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
38231 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
38232 REPLACE_GETPAGESIZE!$REPLACE_GETPAGESIZE$ac_delim
38233 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
38234 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
38235 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
38236 build!$build$ac_delim
38237 build_cpu!$build_cpu$ac_delim
38238 build_vendor!$build_vendor$ac_delim
38239 build_os!$build_os$ac_delim
38240 host!$host$ac_delim
38241 host_cpu!$host_cpu$ac_delim
38242 host_vendor!$host_vendor$ac_delim
38243 host_os!$host_os$ac_delim
38244 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
38245 NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
38246 DIRENT_H!$DIRENT_H$ac_delim
38247 GNULIB_OPEN!$GNULIB_OPEN$ac_delim
38248 REPLACE_OPEN!$REPLACE_OPEN$ac_delim
38249 NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim
38250 FCNTL_H!$FCNTL_H$ac_delim
38251 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
38252 FLOAT_H!$FLOAT_H$ac_delim
38253 FNMATCH_H!$FNMATCH_H$ac_delim
38254 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
38255 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
38256 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
38257 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
38258 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
38259 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
38260 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
38261 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
38262 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
38263 GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim
38264 GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim
38265 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
38266 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
38267 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
38268 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
38269 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
38270 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
38271 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
38272 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
38273 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
38274 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
38275 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
38276 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
38277 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
38278 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
38279 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
38280 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
38281 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
38282 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
38283 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
38284 REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim
38285 REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim
38286 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
38287 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
38288 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
38289 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
38290 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
38291 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
38292 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
38293 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
38294 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
38295 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
38296 LIBINTL!$LIBINTL$ac_delim
38297 LTLIBINTL!$LTLIBINTL$ac_delim
38298 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
38299 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
38300 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
38301 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
38302 SYS_TIME_H!$SYS_TIME_H$ac_delim
38303 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
38304 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
38305 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
38306 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
38307 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
38308 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
38309 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
38310 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
38311 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
38312 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
38315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38317 elif $ac_last_try; then
38318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38320 { (exit 1); exit 1; }; }
38322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38327 if test -n "$ac_eof"; then
38328 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38329 ac_eof=`expr $ac_eof + 1`
38332 cat >>$CONFIG_STATUS <<_ACEOF
38333 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38338 s/^/s,@/; s/!/@,|#_!!_#|/
38341 s/'"$ac_delim"'$/,g/; t
38343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38344 ' >>$CONFIG_STATUS <conf$$subs.sed
38345 rm -f conf$$subs.sed
38346 cat >>$CONFIG_STATUS <<_ACEOF
38352 for ac_last_try in false false false false false :; do
38353 cat >conf$$subs.sed <<_ACEOF
38354 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
38355 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
38356 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
38357 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
38358 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
38359 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
38360 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
38361 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
38362 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
38363 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
38364 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
38365 STDINT_H!$STDINT_H$ac_delim
38366 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
38367 GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
38368 GNULIB_IMAXDIV!$GNULIB_IMAXDIV$ac_delim
38369 GNULIB_STRTOIMAX!$GNULIB_STRTOIMAX$ac_delim
38370 GNULIB_STRTOUMAX!$GNULIB_STRTOUMAX$ac_delim
38371 HAVE_DECL_IMAXABS!$HAVE_DECL_IMAXABS$ac_delim
38372 HAVE_DECL_IMAXDIV!$HAVE_DECL_IMAXDIV$ac_delim
38373 HAVE_DECL_STRTOIMAX!$HAVE_DECL_STRTOIMAX$ac_delim
38374 HAVE_DECL_STRTOUMAX!$HAVE_DECL_STRTOUMAX$ac_delim
38375 NEXT_INTTYPES_H!$NEXT_INTTYPES_H$ac_delim
38376 PRIPTR_PREFIX!$PRIPTR_PREFIX$ac_delim
38377 INT32_MAX_LT_INTMAX_MAX!$INT32_MAX_LT_INTMAX_MAX$ac_delim
38378 INT64_MAX_EQ_LONG_MAX!$INT64_MAX_EQ_LONG_MAX$ac_delim
38379 UINT32_MAX_LT_UINTMAX_MAX!$UINT32_MAX_LT_UINTMAX_MAX$ac_delim
38380 UINT64_MAX_EQ_ULONG_MAX!$UINT64_MAX_EQ_ULONG_MAX$ac_delim
38381 INTTYPES_H!$INTTYPES_H$ac_delim
38382 GLIBC21!$GLIBC21$ac_delim
38383 LOCALCHARSET_TESTS_ENVIRONMENT!$LOCALCHARSET_TESTS_ENVIRONMENT$ac_delim
38384 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
38385 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
38386 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
38387 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
38388 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
38389 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
38390 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
38391 GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim
38392 GNULIB_SETENV!$GNULIB_SETENV$ac_delim
38393 GNULIB_STRTOD!$GNULIB_STRTOD$ac_delim
38394 GNULIB_UNSETENV!$GNULIB_UNSETENV$ac_delim
38395 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
38396 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
38397 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
38398 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
38399 HAVE_SETENV!$HAVE_SETENV$ac_delim
38400 HAVE_STRTOD!$HAVE_STRTOD$ac_delim
38401 HAVE_UNSETENV!$HAVE_UNSETENV$ac_delim
38402 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
38403 REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim
38404 REPLACE_STRTOD!$REPLACE_STRTOD$ac_delim
38405 VOID_UNSETENV!$VOID_UNSETENV$ac_delim
38406 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
38407 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
38408 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
38409 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
38410 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
38411 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
38412 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
38413 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
38414 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
38415 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
38416 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
38417 GNULIB_STRSTR!$GNULIB_STRSTR$ac_delim
38418 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
38419 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
38420 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
38421 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
38422 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
38423 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
38424 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
38425 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
38426 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
38427 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
38428 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
38429 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
38430 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
38431 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
38432 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
38433 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
38434 GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim
38435 GNULIB_STRSIGNAL!$GNULIB_STRSIGNAL$ac_delim
38436 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
38437 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
38438 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
38439 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
38440 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
38441 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
38442 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
38443 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
38444 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
38445 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
38446 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
38447 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
38448 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
38449 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
38450 HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
38453 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38455 elif $ac_last_try; then
38456 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38458 { (exit 1); exit 1; }; }
38460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38464 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38465 if test -n "$ac_eof"; then
38466 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38467 ac_eof=`expr $ac_eof + 1`
38470 cat >>$CONFIG_STATUS <<_ACEOF
38471 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
38472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38476 s/^/s,@/; s/!/@,|#_!!_#|/
38479 s/'"$ac_delim"'$/,g/; t
38481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38482 ' >>$CONFIG_STATUS <conf$$subs.sed
38483 rm -f conf$$subs.sed
38484 cat >>$CONFIG_STATUS <<_ACEOF
38490 for ac_last_try in false false false false false :; do
38491 cat >conf$$subs.sed <<_ACEOF
38492 HAVE_DECL_STRSIGNAL!$HAVE_DECL_STRSIGNAL$ac_delim
38493 REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
38494 REPLACE_STRSIGNAL!$REPLACE_STRSIGNAL$ac_delim
38495 REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
38496 REPLACE_STRCASESTR!$REPLACE_STRCASESTR$ac_delim
38497 REPLACE_STRSTR!$REPLACE_STRSTR$ac_delim
38498 STDARG_H!$STDARG_H$ac_delim
38499 NEXT_STDARG_H!$NEXT_STDARG_H$ac_delim
38500 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
38501 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
38502 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
38503 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
38504 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
38505 NEXT_STRINGS_H!$NEXT_STRINGS_H$ac_delim
38506 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
38507 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
38508 HAVE_IO_H!$HAVE_IO_H$ac_delim
38509 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
38510 SYS_STAT_H!$SYS_STAT_H$ac_delim
38511 NEXT_SYSEXITS_H!$NEXT_SYSEXITS_H$ac_delim
38512 HAVE_SYSEXITS_H!$HAVE_SYSEXITS_H$ac_delim
38513 SYSEXITS_H!$SYSEXITS_H$ac_delim
38514 REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
38515 REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
38516 REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
38517 REPLACE_TIMEGM!$REPLACE_TIMEGM$ac_delim
38518 NEXT_TIME_H!$NEXT_TIME_H$ac_delim
38519 TIME_H_DEFINES_STRUCT_TIMESPEC!$TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38520 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC!$SYS_TIME_H_DEFINES_STRUCT_TIMESPEC$ac_delim
38521 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
38522 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
38523 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
38524 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
38525 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
38526 WCHAR_H!$WCHAR_H$ac_delim
38527 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
38528 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
38529 HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
38530 HAVE_WINT_T!$HAVE_WINT_T$ac_delim
38531 NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
38532 HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
38533 WCTYPE_H!$WCTYPE_H$ac_delim
38534 LIBTAR_LIBDEPS!$LIBTAR_LIBDEPS$ac_delim
38535 LIBTAR_LTLIBDEPS!$LIBTAR_LTLIBDEPS$ac_delim
38536 LIB_SETSOCKOPT!$LIB_SETSOCKOPT$ac_delim
38537 PU_RMT_PROG!$PU_RMT_PROG$ac_delim
38538 DEFAULT_RMT_DIR!$DEFAULT_RMT_DIR$ac_delim
38539 DEFAULT_RMT_COMMAND!$DEFAULT_RMT_COMMAND$ac_delim
38540 LIBOBJS!$LIBOBJS$ac_delim
38541 DEFAULT_ARCHIVE_FORMAT!$DEFAULT_ARCHIVE_FORMAT$ac_delim
38542 DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
38543 DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
38544 DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
38545 LIBICONV!$LIBICONV$ac_delim
38546 LTLIBICONV!$LTLIBICONV$ac_delim
38547 USE_NLS!$USE_NLS$ac_delim
38548 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
38549 MSGFMT!$MSGFMT$ac_delim
38550 GMSGFMT!$GMSGFMT$ac_delim
38551 MSGFMT_015!$MSGFMT_015$ac_delim
38552 GMSGFMT_015!$GMSGFMT_015$ac_delim
38553 XGETTEXT!$XGETTEXT$ac_delim
38554 XGETTEXT_015!$XGETTEXT_015$ac_delim
38555 MSGMERGE!$MSGMERGE$ac_delim
38556 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
38557 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
38558 INTLLIBS!$INTLLIBS$ac_delim
38559 POSUB!$POSUB$ac_delim
38560 AUTOM4TE!$AUTOM4TE$ac_delim
38561 BACKUP_LIBEXEC_SCRIPTS!$BACKUP_LIBEXEC_SCRIPTS$ac_delim
38562 BACKUP_SBIN_SCRIPTS!$BACKUP_SBIN_SCRIPTS$ac_delim
38563 BACKUP_SED_COND!$BACKUP_SED_COND$ac_delim
38564 LTLIBOBJS!$LTLIBOBJS$ac_delim
38565 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
38566 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
38567 gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
38568 gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
38571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
38573 elif $ac_last_try; then
38574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38576 { (exit 1); exit 1; }; }
38578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38583 if test -n "$ac_eof"; then
38584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38585 ac_eof=`expr $ac_eof + 1`
38588 cat >>$CONFIG_STATUS <<_ACEOF
38589 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
38590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38594 s/^/s,@/; s/!/@,|#_!!_#|/
38597 s/'"$ac_delim"'$/,g/; t
38599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38600 ' >>$CONFIG_STATUS <conf$$subs.sed
38601 rm -f conf$$subs.sed
38602 cat >>$CONFIG_STATUS <<_ACEOF
38609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38611 # trailing colons and then remove the whole line if VPATH becomes empty
38612 # (actually we leave an empty line to preserve line numbers).
38613 if test "x$srcdir" = x.; then
38614 ac_vpsub='/^[ ]*VPATH[ ]*=/{
38615 s/:*\$(srcdir):*/:/
38616 s/:*\${srcdir}:*/:/
38618 s/^\([^=]*=[ ]*\):*/\1/
38624 cat >>$CONFIG_STATUS <<\_ACEOF
38625 fi # test -n "$CONFIG_FILES"
38628 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
38631 :[FHLC]) ac_mode=$ac_tag; continue;;
38633 case $ac_mode$ac_tag in
38635 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38637 { (exit 1); exit 1; }; };;
38638 :[FH]-) ac_tag=-:-;;
38639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38656 -) ac_f="$tmp/stdin";;
38657 *) # Look for the file first in the build tree, then in the source tree
38658 # (if the path is not absolute). The absolute path cannot be DOS-style,
38659 # because $ac_f cannot contain `:'.
38663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38665 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38667 { (exit 1); exit 1; }; };;
38669 ac_file_inputs="$ac_file_inputs $ac_f"
38672 # Let's still pretend it is `configure' which instantiates (i.e., don't
38673 # use $as_me), people would be surprised to read:
38674 # /* config.h. Generated by config.status. */
38675 configure_input="Generated from "`IFS=:
38676 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38677 if test x"$ac_file" != x-; then
38678 configure_input="$ac_file. $configure_input"
38679 { echo "$as_me:$LINENO: creating $ac_file" >&5
38680 echo "$as_me: creating $ac_file" >&6;}
38684 *:-:* | *:-) cat >"$tmp/stdin";;
38689 ac_dir=`$as_dirname -- "$ac_file" ||
38690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38691 X"$ac_file" : 'X\(//\)[^/]' \| \
38692 X"$ac_file" : 'X\(//\)$' \| \
38693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38699 /^X\(\/\/\)[^/].*/{
38714 -*) as_dir=./$as_dir;;
38716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38721 *) as_qdir=$as_dir;;
38723 as_dirs="'$as_qdir' $as_dirs"
38724 as_dir=`$as_dirname -- "$as_dir" ||
38725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38726 X"$as_dir" : 'X\(//\)[^/]' \| \
38727 X"$as_dir" : 'X\(//\)$' \| \
38728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38734 /^X\(\/\/\)[^/].*/{
38747 test -d "$as_dir" && break
38749 test -z "$as_dirs" || eval "mkdir $as_dirs"
38750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
38752 { (exit 1); exit 1; }; }; }
38756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38759 # A ".." for each directory in $ac_dir_suffix.
38760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38761 case $ac_top_builddir_sub in
38762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38766 ac_abs_top_builddir=$ac_pwd
38767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38768 # for backward compatibility:
38769 ac_top_builddir=$ac_top_build_prefix
38772 .) # We are building in place.
38774 ac_top_srcdir=$ac_top_builddir_sub
38775 ac_abs_top_srcdir=$ac_pwd ;;
38776 [\\/]* | ?:[\\/]* ) # Absolute name.
38777 ac_srcdir=$srcdir$ac_dir_suffix;
38778 ac_top_srcdir=$srcdir
38779 ac_abs_top_srcdir=$srcdir ;;
38780 *) # Relative name.
38781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38782 ac_top_srcdir=$ac_top_build_prefix$srcdir
38783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38798 ac_MKDIR_P=$MKDIR_P
38800 [\\/$]* | ?:[\\/]* ) ;;
38801 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38805 cat >>$CONFIG_STATUS <<\_ACEOF
38806 # If the template does not know about datarootdir, expand it.
38807 # FIXME: This hack should be removed a few years after 2.60.
38808 ac_datarootdir_hack=; ac_datarootdir_seen=
38810 case `sed -n '/datarootdir/ {
38819 ' $ac_file_inputs` in
38820 *datarootdir*) ac_datarootdir_seen=yes;;
38821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38822 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38825 cat >>$CONFIG_STATUS <<_ACEOF
38826 ac_datarootdir_hack='
38827 s&@datadir@&$datadir&g
38828 s&@docdir@&$docdir&g
38829 s&@infodir@&$infodir&g
38830 s&@localedir@&$localedir&g
38831 s&@mandir@&$mandir&g
38832 s&\\\${datarootdir}&$datarootdir&g' ;;
38836 # Neutralize VPATH when `$srcdir' = `.'.
38837 # Shell code in configure.ac might set extrasub.
38838 # FIXME: do we really want to maintain this feature?
38839 cat >>$CONFIG_STATUS <<_ACEOF
38843 cat >>$CONFIG_STATUS <<\_ACEOF
38845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38846 s&@configure_input@&$configure_input&;t t
38847 s&@top_builddir@&$ac_top_builddir_sub&;t t
38848 s&@srcdir@&$ac_srcdir&;t t
38849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38850 s&@top_srcdir@&$ac_top_srcdir&;t t
38851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38852 s&@builddir@&$ac_builddir&;t t
38853 s&@abs_builddir@&$ac_abs_builddir&;t t
38854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38855 s&@INSTALL@&$ac_INSTALL&;t t
38856 s&@MKDIR_P@&$ac_MKDIR_P&;t t
38857 $ac_datarootdir_hack
38858 " $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" >$tmp/out
38860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38861 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38863 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38864 which seems to be undefined. Please make sure it is defined." >&5
38865 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38866 which seems to be undefined. Please make sure it is defined." >&2;}
38870 -) cat "$tmp/out"; rm -f "$tmp/out";;
38871 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38880 # Transform confdefs.h into a sed script `conftest.defines', that
38881 # substitutes the proper values into config.h.in to produce config.h.
38882 rm -f conftest.defines conftest.tail
38883 # First, append a space to every undef/define line, to ease matching.
38884 echo 's/$/ /' >conftest.defines
38885 # Then, protect against being on the right side of a sed subst, or in
38886 # an unquoted here document, in config.status. If some macros were
38887 # called several times there might be several #defines for the same
38888 # symbol, which is useless. But do not sort them, since the last
38889 # AC_DEFINE must be honored.
38890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38891 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38892 # NAME is the cpp macro being defined, VALUE is the value it is being given.
38893 # PARAMS is the parameter list in the macro definition--in most cases, it's
38894 # just an empty string.
38895 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38896 ac_dB='\\)[ (].*,\\1define\\2'
38904 s/^[ ]*#[ ]*define[ ][ ]*//
38909 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38910 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38911 ' >>conftest.defines
38913 # Remove the space that was appended to ease matching.
38914 # Then replace #undef with comments. This is necessary, for
38915 # example, in the case of _POSIX_SOURCE, which is predefined and required
38916 # on some systems where configure will not decide to define it.
38917 # (The regexp can be short, since the line contains either #define or #undef.)
38919 s,^[ #]*u.*,/* & */,' >>conftest.defines
38921 # Break up conftest.defines:
38922 ac_max_sed_lines=50
38924 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38925 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38926 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38928 ac_in='$ac_file_inputs'
38929 ac_out='"$tmp/out1"'
38930 ac_nxt='"$tmp/out2"'
38934 # Write a here document:
38935 cat >>$CONFIG_STATUS <<_ACEOF
38936 # First, check the format of the line:
38937 cat >"\$tmp/defines.sed" <<\\CEOF
38938 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38939 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
38943 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38945 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38946 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38947 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38948 grep . conftest.tail >/dev/null || break
38949 rm -f conftest.defines
38950 mv conftest.tail conftest.defines
38952 rm -f conftest.defines conftest.tail
38954 echo "ac_result=$ac_in" >>$CONFIG_STATUS
38955 cat >>$CONFIG_STATUS <<\_ACEOF
38956 if test x"$ac_file" != x-; then
38957 echo "/* $configure_input */" >"$tmp/config.h"
38958 cat "$ac_result" >>"$tmp/config.h"
38959 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38961 echo "$as_me: $ac_file is unchanged" >&6;}
38964 mv "$tmp/config.h" $ac_file
38967 echo "/* $configure_input */"
38971 # Compute $ac_file's index in $config_headers.
38974 for _am_header in $config_headers :; do
38975 case $_am_header in
38976 $_am_arg | $_am_arg:* )
38979 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38982 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38983 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38984 X"$_am_arg" : 'X\(//\)[^/]' \| \
38985 X"$_am_arg" : 'X\(//\)$' \| \
38986 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38992 /^X\(\/\/\)[^/].*/{
39004 s/.*/./; q'`/stamp-h$_am_stamp_count
39007 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39008 echo "$as_me: executing $ac_file commands" >&6;}
39013 case $ac_file$ac_mode in
39014 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39015 # Strip MF so we end up with the name of the file.
39016 mf=`echo "$mf" | sed -e 's/:.*$//'`
39017 # Check whether this is an Automake generated Makefile or not.
39018 # We used to match only the files named `Makefile.in', but
39019 # some people rename them; so instead we look at the file content.
39020 # Grep'ing the first line is not enough: some people post-process
39021 # each Makefile.in and add a new line on top of each file to say so.
39022 # Grep'ing the whole file is not good either: AIX grep has a line
39023 # limit of 2048, but all sed's we know have understand at least 4000.
39024 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39025 dirpart=`$as_dirname -- "$mf" ||
39026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39027 X"$mf" : 'X\(//\)[^/]' \| \
39028 X"$mf" : 'X\(//\)$' \| \
39029 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39035 /^X\(\/\/\)[^/].*/{
39051 # Extract the definition of DEPDIR, am__include, and am__quote
39052 # from the Makefile without running `make'.
39053 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39054 test -z "$DEPDIR" && continue
39055 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39056 test -z "am__include" && continue
39057 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39058 # When using ansi2knr, U may be empty or an underscore; expand it
39059 U=`sed -n 's/^U = //p' < "$mf"`
39060 # Find all dependency output files, they are included files with
39061 # $(DEPDIR) in their names. We invoke sed twice because it is the
39062 # simplest approach to changing $(DEPDIR) to its actual value in the
39064 for file in `sed -n "
39065 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39066 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39067 # Make sure the directory exists.
39068 test -f "$dirpart/$file" && continue
39069 fdir=`$as_dirname -- "$file" ||
39070 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39071 X"$file" : 'X\(//\)[^/]' \| \
39072 X"$file" : 'X\(//\)$' \| \
39073 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39079 /^X\(\/\/\)[^/].*/{
39092 { as_dir=$dirpart/$fdir
39094 -*) as_dir=./$as_dir;;
39096 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39100 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39101 *) as_qdir=$as_dir;;
39103 as_dirs="'$as_qdir' $as_dirs"
39104 as_dir=`$as_dirname -- "$as_dir" ||
39105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39106 X"$as_dir" : 'X\(//\)[^/]' \| \
39107 X"$as_dir" : 'X\(//\)$' \| \
39108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39114 /^X\(\/\/\)[^/].*/{
39127 test -d "$as_dir" && break
39129 test -z "$as_dirs" || eval "mkdir $as_dirs"
39130 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39131 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39132 { (exit 1); exit 1; }; }; }
39133 # echo "creating $dirpart/$file"
39134 echo '# dummy' > "$dirpart/$file"
39138 "po-directories":C)
39139 for ac_file in $CONFIG_FILES; do
39140 # Support "outfile[:infile[:infile...]]"
39142 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39144 # PO directories have a Makefile.in generated from Makefile.in.in.
39145 case "$ac_file" in */Makefile.in)
39146 # Adjust a relative srcdir.
39147 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39148 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
39149 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
39150 # In autoconf-2.13 it is called $ac_given_srcdir.
39151 # In autoconf-2.50 it is called $srcdir.
39152 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
39153 case "$ac_given_srcdir" in
39154 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
39155 /*) top_srcdir="$ac_given_srcdir" ;;
39156 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
39158 # Treat a directory as a PO directory if and only if it has a
39159 # POTFILES.in file. This allows packages to have multiple PO
39160 # directories under different names or in different locations.
39161 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
39162 rm -f "$ac_dir/POTFILES"
39163 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
39164 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
39165 POMAKEFILEDEPS="POTFILES.in"
39166 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
39167 # on $ac_dir but don't depend on user-specified configuration
39169 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
39170 # The LINGUAS file contains the set of available languages.
39171 if test -n "$OBSOLETE_ALL_LINGUAS"; then
39172 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
39174 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
39175 # Hide the ALL_LINGUAS assigment from automake < 1.5.
39176 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
39177 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
39179 # The set of available languages was given in configure.in.
39180 # Hide the ALL_LINGUAS assigment from automake < 1.5.
39181 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
39184 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
39185 # Compute UPDATEPOFILES
39186 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
39187 # Compute DUMMYPOFILES
39188 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
39190 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
39191 case "$ac_given_srcdir" in
39193 *) srcdirpre='$(srcdir)/' ;;
39199 for lang in $ALL_LINGUAS; do
39200 POFILES="$POFILES $srcdirpre$lang.po"
39201 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
39202 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
39203 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
39205 # CATALOGS depends on both $ac_dir and the user's LINGUAS
39206 # environment variable.
39208 if test -n "$ALL_LINGUAS"; then
39209 for presentlang in $ALL_LINGUAS; do
39211 if test "%UNSET%" != "$LINGUAS"; then
39212 desiredlanguages="$LINGUAS"
39214 desiredlanguages="$ALL_LINGUAS"
39216 for desiredlang in $desiredlanguages; do
39217 # Use the presentlang catalog if desiredlang is
39218 # a. equal to presentlang, or
39219 # b. a variant of presentlang (because in this case,
39220 # presentlang can be used as a fallback for messages
39221 # which are not translated in the desiredlang catalog).
39222 case "$desiredlang" in
39223 "$presentlang"*) useit=yes;;
39226 if test $useit = yes; then
39227 INST_LINGUAS="$INST_LINGUAS $presentlang"
39232 if test -n "$INST_LINGUAS"; then
39233 for lang in $INST_LINGUAS; do
39234 CATALOGS="$CATALOGS $lang.gmo"
39237 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
39238 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"
39239 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
39240 if test -f "$f"; then
39242 *.orig | *.bak | *~) ;;
39243 *) cat "$f" >> "$ac_dir/Makefile" ;;
39251 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
39252 # Configurable variable values for building test suites.
39254 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
39256 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
39258 abs_builddir='$ac_abs_builddir'
39259 at_srcdir='$ac_srcdir'
39260 abs_srcdir='$ac_abs_srcdir'
39261 at_top_srcdir='$ac_top_srcdir'
39262 abs_top_srcdir='$ac_abs_top_srcdir'
39263 at_top_build_prefix='$ac_top_build_prefix'
39264 abs_top_builddir='$ac_abs_top_builddir'
39266 # Backward compatibility with Autotest <= 2.59b:
39267 at_top_builddir=\$at_top_build_prefix
39269 AUTOTEST_PATH='tests'
39271 SHELL=\${CONFIG_SHELL-'$SHELL'}
39279 { (exit 0); exit 0; }
39281 chmod +x $CONFIG_STATUS
39282 ac_clean_files=$ac_clean_files_save
39285 # configure is writing to config.log, and then calls config.status.
39286 # config.status does its own redirection, appending to config.log.
39287 # Unfortunately, on DOS this fails, as config.log is still kept open
39288 # by configure, so config.status won't be able to write to it; its
39289 # output is simply discarded. So we exec the FD to /dev/null,
39290 # effectively closing config.log, so it can be properly (re)opened and
39291 # appended to by config.status. When coming back to configure, we
39292 # need to make the FD available again.
39293 if test "$no_create" != yes; then
39295 ac_config_status_args=
39296 test "$silent" = yes &&
39297 ac_config_status_args="$ac_config_status_args --quiet"
39299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39302 # would make configure fail if this is the last instruction.
39303 $ac_cs_success || { (exit 1); exit 1; }