2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61a for GNU coreutils 6.9.
5 # Report bugs to <bug-coreutils@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
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 echo "#! /bin/sh" >conf$$.sh
77 echo "exit 0" >>conf$$.sh
79 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
87 # Support unset when possible.
88 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
96 # We need space, tab and new line, in precisely that order. Quoting is
97 # there to prevent editors from complaining about space-tab.
98 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
99 # splitting by setting IFS to empty value.)
102 # Find who we are. Look in the path if we contain no directory separator.
104 *[\\/]* ) as_myself=$0 ;;
105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 test -z "$as_dir" && as_dir=.
110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
123 { (exit 1); exit 1; }
126 # Work around bugs in pre-3.0 UWIN ksh.
127 for as_var in ENV MAIL MAILPATH
128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
141 eval $as_var=C; export $as_var
143 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
147 # Required to use basename.
148 if expr a : '\(a\)' >/dev/null 2>&1 &&
149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
162 # Name of the executable.
163 as_me=`$as_basename -- "$0" ||
164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
165 X"$0" : 'X\(//\)$' \| \
166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
168 sed '/^.*\/\([^/][^/]*\)\/*$/{
186 if test "x$CONFIG_SHELL" = x; then
187 if (eval ":") 2>/dev/null; then
193 if test $as_have_required = yes && (eval ":
203 as_func_ret_success () {
206 as_func_ret_failure () {
211 if as_func_success; then
215 echo as_func_success failed.
218 if as_func_failure; then
220 echo as_func_failure succeeded.
223 if as_func_ret_success; then
227 echo as_func_ret_success failed.
230 if as_func_ret_failure; then
232 echo as_func_ret_failure succeeded.
235 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
239 echo positional parameters were not saved.
242 test \$exitcode = 0) || { (exit 1); exit 1; }
247 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
248 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
249 ") 2> /dev/null; then
253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
254 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
257 test -z "$as_dir" && as_dir=.
260 for as_base in sh bash ksh sh5; do
261 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
268 for as_shell in $as_candidate_shells $SHELL; do
269 # Try only shells that exist, to save several forks.
270 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
271 { ("$as_shell") 2> /dev/null <<\_ASEOF
272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
276 # is contrary to our usage. Disable this feature.
277 alias -g '${1+"$@"}'='"$@"'
280 case `(set -o) 2>/dev/null` in
281 *posix*) set -o posix ;;
290 CONFIG_SHELL=$as_shell
292 if { "$as_shell" 2> /dev/null <<\_ASEOF
293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
296 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
297 # is contrary to our usage. Disable this feature.
298 alias -g '${1+"$@"}'='"$@"'
301 case `(set -o) 2>/dev/null` in
302 *posix*) set -o posix ;;
318 as_func_ret_success () {
321 as_func_ret_failure () {
326 if as_func_success; then
330 echo as_func_success failed.
333 if as_func_failure; then
335 echo as_func_failure succeeded.
338 if as_func_ret_success; then
342 echo as_func_ret_success failed.
345 if as_func_ret_failure; then
347 echo as_func_ret_failure succeeded.
350 if ( set x; as_func_ret_success y && test x = "$1" ); then
354 echo positional parameters were not saved.
357 test $exitcode = 0) || { (exit 1); exit 1; }
362 test "x$as_lineno_1" != "x$as_lineno_2" &&
363 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374 if test "x$CONFIG_SHELL" != x; then
375 for as_var in BASH_ENV ENV
376 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
379 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
383 if test $as_have_required = no; then
384 echo This script requires a shell more modern than all the
385 echo shells that I found on your system. Please install a
386 echo modern shell, or manually run the script under such a
387 echo shell if you do have one.
388 { (exit 1); exit 1; }
398 (eval "as_func_return () {
407 as_func_ret_success () {
410 as_func_ret_failure () {
415 if as_func_success; then
419 echo as_func_success failed.
422 if as_func_failure; then
424 echo as_func_failure succeeded.
427 if as_func_ret_success; then
431 echo as_func_ret_success failed.
434 if as_func_ret_failure; then
436 echo as_func_ret_failure succeeded.
439 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
443 echo positional parameters were not saved.
446 test \$exitcode = 0") || {
447 echo No shell found that supports shell functions.
448 echo Please tell autoconf@gnu.org about your system,
449 echo including any error possibly output before this
457 test "x$as_lineno_1" != "x$as_lineno_2" &&
458 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
461 # uniformly replaced by the line number. The first 'sed' inserts a
462 # line-number line after each line using $LINENO; the second 'sed'
463 # does the real work. The second script uses 'N' to pair each
464 # line-number line with the line containing $LINENO, and appends
465 # trailing '-' during substitution so that $LINENO is not a special
467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
468 # scripts with optimization help from Paolo Bonzini. Blame Lee
469 # E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
487 { (exit 1); exit 1; }; }
489 # Don't try to exec as it changes $[0], causing all sort of problems
490 # (the dirname of $[0] is not the place where we might find the
491 # original and so on. Autoconf is especially sensitive to this).
493 # Exit status is that of the last command.
498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
504 ECHO_C= ECHO_N= ECHO_T=
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 if expr a : '\(a\)' >/dev/null 2>&1 &&
515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -p'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
548 test -d ./-p && rmdir ./-p
552 if test -x / >/dev/null 2>&1; then
555 if ls -dL / >/dev/null 2>&1; then
562 if test -d "$1"; then
568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
569 ???[sx]*):;;*)false;;esac;fi
573 as_executable_p=$as_test_x
575 # Sed expression to map a string onto a valid CPP name.
576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
578 # Sed expression to map a string onto a valid variable name.
579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
583 exec 7<&0 </dev/null 6>&1
586 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
587 # so uname gets run too.
588 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
593 ac_default_prefix=/usr/local
595 ac_config_libobj_dir=.
601 SHELL=${CONFIG_SHELL-/bin/sh}
603 # Identity of this package.
604 PACKAGE_NAME='GNU coreutils'
605 PACKAGE_TARNAME='coreutils'
606 PACKAGE_VERSION='6.9'
607 PACKAGE_STRING='GNU coreutils 6.9'
608 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
610 ac_unique_file="src/ls.c"
611 # Factoring default headers for most tests.
612 ac_includes_default="\
614 #ifdef HAVE_SYS_TYPES_H
615 # include <sys/types.h>
617 #ifdef HAVE_SYS_STAT_H
618 # include <sys/stat.h>
624 # ifdef HAVE_STDLIB_H
629 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
637 #ifdef HAVE_INTTYPES_H
638 # include <inttypes.h>
659 program_transform_name
709 INSTALL_STRIP_PROGRAM
739 GL_COND_LIBTOOL_FALSE
766 ABSOLUTE_SYS_SOCKET_H
788 HAVE_UNSIGNED_LONG_LONG_INT
796 BITSIZEOF_SIG_ATOMIC_T
800 HAVE_SIGNED_SIG_ATOMIC_T
854 HAVE_DECL_STRNCASECMP
875 ABSOLUTE_NETINET_IN_H
879 DEFAULT_POSIX2_VERSION
884 GNULIB_VFPRINTF_POSIX
887 GNULIB_VSPRINTF_POSIX
905 TIME_H_DEFINES_STRUCT_TIMESPEC
906 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
917 LIBCOREUTILS_LTLIBDEPS
946 ac_precious_vars='build_alias
957 DEFAULT_POSIX2_VERSION'
960 # Initialize some variables set by options.
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name=s,x,x,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1292 eval with_$ac_useropt=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1343 # Be sure to have absolute directory names.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
1400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429 { (exit 1); exit 1; }; }
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1434 { (exit 1); exit 1; }; }
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures GNU coreutils 6.9 to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/coreutils]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of GNU coreutils 6.9:";;
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --disable-assert turn off assertions
1540 --disable-rpath do not hardcode runtime library paths
1541 --disable-largefile omit support for large files
1542 --disable-nls do not use Native Language Support
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-gnu-ld assume the C compiler uses GNU ld default=no
1548 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1549 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1550 --without-included-regex
1551 don't compile regex; this is the default on 32-bit
1552 systems with recent-enough versions of the GNU C
1553 Library (use with caution on other systems). On
1554 systems with 64-bit ptrdiff_t and 32-bit int,
1555 --with-included-regex is the default, in case regex
1556 functions operate on very long strings (>2GB)
1557 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1558 --without-libintl-prefix don't search for libintl in includedir and libdir
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1569 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1570 `bison -y'. Values other than `bison -y' will most likely break
1572 YFLAGS YFLAGS contains the list arguments that will be passed by
1573 default to Bison. This script will default YFLAGS to the empty
1574 string to avoid a default value of `-d' given by some make
1576 DEFAULT_POSIX2_VERSION
1577 POSIX version to default to; see 'config.hin'.
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to <bug-coreutils@gnu.org>.
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" || continue
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1610 .) # We are building in place.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1643 GNU coreutils configure 6.9
1644 generated by GNU Autoconf 2.61a
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1657 It was created by GNU coreutils $as_me 6.9, which was
1658 generated by GNU Autoconf 2.61a. Invocation command line was
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 $as_echo "PATH: $as_dir"
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_must_keep_next=false
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
1736 ac_must_keep_next=false # Got value, back to normal.
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 -* ) ac_must_keep_next=true ;;
1750 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log. We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1774 # The following way of writing the cache mishandles newlines in values,
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1781 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 _ | IFS | as_nl) ;; #(
1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1787 *) $as_unset $ac_var ;;
1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793 *${as_nl}ac_space=\ *)
1795 "s/'\''/'\''\\\\'\'''\''/g;
1796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807 ## ----------------- ##
1808 ## Output variables. ##
1809 ## ----------------- ##
1812 for ac_var in $ac_subst_vars
1814 eval ac_val=\$$ac_var
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 $as_echo "$ac_var='\''$ac_val'\''"
1822 if test -n "$ac_subst_files"; then
1824 ## ------------------- ##
1825 ## File substitutions. ##
1826 ## ------------------- ##
1829 for ac_var in $ac_subst_files
1831 eval ac_val=\$$ac_var
1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 $as_echo "$ac_var='\''$ac_val'\''"
1840 if test -s confdefs.h; then
1850 test "$ac_signal" != 0 &&
1851 $as_echo "$as_me: caught signal $ac_signal"
1852 $as_echo "$as_me: exit $exit_status"
1854 rm -f core *.core core.conftest.* &&
1855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858 for ac_signal in 1 2 13 15; do
1859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1864 rm -f -r conftest* confdefs.h
1866 # Predefined preprocessor variables.
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 # Let the site file select an alternate cache file if it wants to.
1894 # Prefer explicitly selected file to automatically selected ones.
1895 if test -n "$CONFIG_SITE"; then
1896 set x "$CONFIG_SITE"
1897 elif test "x$prefix" != xNONE; then
1898 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1900 set x "$ac_default_prefix/share/config.site" \
1901 "$ac_default_prefix/etc/config.site"
1906 if test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1914 if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1931 ac_header_list="$ac_header_list arpa/inet.h"
1932 ac_func_list="$ac_func_list pathconf"
1933 ac_header_list="$ac_header_list sys/param.h"
1934 ac_func_list="$ac_func_list canonicalize_file_name"
1935 ac_func_list="$ac_func_list resolvepath"
1936 ac_func_list="$ac_func_list dup2"
1937 ac_header_list="$ac_header_list libgen.h"
1938 ac_func_list="$ac_func_list fchdir"
1939 ac_header_list="$ac_header_list dirent.h"
1940 ac_header_list="$ac_header_list fcntl.h"
1941 ac_func_list="$ac_func_list mempcpy"
1942 ac_func_list="$ac_func_list btowc"
1943 ac_func_list="$ac_func_list iswctype"
1944 ac_func_list="$ac_func_list mbsrtowcs"
1945 ac_func_list="$ac_func_list wmemchr"
1946 ac_func_list="$ac_func_list wmemcpy"
1947 ac_func_list="$ac_func_list wmempcpy"
1948 ac_header_list="$ac_header_list wctype.h"
1949 ac_header_list="$ac_header_list stdio_ext.h"
1950 ac_header_list="$ac_header_list sys/vfs.h"
1951 ac_header_list="$ac_header_list sys/fs_types.h"
1952 ac_func_list="$ac_func_list ftruncate"
1953 ac_func_list="$ac_func_list lchmod"
1954 ac_func_list="$ac_func_list fdopendir"
1955 ac_header_list="$ac_header_list sys/socket.h"
1956 ac_header_list="$ac_header_list netinet/in.h"
1957 ac_header_list="$ac_header_list netdb.h"
1958 ac_func_list="$ac_func_list microuptime"
1959 ac_func_list="$ac_func_list nanouptime"
1960 ac_header_list="$ac_header_list termios.h"
1961 ac_func_list="$ac_func_list __fsetlocking"
1962 ac_func_list="$ac_func_list tcgetattr"
1963 ac_func_list="$ac_func_list tcsetattr"
1964 ac_func_list="$ac_func_list gettimeofday"
1965 ac_func_list="$ac_func_list nanotime"
1966 ac_header_list="$ac_header_list sys/time.h"
1967 ac_header_list="$ac_header_list stdint.h"
1968 ac_header_list="$ac_header_list inttypes.h"
1969 ac_header_list="$ac_header_list wchar.h"
1970 ac_func_list="$ac_func_list isascii"
1971 ac_func_list="$ac_func_list mbsinit"
1972 ac_header_list="$ac_header_list unistd.h"
1973 ac_func_list="$ac_func_list fchmod"
1974 ac_func_list="$ac_func_list alarm"
1975 ac_header_list="$ac_header_list sys/statvfs.h"
1976 ac_func_list="$ac_func_list siginterrupt"
1977 ac_header_list="$ac_header_list sys/select.h"
1978 ac_func_list="$ac_func_list readlink"
1979 ac_header_list="$ac_header_list utmp.h"
1980 ac_header_list="$ac_header_list utmpx.h"
1981 ac_func_list="$ac_func_list utmpname"
1982 ac_func_list="$ac_func_list utmpxname"
1983 ac_header_list="$ac_header_list locale.h"
1984 ac_func_list="$ac_func_list mbrtowc"
1985 ac_func_list="$ac_func_list wcrtomb"
1986 ac_func_list="$ac_func_list wcscoll"
1987 ac_func_list="$ac_func_list setenv"
1988 ac_func_list="$ac_func_list settimeofday"
1989 ac_func_list="$ac_func_list stime"
1990 ac_header_list="$ac_header_list stdio.h"
1991 ac_header_list="$ac_header_list stdlib.h"
1992 ac_func_list="$ac_func_list mblen"
1993 ac_func_list="$ac_func_list mbrlen"
1994 ac_func_list="$ac_func_list tzset"
1995 ac_header_list="$ac_header_list string.h"
1996 ac_func_list="$ac_func_list lstat"
1997 ac_header_list="$ac_header_list sys/stat.h"
1998 ac_header_list="$ac_header_list time.h"
1999 ac_func_list="$ac_func_list pipe"
2000 ac_header_list="$ac_header_list priv.h"
2001 ac_header_list="$ac_header_list utime.h"
2002 ac_func_list="$ac_func_list futimes"
2003 ac_func_list="$ac_func_list futimesat"
2004 ac_func_list="$ac_func_list vasnprintf"
2005 ac_func_list="$ac_func_list iswcntrl"
2006 ac_func_list="$ac_func_list wcwidth"
2007 ac_header_list="$ac_header_list hurd.h"
2008 ac_header_list="$ac_header_list paths.h"
2009 ac_header_list="$ac_header_list stropts.h"
2010 ac_header_list="$ac_header_list sys/ioctl.h"
2011 ac_header_list="$ac_header_list sys/resource.h"
2012 ac_header_list="$ac_header_list sys/systeminfo.h"
2013 ac_header_list="$ac_header_list sys/wait.h"
2014 ac_header_list="$ac_header_list syslog.h"
2015 ac_header_list="$ac_header_list grp.h"
2016 ac_header_list="$ac_header_list pwd.h"
2017 ac_func_list="$ac_func_list strxfrm"
2018 ac_func_list="$ac_func_list directio"
2019 ac_func_list="$ac_func_list endgrent"
2020 ac_func_list="$ac_func_list endpwent"
2021 ac_func_list="$ac_func_list fchown"
2022 ac_func_list="$ac_func_list iswspace"
2023 ac_func_list="$ac_func_list mkfifo"
2024 ac_func_list="$ac_func_list setgroups"
2025 ac_func_list="$ac_func_list sethostname"
2026 ac_func_list="$ac_func_list sync"
2027 ac_func_list="$ac_func_list sysctl"
2028 ac_func_list="$ac_func_list sysinfo"
2029 ac_func_list="$ac_func_list tcgetpgrp"
2030 ac_header_list="$ac_header_list OS.h"
2031 gt_needs="$gt_needs need-formatstring-macros"
2032 # Check that the precious variables saved in the cache have kept the same
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037 eval ac_new_set=\$ac_env_${ac_var}_set
2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039 eval ac_new_val=\$ac_env_${ac_var}_value
2040 case $ac_old_set,$ac_new_set in
2042 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2051 if test "x$ac_old_val" != "x$ac_new_val"; then
2052 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2054 { $as_echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2055 $as_echo "$as_me: former value: $ac_old_val" >&2;}
2056 { $as_echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2057 $as_echo "$as_me: current value: $ac_new_val" >&2;}
2058 ac_cache_corrupted=:
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg=$ac_var=$ac_new_val ;;
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2073 if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2078 { (exit 1); exit 1; }; }
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115 for ac_dir in build-aux "$srcdir"/build-aux; do
2116 if test -f "$ac_dir/install-sh"; then
2118 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 elif test -f "$ac_dir/install.sh"; then
2122 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 elif test -f "$ac_dir/shtool"; then
2126 ac_install_sh="$ac_aux_dir/shtool install -c"
2130 if test -z "$ac_aux_dir"; then
2131 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2132 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2133 { (exit 1); exit 1; }; }
2136 # These three variables are undocumented and unsupported,
2137 # and are intended to be withdrawn in a future Autoconf release.
2138 # They can cause serious problems if a builder's source tree is in a directory
2139 # whose full name contains unusual characters.
2140 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2141 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2142 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2145 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2154 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2155 $as_echo_n "checking build system type... " >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157 $as_echo_n "(cached) " >&6
2159 ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2172 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 $as_echo "$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2176 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2181 ac_save_IFS=$IFS; IFS='-'
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2194 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2195 $as_echo_n "checking host system type... " >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197 $as_echo_n "(cached) " >&6
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2209 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 $as_echo "$ac_cv_host" >&6; }
2213 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2218 ac_save_IFS=$IFS; IFS='-'
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2235 { $as_echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2236 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2237 { $as_echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2238 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2240 if test "$hostname"; then
2241 { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2242 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2245 date=`date +%Y%m%d-%H%M%S`
2246 if test "$?" != 0; then
2249 if test "$date"; then
2250 { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2251 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
2254 am__api_version='1.10'
2256 # Find a good install program. We prefer a C program (faster),
2257 # so one script is as good as another. But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then
2273 $as_echo_n "(cached) " >&6
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 # Account for people who put trailing slashes in PATH elements.
2282 ./ | .// | /cC/* | \
2283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2287 # OSF1 and SCO ODT 3.0 have their own names for install.
2288 # Don't use installbsd from OSF since it installs stuff as root
2290 for ac_prog in ginstall scoinst install; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293 if test $ac_prog = install &&
2294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # AIX install. It has an incompatible calling convention.
2297 elif test $ac_prog = install &&
2298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # program-specific install script used by HP pwplus--don't use.
2302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2315 if test "${ac_cv_path_install+set}" = set; then
2316 INSTALL=$ac_cv_path_install
2318 # As a last resort, use the slow shell script. Don't cache a
2319 # value for INSTALL within a source directory, because that will
2320 # break other packages using the cache if that directory is
2321 # removed, or if the value is a relative name.
2322 INSTALL=$ac_install_sh
2325 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2326 $as_echo "$INSTALL" >&6; }
2328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2329 # It thinks the first close brace ends the variable substitution.
2330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2336 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2337 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 echo timestamp > conftest.file
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments. Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2347 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2348 if test "$*" = "X"; then
2350 set X `ls -t $srcdir/configure conftest.file`
2353 if test "$*" != "X $srcdir/configure conftest.file" \
2354 && test "$*" != "X conftest.file $srcdir/configure"; then
2356 # If neither matched, then we have a broken ls. This can happen
2357 # if, for instance, CONFIG_SHELL is bash and it inherits a
2358 # broken ls alias from the environment. This has actually
2359 # happened. Such a system could not be considered "sane".
2360 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2361 alias in your environment" >&5
2362 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2363 alias in your environment" >&2;}
2364 { (exit 1); exit 1; }; }
2367 test "$2" = conftest.file
2373 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2374 Check your system clock" >&5
2375 $as_echo "$as_me: error: newly created file is older than distributed files!
2376 Check your system clock" >&2;}
2377 { (exit 1); exit 1; }; }
2379 { $as_echo "$as_me:$LINENO: result: yes" >&5
2380 $as_echo "yes" >&6; }
2381 test "$program_prefix" != NONE &&
2382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2386 # Double any \ or $.
2387 # By default was `s,x,x', remove it if useless.
2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2391 # expand $ac_aux_dir to an absolute path
2392 am_aux_dir=`cd $ac_aux_dir && pwd`
2394 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2395 # Use eval to expand $SHELL
2396 if eval "$MISSING --run true"; then
2397 am_missing_run="$MISSING --run "
2400 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2401 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2404 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2405 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2406 if test -z "$MKDIR_P"; then
2407 if test "${ac_cv_path_mkdir+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2414 test -z "$as_dir" && as_dir=.
2415 for ac_prog in mkdir gmkdir; do
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2418 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2419 'mkdir (GNU coreutils) '* | \
2420 'mkdir (coreutils) '* | \
2421 'mkdir (fileutils) '4.1*)
2422 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2432 if test "${ac_cv_path_mkdir+set}" = set; then
2433 MKDIR_P="$ac_cv_path_mkdir -p"
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for MKDIR_P within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 test -d ./--version && rmdir ./--version
2440 MKDIR_P="$ac_install_sh -d"
2443 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2444 $as_echo "$MKDIR_P" >&6; }
2448 [\\/$]* | ?:[\\/]*) ;;
2449 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2452 for ac_prog in gawk mawk nawk awk
2454 # Extract the first word of "$ac_prog", so it can be a program name with args.
2455 set dummy $ac_prog; ac_word=$2
2456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if test "${ac_cv_prog_AWK+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2461 if test -n "$AWK"; then
2462 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_AWK="$ac_prog"
2472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test -n "$AWK"; then
2483 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2484 $as_echo "$AWK" >&6; }
2486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2491 test -n "$AWK" && break
2494 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2495 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2497 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499 $as_echo_n "(cached) " >&6
2501 cat >conftest.make <<\_ACEOF
2504 @echo '@@@%%%=$(MAKE)=@@@%%%'
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2509 eval ac_cv_prog_make_${ac_make}_set=yes;;
2511 eval ac_cv_prog_make_${ac_make}_set=no;;
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516 { $as_echo "$as_me:$LINENO: result: yes" >&5
2517 $as_echo "yes" >&6; }
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2522 SET_MAKE="MAKE=${MAKE-make}"
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2532 rmdir .tst 2>/dev/null
2534 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2535 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2536 # is not polluted with repeated "-I."
2537 am__isrc=' -I$(srcdir)'
2538 # test to see if srcdir already configured
2539 if test -f $srcdir/config.status; then
2540 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542 { (exit 1); exit 1; }; }
2546 # test whether we have cygpath
2547 if test -z "$CYGPATH_W"; then
2548 if (cygpath --version) >/dev/null 2>/dev/null; then
2549 CYGPATH_W='cygpath -w'
2556 # Define the identity of the package.
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE "$PACKAGE"
2566 cat >>confdefs.h <<_ACEOF
2567 #define VERSION "$VERSION"
2570 # Some tools Automake needs.
2572 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2575 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2578 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2581 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2584 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2586 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2588 # Installed binaries are usually stripped using `strip' when the user
2589 # run `make install-strip'. However `strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the `STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_STRIP+set}" = set; then
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2626 { $as_echo "$as_me:$LINENO: result: no" >&5
2627 $as_echo "no" >&6; }
2632 if test -z "$ac_cv_prog_STRIP"; then
2634 # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_ac_ct_STRIP="strip"
2652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2666 { $as_echo "$as_me:$LINENO: result: no" >&5
2667 $as_echo "no" >&6; }
2670 if test "x$ac_ct_STRIP" = x; then
2673 case $cross_compiling:$ac_tool_warned in
2675 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet. If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&5
2678 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2681 ac_tool_warned=yes ;;
2686 STRIP="$ac_cv_prog_STRIP"
2690 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2692 # We need awk for the "check" target. The system "awk" is bad on
2694 # Always define AMTAR for backward compatibility.
2696 AMTAR=${AMTAR-"${am_missing_run}tar"}
2698 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2705 DEPDIR="${am__leading_dot}deps"
2707 ac_config_commands="$ac_config_commands depfiles"
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2716 # If we don't find an include directive, just comment out the code.
2717 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2718 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2722 # First try GNU make style include.
2723 echo "include confinc" > confmf
2724 # We grep out `Entering directory' and `Leaving directory'
2725 # messages which can occur if `w' ends up in MAKEFLAGS.
2726 # In particular we don't look at `^make:' because GNU make might
2727 # be invoked under some other name (usually "gmake"), in which
2728 # case it prints its new name instead of `make'.
2729 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2734 # Now try BSD make style include.
2735 if test "$am__include" = "#"; then
2736 echo '.include "confinc"' > confmf
2737 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2738 am__include=.include
2745 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2746 $as_echo "$_am_result" >&6; }
2747 rm -f confinc confmf
2749 # Check whether --enable-dependency-tracking was given.
2750 if test "${enable_dependency_tracking+set}" = set; then
2751 enableval=$enable_dependency_tracking;
2754 if test "x$enable_dependency_tracking" != xno; then
2755 am_depcomp="$ac_aux_dir/depcomp"
2758 if test "x$enable_dependency_tracking" != xno; then
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$ac_cv_prog_CC"; then
2813 # Extract the first word of "gcc", so it can be a program name with args.
2814 set dummy gcc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="gcc"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2849 if test "x$ac_ct_CC" = x; then
2852 case $cross_compiling:$ac_tool_warned in
2854 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet. If you think this
2856 configuration is useful to you, please write to autoconf@gnu.org." >&5
2857 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2860 ac_tool_warned=yes ;;
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}cc; ac_word=$2
2872 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_CC="${ac_tool_prefix}cc"
2888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2902 { $as_echo "$as_me:$LINENO: result: no" >&5
2903 $as_echo "no" >&6; }
2909 if test -z "$CC"; then
2910 # Extract the first word of "cc", so it can be a program name with args.
2911 set dummy cc; ac_word=$2
2912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929 ac_prog_rejected=yes
2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test $ac_prog_rejected = yes; then
2941 # We found a bogon in the path, so make sure we never use it.
2942 set dummy $ac_cv_prog_CC
2944 if test $# != 0; then
2945 # We chose a different compiler from the bogus one.
2946 # However, it has the same basename, so the bogon will be chosen
2947 # first if we set CC to just the basename; use the full file name.
2949 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:$LINENO: result: no" >&5
2960 $as_echo "no" >&6; }
2965 if test -z "$CC"; then
2966 if test -n "$ac_tool_prefix"; then
2967 for ac_prog in cl.exe
2969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3001 { $as_echo "$as_me:$LINENO: result: no" >&5
3002 $as_echo "no" >&6; }
3006 test -n "$CC" && break
3009 if test -z "$CC"; then
3011 for ac_prog in cl.exe
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_ac_ct_CC="$ac_prog"
3031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3045 { $as_echo "$as_me:$LINENO: result: no" >&5
3046 $as_echo "no" >&6; }
3050 test -n "$ac_ct_CC" && break
3053 if test "x$ac_ct_CC" = x; then
3056 case $cross_compiling:$ac_tool_warned in
3058 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3059 whose name does not start with the host triplet. If you think this
3060 configuration is useful to you, please write to autoconf@gnu.org." >&5
3061 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3062 whose name does not start with the host triplet. If you think this
3063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3064 ac_tool_warned=yes ;;
3073 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3074 See \`config.log' for more details." >&5
3075 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details." >&2;}
3077 { (exit 1); exit 1; }; }
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3083 { (ac_try="$ac_compiler --version >&5"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_compiler --version >&5") 2>&5
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }
3094 { (ac_try="$ac_compiler -v >&5"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_compiler -v >&5") 2>&5
3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3105 { (ac_try="$ac_compiler -V >&5"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112 (eval "$ac_compiler -V >&5") 2>&5
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 ac_clean_files_save=$ac_clean_files
3133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3134 # Try to create an executable without -o first, disregard a.out.
3135 # It will help us diagnose broken compilers, and finding out an intuition
3137 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3138 $as_echo_n "checking for C compiler default output file name... " >&6; }
3139 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3141 # List of possible output files, starting from the most likely.
3142 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3143 # only as a last resort. b.out is created by i960 compilers.
3144 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3146 # The IRIX 6 linker writes into existing files which may not be
3147 # executable, retaining their permissions. Remove them first so a
3148 # subsequent execution test works.
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { (ac_try="$ac_link_default"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file in $ac_files ''
3177 test -f "$ac_file" || continue
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&5
3214 $as_echo "$as_me: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&2;}
3216 { (exit 77); exit 77; }; }
3219 ac_exeext=$ac_cv_exeext
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3226 # If not cross compiling, check that we can run a simple program.
3227 if test "$cross_compiling" != yes; then
3228 if { ac_try='./$ac_file'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3234 $as_echo "$ac_try_echo") >&5
3235 (eval "$ac_try") 2>&5
3237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3241 if test "$cross_compiling" = maybe; then
3244 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details." >&5
3247 $as_echo "$as_me: error: cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3254 { $as_echo "$as_me:$LINENO: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3266 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3267 $as_echo_n "checking for suffix of executables... " >&6; }
3268 if { (ac_try="$ac_link"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_link") 2>&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; then
3279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3281 # work properly (i.e., refer to `conftest.exe'), while it won't with
3283 for ac_file in conftest.exe conftest conftest.*; do
3284 test -f "$ac_file" || continue
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3294 See \`config.log' for more details." >&5
3295 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3296 See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }
3300 rm -f conftest$ac_cv_exeext
3301 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3302 $as_echo "$ac_cv_exeext" >&6; }
3304 rm -f conftest.$ac_ext
3305 EXEEXT=$ac_cv_exeext
3307 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3308 $as_echo_n "checking for suffix of object files... " >&6; }
3309 if test "${ac_cv_objext+set}" = set; then
3310 $as_echo_n "(cached) " >&6
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3327 rm -f conftest.o conftest.obj
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compile") 2>&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; then
3339 for ac_file in conftest.o conftest.obj conftest.*; do
3340 test -f "$ac_file" || continue;
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 $as_echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details." >&5
3353 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3354 See \`config.log' for more details." >&2;}
3355 { (exit 1); exit 1; }; }
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3364 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3367 $as_echo_n "(cached) " >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3394 $as_echo "$ac_try_echo") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3417 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3419 if test $ac_compiler_gnu = yes; then
3424 ac_test_CFLAGS=${CFLAGS+set}
3425 ac_save_CFLAGS=$CFLAGS
3426 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3427 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3428 if test "${ac_cv_prog_cc_g+set}" = set; then
3429 $as_echo_n "(cached) " >&6
3431 ac_save_c_werror_flag=$ac_c_werror_flag
3432 ac_c_werror_flag=yes
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457 $as_echo "$ac_try_echo") >&5
3458 (eval "$ac_compile") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } && {
3465 test -z "$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 } && test -s conftest.$ac_objext; then
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } && {
3504 test -z "$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest.$ac_objext; then
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && {
3544 test -z "$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 } && test -s conftest.$ac_objext; then
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3564 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3565 $as_echo "$ac_cv_prog_cc_g" >&6; }
3566 if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3575 if test "$GCC" = yes; then
3581 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3582 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583 if test "${ac_cv_prog_cc_c89+set}" = set; then
3584 $as_echo_n "(cached) " >&6
3586 ac_cv_prog_cc_c89=no
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3596 #include <sys/types.h>
3597 #include <sys/stat.h>
3598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3599 struct buf { int x; };
3600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601 static char *e (p, i)
3607 static char *f (char * (*g) (char **, int), char **p, ...)
3612 s = g (p, va_arg (v,int));
3617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3618 function prototypes and stuff, but not '\xHH' hex character constants.
3619 These don't provoke an error unfortunately, instead are silently treated
3620 as 'x'. The following induces an error, until -std is added to get
3621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3622 array size at least. It's necessary to write '\x00'==0 to get something
3623 that's true only with -std. */
3624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3627 inside strings and character constants. */
3629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3631 int test (int i, double x);
3632 struct s1 {int (*f) (int a);};
3633 struct s2 {int (*f) (double a);};
3634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648 CC="$ac_save_CC $ac_arg"
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3667 ac_cv_prog_cc_c89=$ac_arg
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3678 rm -f conftest.$ac_ext
3683 case "x$ac_cv_prog_cc_c89" in
3685 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3688 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 depcc="$CC" am_compiler_list=
3705 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3706 $as_echo_n "checking dependency style of $depcc... " >&6; }
3707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3708 $as_echo_n "(cached) " >&6
3710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3711 # We make a subdir and do the tests there. Otherwise we can end up
3712 # making bogus files that we don't know about and never remove. For
3713 # instance it was reported that on HP-UX the gcc test will end up
3714 # making a dummy file named `D' -- because `-MD' means `put the output
3717 # Copy depcomp to subdir because otherwise we won't find it if we're
3718 # using a relative directory.
3719 cp "$am_depcomp" conftest.dir
3721 # We will build objects and dependencies in a subdirectory because
3722 # it helps to detect inapplicable dependency modes. For instance
3723 # both Tru64's cc and ICC support -MD to output dependencies as a
3724 # side effect of compilation, but ICC will put the dependencies in
3725 # the current directory while Tru64 will put them in the object
3729 am_cv_CC_dependencies_compiler_type=none
3730 if test "$am_compiler_list" = ""; then
3731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3733 for depmode in $am_compiler_list; do
3734 # Setup a source with many dependencies, because some compilers
3735 # like to wrap large dependency lists on column 80 (with \), and
3736 # we should not choose a depcomp mode which is confused by this.
3738 # We need to recreate these files for each test, as the compiler may
3739 # overwrite some of them when testing with obscure command lines.
3740 # This happens at least with the AIX C compiler.
3742 for i in 1 2 3 4 5 6; do
3743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3745 # Solaris 8's {/usr,}/bin/sh.
3746 touch sub/conftst$i.h
3748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752 # after this tag, mechanisms are not by side-effect, so they'll
3753 # only be used when explicitly requested
3754 if test "x$enable_dependency_tracking" = xyes; then
3762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3763 # mode. It turns out that the SunPro C++ compiler does not properly
3764 # handle `-M -o', and we need to detect this.
3765 if depmode=$depmode \
3766 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3768 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3769 >/dev/null 2>conftest.err &&
3770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3772 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3774 # icc doesn't choke on unknown options, it will just issue warnings
3775 # or remarks (even with -Werror). So we grep stderr for any message
3776 # that says an option was ignored or not supported.
3777 # When given -MP, icc 7.0 and 7.1 complain thusly:
3778 # icc: Command line warning: ignoring option '-M'; no argument required
3779 # The diagnosis changed in icc 8.0:
3780 # icc: Command line remark: option '-MP' not supported
3781 if (grep 'ignoring option' conftest.err ||
3782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3783 am_cv_CC_dependencies_compiler_type=$depmode
3792 am_cv_CC_dependencies_compiler_type=none
3796 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3804 am__fastdepCC_FALSE='#'
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3811 case $ac_cv_prog_cc_stdc in
3812 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3813 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3815 if test "${ac_cv_prog_cc_c99+set}" = set; then
3816 $as_echo_n "(cached) " >&6
3818 ac_cv_prog_cc_c99=no
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3827 #include <stdbool.h>
3832 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3833 #define debug(...) fprintf (stderr, __VA_ARGS__)
3834 #define showlist(...) puts (#__VA_ARGS__)
3835 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3837 test_varargs_macros (void)
3842 debug ("X = %d\n", x);
3843 showlist (The first, second, and third items.);
3844 report (x>y, "x is %d but y is %d", x, y);
3847 // Check long long types.
3848 #define BIG64 18446744073709551615ull
3849 #define BIG32 4294967295ul
3850 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3852 your preprocessor is broken;
3856 your preprocessor is broken;
3858 static long long int bignum = -9223372036854775807LL;
3859 static unsigned long long int ubignum = BIG64;
3861 struct incomplete_array
3869 const wchar_t *name;
3873 typedef const char *ccp;
3876 test_restrict (ccp restrict text)
3878 // See if C++-style comments work.
3879 // Iterate through items via the restricted pointer.
3880 // Also check for declarations in for loops.
3881 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3886 // Check varargs and va_copy.
3888 test_varargs (const char *format, ...)
3891 va_start (args, format);
3893 va_copy (args_copy, args);
3904 str = va_arg (args_copy, const char *);
3907 number = va_arg (args_copy, int);
3910 fnumber = va_arg (args_copy, double);
3925 _Bool success = false;
3928 if (test_restrict ("String literal") == 0)
3930 char *restrict newvar = "Another string";
3933 test_varargs ("s, d' f .", "string", 65, 34.234);
3934 test_varargs_macros ();
3936 // Check flexible array members.
3937 struct incomplete_array *ia =
3938 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3940 for (int i = 0; i < ia->datasize; ++i)
3941 ia->data[i] = i * 1.234;
3943 // Check named initializers.
3944 struct named_init ni = {
3946 .name = L"Test wide string",
3947 .average = 543.34343,
3952 int dynamic_array[ni.number];
3953 dynamic_array[ni.number - 1] = 543;
3955 // work around unused variable warnings
3956 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3957 || dynamic_array[ni.number - 1] != 543);
3963 for ac_arg in '' -std=gnu99 -c99 -xc99=all -qlanglvl=extc99
3965 CC="$ac_save_CC $ac_arg"
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3984 ac_cv_prog_cc_c99=$ac_arg
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c99" != "xno" && break
3995 rm -f conftest.$ac_ext
4000 case "x$ac_cv_prog_cc_c99" in
4002 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4005 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4008 CC="$CC $ac_cv_prog_cc_c99"
4009 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4010 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4012 if test "x$ac_cv_prog_cc_c99" != xno; then
4013 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4015 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4016 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4017 if test "${ac_cv_prog_cc_c89+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4020 ac_cv_prog_cc_c89=no
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4030 #include <sys/types.h>
4031 #include <sys/stat.h>
4032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4033 struct buf { int x; };
4034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035 static char *e (p, i)
4041 static char *f (char * (*g) (char **, int), char **p, ...)
4046 s = g (p, va_arg (v,int));
4051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4052 function prototypes and stuff, but not '\xHH' hex character constants.
4053 These don't provoke an error unfortunately, instead are silently treated
4054 as 'x'. The following induces an error, until -std is added to get
4055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4056 array size at least. It's necessary to write '\x00'==0 to get something
4057 that's true only with -std. */
4058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061 inside strings and character constants. */
4063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4065 int test (int i, double x);
4066 struct s1 {int (*f) (int a);};
4067 struct s2 {int (*f) (double a);};
4068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4082 CC="$ac_save_CC $ac_arg"
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4090 $as_echo "$ac_try_echo") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && {
4098 test -z "$ac_c_werror_flag" ||
4099 test ! -s conftest.err
4100 } && test -s conftest.$ac_objext; then
4101 ac_cv_prog_cc_c89=$ac_arg
4103 $as_echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f core conftest.err conftest.$ac_objext
4110 test "x$ac_cv_prog_cc_c89" != "xno" && break
4112 rm -f conftest.$ac_ext
4117 case "x$ac_cv_prog_cc_c89" in
4119 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4120 $as_echo "none needed" >&6; } ;;
4122 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4123 $as_echo "unsupported" >&6; } ;;
4125 CC="$CC $ac_cv_prog_cc_c89"
4126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4129 if test "x$ac_cv_prog_cc_c89" != xno; then
4130 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4132 ac_cv_prog_cc_stdc=no
4140 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4141 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4142 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4146 case $ac_cv_prog_cc_stdc in
4147 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4148 $as_echo "unsupported" >&6; } ;;
4149 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4150 $as_echo "none needed" >&6; } ;;
4151 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4152 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4156 if test "x$CC" != xcc; then
4157 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4158 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4160 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4161 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4163 set dummy $CC; ac_cc=`$as_echo "$2" |
4164 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4165 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4166 $as_echo_n "(cached) " >&6
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4183 # Make sure it works both with $CC and with simple cc.
4184 # We do the test twice because some compilers refuse to overwrite an
4185 # existing .o file with -o, though they will create one.
4186 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4188 if { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4193 $as_echo "$ac_try_echo") >&5
4194 (eval "$ac_try") 2>&5
4196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204 (eval "$ac_try") 2>&5
4206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); };
4209 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4210 if test "x$CC" != xcc; then
4211 # Test first that cc exists at all.
4212 if { ac_try='cc -c conftest.$ac_ext >&5'
4213 { (case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_try") 2>&5
4221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4225 if { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231 (eval "$ac_try") 2>&5
4233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4240 $as_echo "$ac_try_echo") >&5
4241 (eval "$ac_try") 2>&5
4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); };
4249 # cc exists but doesn't like -o.
4250 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4255 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4257 rm -f core conftest*
4260 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4261 { $as_echo "$as_me:$LINENO: result: yes" >&5
4262 $as_echo "yes" >&6; }
4264 { $as_echo "$as_me:$LINENO: result: no" >&5
4265 $as_echo "no" >&6; }
4267 cat >>confdefs.h <<\_ACEOF
4268 #define NO_MINUS_C_MINUS_O 1
4273 # FIXME: we rely on the cache variable name because
4274 # there is no other way.
4276 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4277 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4278 # Losing compiler, so override with the script.
4279 # FIXME: It is wrong to rewrite CC.
4280 # But if we don't then we get into trouble of one sort or another.
4281 # A longer-term fix would be to have automake use am__CC in this case,
4282 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4283 CC="$am_aux_dir/compile $CC"
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4293 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4294 # On Suns, sometimes $CPP names a directory.
4295 if test -n "$CPP" && test -d "$CPP"; then
4298 if test -z "$CPP"; then
4299 if test "${ac_cv_prog_CPP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4302 # Double quotes because CPP needs to be expanded
4303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4306 for ac_c_preproc_warn_flag in '' yes
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4321 # include <limits.h>
4323 # include <assert.h>
4327 if { (ac_try="$ac_cpp conftest.$ac_ext"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev/null && {
4341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4346 $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 # Broken: fails on valid input.
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4371 $as_echo "$ac_try_echo") >&5
4372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } >/dev/null && {
4379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4382 # Broken: success on invalid input.
4385 $as_echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 # Passes both tests.
4393 rm -f conftest.err conftest.$ac_ext
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then
4410 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4411 $as_echo "$CPP" >&6; }
4413 for ac_c_preproc_warn_flag in '' yes
4415 # Use a header file that comes with gcc, so configuring glibc
4416 # with a fresh cross-compiler works.
4417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418 # <limits.h> exists even on freestanding compilers.
4419 # On the NeXT, cc -E runs the code through the compiler's parser,
4420 # not just through cpp. "Syntax error" is here to catch this case.
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4428 # include <limits.h>
4430 # include <assert.h>
4434 if { (ac_try="$ac_cpp conftest.$ac_ext"
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4440 $as_echo "$ac_try_echo") >&5
4441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4443 grep -v '^ *+' conftest.er1 >conftest.err
4445 cat conftest.err >&5
4446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } >/dev/null && {
4448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4449 test ! -s conftest.err
4453 $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 # Broken: fails on valid input.
4460 rm -f conftest.err conftest.$ac_ext
4462 # OK, works on sane cases. Now check whether nonexistent headers
4463 # can be detected and how.
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4472 if { (ac_try="$ac_cpp conftest.$ac_ext"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null && {
4486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4489 # Broken: success on invalid input.
4492 $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 # Passes both tests.
4500 rm -f conftest.err conftest.$ac_ext
4503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4504 rm -f conftest.err conftest.$ac_ext
4505 if $ac_preproc_ok; then
4508 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4509 See \`config.log' for more details." >&5
4510 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4511 See \`config.log' for more details." >&2;}
4512 { (exit 1); exit 1; }; }
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4524 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4525 if test "${ac_cv_path_GREP+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4528 # Extract the first word of "grep ggrep" to use in msg output
4529 if test -z "$GREP"; then
4530 set dummy grep ggrep; ac_prog_name=$2
4531 if test "${ac_cv_path_GREP+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4534 ac_path_GREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in grep ggrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4544 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4545 # Check for GNU ac_path_GREP and select it if it is found.
4546 # Check for GNU $ac_path_GREP
4547 case `"$ac_path_GREP" --version 2>&1` in
4549 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4552 $as_echo_n 0123456789 >"conftest.in"
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'GREP' >> "conftest.nl"
4559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 ac_count=`expr $ac_count + 1`
4562 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_GREP="$ac_path_GREP"
4565 ac_path_GREP_max=$ac_count
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 $ac_path_GREP_found && break 3
4584 GREP="$ac_cv_path_GREP"
4585 if test -z "$GREP"; then
4586 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4587 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4588 { (exit 1); exit 1; }; }
4592 ac_cv_path_GREP=$GREP
4597 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4598 $as_echo "$ac_cv_path_GREP" >&6; }
4599 GREP="$ac_cv_path_GREP"
4602 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4603 $as_echo_n "checking for egrep... " >&6; }
4604 if test "${ac_cv_path_EGREP+set}" = set; then
4605 $as_echo_n "(cached) " >&6
4607 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4608 then ac_cv_path_EGREP="$GREP -E"
4610 # Extract the first word of "egrep" to use in msg output
4611 if test -z "$EGREP"; then
4612 set dummy egrep; ac_prog_name=$2
4613 if test "${ac_cv_path_EGREP+set}" = set; then
4614 $as_echo_n "(cached) " >&6
4616 ac_path_EGREP_found=false
4617 # Loop through the user's path and test for each of PROGNAME-LIST
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4622 test -z "$as_dir" && as_dir=.
4623 for ac_prog in egrep; do
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4627 # Check for GNU ac_path_EGREP and select it if it is found.
4628 # Check for GNU $ac_path_EGREP
4629 case `"$ac_path_EGREP" --version 2>&1` in
4631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4634 $as_echo_n 0123456789 >"conftest.in"
4637 cat "conftest.in" "conftest.in" >"conftest.tmp"
4638 mv "conftest.tmp" "conftest.in"
4639 cp "conftest.in" "conftest.nl"
4640 $as_echo 'EGREP' >> "conftest.nl"
4641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643 ac_count=`expr $ac_count + 1`
4644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4645 # Best one so far, save it but keep looking for a better one
4646 ac_cv_path_EGREP="$ac_path_EGREP"
4647 ac_path_EGREP_max=$ac_count
4649 # 10*(2^10) chars as input seems more than enough
4650 test $ac_count -gt 10 && break
4652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 $ac_path_EGREP_found && break 3
4666 EGREP="$ac_cv_path_EGREP"
4667 if test -z "$EGREP"; then
4668 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4669 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4670 { (exit 1); exit 1; }; }
4674 ac_cv_path_EGREP=$EGREP
4680 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4685 if test $ac_cv_c_compiler_gnu = yes; then
4686 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4687 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4688 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4691 ac_pattern="Autoconf.*'x'"
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4703 ac_cv_prog_gcc_traditional=yes
4705 ac_cv_prog_gcc_traditional=no
4710 if test $ac_cv_prog_gcc_traditional = no; then
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4722 ac_cv_prog_gcc_traditional=yes
4728 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4729 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4730 if test $ac_cv_prog_gcc_traditional = yes; then
4731 CC="$CC -traditional"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_RANLIB+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$RANLIB"; then
4744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 RANLIB=$ac_cv_prog_RANLIB
4764 if test -n "$RANLIB"; then
4765 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4766 $as_echo "$RANLIB" >&6; }
4768 { $as_echo "$as_me:$LINENO: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 $as_echo "$ac_ct_RANLIB" >&6; }
4808 { $as_echo "$as_me:$LINENO: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_RANLIB" = x; then
4815 case $cross_compiling:$ac_tool_warned in
4817 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4818 whose name does not start with the host triplet. If you think this
4819 configuration is useful to you, please write to autoconf@gnu.org." >&5
4820 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4821 whose name does not start with the host triplet. If you think this
4822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4823 ac_tool_warned=yes ;;
4825 RANLIB=$ac_ct_RANLIB
4828 RANLIB="$ac_cv_prog_RANLIB"
4831 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4832 $as_echo_n "checking whether ln -s works... " >&6; }
4834 if test "$LN_S" = "ln -s"; then
4835 { $as_echo "$as_me:$LINENO: result: yes" >&5
4836 $as_echo "yes" >&6; }
4838 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4839 $as_echo "no, using $LN_S" >&6; }
4843 cat >>confdefs.h <<\_ACEOF
4844 #define _GNU_SOURCE 1
4849 { $as_echo "$as_me:$LINENO: checking for AIX" >&5
4850 $as_echo_n "checking for AIX... " >&6; }
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863 $EGREP "yes" >/dev/null 2>&1; then
4864 { $as_echo "$as_me:$LINENO: result: yes" >&5
4865 $as_echo "yes" >&6; }
4866 cat >>confdefs.h <<\_ACEOF
4867 #define _ALL_SOURCE 1
4871 { $as_echo "$as_me:$LINENO: result: no" >&5
4872 $as_echo "no" >&6; }
4877 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if test "${ac_cv_header_stdc+set}" = set; then
4880 $as_echo_n "(cached) " >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
4919 ac_cv_header_stdc=yes
4921 $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 ac_cv_header_stdc=no
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 if test $ac_cv_header_stdc = yes; then
4930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev/null 2>&1; then
4944 ac_cv_header_stdc=no
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 $EGREP "free" >/dev/null 2>&1; then
4965 ac_cv_header_stdc=no
4971 if test $ac_cv_header_stdc = yes; then
4972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4973 if test "$cross_compiling" = yes; then
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4984 #if ((' ' & 0x0FF) == 0x020)
4985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4988 # define ISLOWER(c) \
4989 (('a' <= (c) && (c) <= 'i') \
4990 || ('j' <= (c) && (c) <= 'r') \
4991 || ('s' <= (c) && (c) <= 'z'))
4992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5000 for (i = 0; i < 256; i++)
5001 if (XOR (islower (i), ISLOWER (i))
5002 || toupper (i) != TOUPPER (i))
5007 rm -f conftest$ac_exeext
5008 if { (ac_try="$ac_link"
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_link") 2>&5
5017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025 (eval "$ac_try") 2>&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 $as_echo "$as_me: program exited with status $ac_status" >&5
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_header_stdc=no
5038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5045 $as_echo "$ac_cv_header_stdc" >&6; }
5046 if test $ac_cv_header_stdc = yes; then
5048 cat >>confdefs.h <<\_ACEOF
5049 #define STDC_HEADERS 1
5054 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5065 inttypes.h stdint.h unistd.h
5067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 $as_echo_n "checking for $ac_header... " >&6; }
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 $as_echo_n "(cached) " >&6
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5081 #include <$ac_header>
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090 $as_echo "$ac_try_echo") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 eval "$as_ac_Header=yes"
5103 $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 eval "$as_ac_Header=no"
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 ac_res=`eval 'as_val=${'$as_ac_Header'}
5112 $as_echo "$as_val"'`
5113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 if test `eval 'as_val=${'$as_ac_Header'}
5116 $as_echo "$as_val"'` = yes; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5126 if test "${ac_cv_header_minix_config_h+set}" = set; then
5127 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5128 $as_echo_n "checking for minix/config.h... " >&6; }
5129 if test "${ac_cv_header_minix_config_h+set}" = set; then
5130 $as_echo_n "(cached) " >&6
5132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5133 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5135 # Is the header compilable?
5136 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5137 $as_echo_n "checking minix/config.h usability... " >&6; }
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5145 #include <minix/config.h>
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5154 $as_echo "$ac_try_echo") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 ac_header_compiler=yes
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_header_compiler=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5175 $as_echo "$ac_header_compiler" >&6; }
5177 # Is the header present?
5178 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5179 $as_echo_n "checking minix/config.h presence... " >&6; }
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 #include <minix/config.h>
5188 if { (ac_try="$ac_cpp conftest.$ac_ext"
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5194 $as_echo "$ac_try_echo") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null && {
5202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5205 ac_header_preproc=yes
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_header_preproc=no
5213 rm -f conftest.err conftest.$ac_ext
5214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5215 $as_echo "$ac_header_preproc" >&6; }
5217 # So? What about this header?
5218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5220 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5221 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5223 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5224 ac_header_preproc=yes
5227 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5228 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5229 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5230 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5231 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5232 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5233 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5234 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5235 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5236 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5237 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5238 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5240 ## ------------------------------------ ##
5241 ## Report this to bug-coreutils@gnu.org ##
5242 ## ------------------------------------ ##
5244 ) | sed "s/^/$as_me: WARNING: /" >&2
5247 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5248 $as_echo_n "checking for minix/config.h... " >&6; }
5249 if test "${ac_cv_header_minix_config_h+set}" = set; then
5250 $as_echo_n "(cached) " >&6
5252 ac_cv_header_minix_config_h=$ac_header_preproc
5254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5255 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5258 if test $ac_cv_header_minix_config_h = yes; then
5265 if test "$MINIX" = yes; then
5267 cat >>confdefs.h <<\_ACEOF
5268 #define _POSIX_SOURCE 1
5272 cat >>confdefs.h <<\_ACEOF
5273 #define _POSIX_1_SOURCE 2
5277 cat >>confdefs.h <<\_ACEOF
5293 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5294 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5295 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 # define __EXTENSIONS__ 1
5306 $ac_includes_default
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5322 $as_echo "$ac_try_echo") >&5
5323 (eval "$ac_compile") 2>conftest.er1
5325 grep -v '^ *+' conftest.er1 >conftest.err
5327 cat conftest.err >&5
5328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && {
5330 test -z "$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 } && test -s conftest.$ac_objext; then
5333 ac_cv_safe_to_define___extensions__=yes
5335 $as_echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 ac_cv_safe_to_define___extensions__=no
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5344 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5345 test $ac_cv_safe_to_define___extensions__ = yes &&
5346 cat >>confdefs.h <<\_ACEOF
5347 #define __EXTENSIONS__ 1
5350 cat >>confdefs.h <<\_ACEOF
5351 #define _POSIX_PTHREAD_SEMANTICS 1
5354 cat >>confdefs.h <<\_ACEOF
5355 #define _TANDEM_SOURCE 1
5366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5367 # for constant arguments. Useless!
5368 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5369 $as_echo_n "checking for working alloca.h... " >&6; }
5370 if test "${ac_cv_working_alloca_h+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5383 char *p = (char *) alloca (2 * sizeof (int));
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5396 $as_echo "$ac_try_echo") >&5
5397 (eval "$ac_link") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest$ac_exeext &&
5407 $as_test_x conftest$ac_exeext; then
5408 ac_cv_working_alloca_h=yes
5410 $as_echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_working_alloca_h=no
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417 conftest$ac_exeext conftest.$ac_ext
5419 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5420 $as_echo "$ac_cv_working_alloca_h" >&6; }
5421 if test $ac_cv_working_alloca_h = yes; then
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_ALLOCA_H 1
5429 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5430 $as_echo_n "checking for alloca... " >&6; }
5431 if test "${ac_cv_func_alloca_works+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 # define alloca __builtin_alloca
5444 # include <malloc.h>
5445 # define alloca _alloca
5447 # ifdef HAVE_ALLOCA_H
5448 # include <alloca.h>
5453 # ifndef alloca /* predefined by HP cc +Olibcalls */
5464 char *p = (char *) alloca (1);
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_link") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest$ac_exeext &&
5488 $as_test_x conftest$ac_exeext; then
5489 ac_cv_func_alloca_works=yes
5491 $as_echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_cv_func_alloca_works=no
5497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5498 conftest$ac_exeext conftest.$ac_ext
5500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5501 $as_echo "$ac_cv_func_alloca_works" >&6; }
5503 if test $ac_cv_func_alloca_works = yes; then
5505 cat >>confdefs.h <<\_ACEOF
5506 #define HAVE_ALLOCA 1
5510 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5511 # that cause trouble. Some versions do not even contain alloca or
5512 # contain a buggy version. If you still want to use their alloca,
5513 # use ar to extract alloca.o from them instead of compiling alloca.c.
5515 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5517 cat >>confdefs.h <<\_ACEOF
5522 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5523 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5524 if test "${ac_cv_os_cray+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #if defined CRAY && ! defined CRAY2
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "webecray" >/dev/null 2>&1; then
5549 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5550 $as_echo "$ac_cv_os_cray" >&6; }
5551 if test $ac_cv_os_cray = yes; then
5552 for ac_func in _getb67 GETB67 getb67; do
5553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5554 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5555 $as_echo_n "checking for $ac_func... " >&6; }
5556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5557 $as_echo_n "(cached) " >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5567 #define $ac_func innocuous_$ac_func
5569 /* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char $ac_func (); below.
5571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 <limits.h> exists even on freestanding compilers. */
5575 # include <limits.h>
5577 # include <assert.h>
5582 /* Override any GCC internal prototype to avoid an error.
5583 Use char because int might match the return type of a GCC
5584 builtin and then its argument prototype would still apply. */
5589 /* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
5592 #if defined __stub_$ac_func || defined __stub___$ac_func
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (ac_try="$ac_link"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5611 $as_echo "$ac_try_echo") >&5
5612 (eval "$ac_link") 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest$ac_exeext &&
5622 $as_test_x conftest$ac_exeext; then
5623 eval "$as_ac_var=yes"
5625 $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 eval "$as_ac_var=no"
5631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5632 conftest$ac_exeext conftest.$ac_ext
5634 ac_res=`eval 'as_val=${'$as_ac_var'}
5635 $as_echo "$as_val"'`
5636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5637 $as_echo "$ac_res" >&6; }
5638 if test `eval 'as_val=${'$as_ac_var'}
5639 $as_echo "$as_val"'` = yes; then
5641 cat >>confdefs.h <<_ACEOF
5642 #define CRAY_STACKSEG_END $ac_func
5651 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5652 $as_echo_n "checking stack direction for C alloca... " >&6; }
5653 if test "${ac_cv_c_stack_direction+set}" = set; then
5654 $as_echo_n "(cached) " >&6
5656 if test "$cross_compiling" = yes; then
5657 ac_cv_c_stack_direction=0
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5667 find_stack_direction ()
5669 static char *addr = 0;
5674 return find_stack_direction ();
5677 return (&dummy > addr) ? 1 : -1;
5683 return find_stack_direction () < 0;
5686 rm -f conftest$ac_exeext
5687 if { (ac_try="$ac_link"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_link") 2>&5
5696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5703 $as_echo "$ac_try_echo") >&5
5704 (eval "$ac_try") 2>&5
5706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_c_stack_direction=1
5710 $as_echo "$as_me: program exited with status $ac_status" >&5
5711 $as_echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5715 ac_cv_c_stack_direction=-1
5717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5722 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5723 $as_echo "$ac_cv_c_stack_direction" >&6; }
5725 cat >>confdefs.h <<_ACEOF
5726 #define STACK_DIRECTION $ac_cv_c_stack_direction
5734 for ac_header in stdlib.h
5736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5739 $as_echo_n "checking for $ac_header... " >&6; }
5740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5741 $as_echo_n "(cached) " >&6
5743 ac_res=`eval 'as_val=${'$as_ac_Header'}
5744 $as_echo "$as_val"'`
5745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5746 $as_echo "$ac_res" >&6; }
5748 # Is the header compilable?
5749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5750 $as_echo_n "checking $ac_header usability... " >&6; }
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 $ac_includes_default
5758 #include <$ac_header>
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest.$ac_objext; then
5778 ac_header_compiler=yes
5780 $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 ac_header_compiler=no
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5788 $as_echo "$ac_header_compiler" >&6; }
5790 # Is the header present?
5791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5792 $as_echo_n "checking $ac_header presence... " >&6; }
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <$ac_header>
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null && {
5815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5818 ac_header_preproc=yes
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_header_preproc=no
5826 rm -f conftest.err conftest.$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5828 $as_echo "$ac_header_preproc" >&6; }
5830 # So? What about this header?
5831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5837 ac_header_preproc=yes
5840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5853 ## ------------------------------------ ##
5854 ## Report this to bug-coreutils@gnu.org ##
5855 ## ------------------------------------ ##
5857 ) | sed "s/^/$as_me: WARNING: /" >&2
5860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5861 $as_echo_n "checking for $ac_header... " >&6; }
5862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863 $as_echo_n "(cached) " >&6
5865 eval "$as_ac_Header=\$ac_header_preproc"
5867 ac_res=`eval 'as_val=${'$as_ac_Header'}
5868 $as_echo "$as_val"'`
5869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5870 $as_echo "$ac_res" >&6; }
5873 if test `eval 'as_val=${'$as_ac_Header'}
5874 $as_echo "$as_val"'` = yes; then
5875 cat >>confdefs.h <<_ACEOF
5876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5884 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5885 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5886 $as_echo_n "(cached) " >&6
5888 if test "$cross_compiling" = yes; then
5889 ac_cv_func_malloc_0_nonnull=no
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5898 # include <stdlib.h>
5906 return ! malloc (0);
5911 rm -f conftest$ac_exeext
5912 if { (ac_try="$ac_link"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918 $as_echo "$ac_try_echo") >&5
5919 (eval "$ac_link") 2>&5
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5928 $as_echo "$ac_try_echo") >&5
5929 (eval "$ac_try") 2>&5
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_func_malloc_0_nonnull=yes
5935 $as_echo "$as_me: program exited with status $ac_status" >&5
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_cv_func_malloc_0_nonnull=no
5942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5948 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5949 if test $ac_cv_func_malloc_0_nonnull = yes; then
5950 gl_cv_func_malloc_0_nonnull=1
5952 gl_cv_func_malloc_0_nonnull=0
5957 cat >>confdefs.h <<_ACEOF
5958 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
5963 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
5964 $as_echo_n "checking for long long int... " >&6; }
5965 if test "${ac_cv_type_long_long_int+set}" = set; then
5966 $as_echo_n "(cached) " >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 long long int ll = 9223372036854775807ll;
5975 long long int nll = -9223372036854775807LL;
5976 typedef int a[((-9223372036854775807LL < 0
5977 && 0 < 9223372036854775807ll)
5983 long long int llmax = 9223372036854775807ll;
5984 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5985 | (llmax / ll) | (llmax % ll));
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998 (eval "$ac_link") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest$ac_exeext &&
6008 $as_test_x conftest$ac_exeext; then
6009 if test "$cross_compiling" = yes; then
6010 ac_cv_type_long_long_int=yes
6012 cat >conftest.$ac_ext <<_ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6021 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6022 # define LLONG_MAX (HALF - 1 + HALF)
6027 long long int n = 1;
6031 long long int m = n << i;
6034 if (LLONG_MAX / 2 < m)
6042 rm -f conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6049 $as_echo "$ac_try_echo") >&5
6050 (eval "$ac_link") 2>&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6054 { (case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059 $as_echo "$ac_try_echo") >&5
6060 (eval "$ac_try") 2>&5
6062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_type_long_long_int=yes
6066 $as_echo "$as_me: program exited with status $ac_status" >&5
6067 $as_echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_cv_type_long_long_int=no
6073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_type_long_long_int=no
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085 conftest$ac_exeext conftest.$ac_ext
6087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
6088 $as_echo "$ac_cv_type_long_long_int" >&6; }
6089 if test $ac_cv_type_long_long_int = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_LONG_LONG_INT 1
6098 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6099 $as_echo_n "checking for long double... " >&6; }
6100 if test "${gt_cv_c_long_double+set}" = set; then
6101 $as_echo_n "(cached) " >&6
6103 if test "$GCC" = yes; then
6104 gt_cv_c_long_double=yes
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6114 long double foo = 0.0;
6115 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6116 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133 $as_echo "$ac_try_echo") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 gt_cv_c_long_double=yes
6146 $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 gt_cv_c_long_double=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6156 $as_echo "$gt_cv_c_long_double" >&6; }
6157 if test $gt_cv_c_long_double = yes; then
6159 cat >>confdefs.h <<\_ACEOF
6160 #define HAVE_LONG_DOUBLE 1
6169 for ac_header in $ac_header_list
6171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6174 $as_echo_n "checking for $ac_header... " >&6; }
6175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6176 $as_echo_n "(cached) " >&6
6178 ac_res=`eval 'as_val=${'$as_ac_Header'}
6179 $as_echo "$as_val"'`
6180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6181 $as_echo "$ac_res" >&6; }
6183 # Is the header compilable?
6184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 $as_echo_n "checking $ac_header usability... " >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <$ac_header>
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6202 $as_echo "$ac_try_echo") >&5
6203 (eval "$ac_compile") 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } && {
6210 test -z "$ac_c_werror_flag" ||
6211 test ! -s conftest.err
6212 } && test -s conftest.$ac_objext; then
6213 ac_header_compiler=yes
6215 $as_echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_header_compiler=no
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 $as_echo "$ac_header_compiler" >&6; }
6225 # Is the header present?
6226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6227 $as_echo_n "checking $ac_header presence... " >&6; }
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <$ac_header>
6236 if { (ac_try="$ac_cpp conftest.$ac_ext"
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6242 $as_echo "$ac_try_echo") >&5
6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null && {
6250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6253 ac_header_preproc=yes
6255 $as_echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_header_preproc=no
6261 rm -f conftest.err conftest.$ac_ext
6262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 $as_echo "$ac_header_preproc" >&6; }
6265 # So? What about this header?
6266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6272 ac_header_preproc=yes
6275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6288 ## ------------------------------------ ##
6289 ## Report this to bug-coreutils@gnu.org ##
6290 ## ------------------------------------ ##
6292 ) | sed "s/^/$as_me: WARNING: /" >&2
6295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6296 $as_echo_n "checking for $ac_header... " >&6; }
6297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6298 $as_echo_n "(cached) " >&6
6300 eval "$as_ac_Header=\$ac_header_preproc"
6302 ac_res=`eval 'as_val=${'$as_ac_Header'}
6303 $as_echo "$as_val"'`
6304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6308 if test `eval 'as_val=${'$as_ac_Header'}
6309 $as_echo "$as_val"'` = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
6321 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
6322 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
6323 $as_echo_n "(cached) " >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6332 #include <sys/types.h>
6338 struct dirent dp; dp.d_ino = 0;
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (ac_try="$ac_link"
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6350 $as_echo "$ac_try_echo") >&5
6351 (eval "$ac_link") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest$ac_exeext &&
6361 $as_test_x conftest$ac_exeext; then
6362 jm_cv_struct_dirent_d_ino=yes
6364 $as_echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 jm_cv_struct_dirent_d_ino=no
6370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371 conftest$ac_exeext conftest.$ac_ext
6375 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
6376 $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
6377 if test $jm_cv_struct_dirent_d_ino = yes; then
6379 cat >>confdefs.h <<\_ACEOF
6380 #define D_INO_IN_DIRENT 1
6387 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
6388 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
6389 if test "${ac_cv_win_or_dos+set}" = set; then
6390 $as_echo_n "(cached) " >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6403 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
6404 neither MSDOS nor Windows
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6417 $as_echo "$ac_try_echo") >&5
6418 (eval "$ac_compile") 2>conftest.er1
6420 grep -v '^ *+' conftest.er1 >conftest.err
6422 cat conftest.err >&5
6423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest.$ac_objext; then
6428 ac_cv_win_or_dos=yes
6430 $as_echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
6440 $as_echo "$ac_cv_win_or_dos" >&6; }
6442 if test x"$ac_cv_win_or_dos" = xyes; then
6443 ac_fs_accepts_drive_letter_prefix=1
6444 ac_fs_backslash_is_file_name_separator=1
6445 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
6446 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
6447 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
6448 $as_echo_n "(cached) " >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6461 #if defined __CYGWIN__
6462 drive letters are always absolute
6468 rm -f conftest.$ac_objext
6469 if { (ac_try="$ac_compile"
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6475 $as_echo "$ac_try_echo") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
6486 ac_cv_drive_letter_can_be_relative=yes
6488 $as_echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_cv_drive_letter_can_be_relative=no
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
6498 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
6499 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
6500 ac_fs_drive_letter_can_be_relative=1
6502 ac_fs_drive_letter_can_be_relative=0
6505 ac_fs_accepts_drive_letter_prefix=0
6506 ac_fs_backslash_is_file_name_separator=0
6507 ac_fs_drive_letter_can_be_relative=0
6511 cat >>confdefs.h <<_ACEOF
6512 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
6520 cat >>confdefs.h <<_ACEOF
6521 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
6526 cat >>confdefs.h <<_ACEOF
6527 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
6531 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
6532 $as_echo_n "checking for long file names... " >&6; }
6533 if test "${ac_cv_sys_long_file_names+set}" = set; then
6534 $as_echo_n "(cached) " >&6
6536 ac_cv_sys_long_file_names=yes
6537 # Test for long file names in all the places we know might matter:
6538 # . the current directory, where building will happen
6539 # $prefix/lib where we will be installing things
6540 # $exec_prefix/lib likewise
6541 # $TMPDIR if set, where it might want to write temporary files
6542 # /tmp where it might want to write temporary files
6545 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6546 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6547 # in the usual case where exec_prefix is '${prefix}'.
6549 . | /* | ?:[\\/]*) ;; #(
6552 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6553 ac_xdir=$ac_dir/cf$$
6554 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6555 ac_tf1=$ac_xdir/conftest9012345
6556 ac_tf2=$ac_xdir/conftest9012346
6557 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6558 ac_cv_sys_long_file_names=no
6559 rm -f -r "$ac_xdir" 2>/dev/null
6560 test $ac_cv_sys_long_file_names = no && break
6563 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6564 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6565 if test $ac_cv_sys_long_file_names = yes; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_LONG_FILE_NAMES 1
6577 for ac_func in $ac_func_list
6579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6580 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6581 $as_echo_n "checking for $ac_func... " >&6; }
6582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6583 $as_echo_n "(cached) " >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6593 #define $ac_func innocuous_$ac_func
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func (); below.
6597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6598 <limits.h> exists even on freestanding compilers. */
6601 # include <limits.h>
6603 # include <assert.h>
6608 /* Override any GCC internal prototype to avoid an error.
6609 Use char because int might match the return type of a GCC
6610 builtin and then its argument prototype would still apply. */
6615 /* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618 #if defined __stub_$ac_func || defined __stub___$ac_func
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (ac_try="$ac_link"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638 (eval "$ac_link") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest$ac_exeext &&
6648 $as_test_x conftest$ac_exeext; then
6649 eval "$as_ac_var=yes"
6651 $as_echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 eval "$as_ac_var=no"
6657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6658 conftest$ac_exeext conftest.$ac_ext
6660 ac_res=`eval 'as_val=${'$as_ac_var'}
6661 $as_echo "$as_val"'`
6662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6663 $as_echo "$ac_res" >&6; }
6664 if test `eval 'as_val=${'$as_ac_var'}
6665 $as_echo "$as_val"'` = yes; then
6666 cat >>confdefs.h <<_ACEOF
6667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6675 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6676 $as_echo_n "checking for inline... " >&6; }
6677 if test "${ac_cv_c_inline+set}" = set; then
6678 $as_echo_n "(cached) " >&6
6681 for ac_kw in inline __inline__ __inline; do
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6690 static $ac_kw foo_t static_foo () {return 0; }
6691 $ac_kw foo_t foo () {return 0; }
6695 rm -f conftest.$ac_objext
6696 if { (ac_try="$ac_compile"
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702 $as_echo "$ac_try_echo") >&5
6703 (eval "$ac_compile") 2>conftest.er1
6705 grep -v '^ *+' conftest.er1 >conftest.err
6707 cat conftest.err >&5
6708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && {
6710 test -z "$ac_c_werror_flag" ||
6711 test ! -s conftest.err
6712 } && test -s conftest.$ac_objext; then
6713 ac_cv_c_inline=$ac_kw
6715 $as_echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 test "$ac_cv_c_inline" != no && break
6726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6727 $as_echo "$ac_cv_c_inline" >&6; }
6730 case $ac_cv_c_inline in
6733 case $ac_cv_c_inline in
6735 *) ac_val=$ac_cv_c_inline;;
6737 cat >>confdefs.h <<_ACEOF
6739 #define inline $ac_val
6745 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6746 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6747 if test "${ac_cv_c_restrict+set}" = set; then
6748 $as_echo_n "(cached) " >&6
6751 # Try the official restrict keyword, then gcc's __restrict, and
6752 # the less common variants.
6753 for ac_kw in restrict __restrict __restrict__ _Restrict; do
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 typedef int * int_ptr;
6761 int foo (int_ptr $ac_kw ip) {
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1 >conftest.err
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_c_restrict=$ac_kw
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 test "$ac_cv_c_restrict" != no && break
6806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6807 $as_echo "$ac_cv_c_restrict" >&6; }
6808 case $ac_cv_c_restrict in
6811 cat >>confdefs.h <<\_ACEOF
6815 *) cat >>confdefs.h <<_ACEOF
6816 #define restrict $ac_cv_c_restrict
6822 { $as_echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
6823 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
6824 if test "${gl_cv_func_c99_strtold+set}" = set; then
6825 $as_echo_n "(cached) " >&6
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 /* On HP-UX before 11.23, strtold returns a struct instead of
6834 long double. Reject implementations like that, by requiring
6835 compatibility with the C99 prototype. */
6837 static long double (*p) (char const *, char **) = strtold;
6839 test (char const *nptr, char **endptr)
6842 r = strtold (nptr, endptr);
6848 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (ac_try="$ac_link"
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861 (eval "$ac_link") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest$ac_exeext &&
6871 $as_test_x conftest$ac_exeext; then
6872 gl_cv_func_c99_strtold=yes
6874 $as_echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 gl_cv_func_c99_strtold=no
6880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6881 conftest$ac_exeext conftest.$ac_ext
6883 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
6884 $as_echo "$gl_cv_func_c99_strtold" >&6; }
6885 if test $gl_cv_func_c99_strtold = yes; then
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE_C99_STRTOLD 1
6893 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6894 $as_echo_n "checking for size_t... " >&6; }
6895 if test "${ac_cv_type_size_t+set}" = set; then
6896 $as_echo_n "(cached) " >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6905 typedef size_t ac__type_new_;
6909 if ((ac__type_new_ *) 0)
6911 if (sizeof (ac__type_new_))
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924 $as_echo "$ac_try_echo") >&5
6925 (eval "$ac_compile") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest.$ac_objext; then
6935 ac_cv_type_size_t=yes
6937 $as_echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ac_cv_type_size_t=no
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6946 $as_echo "$ac_cv_type_size_t" >&6; }
6947 if test $ac_cv_type_size_t = yes; then
6951 cat >>confdefs.h <<_ACEOF
6952 #define size_t unsigned int
6959 { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
6960 $as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
6961 if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
6962 $as_echo_n "(cached) " >&6
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6974 #ifndef canonicalize_file_name
6975 (void) canonicalize_file_name;
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6989 $as_echo "$ac_try_echo") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_have_decl_canonicalize_file_name=yes
7002 $as_echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_have_decl_canonicalize_file_name=no
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
7011 $as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
7012 if test $ac_cv_have_decl_canonicalize_file_name = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
7020 cat >>confdefs.h <<_ACEOF
7021 #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
7038 GNULIB_GETLOGIN_R=0;
7043 HAVE_DECL_GETLOGIN_R=1;
7048 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7049 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7050 if test "${ac_cv_type_uid_t+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <sys/types.h>
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "uid_t" >/dev/null 2>&1; then
7064 ac_cv_type_uid_t=yes
7071 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7072 $as_echo "$ac_cv_type_uid_t" >&6; }
7073 if test $ac_cv_type_uid_t = no; then
7075 cat >>confdefs.h <<\_ACEOF
7080 cat >>confdefs.h <<\_ACEOF
7087 for ac_header in unistd.h
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7092 $as_echo_n "checking for $ac_header... " >&6; }
7093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7094 $as_echo_n "(cached) " >&6
7096 ac_res=`eval 'as_val=${'$as_ac_Header'}
7097 $as_echo "$as_val"'`
7098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7099 $as_echo "$ac_res" >&6; }
7101 # Is the header compilable?
7102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7103 $as_echo_n "checking $ac_header usability... " >&6; }
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7111 #include <$ac_header>
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_header_compiler=yes
7133 $as_echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_header_compiler=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7141 $as_echo "$ac_header_compiler" >&6; }
7143 # Is the header present?
7144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7145 $as_echo_n "checking $ac_header presence... " >&6; }
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <$ac_header>
7154 if { (ac_try="$ac_cpp conftest.$ac_ext"
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7160 $as_echo "$ac_try_echo") >&5
7161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null && {
7168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7171 ac_header_preproc=yes
7173 $as_echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_header_preproc=no
7179 rm -f conftest.err conftest.$ac_ext
7180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181 $as_echo "$ac_header_preproc" >&6; }
7183 # So? What about this header?
7184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7190 ac_header_preproc=yes
7193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206 ## ------------------------------------ ##
7207 ## Report this to bug-coreutils@gnu.org ##
7208 ## ------------------------------------ ##
7210 ) | sed "s/^/$as_me: WARNING: /" >&2
7213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7214 $as_echo_n "checking for $ac_header... " >&6; }
7215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7216 $as_echo_n "(cached) " >&6
7218 eval "$as_ac_Header=\$ac_header_preproc"
7220 ac_res=`eval 'as_val=${'$as_ac_Header'}
7221 $as_echo "$as_val"'`
7222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7223 $as_echo "$ac_res" >&6; }
7226 if test `eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'` = yes; then
7228 cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
7237 $as_echo_n "checking for working chown... " >&6; }
7238 if test "${ac_cv_func_chown_works+set}" = set; then
7239 $as_echo_n "(cached) " >&6
7241 if test "$cross_compiling" = yes; then
7242 ac_cv_func_chown_works=no
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7256 char *f = "conftest.chown";
7257 struct stat before, after;
7259 if (creat (f, 0600) < 0)
7261 if (stat (f, &before) < 0)
7263 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7265 if (stat (f, &after) < 0)
7267 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7273 rm -f conftest$ac_exeext
7274 if { (ac_try="$ac_link"
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280 $as_echo "$ac_try_echo") >&5
7281 (eval "$ac_link") 2>&5
7283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285 { (case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291 (eval "$ac_try") 2>&5
7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_func_chown_works=yes
7297 $as_echo "$as_me: program exited with status $ac_status" >&5
7298 $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7302 ac_cv_func_chown_works=no
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7308 rm -f conftest.chown
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
7312 $as_echo "$ac_cv_func_chown_works" >&6; }
7313 if test $ac_cv_func_chown_works = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define HAVE_CHOWN 1
7322 { $as_echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
7323 $as_echo_n "checking whether chown(2) dereferences symlinks... " >&6; }
7324 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7328 if test "$cross_compiling" = yes; then
7329 gl_cv_func_chown_follows_symlink=yes
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7346 char const *dangling_symlink = "conftest.dangle";
7348 unlink (dangling_symlink);
7349 if (symlink ("conftest.no-such", dangling_symlink))
7352 /* Exit successfully on a conforming system,
7353 i.e., where chown must fail with ENOENT. */
7354 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
7355 && errno == ENOENT));
7359 rm -f conftest$ac_exeext
7360 if { (ac_try="$ac_link"
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367 (eval "$ac_link") 2>&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7371 { (case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377 (eval "$ac_try") 2>&5
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
7381 gl_cv_func_chown_follows_symlink=yes
7383 $as_echo "$as_me: program exited with status $ac_status" >&5
7384 $as_echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7388 gl_cv_func_chown_follows_symlink=no
7390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7397 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
7398 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
7400 if test $gl_cv_func_chown_follows_symlink = no; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define CHOWN_MODIFIES_SYMLINK 1
7410 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
7411 $as_echo_n "checking whether // is distinct from /... " >&6; }
7412 if test "${gl_cv_double_slash_root+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7415 if test x"$cross_compiling" = xyes ; then
7416 # When cross-compiling, there is no way to tell whether // is special
7417 # short of a list of hosts. However, the only known hosts to date
7418 # that have a distinct // are Apollo DomainOS (too old to port to),
7419 # Cygwin, and z/OS. If anyone knows of another system for which // has
7420 # special semantics and is distinct from /, please report it to
7421 # <bug-gnulib@gnu.org>.
7423 *-cygwin | i370-ibm-openedition)
7424 gl_cv_double_slash_root=yes ;;
7426 # Be optimistic and assume that / and // are the same when we
7428 gl_cv_double_slash_root='unknown, assuming no' ;;
7432 if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
7433 gl_cv_double_slash_root=no
7435 gl_cv_double_slash_root=yes
7439 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
7440 $as_echo "$gl_cv_double_slash_root" >&6; }
7441 if test "$gl_cv_double_slash_root" = yes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
7451 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
7452 $as_echo_n "checking whether strerror_r is declared... " >&6; }
7453 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_have_decl_strerror_r=yes
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 ac_cv_have_decl_strerror_r=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
7503 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
7504 if test $ac_cv_have_decl_strerror_r = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_DECL_STRERROR_R 1
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_STRERROR_R 0
7521 for ac_func in strerror_r
7523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7525 $as_echo_n "checking for $ac_func... " >&6; }
7526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7527 $as_echo_n "(cached) " >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7537 #define $ac_func innocuous_$ac_func
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char $ac_func (); below.
7541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7542 <limits.h> exists even on freestanding compilers. */
7545 # include <limits.h>
7547 # include <assert.h>
7552 /* Override any GCC internal prototype to avoid an error.
7553 Use char because int might match the return type of a GCC
7554 builtin and then its argument prototype would still apply. */
7559 /* The GNU C library defines this for functions which it implements
7560 to always fail with ENOSYS. Some functions are actually named
7561 something starting with __ and the normal name is an alias. */
7562 #if defined __stub_$ac_func || defined __stub___$ac_func
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (ac_try="$ac_link"
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_link") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest$ac_exeext &&
7592 $as_test_x conftest$ac_exeext; then
7593 eval "$as_ac_var=yes"
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 eval "$as_ac_var=no"
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602 conftest$ac_exeext conftest.$ac_ext
7604 ac_res=`eval 'as_val=${'$as_ac_var'}
7605 $as_echo "$as_val"'`
7606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7607 $as_echo "$ac_res" >&6; }
7608 if test `eval 'as_val=${'$as_ac_var'}
7609 $as_echo "$as_val"'` = yes; then
7610 cat >>confdefs.h <<_ACEOF
7611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7617 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7618 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7619 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7620 $as_echo_n "(cached) " >&6
7623 ac_cv_func_strerror_r_char_p=no
7624 if test $ac_cv_have_decl_strerror_r = yes; then
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7637 char x = *strerror_r (0, buf, sizeof buf);
7638 char *p = strerror_r (0, buf, sizeof buf);
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7652 $as_echo "$ac_try_echo") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_cv_func_strerror_r_char_p=yes
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 # strerror_r is not declared. Choose between
7674 # systems that have relatively inaccessible declarations for the
7675 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7676 # former has a strerror_r that returns char*, while the latter
7677 # has a strerror_r that returns `int'.
7678 # This test should segfault on the DEC system.
7679 if test "$cross_compiling" = yes; then
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7689 extern char *strerror_r ();
7694 char x = *strerror_r (0, buf, sizeof buf);
7695 return ! isalpha (x);
7700 rm -f conftest$ac_exeext
7701 if { (ac_try="$ac_link"
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708 (eval "$ac_link") 2>&5
7710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712 { (case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7717 $as_echo "$ac_try_echo") >&5
7718 (eval "$ac_try") 2>&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 ac_cv_func_strerror_r_char_p=yes
7724 $as_echo "$as_me: program exited with status $ac_status" >&5
7725 $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7736 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7737 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7738 if test $ac_cv_func_strerror_r_char_p = yes; then
7740 cat >>confdefs.h <<\_ACEOF
7741 #define STRERROR_R_CHAR_P 1
7746 { $as_echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
7747 $as_echo_n "checking whether euidaccess is declared... " >&6; }
7748 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
7749 $as_echo_n "(cached) " >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest.$ac_objext; then
7787 ac_cv_have_decl_euidaccess=yes
7789 $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_cv_have_decl_euidaccess=no
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
7798 $as_echo "$ac_cv_have_decl_euidaccess" >&6; }
7799 if test $ac_cv_have_decl_euidaccess = yes; then
7801 cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DECL_EUIDACCESS 1
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_EUIDACCESS 0
7817 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
7818 $as_echo_n "checking whether setregid is declared... " >&6; }
7819 if test "${ac_cv_have_decl_setregid+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7840 rm -f conftest.$ac_objext
7841 if { (ac_try="$ac_compile"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847 $as_echo "$ac_try_echo") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7858 ac_cv_have_decl_setregid=yes
7860 $as_echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_have_decl_setregid=no
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
7869 $as_echo "$ac_cv_have_decl_setregid" >&6; }
7870 if test $ac_cv_have_decl_setregid = yes; then
7872 cat >>confdefs.h <<_ACEOF
7873 #define HAVE_DECL_SETREGID 1
7878 cat >>confdefs.h <<_ACEOF
7879 #define HAVE_DECL_SETREGID 0
7886 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7887 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7888 if test "${ac_cv_type_getgroups+set}" = set; then
7889 $as_echo_n "(cached) " >&6
7891 if test "$cross_compiling" = yes; then
7892 ac_cv_type_getgroups=cross
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 /* Thanks to Mike Rendell for this test. */
7901 $ac_includes_default
7904 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7911 union { gid_t gval; long int lval; } val;
7914 for (i = 0; i < NGID; i++)
7915 gidset[i] = val.gval;
7916 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7918 /* Exit non-zero if getgroups seems to require an array of ints. This
7919 happens when gid_t is short int but getgroups modifies an array
7921 return n > 0 && gidset[n] != val.gval;
7924 rm -f conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931 $as_echo "$ac_try_echo") >&5
7932 (eval "$ac_link") 2>&5
7934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942 (eval "$ac_try") 2>&5
7944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_type_getgroups=gid_t
7948 $as_echo "$as_me: program exited with status $ac_status" >&5
7949 $as_echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_type_getgroups=int
7955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7959 if test $ac_cv_type_getgroups = cross; then
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7971 ac_cv_type_getgroups=gid_t
7973 ac_cv_type_getgroups=int
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7980 $as_echo "$ac_cv_type_getgroups" >&6; }
7982 cat >>confdefs.h <<_ACEOF
7983 #define GETGROUPS_T $ac_cv_type_getgroups
7987 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
7988 $as_echo_n "checking for getgroups... " >&6; }
7989 if test "${ac_cv_func_getgroups+set}" = set; then
7990 $as_echo_n "(cached) " >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
7999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8000 #define getgroups innocuous_getgroups
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char getgroups (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8008 # include <limits.h>
8010 # include <assert.h>
8015 /* Override any GCC internal prototype to avoid an error.
8016 Use char because int might match the return type of a GCC
8017 builtin and then its argument prototype would still apply. */
8022 /* The GNU C library defines this for functions which it implements
8023 to always fail with ENOSYS. Some functions are actually named
8024 something starting with __ and the normal name is an alias. */
8025 #if defined __stub_getgroups || defined __stub___getgroups
8032 return getgroups ();
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8044 $as_echo "$ac_try_echo") >&5
8045 (eval "$ac_link") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest$ac_exeext &&
8055 $as_test_x conftest$ac_exeext; then
8056 ac_cv_func_getgroups=yes
8058 $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_func_getgroups=no
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065 conftest$ac_exeext conftest.$ac_ext
8067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
8068 $as_echo "$ac_cv_func_getgroups" >&6; }
8071 # If we don't yet have getgroups, see if it's in -lbsd.
8072 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
8074 if test $ac_cv_func_getgroups = no; then
8075 { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
8076 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
8077 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
8078 $as_echo_n "(cached) " >&6
8080 ac_check_lib_save_LIBS=$LIBS
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8089 /* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8099 return getgroups ();
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112 (eval "$ac_link") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext &&
8122 $as_test_x conftest$ac_exeext; then
8123 ac_cv_lib_bsd_getgroups=yes
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_lib_bsd_getgroups=no
8131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8132 conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
8136 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
8137 if test $ac_cv_lib_bsd_getgroups = yes; then
8143 # Run the program to test the functionality of the system-supplied
8144 # getgroups function only if there is such a function.
8145 if test $ac_cv_func_getgroups = yes; then
8146 { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
8147 $as_echo_n "checking for working getgroups... " >&6; }
8148 if test "${ac_cv_func_getgroups_works+set}" = set; then
8149 $as_echo_n "(cached) " >&6
8151 if test "$cross_compiling" = yes; then
8152 ac_cv_func_getgroups_works=no
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8164 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
8165 return getgroups (0, 0) == -1;
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178 (eval "$ac_link") 2>&5
8180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188 (eval "$ac_try") 2>&5
8190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_cv_func_getgroups_works=yes
8194 $as_echo "$as_me: program exited with status $ac_status" >&5
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_func_getgroups_works=no
8201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
8208 $as_echo "$ac_cv_func_getgroups_works" >&6; }
8209 if test $ac_cv_func_getgroups_works = yes; then
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_GETGROUPS 1
8225 { $as_echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
8226 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8227 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <sys/types.h>
8237 #include <sys/stat.h>
8241 struct stat s; s.st_dm_mode;
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8253 $as_echo "$ac_try_echo") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_struct_st_dm_mode=yes
8266 $as_echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_struct_st_dm_mode=no
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
8275 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8277 if test $ac_cv_struct_st_dm_mode = yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ST_DM_MODE 1
8286 { $as_echo "$as_me:$LINENO: checking whether strmode is declared" >&5
8287 $as_echo_n "checking whether strmode is declared... " >&6; }
8288 if test "${ac_cv_have_decl_strmode+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8316 $as_echo "$ac_try_echo") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_have_decl_strmode=yes
8329 $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 ac_cv_have_decl_strmode=no
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
8338 $as_echo "$ac_cv_have_decl_strmode" >&6; }
8339 if test $ac_cv_have_decl_strmode = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_DECL_STRMODE 1
8347 cat >>confdefs.h <<_ACEOF
8348 #define HAVE_DECL_STRMODE 0
8357 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
8358 $as_echo_n "checking for mbstate_t... " >&6; }
8359 if test "${ac_cv_type_mbstate_t+set}" = set; then
8360 $as_echo_n "(cached) " >&6
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 $ac_includes_default
8373 mbstate_t x; return sizeof x;
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8385 $as_echo "$ac_try_echo") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_type_mbstate_t=yes
8398 $as_echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_type_mbstate_t=no
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8407 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8408 if test $ac_cv_type_mbstate_t = yes; then
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_MBSTATE_T 1
8416 cat >>confdefs.h <<\_ACEOF
8417 #define mbstate_t int
8450 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
8451 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
8452 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 #include <sys/socket.h>
8471 rm -f conftest.$ac_objext
8472 if { (ac_try="$ac_compile"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 gl_cv_header_sys_socket_h_selfcontained=yes
8491 $as_echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 gl_cv_header_sys_socket_h_selfcontained=no
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
8501 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
8502 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
8505 SYS_SOCKET_H='sys/socket.h'
8508 for ac_header in sys/socket.h
8510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 $as_echo_n "checking for $ac_header... " >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 $as_echo_n "(cached) " >&6
8517 ac_res=`eval 'as_val=${'$as_ac_Header'}
8518 $as_echo "$as_val"'`
8519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8520 $as_echo "$ac_res" >&6; }
8522 # Is the header compilable?
8523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8524 $as_echo_n "checking $ac_header usability... " >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 #include <$ac_header>
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8541 $as_echo "$ac_try_echo") >&5
8542 (eval "$ac_compile") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest.$ac_objext; then
8552 ac_header_compiler=yes
8554 $as_echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_header_compiler=no
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8562 $as_echo "$ac_header_compiler" >&6; }
8564 # Is the header present?
8565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8566 $as_echo_n "checking $ac_header presence... " >&6; }
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <$ac_header>
8575 if { (ac_try="$ac_cpp conftest.$ac_ext"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } >/dev/null && {
8589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8592 ac_header_preproc=yes
8594 $as_echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_header_preproc=no
8600 rm -f conftest.err conftest.$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8602 $as_echo "$ac_header_preproc" >&6; }
8604 # So? What about this header?
8605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8611 ac_header_preproc=yes
8614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8627 ## ------------------------------------ ##
8628 ## Report this to bug-coreutils@gnu.org ##
8629 ## ------------------------------------ ##
8631 ) | sed "s/^/$as_me: WARNING: /" >&2
8634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8635 $as_echo_n "checking for $ac_header... " >&6; }
8636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8637 $as_echo_n "(cached) " >&6
8639 eval "$as_ac_Header=\$ac_header_preproc"
8641 ac_res=`eval 'as_val=${'$as_ac_Header'}
8642 $as_echo "$as_val"'`
8643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8644 $as_echo "$ac_res" >&6; }
8647 if test `eval 'as_val=${'$as_ac_Header'}
8648 $as_echo "$as_val"'` = yes; then
8649 cat >>confdefs.h <<_ACEOF
8650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8657 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
8658 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
8659 if test "${gl_cv_absolute_sys_socket_h+set}" = set; then
8660 $as_echo_n "(cached) " >&6
8667 if test $ac_cv_header_sys_socket_h = yes; then
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <sys/socket.h>
8676 gl_cv_absolute_sys_socket_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8677 sed -n '\#/sys/socket.h#{s#.*"\(.*/sys/socket.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
8681 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_socket_h" >&5
8682 $as_echo "$gl_cv_absolute_sys_socket_h" >&6; }
8683 cat >>confdefs.h <<_ACEOF
8684 #define ABSOLUTE_SYS_SOCKET_H "$gl_cv_absolute_sys_socket_h"
8688 ABSOLUTE_SYS_SOCKET_H=\"$gl_cv_absolute_sys_socket_h\"
8690 if test $ac_cv_header_sys_socket_h = yes; then
8698 for ac_header in winsock2.h ws2tcpip.h
8700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8703 $as_echo_n "checking for $ac_header... " >&6; }
8704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8705 $as_echo_n "(cached) " >&6
8707 ac_res=`eval 'as_val=${'$as_ac_Header'}
8708 $as_echo "$as_val"'`
8709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8710 $as_echo "$ac_res" >&6; }
8712 # Is the header compilable?
8713 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 $as_echo_n "checking $ac_header usability... " >&6; }
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <$ac_header>
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8731 $as_echo "$ac_try_echo") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_header_compiler=yes
8744 $as_echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_header_compiler=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752 $as_echo "$ac_header_compiler" >&6; }
8754 # Is the header present?
8755 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756 $as_echo_n "checking $ac_header presence... " >&6; }
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 #include <$ac_header>
8765 if { (ac_try="$ac_cpp conftest.$ac_ext"
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8771 $as_echo "$ac_try_echo") >&5
8772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } >/dev/null && {
8779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8782 ac_header_preproc=yes
8784 $as_echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_header_preproc=no
8790 rm -f conftest.err conftest.$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 $as_echo "$ac_header_preproc" >&6; }
8794 # So? What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801 ac_header_preproc=yes
8804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8807 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8811 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8817 ## ------------------------------------ ##
8818 ## Report this to bug-coreutils@gnu.org ##
8819 ## ------------------------------------ ##
8821 ) | sed "s/^/$as_me: WARNING: /" >&2
8824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8825 $as_echo_n "checking for $ac_header... " >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827 $as_echo_n "(cached) " >&6
8829 eval "$as_ac_Header=\$ac_header_preproc"
8831 ac_res=`eval 'as_val=${'$as_ac_Header'}
8832 $as_echo "$as_val"'`
8833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8834 $as_echo "$ac_res" >&6; }
8837 if test `eval 'as_val=${'$as_ac_Header'}
8838 $as_echo "$as_val"'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 if test $ac_cv_header_winsock2_h = yes; then
8852 if test $ac_cv_header_ws2tcpip_h = yes; then
8875 { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
8876 $as_echo_n "checking for IPv4 sockets... " >&6; }
8877 if test "${gl_cv_socket_ipv4+set}" = set; then
8878 $as_echo_n "(cached) " >&6
8880 cat >conftest.$ac_ext <<_ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #ifdef HAVE_SYS_SOCKET_H
8888 #include <sys/socket.h>
8890 #ifdef HAVE_NETINET_IN_H
8891 #include <netinet/in.h>
8893 #ifdef HAVE_WINSOCK2_H
8894 #include <winsock2.h>
8899 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8900 if (&x && &y && &z) return 0;
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913 (eval "$ac_compile") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest.$ac_objext; then
8923 gl_cv_socket_ipv4=yes
8925 $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 gl_cv_socket_ipv4=no
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
8935 $as_echo "$gl_cv_socket_ipv4" >&6; }
8936 if test $gl_cv_socket_ipv4 = yes; then
8938 cat >>confdefs.h <<\_ACEOF
8944 { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
8945 $as_echo_n "checking for IPv6 sockets... " >&6; }
8946 if test "${gl_cv_socket_ipv6+set}" = set; then
8947 $as_echo_n "(cached) " >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #ifdef HAVE_SYS_SOCKET_H
8957 #include <sys/socket.h>
8959 #ifdef HAVE_NETINET_IN_H
8960 #include <netinet/in.h>
8962 #ifdef HAVE_WINSOCK2_H
8963 #include <winsock2.h>
8968 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8969 if (&x && &y && &z) return 0;
8974 rm -f conftest.$ac_objext
8975 if { (ac_try="$ac_compile"
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_compile") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest.$ac_objext; then
8992 gl_cv_socket_ipv6=yes
8994 $as_echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 gl_cv_socket_ipv6=no
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
9004 $as_echo "$gl_cv_socket_ipv6" >&6; }
9005 if test $gl_cv_socket_ipv6 = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9016 { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9017 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9018 if test "${gl_cv_func_getcwd_null+set}" = set; then
9019 $as_echo_n "(cached) " >&6
9021 if test "$cross_compiling" = yes; then
9022 gl_cv_func_getcwd_null=no
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9031 # include <stdlib.h>
9032 # include <unistd.h>
9039 if (chdir ("/") != 0)
9043 char *f = getcwd (NULL, 0);
9044 exit (! (f && f[0] == '/' && !f[1]));
9048 rm -f conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_link") 2>&5
9058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9065 $as_echo "$ac_try_echo") >&5
9066 (eval "$ac_try") 2>&5
9068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 gl_cv_func_getcwd_null=yes
9072 $as_echo "$as_me: program exited with status $ac_status" >&5
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9077 gl_cv_func_getcwd_null=no
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
9085 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9087 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
9088 $as_echo_n "checking whether getcwd is declared... " >&6; }
9089 if test "${ac_cv_have_decl_getcwd+set}" = set; then
9090 $as_echo_n "(cached) " >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 ac_cv_have_decl_getcwd=yes
9130 $as_echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_have_decl_getcwd=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
9139 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
9140 if test $ac_cv_have_decl_getcwd = yes; then
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_DECL_GETCWD 1
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_GETCWD 0
9156 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9157 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9158 if test "${ac_cv_header_stdbool_h+set}" = set; then
9159 $as_echo_n "(cached) " >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9168 #include <stdbool.h>
9170 "error: bool is not defined"
9173 "error: false is not defined"
9176 "error: false is not 0"
9179 "error: true is not defined"
9182 "error: true is not 1"
9184 #ifndef __bool_true_false_are_defined
9185 "error: __bool_true_false_are_defined is not defined"
9188 struct s { _Bool s: 1; _Bool t; } s;
9190 char a[true == 1 ? 1 : -1];
9191 char b[false == 0 ? 1 : -1];
9192 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9193 char d[(bool) 0.5 == true ? 1 : -1];
9195 char f[(_Bool) 0.0 == false ? 1 : -1];
9197 char h[sizeof (_Bool)];
9199 enum { j = false, k = true, l = false * true, m = true * 256 };
9201 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9202 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9203 #if defined __xlc__ || defined __GNUC__
9204 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9205 reported by James Lemley on 2005-10-05; see
9206 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9207 This test is not quite right, since xlc is allowed to
9208 reject this program, as the initializer for xlcbug is
9209 not one of the forms that C requires support for.
9210 However, doing the test right would require a run-time
9211 test, and that would make cross-compilation harder.
9212 Let us hope that IBM fixes the xlc bug, and also adds
9213 support for this kind of constant expression. In the
9214 meantime, this test will reject xlc, which is OK, since
9215 our stdbool.h substitute should suffice. We also test
9216 this with GCC, where it should work, to detect more
9217 quickly whether someone messes up the test in the
9219 char digs[] = "0123456789";
9220 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9222 /* Catch a bug in an HP-UX C compiler. See
9223 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9224 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9235 /* Refer to every declared value, to avoid compiler optimizations. */
9236 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9237 + !m + !n + !o + !p + !q + !pq);
9243 rm -f conftest.$ac_objext
9244 if { (ac_try="$ac_compile"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9250 $as_echo "$ac_try_echo") >&5
9251 (eval "$ac_compile") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest.$ac_objext; then
9261 ac_cv_header_stdbool_h=yes
9263 $as_echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_header_stdbool_h=no
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9272 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9273 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9274 $as_echo_n "checking for _Bool... " >&6; }
9275 if test "${ac_cv_type__Bool+set}" = set; then
9276 $as_echo_n "(cached) " >&6
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 $ac_includes_default
9285 typedef _Bool ac__type_new_;
9289 if ((ac__type_new_ *) 0)
9291 if (sizeof (ac__type_new_))
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9304 $as_echo "$ac_try_echo") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.$ac_objext; then
9315 ac_cv_type__Bool=yes
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9326 $as_echo "$ac_cv_type__Bool" >&6; }
9327 if test $ac_cv_type__Bool = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define HAVE__BOOL 1
9336 if test $ac_cv_header_stdbool_h = yes; then
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_STDBOOL_H 1
9346 # Define two additional variables used in the Makefile substitution.
9348 if test "$ac_cv_header_stdbool_h" = yes; then
9351 STDBOOL_H='stdbool.h'
9355 if test "$ac_cv_type__Bool" = yes; then
9366 # getdate.y works with bison only.
9367 : ${YACC='bison -y'}
9370 { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
9371 $as_echo_n "checking for compound literals... " >&6; }
9372 if test "${gl_cv_compound_literals+set}" = set; then
9373 $as_echo_n "(cached) " >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
9385 struct s t = (struct s) { 3, 4 };
9386 if (t.i != 0) return 0;
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9409 gl_cv_compound_literals=yes
9411 $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 gl_cv_compound_literals=no
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
9420 $as_echo "$gl_cv_compound_literals" >&6; }
9421 if test $gl_cv_compound_literals = yes; then
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_COMPOUND_LITERALS 1
9429 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9430 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9431 if test "${ac_cv_struct_tm+set}" = set; then
9432 $as_echo_n "(cached) " >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <sys/types.h>
9447 int *p = &tm.tm_sec;
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9460 $as_echo "$ac_try_echo") >&5
9461 (eval "$ac_compile") 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest.$ac_objext; then
9471 ac_cv_struct_tm=time.h
9473 $as_echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_cv_struct_tm=sys/time.h
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9482 $as_echo "$ac_cv_struct_tm" >&6; }
9483 if test $ac_cv_struct_tm = sys/time.h; then
9485 cat >>confdefs.h <<\_ACEOF
9486 #define TM_IN_SYS_TIME 1
9492 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
9493 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
9494 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
9495 $as_echo_n "(cached) " >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9508 static struct tm ac_aggr;
9509 if (ac_aggr.tm_gmtoff)
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9522 $as_echo "$ac_try_echo") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_c_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_cv_member_struct_tm_tm_gmtoff=yes
9535 $as_echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9549 static struct tm ac_aggr;
9550 if (sizeof ac_aggr.tm_gmtoff)
9556 rm -f conftest.$ac_objext
9557 if { (ac_try="$ac_compile"
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9563 $as_echo "$ac_try_echo") >&5
9564 (eval "$ac_compile") 2>conftest.er1
9566 grep -v '^ *+' conftest.er1 >conftest.err
9568 cat conftest.err >&5
9569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest.$ac_objext; then
9574 ac_cv_member_struct_tm_tm_gmtoff=yes
9576 $as_echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_member_struct_tm_tm_gmtoff=no
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
9588 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
9589 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_TM_GMTOFF 1
9598 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
9599 $as_echo_n "checking whether getdelim is declared... " >&6; }
9600 if test "${ac_cv_have_decl_getdelim+set}" = set; then
9601 $as_echo_n "(cached) " >&6
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629 (eval "$ac_compile") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest.$ac_objext; then
9639 ac_cv_have_decl_getdelim=yes
9641 $as_echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_cv_have_decl_getdelim=no
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
9650 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
9651 if test $ac_cv_have_decl_getdelim = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_DECL_GETDELIM 1
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_GETDELIM 0
9669 { $as_echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
9670 $as_echo_n "checking for arithmetic hrtime_t... " >&6; }
9671 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
9672 $as_echo_n "(cached) " >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9684 hrtime_t x = 0; return x/x;
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9696 $as_echo "$ac_try_echo") >&5
9697 (eval "$ac_compile") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest.$ac_objext; then
9707 gl_cv_arithmetic_hrtime_t=yes
9709 $as_echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 gl_cv_arithmetic_hrtime_t=no
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { $as_echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
9718 $as_echo "$gl_cv_arithmetic_hrtime_t" >&6; }
9719 if test $gl_cv_arithmetic_hrtime_t = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_ARITHMETIC_HRTIME_T 1
9737 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9738 $as_echo_n "checking for ssize_t... " >&6; }
9739 if test "${gt_cv_ssize_t+set}" = set; then
9740 $as_echo_n "(cached) " >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <sys/types.h>
9752 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765 $as_echo "$ac_try_echo") >&5
9766 (eval "$ac_compile") 2>conftest.er1
9768 grep -v '^ *+' conftest.er1 >conftest.err
9770 cat conftest.err >&5
9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest.$ac_objext; then
9778 $as_echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9787 $as_echo "$gt_cv_ssize_t" >&6; }
9788 if test $gt_cv_ssize_t = no; then
9790 cat >>confdefs.h <<\_ACEOF
9797 if test -z "$GETOPT_H"; then
9799 for ac_header in getopt.h
9801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806 $as_echo_n "(cached) " >&6
9808 ac_res=`eval 'as_val=${'$as_ac_Header'}
9809 $as_echo "$as_val"'`
9810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9811 $as_echo "$ac_res" >&6; }
9813 # Is the header compilable?
9814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 $as_echo_n "checking $ac_header usability... " >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 ac_header_compiler=yes
9845 $as_echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_header_compiler=no
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9853 $as_echo "$ac_header_compiler" >&6; }
9855 # Is the header present?
9856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9857 $as_echo_n "checking $ac_header presence... " >&6; }
9858 cat >conftest.$ac_ext <<_ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 #include <$ac_header>
9866 if { (ac_try="$ac_cpp conftest.$ac_ext"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9872 $as_echo "$ac_try_echo") >&5
9873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } >/dev/null && {
9880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9881 test ! -s conftest.err
9883 ac_header_preproc=yes
9885 $as_echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_header_preproc=no
9891 rm -f conftest.err conftest.$ac_ext
9892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 $as_echo "$ac_header_preproc" >&6; }
9895 # So? What about this header?
9896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9902 ac_header_preproc=yes
9905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 ## ------------------------------------ ##
9919 ## Report this to bug-coreutils@gnu.org ##
9920 ## ------------------------------------ ##
9922 ) | sed "s/^/$as_me: WARNING: /" >&2
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926 $as_echo_n "checking for $ac_header... " >&6; }
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 $as_echo_n "(cached) " >&6
9930 eval "$as_ac_Header=\$ac_header_preproc"
9932 ac_res=`eval 'as_val=${'$as_ac_Header'}
9933 $as_echo "$as_val"'`
9934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9935 $as_echo "$ac_res" >&6; }
9938 if test `eval 'as_val=${'$as_ac_Header'}
9939 $as_echo "$as_val"'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9952 if test -z "$GETOPT_H"; then
9954 for ac_func in getopt_long_only
9956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9958 $as_echo_n "checking for $ac_func... " >&6; }
9959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9960 $as_echo_n "(cached) " >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9970 #define $ac_func innocuous_$ac_func
9972 /* System header to define __stub macros and hopefully few prototypes,
9973 which can conflict with char $ac_func (); below.
9974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975 <limits.h> exists even on freestanding compilers. */
9978 # include <limits.h>
9980 # include <assert.h>
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
9992 /* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
9995 #if defined __stub_$ac_func || defined __stub___$ac_func
10002 return $ac_func ();
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext &&
10025 $as_test_x conftest$ac_exeext; then
10026 eval "$as_ac_var=yes"
10028 $as_echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 eval "$as_ac_var=no"
10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035 conftest$ac_exeext conftest.$ac_ext
10037 ac_res=`eval 'as_val=${'$as_ac_var'}
10038 $as_echo "$as_val"'`
10039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10040 $as_echo "$ac_res" >&6; }
10041 if test `eval 'as_val=${'$as_ac_var'}
10042 $as_echo "$as_val"'` = yes; then
10043 cat >>confdefs.h <<_ACEOF
10044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 if test -z "$GETOPT_H"; then
10055 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
10056 $as_echo_n "checking whether optreset is declared... " >&6; }
10057 if test "${ac_cv_have_decl_optreset+set}" = set; then
10058 $as_echo_n "(cached) " >&6
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <getopt.h>
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10086 $as_echo "$ac_try_echo") >&5
10087 (eval "$ac_compile") 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } && {
10094 test -z "$ac_c_werror_flag" ||
10095 test ! -s conftest.err
10096 } && test -s conftest.$ac_objext; then
10097 ac_cv_have_decl_optreset=yes
10099 $as_echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_have_decl_optreset=no
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10107 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
10108 $as_echo "$ac_cv_have_decl_optreset" >&6; }
10109 if test $ac_cv_have_decl_optreset = yes; then
10115 if test -z "$GETOPT_H"; then
10116 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
10117 $as_echo_n "checking for working GNU getopt function... " >&6; }
10118 if test "${gl_cv_func_gnu_getopt+set}" = set; then
10119 $as_echo_n "(cached) " >&6
10121 if test "$cross_compiling" = yes; then
10122 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
10123 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
10124 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
10125 $as_echo_n "(cached) " >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <getopt.h>
10138 #ifndef getopt_clip
10139 (void) getopt_clip;
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154 (eval "$ac_compile") 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && {
10161 test -z "$ac_c_werror_flag" ||
10162 test ! -s conftest.err
10163 } && test -s conftest.$ac_objext; then
10164 ac_cv_have_decl_getopt_clip=yes
10166 $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_cv_have_decl_getopt_clip=no
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10174 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
10175 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
10176 if test $ac_cv_have_decl_getopt_clip = yes; then
10177 gl_cv_func_gnu_getopt=no
10179 gl_cv_func_gnu_getopt=yes
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <getopt.h>
10195 myargv[0] = "conftest";
10198 return getopt (2, myargv, "+a") != '?';
10204 rm -f conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10211 $as_echo "$ac_try_echo") >&5
10212 (eval "$ac_link") 2>&5
10214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_try") 2>&5
10224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 gl_cv_func_gnu_getopt=yes
10228 $as_echo "$as_me: program exited with status $ac_status" >&5
10229 $as_echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ( exit $ac_status )
10233 gl_cv_func_gnu_getopt=no
10235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10240 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
10241 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
10242 if test "$gl_cv_func_gnu_getopt" = "no"; then
10247 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10248 $as_echo_n "checking whether getenv is declared... " >&6; }
10249 if test "${ac_cv_have_decl_getenv+set}" = set; then
10250 $as_echo_n "(cached) " >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277 $as_echo "$ac_try_echo") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_cv_have_decl_getenv=yes
10290 $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_have_decl_getenv=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10299 $as_echo "$ac_cv_have_decl_getenv" >&6; }
10300 if test $ac_cv_have_decl_getenv = yes; then
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_GETENV 1
10308 cat >>confdefs.h <<_ACEOF
10309 #define HAVE_DECL_GETENV 0
10316 { $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10317 $as_echo_n "checking whether getpass is declared... " >&6; }
10318 if test "${ac_cv_have_decl_getpass+set}" = set; then
10319 $as_echo_n "(cached) " >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10339 rm -f conftest.$ac_objext
10340 if { (ac_try="$ac_compile"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10346 $as_echo "$ac_try_echo") >&5
10347 (eval "$ac_compile") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && {
10354 test -z "$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10356 } && test -s conftest.$ac_objext; then
10357 ac_cv_have_decl_getpass=yes
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_cv_have_decl_getpass=no
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10368 $as_echo "$ac_cv_have_decl_getpass" >&6; }
10369 if test $ac_cv_have_decl_getpass = yes; then
10371 cat >>confdefs.h <<_ACEOF
10372 #define HAVE_DECL_GETPASS 1
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_GETPASS 0
10393 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10394 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
10395 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10396 $as_echo_n "(cached) " >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 $ac_includes_default
10408 #ifndef fflush_unlocked
10409 (void) fflush_unlocked;
10416 rm -f conftest.$ac_objext
10417 if { (ac_try="$ac_compile"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10434 ac_cv_have_decl_fflush_unlocked=yes
10436 $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_have_decl_fflush_unlocked=no
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10445 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
10446 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10454 cat >>confdefs.h <<_ACEOF
10455 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10462 { $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10463 $as_echo_n "checking whether flockfile is declared... " >&6; }
10464 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10465 $as_echo_n "(cached) " >&6
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 $ac_includes_default
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10492 $as_echo "$ac_try_echo") >&5
10493 (eval "$ac_compile") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest.$ac_objext; then
10503 ac_cv_have_decl_flockfile=yes
10505 $as_echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_have_decl_flockfile=no
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10514 $as_echo "$ac_cv_have_decl_flockfile" >&6; }
10515 if test $ac_cv_have_decl_flockfile = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518 #define HAVE_DECL_FLOCKFILE 1
10523 cat >>confdefs.h <<_ACEOF
10524 #define HAVE_DECL_FLOCKFILE 0
10531 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10532 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10533 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10534 $as_echo_n "(cached) " >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10546 #ifndef fputs_unlocked
10547 (void) fputs_unlocked;
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561 $as_echo "$ac_try_echo") >&5
10562 (eval "$ac_compile") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest.$ac_objext; then
10572 ac_cv_have_decl_fputs_unlocked=yes
10574 $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_have_decl_fputs_unlocked=no
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10583 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10584 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_DECL_FPUTS_UNLOCKED 1
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_DECL_FPUTS_UNLOCKED 0
10600 { $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10601 $as_echo_n "checking whether funlockfile is declared... " >&6; }
10602 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10603 $as_echo_n "(cached) " >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10615 #ifndef funlockfile
10616 (void) funlockfile;
10623 rm -f conftest.$ac_objext
10624 if { (ac_try="$ac_compile"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10630 $as_echo "$ac_try_echo") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest.$ac_objext; then
10641 ac_cv_have_decl_funlockfile=yes
10643 $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 ac_cv_have_decl_funlockfile=no
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10652 $as_echo "$ac_cv_have_decl_funlockfile" >&6; }
10653 if test $ac_cv_have_decl_funlockfile = yes; then
10655 cat >>confdefs.h <<_ACEOF
10656 #define HAVE_DECL_FUNLOCKFILE 1
10661 cat >>confdefs.h <<_ACEOF
10662 #define HAVE_DECL_FUNLOCKFILE 0
10669 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10670 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10671 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10672 $as_echo_n "(cached) " >&6
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10684 #ifndef putc_unlocked
10685 (void) putc_unlocked;
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10699 $as_echo "$ac_try_echo") >&5
10700 (eval "$ac_compile") 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && {
10707 test -z "$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10709 } && test -s conftest.$ac_objext; then
10710 ac_cv_have_decl_putc_unlocked=yes
10712 $as_echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_have_decl_putc_unlocked=no
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10721 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10722 if test $ac_cv_have_decl_putc_unlocked = yes; then
10724 cat >>confdefs.h <<_ACEOF
10725 #define HAVE_DECL_PUTC_UNLOCKED 1
10730 cat >>confdefs.h <<_ACEOF
10731 #define HAVE_DECL_PUTC_UNLOCKED 0
10753 if test $ac_cv_header_sys_time_h = yes; then
10754 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
10755 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10756 if test "${gl_cv_absolute_sys_time_h+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10764 if test $ac_cv_header_sys_time_h = yes; then
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <sys/time.h>
10773 gl_cv_absolute_sys_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10774 sed -n '\#/sys/time.h#{s#.*"\(.*/sys/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
10778 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_time_h" >&5
10779 $as_echo "$gl_cv_absolute_sys_time_h" >&6; }
10780 cat >>confdefs.h <<_ACEOF
10781 #define ABSOLUTE_SYS_TIME_H "$gl_cv_absolute_sys_time_h"
10785 ABSOLUTE_SYS_TIME_H=\"$gl_cv_absolute_sys_time_h\"
10788 ABSOLUTE_SYS_TIME_H=\"no/such/file/sys/time.h\"
10794 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
10795 $as_echo_n "checking for struct timeval... " >&6; }
10796 if test "${gl_cv_sys_struct_timeval+set}" = set; then
10797 $as_echo_n "(cached) " >&6
10799 cat >conftest.$ac_ext <<_ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #if HAVE_SYS_TIME_H
10806 #include <sys/time.h>
10813 static struct timeval x; x.tv_sec = x.tv_usec;
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_compile") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest.$ac_objext; then
10836 gl_cv_sys_struct_timeval=yes
10838 $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 gl_cv_sys_struct_timeval=no
10844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
10847 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10848 if test $gl_cv_sys_struct_timeval = yes; then
10849 HAVE_STRUCT_TIMEVAL=1
10851 HAVE_STRUCT_TIMEVAL=0
10855 REPLACE_GETTIMEOFDAY=0
10857 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
10858 SYS_TIME_H=sys/time.h
10868 if test "X$prefix" = "XNONE"; then
10869 acl_final_prefix="$ac_default_prefix"
10871 acl_final_prefix="$prefix"
10873 if test "X$exec_prefix" = "XNONE"; then
10874 acl_final_exec_prefix='${prefix}'
10876 acl_final_exec_prefix="$exec_prefix"
10878 acl_save_prefix="$prefix"
10879 prefix="$acl_final_prefix"
10880 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10881 prefix="$acl_save_prefix"
10884 # Check whether --with-gnu-ld was given.
10885 if test "${with_gnu_ld+set}" = set; then
10886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10891 # Prepare PATH_SEPARATOR.
10892 # The user is always right.
10893 if test "${PATH_SEPARATOR+set}" != set; then
10894 echo "#! /bin/sh" >conf$$.sh
10895 echo "exit 0" >>conf$$.sh
10897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10905 if test "$GCC" = yes; then
10906 # Check if gcc -print-prog-name=ld gives a path.
10907 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10908 $as_echo_n "checking for ld used by GCC... " >&6; }
10911 # gcc leaves a trailing carriage return which upsets mingw
10912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10917 # Accept absolute paths.
10918 [\\/]* | [A-Za-z]:[\\/]*)
10919 re_direlt='/[^/][^/]*/\.\./'
10920 # Canonicalize the path of ld
10921 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10922 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10923 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10925 test -z "$LD" && LD="$ac_prog"
10928 # If it fails, then pretend we aren't using GCC.
10932 # If it is relative, then search for the first ld in PATH.
10933 with_gnu_ld=unknown
10936 elif test "$with_gnu_ld" = yes; then
10937 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10938 $as_echo_n "checking for GNU ld... " >&6; }
10940 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10941 $as_echo_n "checking for non-GNU ld... " >&6; }
10943 if test "${acl_cv_path_LD+set}" = set; then
10944 $as_echo_n "(cached) " >&6
10946 if test -z "$LD"; then
10947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10948 for ac_dir in $PATH; do
10949 test -z "$ac_dir" && ac_dir=.
10950 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10951 acl_cv_path_LD="$ac_dir/$ac_prog"
10952 # Check to see if the program is GNU ld. I'd rather use --version,
10953 # but apparently some GNU ld's only accept -v.
10954 # Break only if it was the GNU/non-GNU ld that we prefer.
10955 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10956 *GNU* | *'with BFD'*)
10957 test "$with_gnu_ld" != no && break ;;
10959 test "$with_gnu_ld" != yes && break ;;
10965 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10969 LD="$acl_cv_path_LD"
10970 if test -n "$LD"; then
10971 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10972 $as_echo "$LD" >&6; }
10974 { $as_echo "$as_me:$LINENO: result: no" >&5
10975 $as_echo "no" >&6; }
10977 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10978 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10979 { (exit 1); exit 1; }; }
10980 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10982 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10983 $as_echo_n "(cached) " >&6
10985 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10986 case `$LD -v 2>&1 </dev/null` in
10987 *GNU* | *'with BFD'*)
10988 acl_cv_prog_gnu_ld=yes ;;
10990 acl_cv_prog_gnu_ld=no ;;
10993 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10994 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10995 with_gnu_ld=$acl_cv_prog_gnu_ld
11000 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11001 $as_echo_n "checking for shared library run path origin... " >&6; }
11002 if test "${acl_cv_rpath+set}" = set; then
11003 $as_echo_n "(cached) " >&6
11006 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11007 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11009 rm -f ./conftest.sh
11013 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11014 $as_echo "$acl_cv_rpath" >&6; }
11016 acl_libext="$acl_cv_libext"
11017 acl_shlibext="$acl_cv_shlibext"
11018 acl_libname_spec="$acl_cv_libname_spec"
11019 acl_library_names_spec="$acl_cv_library_names_spec"
11020 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11021 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11022 acl_hardcode_direct="$acl_cv_hardcode_direct"
11023 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11024 # Check whether --enable-rpath was given.
11025 if test "${enable_rpath+set}" = set; then
11026 enableval=$enable_rpath; :
11034 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11035 if test -n "$searchpath"; then
11036 acl_save_IFS="${IFS= }"; IFS=":"
11037 for searchdir in $searchpath; do
11038 if test -d "$searchdir"; then
11039 case "$searchdir" in
11040 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11041 *) searchdir=`cd "$searchdir" && pwd`
11042 case "$searchdir" in
11043 */lib64 ) acl_libdirstem=lib64 ;;
11048 IFS="$acl_save_IFS"
11061 acl_save_prefix="$prefix"
11062 prefix="$acl_final_prefix"
11063 acl_save_exec_prefix="$exec_prefix"
11064 exec_prefix="$acl_final_exec_prefix"
11066 eval additional_includedir=\"$includedir\"
11067 eval additional_libdir=\"$libdir\"
11069 exec_prefix="$acl_save_exec_prefix"
11070 prefix="$acl_save_prefix"
11073 # Check whether --with-libiconv-prefix was given.
11074 if test "${with_libiconv_prefix+set}" = set; then
11075 withval=$with_libiconv_prefix;
11076 if test "X$withval" = "Xno"; then
11079 if test "X$withval" = "X"; then
11081 acl_save_prefix="$prefix"
11082 prefix="$acl_final_prefix"
11083 acl_save_exec_prefix="$exec_prefix"
11084 exec_prefix="$acl_final_exec_prefix"
11086 eval additional_includedir=\"$includedir\"
11087 eval additional_libdir=\"$libdir\"
11089 exec_prefix="$acl_save_exec_prefix"
11090 prefix="$acl_save_prefix"
11093 additional_includedir="$withval/include"
11094 additional_libdir="$withval/$acl_libdirstem"
11106 names_already_handled=
11107 names_next_round='iconv '
11108 while test -n "$names_next_round"; do
11109 names_this_round="$names_next_round"
11111 for name in $names_this_round; do
11113 for n in $names_already_handled; do
11114 if test "$n" = "$name"; then
11115 already_handled=yes
11119 if test -z "$already_handled"; then
11120 names_already_handled="$names_already_handled $name"
11121 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11122 eval value=\"\$HAVE_LIB$uppername\"
11123 if test -n "$value"; then
11124 if test "$value" = yes; then
11125 eval value=\"\$LIB$uppername\"
11126 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11127 eval value=\"\$LTLIB$uppername\"
11128 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11137 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11138 if test -n "$acl_shlibext"; then
11139 shrext=".$acl_shlibext" # typically: shrext=.so
11143 if test $use_additional = yes; then
11144 dir="$additional_libdir"
11145 if test -n "$acl_shlibext"; then
11146 if test -f "$dir/$libname$shrext"; then
11148 found_so="$dir/$libname$shrext"
11150 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11151 ver=`(cd "$dir" && \
11152 for f in "$libname$shrext".*; do echo "$f"; done \
11153 | sed -e "s,^$libname$shrext\\\\.,," \
11154 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11155 | sed 1q ) 2>/dev/null`
11156 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11158 found_so="$dir/$libname$shrext.$ver"
11161 eval library_names=\"$acl_library_names_spec\"
11162 for f in $library_names; do
11163 if test -f "$dir/$f"; then
11172 if test "X$found_dir" = "X"; then
11173 if test -f "$dir/$libname.$acl_libext"; then
11175 found_a="$dir/$libname.$acl_libext"
11178 if test "X$found_dir" != "X"; then
11179 if test -f "$dir/$libname.la"; then
11180 found_la="$dir/$libname.la"
11184 if test "X$found_dir" = "X"; then
11185 for x in $LDFLAGS $LTLIBICONV; do
11187 acl_save_prefix="$prefix"
11188 prefix="$acl_final_prefix"
11189 acl_save_exec_prefix="$exec_prefix"
11190 exec_prefix="$acl_final_exec_prefix"
11192 exec_prefix="$acl_save_exec_prefix"
11193 prefix="$acl_save_prefix"
11197 dir=`echo "X$x" | sed -e 's/^X-L//'`
11198 if test -n "$acl_shlibext"; then
11199 if test -f "$dir/$libname$shrext"; then
11201 found_so="$dir/$libname$shrext"
11203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11204 ver=`(cd "$dir" && \
11205 for f in "$libname$shrext".*; do echo "$f"; done \
11206 | sed -e "s,^$libname$shrext\\\\.,," \
11207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11208 | sed 1q ) 2>/dev/null`
11209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11211 found_so="$dir/$libname$shrext.$ver"
11214 eval library_names=\"$acl_library_names_spec\"
11215 for f in $library_names; do
11216 if test -f "$dir/$f"; then
11225 if test "X$found_dir" = "X"; then
11226 if test -f "$dir/$libname.$acl_libext"; then
11228 found_a="$dir/$libname.$acl_libext"
11231 if test "X$found_dir" != "X"; then
11232 if test -f "$dir/$libname.la"; then
11233 found_la="$dir/$libname.la"
11238 if test "X$found_dir" != "X"; then
11243 if test "X$found_dir" != "X"; then
11244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11245 if test "X$found_so" != "X"; then
11246 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11247 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11250 for x in $ltrpathdirs; do
11251 if test "X$x" = "X$found_dir"; then
11256 if test -z "$haveit"; then
11257 ltrpathdirs="$ltrpathdirs $found_dir"
11259 if test "$acl_hardcode_direct" = yes; then
11260 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11262 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11265 for x in $rpathdirs; do
11266 if test "X$x" = "X$found_dir"; then
11271 if test -z "$haveit"; then
11272 rpathdirs="$rpathdirs $found_dir"
11276 for x in $LDFLAGS $LIBICONV; do
11278 acl_save_prefix="$prefix"
11279 prefix="$acl_final_prefix"
11280 acl_save_exec_prefix="$exec_prefix"
11281 exec_prefix="$acl_final_exec_prefix"
11283 exec_prefix="$acl_save_exec_prefix"
11284 prefix="$acl_save_prefix"
11286 if test "X$x" = "X-L$found_dir"; then
11291 if test -z "$haveit"; then
11292 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11294 if test "$acl_hardcode_minus_L" != no; then
11295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11297 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11303 if test "X$found_a" != "X"; then
11304 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11306 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11309 additional_includedir=
11310 case "$found_dir" in
11311 */$acl_libdirstem | */$acl_libdirstem/)
11312 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11313 LIBICONV_PREFIX="$basedir"
11314 additional_includedir="$basedir/include"
11317 if test "X$additional_includedir" != "X"; then
11318 if test "X$additional_includedir" != "X/usr/include"; then
11320 if test "X$additional_includedir" = "X/usr/local/include"; then
11321 if test -n "$GCC"; then
11323 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11327 if test -z "$haveit"; then
11328 for x in $CPPFLAGS $INCICONV; do
11330 acl_save_prefix="$prefix"
11331 prefix="$acl_final_prefix"
11332 acl_save_exec_prefix="$exec_prefix"
11333 exec_prefix="$acl_final_exec_prefix"
11335 exec_prefix="$acl_save_exec_prefix"
11336 prefix="$acl_save_prefix"
11338 if test "X$x" = "X-I$additional_includedir"; then
11343 if test -z "$haveit"; then
11344 if test -d "$additional_includedir"; then
11345 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11351 if test -n "$found_la"; then
11352 save_libdir="$libdir"
11353 case "$found_la" in
11354 */* | *\\*) . "$found_la" ;;
11355 *) . "./$found_la" ;;
11357 libdir="$save_libdir"
11358 for dep in $dependency_libs; do
11361 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11362 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11364 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11365 if test -n "$GCC"; then
11367 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11371 if test -z "$haveit"; then
11373 for x in $LDFLAGS $LIBICONV; do
11375 acl_save_prefix="$prefix"
11376 prefix="$acl_final_prefix"
11377 acl_save_exec_prefix="$exec_prefix"
11378 exec_prefix="$acl_final_exec_prefix"
11380 exec_prefix="$acl_save_exec_prefix"
11381 prefix="$acl_save_prefix"
11383 if test "X$x" = "X-L$additional_libdir"; then
11388 if test -z "$haveit"; then
11389 if test -d "$additional_libdir"; then
11390 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11394 for x in $LDFLAGS $LTLIBICONV; do
11396 acl_save_prefix="$prefix"
11397 prefix="$acl_final_prefix"
11398 acl_save_exec_prefix="$exec_prefix"
11399 exec_prefix="$acl_final_exec_prefix"
11401 exec_prefix="$acl_save_exec_prefix"
11402 prefix="$acl_save_prefix"
11404 if test "X$x" = "X-L$additional_libdir"; then
11409 if test -z "$haveit"; then
11410 if test -d "$additional_libdir"; then
11411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11418 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11419 if test "$enable_rpath" != no; then
11421 for x in $rpathdirs; do
11422 if test "X$x" = "X$dir"; then
11427 if test -z "$haveit"; then
11428 rpathdirs="$rpathdirs $dir"
11431 for x in $ltrpathdirs; do
11432 if test "X$x" = "X$dir"; then
11437 if test -z "$haveit"; then
11438 ltrpathdirs="$ltrpathdirs $dir"
11443 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11446 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11449 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11456 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11457 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11463 if test "X$rpathdirs" != "X"; then
11464 if test -n "$acl_hardcode_libdir_separator"; then
11466 for found_dir in $rpathdirs; do
11467 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11469 acl_save_libdir="$libdir"
11471 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11472 libdir="$acl_save_libdir"
11473 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11475 for found_dir in $rpathdirs; do
11476 acl_save_libdir="$libdir"
11477 libdir="$found_dir"
11478 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11479 libdir="$acl_save_libdir"
11480 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11484 if test "X$ltrpathdirs" != "X"; then
11485 for found_dir in $ltrpathdirs; do
11486 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11491 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11492 $as_echo_n "checking for off_t... " >&6; }
11493 if test "${ac_cv_type_off_t+set}" = set; then
11494 $as_echo_n "(cached) " >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 typedef off_t ac__type_new_;
11507 if ((ac__type_new_ *) 0)
11509 if (sizeof (ac__type_new_))
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest.$ac_objext; then
11533 ac_cv_type_off_t=yes
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_cv_type_off_t=no
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11544 $as_echo "$ac_cv_type_off_t" >&6; }
11545 if test $ac_cv_type_off_t = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define off_t long int
11556 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
11557 $as_echo_n "checking for unsigned long long int... " >&6; }
11558 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
11559 $as_echo_n "(cached) " >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 unsigned long long int ull = 18446744073709551615ULL;
11568 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11574 unsigned long long int ullmax = 18446744073709551615ull;
11575 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11576 | ullmax / ull | ullmax % ull);
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (ac_try="$ac_link"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588 $as_echo "$ac_try_echo") >&5
11589 (eval "$ac_link") 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } && {
11596 test -z "$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 } && test -s conftest$ac_exeext &&
11599 $as_test_x conftest$ac_exeext; then
11600 ac_cv_type_unsigned_long_long_int=yes
11602 $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_cv_type_unsigned_long_long_int=no
11608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609 conftest$ac_exeext conftest.$ac_ext
11611 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
11612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11613 if test $ac_cv_type_unsigned_long_long_int = yes; then
11615 cat >>confdefs.h <<\_ACEOF
11616 #define HAVE_UNSIGNED_LONG_LONG_INT 1
11626 if test $ac_cv_type_long_long_int = yes; then
11627 HAVE_LONG_LONG_INT=1
11629 HAVE_LONG_LONG_INT=0
11633 if test $ac_cv_type_unsigned_long_long_int = yes; then
11634 HAVE_UNSIGNED_LONG_LONG_INT=1
11636 HAVE_UNSIGNED_LONG_LONG_INT=0
11640 if test $ac_cv_header_inttypes_h = yes; then
11647 if test $ac_cv_header_sys_types_h = yes; then
11654 if test $ac_cv_header_stdint_h = yes; then
11655 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
11656 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11657 if test "${gl_cv_absolute_stdint_h+set}" = set; then
11658 $as_echo_n "(cached) " >&6
11665 if test $ac_cv_header_stdint_h = yes; then
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <stdint.h>
11674 gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11675 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
11679 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
11680 $as_echo "$gl_cv_absolute_stdint_h" >&6; }
11681 cat >>confdefs.h <<_ACEOF
11682 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
11686 ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
11689 ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
11695 if test $ac_cv_header_stdint_h = yes; then
11696 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
11697 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11698 if test "${gl_cv_header_working_stdint_h+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11701 gl_cv_header_working_stdint_h=no
11702 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 #include <stddef.h>
11711 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
11712 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
11713 #include ABSOLUTE_STDINT_H
11715 int8_t a1 = INT8_MAX;
11716 int8_t a1min = INT8_MIN;
11719 int16_t a2 = INT16_MAX;
11720 int16_t a2min = INT16_MIN;
11723 int32_t a3 = INT32_MAX;
11724 int32_t a3min = INT32_MIN;
11727 int64_t a4 = INT64_MAX;
11728 int64_t a4min = INT64_MIN;
11731 uint8_t b1 = UINT8_MAX;
11733 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11736 uint16_t b2 = UINT16_MAX;
11739 uint32_t b3 = UINT32_MAX;
11742 uint64_t b4 = UINT64_MAX;
11744 int_least8_t c1 = INT8_C (0x7f);
11745 int_least8_t c1max = INT_LEAST8_MAX;
11746 int_least8_t c1min = INT_LEAST8_MIN;
11747 int_least16_t c2 = INT16_C (0x7fff);
11748 int_least16_t c2max = INT_LEAST16_MAX;
11749 int_least16_t c2min = INT_LEAST16_MIN;
11750 int_least32_t c3 = INT32_C (0x7fffffff);
11751 int_least32_t c3max = INT_LEAST32_MAX;
11752 int_least32_t c3min = INT_LEAST32_MIN;
11753 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11754 int_least64_t c4max = INT_LEAST64_MAX;
11755 int_least64_t c4min = INT_LEAST64_MIN;
11756 uint_least8_t d1 = UINT8_C (0xff);
11757 uint_least8_t d1max = UINT_LEAST8_MAX;
11758 uint_least16_t d2 = UINT16_C (0xffff);
11759 uint_least16_t d2max = UINT_LEAST16_MAX;
11760 uint_least32_t d3 = UINT32_C (0xffffffff);
11761 uint_least32_t d3max = UINT_LEAST32_MAX;
11762 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11763 uint_least64_t d4max = UINT_LEAST64_MAX;
11764 int_fast8_t e1 = INT_FAST8_MAX;
11765 int_fast8_t e1min = INT_FAST8_MIN;
11766 int_fast16_t e2 = INT_FAST16_MAX;
11767 int_fast16_t e2min = INT_FAST16_MIN;
11768 int_fast32_t e3 = INT_FAST32_MAX;
11769 int_fast32_t e3min = INT_FAST32_MIN;
11770 int_fast64_t e4 = INT_FAST64_MAX;
11771 int_fast64_t e4min = INT_FAST64_MIN;
11772 uint_fast8_t f1 = UINT_FAST8_MAX;
11773 uint_fast16_t f2 = UINT_FAST16_MAX;
11774 uint_fast32_t f3 = UINT_FAST32_MAX;
11775 uint_fast64_t f4 = UINT_FAST64_MAX;
11777 intptr_t g = INTPTR_MAX;
11778 intptr_t gmin = INTPTR_MIN;
11781 uintptr_t h = UINTPTR_MAX;
11783 intmax_t i = INTMAX_MAX;
11784 uintmax_t j = UINTMAX_MAX;
11786 int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
11787 int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
11788 int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
11789 int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
11790 int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
11792 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11794 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11795 int check_UINT16_C:
11796 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11798 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11800 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11803 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11806 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11809 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11811 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11812 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11813 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11814 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11815 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11816 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11817 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11818 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11819 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11820 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11821 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11832 rm -f conftest.$ac_objext
11833 if { (ac_try="$ac_compile"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839 $as_echo "$ac_try_echo") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
11850 gl_cv_header_working_stdint_h=yes
11852 $as_echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
11861 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11863 if test "$gl_cv_header_working_stdint_h" = yes; then
11868 for ac_header in sys/inttypes.h sys/bitypes.h
11870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 $as_echo_n "checking for $ac_header... " >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 $as_echo_n "(cached) " >&6
11877 ac_res=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11880 $as_echo "$ac_res" >&6; }
11882 # Is the header compilable?
11883 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884 $as_echo_n "checking $ac_header usability... " >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 #include <$ac_header>
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901 $as_echo "$ac_try_echo") >&5
11902 (eval "$ac_compile") 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && {
11909 test -z "$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 } && test -s conftest.$ac_objext; then
11912 ac_header_compiler=yes
11914 $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_header_compiler=no
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 $as_echo "$ac_header_compiler" >&6; }
11924 # Is the header present?
11925 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11926 $as_echo_n "checking $ac_header presence... " >&6; }
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 #include <$ac_header>
11935 if { (ac_try="$ac_cpp conftest.$ac_ext"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11941 $as_echo "$ac_try_echo") >&5
11942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11944 grep -v '^ *+' conftest.er1 >conftest.err
11946 cat conftest.err >&5
11947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } >/dev/null && {
11949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11952 ac_header_preproc=yes
11954 $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_header_preproc=no
11960 rm -f conftest.err conftest.$ac_ext
11961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11962 $as_echo "$ac_header_preproc" >&6; }
11964 # So? What about this header?
11965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11968 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11970 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11971 ac_header_preproc=yes
11974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11975 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11977 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11979 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11981 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11985 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11987 ## ------------------------------------ ##
11988 ## Report this to bug-coreutils@gnu.org ##
11989 ## ------------------------------------ ##
11991 ) | sed "s/^/$as_me: WARNING: /" >&2
11994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11995 $as_echo_n "checking for $ac_header... " >&6; }
11996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997 $as_echo_n "(cached) " >&6
11999 eval "$as_ac_Header=\$ac_header_preproc"
12001 ac_res=`eval 'as_val=${'$as_ac_Header'}
12002 $as_echo "$as_val"'`
12003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12004 $as_echo "$ac_res" >&6; }
12007 if test `eval 'as_val=${'$as_ac_Header'}
12008 $as_echo "$as_val"'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017 if test $ac_cv_header_sys_inttypes_h = yes; then
12018 HAVE_SYS_INTTYPES_H=1
12020 HAVE_SYS_INTTYPES_H=0
12023 if test $ac_cv_header_sys_bitypes_h = yes; then
12024 HAVE_SYS_BITYPES_H=1
12026 HAVE_SYS_BITYPES_H=0
12038 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12039 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
12040 $as_echo_n "checking for bit size of $gltype... " >&6; }
12041 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
12042 $as_echo_n "(cached) " >&6
12044 if test "$cross_compiling" = yes; then
12045 # Depending upon the size, compute the lo and hi bounds.
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12053 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12054 included before <wchar.h>. */
12055 #include <stddef.h>
12056 #include <signal.h>
12061 #include <limits.h>
12065 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12079 $as_echo "$ac_try_echo") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } && {
12087 test -z "$ac_c_werror_flag" ||
12088 test ! -s conftest.err
12089 } && test -s conftest.$ac_objext; then
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12099 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12100 included before <wchar.h>. */
12101 #include <stddef.h>
12102 #include <signal.h>
12107 #include <limits.h>
12111 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12118 rm -f conftest.$ac_objext
12119 if { (ac_try="$ac_compile"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12125 $as_echo "$ac_try_echo") >&5
12126 (eval "$ac_compile") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest.$ac_objext; then
12136 ac_hi=$ac_mid; break
12138 $as_echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_lo=`expr $ac_mid + 1`
12142 if test $ac_lo -le $ac_mid; then
12146 ac_mid=`expr 2 '*' $ac_mid + 1`
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 $as_echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12163 included before <wchar.h>. */
12164 #include <stddef.h>
12165 #include <signal.h>
12170 #include <limits.h>
12174 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12208 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12209 included before <wchar.h>. */
12210 #include <stddef.h>
12211 #include <signal.h>
12216 #include <limits.h>
12220 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12234 $as_echo "$ac_try_echo") >&5
12235 (eval "$ac_compile") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } && {
12242 test -z "$ac_c_werror_flag" ||
12243 test ! -s conftest.err
12244 } && test -s conftest.$ac_objext; then
12245 ac_lo=$ac_mid; break
12247 $as_echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 ac_hi=`expr '(' $ac_mid ')' - 1`
12251 if test $ac_mid -le $ac_hi; then
12255 ac_mid=`expr 2 '*' $ac_mid`
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 # Binary search between lo and hi bounds.
12272 while test "x$ac_lo" != "x$ac_hi"; do
12273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12282 included before <wchar.h>. */
12283 #include <stddef.h>
12284 #include <signal.h>
12289 #include <limits.h>
12293 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12307 $as_echo "$ac_try_echo") >&5
12308 (eval "$ac_compile") 2>conftest.er1
12310 grep -v '^ *+' conftest.er1 >conftest.err
12312 cat conftest.err >&5
12313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && {
12315 test -z "$ac_c_werror_flag" ||
12316 test ! -s conftest.err
12317 } && test -s conftest.$ac_objext; then
12320 $as_echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_lo=`expr '(' $ac_mid ')' + 1`
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 ?*) result=$ac_lo;;
12330 '') result=unknown ;;
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12341 included before <wchar.h>. */
12342 #include <stddef.h>
12343 #include <signal.h>
12348 #include <limits.h>
12349 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
12350 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
12352 #include <stdlib.h>
12357 FILE *f = fopen ("conftest.val", "w");
12360 if ((sizeof ($gltype) * CHAR_BIT) < 0)
12362 long int i = longval ();
12363 if (i != (sizeof ($gltype) * CHAR_BIT))
12365 fprintf (f, "%ld", i);
12369 unsigned long int i = ulongval ();
12370 if (i != (sizeof ($gltype) * CHAR_BIT))
12372 fprintf (f, "%lu", i);
12374 /* Do not output a trailing newline, as this causes \r\n confusion
12375 on some platforms. */
12376 return ferror (f) || fclose (f) != 0;
12382 rm -f conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390 (eval "$ac_link") 2>&5
12392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400 (eval "$ac_try") 2>&5
12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 result=`cat conftest.val`
12406 $as_echo "$as_me: program exited with status $ac_status" >&5
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ( exit $ac_status )
12413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12416 eval gl_cv_bitsizeof_${gltype}=\$result
12419 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
12420 $as_echo "$as_val"'`
12421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12422 $as_echo "$ac_res" >&6; }
12423 eval result=\$gl_cv_bitsizeof_${gltype}
12424 if test $result = unknown; then
12427 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12428 cat >>confdefs.h <<_ACEOF
12429 #define BITSIZEOF_${GLTYPE} $result
12432 eval BITSIZEOF_${GLTYPE}=\$result
12441 for gltype in sig_atomic_t wchar_t wint_t ; do
12442 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
12443 $as_echo_n "checking whether $gltype is signed... " >&6; }
12444 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
12445 $as_echo_n "(cached) " >&6
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12455 included before <wchar.h>. */
12456 #include <stddef.h>
12457 #include <signal.h>
12462 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12471 rm -f conftest.$ac_objext
12472 if { (ac_try="$ac_compile"
12473 case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478 $as_echo "$ac_try_echo") >&5
12479 (eval "$ac_compile") 2>conftest.er1
12481 grep -v '^ *+' conftest.er1 >conftest.err
12483 cat conftest.err >&5
12484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && {
12486 test -z "$ac_c_werror_flag" ||
12487 test ! -s conftest.err
12488 } && test -s conftest.$ac_objext; then
12491 $as_echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 eval gl_cv_type_${gltype}_signed=\$result
12501 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
12502 $as_echo "$as_val"'`
12503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12504 $as_echo "$ac_res" >&6; }
12505 eval result=\$gl_cv_type_${gltype}_signed
12506 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12507 if test "$result" = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509 #define HAVE_SIGNED_${GLTYPE} 1
12512 eval HAVE_SIGNED_${GLTYPE}=1
12514 eval HAVE_SIGNED_${GLTYPE}=0
12519 gl_cv_type_ptrdiff_t_signed=yes
12520 gl_cv_type_size_t_signed=no
12528 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
12529 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
12530 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12531 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
12532 $as_echo_n "(cached) " >&6
12534 eval gl_cv_type_${gltype}_suffix=no
12535 eval result=\$gl_cv_type_${gltype}_signed
12536 if test "$result" = yes; then
12541 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12543 '') gltype1='int';;
12544 l) gltype1='long int';;
12545 ll) gltype1='long long int';;
12546 i64) gltype1='__int64';;
12547 u) gltype1='unsigned int';;
12548 ul) gltype1='unsigned long int';;
12549 ull) gltype1='unsigned long long int';;
12550 ui64)gltype1='unsigned __int64';;
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12560 included before <wchar.h>. */
12561 #include <stddef.h>
12562 #include <signal.h>
12567 extern $gltype foo;
12568 extern $gltype1 foo;
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12587 grep -v '^ *+' conftest.er1 >conftest.err
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595 eval gl_cv_type_${gltype}_suffix=\$glsuf
12597 $as_echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 eval result=\$gl_cv_type_${gltype}_suffix
12605 test "$result" != no && break
12608 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
12609 $as_echo "$as_val"'`
12610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12611 $as_echo "$ac_res" >&6; }
12612 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12613 eval result=\$gl_cv_type_${gltype}_suffix
12614 test "$result" = no && result=
12615 eval ${GLTYPE}_SUFFIX=\$result
12616 cat >>confdefs.h <<_ACEOF
12617 #define ${GLTYPE}_SUFFIX $result
12630 for ac_header in inttypes.h
12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637 $as_echo_n "(cached) " >&6
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640 $as_echo "$as_val"'`
12641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12644 # Is the header compilable?
12645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 $as_echo_n "checking $ac_header usability... " >&6; }
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12654 #include <$ac_header>
12656 rm -f conftest.$ac_objext
12657 if { (ac_try="$ac_compile"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664 (eval "$ac_compile") 2>conftest.er1
12666 grep -v '^ *+' conftest.er1 >conftest.err
12668 cat conftest.err >&5
12669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && {
12671 test -z "$ac_c_werror_flag" ||
12672 test ! -s conftest.err
12673 } && test -s conftest.$ac_objext; then
12674 ac_header_compiler=yes
12676 $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_header_compiler=no
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 $as_echo "$ac_header_compiler" >&6; }
12686 # Is the header present?
12687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 $as_echo_n "checking $ac_header presence... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #include <$ac_header>
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null && {
12711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12714 ac_header_preproc=yes
12716 $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_header_preproc=no
12722 rm -f conftest.err conftest.$ac_ext
12723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 $as_echo "$ac_header_preproc" >&6; }
12726 # So? What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733 ac_header_preproc=yes
12736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12749 ## ------------------------------------ ##
12750 ## Report this to bug-coreutils@gnu.org ##
12751 ## ------------------------------------ ##
12753 ) | sed "s/^/$as_me: WARNING: /" >&2
12756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 $as_echo_n "checking for $ac_header... " >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759 $as_echo_n "(cached) " >&6
12761 eval "$as_ac_Header=\$ac_header_preproc"
12763 ac_res=`eval 'as_val=${'$as_ac_Header'}
12764 $as_echo "$as_val"'`
12765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12766 $as_echo "$ac_res" >&6; }
12769 if test `eval 'as_val=${'$as_ac_Header'}
12770 $as_echo "$as_val"'` = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12779 if test $ac_cv_header_inttypes_h = yes; then
12780 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
12781 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12782 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
12783 $as_echo_n "(cached) " >&6
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 #include <inttypes.h>
12805 rm -f conftest.$ac_objext
12806 if { (ac_try="$ac_compile"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12812 $as_echo "$ac_try_echo") >&5
12813 (eval "$ac_compile") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
12823 gt_cv_inttypes_pri_broken=no
12825 $as_echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 gt_cv_inttypes_pri_broken=yes
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
12835 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12837 if test "$gt_cv_inttypes_pri_broken" = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840 #define PRI_MACROS_BROKEN 1
12843 PRI_MACROS_BROKEN=1
12845 PRI_MACROS_BROKEN=0
12849 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
12850 $as_echo_n "checking whether imaxabs is declared... " >&6; }
12851 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
12852 $as_echo_n "(cached) " >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 $ac_includes_default
12872 rm -f conftest.$ac_objext
12873 if { (ac_try="$ac_compile"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12879 $as_echo "$ac_try_echo") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
12890 ac_cv_have_decl_imaxabs=yes
12892 $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_cv_have_decl_imaxabs=no
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
12901 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
12902 if test $ac_cv_have_decl_imaxabs = yes; then
12904 cat >>confdefs.h <<_ACEOF
12905 #define HAVE_DECL_IMAXABS 1
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_DECL_IMAXABS 0
12918 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
12919 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
12920 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
12921 $as_echo_n "(cached) " >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 $ac_includes_default
12941 rm -f conftest.$ac_objext
12942 if { (ac_try="$ac_compile"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12948 $as_echo "$ac_try_echo") >&5
12949 (eval "$ac_compile") 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && {
12956 test -z "$ac_c_werror_flag" ||
12957 test ! -s conftest.err
12958 } && test -s conftest.$ac_objext; then
12959 ac_cv_have_decl_imaxdiv=yes
12961 $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_cv_have_decl_imaxdiv=no
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
12970 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
12971 if test $ac_cv_have_decl_imaxdiv = yes; then
12973 cat >>confdefs.h <<_ACEOF
12974 #define HAVE_DECL_IMAXDIV 1
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_DECL_IMAXDIV 0
12987 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
12988 $as_echo_n "checking whether strtoimax is declared... " >&6; }
12989 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
12990 $as_echo_n "(cached) " >&6
12992 cat >conftest.$ac_ext <<_ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12998 $ac_includes_default
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017 $as_echo "$ac_try_echo") >&5
13018 (eval "$ac_compile") 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 } && test -s conftest.$ac_objext; then
13028 ac_cv_have_decl_strtoimax=yes
13030 $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 ac_cv_have_decl_strtoimax=no
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
13039 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
13040 if test $ac_cv_have_decl_strtoimax = yes; then
13042 cat >>confdefs.h <<_ACEOF
13043 #define HAVE_DECL_STRTOIMAX 1
13048 cat >>confdefs.h <<_ACEOF
13049 #define HAVE_DECL_STRTOIMAX 0
13056 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
13057 $as_echo_n "checking whether strtoumax is declared... " >&6; }
13058 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
13059 $as_echo_n "(cached) " >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 $ac_includes_default
13079 rm -f conftest.$ac_objext
13080 if { (ac_try="$ac_compile"
13081 case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13086 $as_echo "$ac_try_echo") >&5
13087 (eval "$ac_compile") 2>conftest.er1
13089 grep -v '^ *+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && {
13094 test -z "$ac_c_werror_flag" ||
13095 test ! -s conftest.err
13096 } && test -s conftest.$ac_objext; then
13097 ac_cv_have_decl_strtoumax=yes
13099 $as_echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 ac_cv_have_decl_strtoumax=no
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
13108 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
13109 if test $ac_cv_have_decl_strtoumax = yes; then
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_DECL_STRTOUMAX 1
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_DECL_STRTOUMAX 0
13128 GNULIB_STRTOIMAX=0;
13129 GNULIB_STRTOUMAX=0;
13130 HAVE_DECL_IMAXABS=1;
13131 HAVE_DECL_IMAXDIV=1;
13132 HAVE_DECL_STRTOIMAX=1;
13133 HAVE_DECL_STRTOUMAX=1;
13137 { $as_echo "$as_me:$LINENO: checking whether lchown is declared" >&5
13138 $as_echo_n "checking whether lchown is declared... " >&6; }
13139 if test "${ac_cv_have_decl_lchown+set}" = set; then
13140 $as_echo_n "(cached) " >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13167 $as_echo "$ac_try_echo") >&5
13168 (eval "$ac_compile") 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && {
13175 test -z "$ac_c_werror_flag" ||
13176 test ! -s conftest.err
13177 } && test -s conftest.$ac_objext; then
13178 ac_cv_have_decl_lchown=yes
13180 $as_echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ac_cv_have_decl_lchown=no
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5
13189 $as_echo "$ac_cv_have_decl_lchown" >&6; }
13190 if test $ac_cv_have_decl_lchown = yes; then
13192 cat >>confdefs.h <<_ACEOF
13193 #define HAVE_DECL_LCHOWN 1
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_DECL_LCHOWN 0
13207 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13208 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13209 if test "${am_cv_langinfo_codeset+set}" = set; then
13210 $as_echo_n "(cached) " >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <langinfo.h>
13222 char* cs = nl_langinfo(CODESET); return !cs;
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_link") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 am_cv_langinfo_codeset=yes
13248 $as_echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 am_cv_langinfo_codeset=no
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13258 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13259 $as_echo "$am_cv_langinfo_codeset" >&6; }
13260 if test $am_cv_langinfo_codeset = yes; then
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_LANGINFO_CODESET 1
13268 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13269 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
13270 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13271 $as_echo_n "(cached) " >&6
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 $ac_includes_default
13283 #ifndef getc_unlocked
13284 (void) getc_unlocked;
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13298 $as_echo "$ac_try_echo") >&5
13299 (eval "$ac_compile") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest.$ac_objext; then
13309 ac_cv_have_decl_getc_unlocked=yes
13311 $as_echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_cv_have_decl_getc_unlocked=no
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13320 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
13321 if test $ac_cv_have_decl_getc_unlocked = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324 #define HAVE_DECL_GETC_UNLOCKED 1
13329 cat >>confdefs.h <<_ACEOF
13330 #define HAVE_DECL_GETC_UNLOCKED 0
13338 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13339 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13340 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13341 $as_echo_n "(cached) " >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13350 #include <features.h>
13351 #ifdef __GNU_LIBRARY__
13352 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13360 ac_cv_gnu_library_2_1=yes
13362 ac_cv_gnu_library_2_1=no
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13370 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13372 GLIBC21="$ac_cv_gnu_library_2_1"
13376 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13377 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
13378 if test "${gl_cv_func_mbrtowc+set}" = set; then
13379 $as_echo_n "(cached) " >&6
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13392 char const s[] = "";
13395 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407 $as_echo "$ac_try_echo") >&5
13408 (eval "$ac_link") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest$ac_exeext &&
13418 $as_test_x conftest$ac_exeext; then
13419 gl_cv_func_mbrtowc=yes
13421 $as_echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 gl_cv_func_mbrtowc=no
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428 conftest$ac_exeext conftest.$ac_ext
13430 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
13431 $as_echo "$gl_cv_func_mbrtowc" >&6; }
13432 if test $gl_cv_func_mbrtowc = yes; then
13434 cat >>confdefs.h <<\_ACEOF
13435 #define HAVE_MBRTOWC 1
13446 GNULIB_STRCHRNUL=0;
13452 GNULIB_STRCASESTR=0;
13458 GNULIB_MBSCASECMP=0;
13459 GNULIB_MBSNCASECMP=0;
13460 GNULIB_MBSPCASECMP=0;
13461 GNULIB_MBSCASESTR=0;
13467 HAVE_DECL_MEMMEM=1;
13469 HAVE_DECL_MEMRCHR=1;
13473 HAVE_DECL_STRNCASECMP=1;
13475 HAVE_DECL_STRDUP=1;
13477 HAVE_DECL_STRNDUP=1;
13478 HAVE_DECL_STRNLEN=1;
13482 HAVE_DECL_STRTOK_R=1;
13490 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13491 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13492 if test "${ac_cv_c_bigendian+set}" = set; then
13493 $as_echo_n "(cached) " >&6
13495 # See if sys/param.h defines the BYTE_ORDER macro.
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include <sys/types.h>
13503 #include <sys/param.h>
13508 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13509 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13510 bogus endian macros
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 # It does; now see whether it defined to BIG_ENDIAN or not.
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <sys/param.h>
13548 #if BYTE_ORDER != BIG_ENDIAN
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13563 $as_echo "$ac_try_echo") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_cv_c_bigendian=yes
13576 $as_echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_cv_c_bigendian=no
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 # It does not; compile a test program.
13588 if test "$cross_compiling" = yes; then
13589 # try to guess the endianness by grepping values into an object file
13590 ac_cv_c_bigendian=unknown
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13598 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13599 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13600 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13601 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13602 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13606 _ascii (); _ebcdic ();
13611 rm -f conftest.$ac_objext
13612 if { (ac_try="$ac_compile"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13618 $as_echo "$ac_try_echo") >&5
13619 (eval "$ac_compile") 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest.$ac_objext; then
13629 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13630 ac_cv_c_bigendian=yes
13632 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13633 if test "$ac_cv_c_bigendian" = unknown; then
13634 ac_cv_c_bigendian=no
13636 # finding both strings is unlikely to happen, but who knows?
13637 ac_cv_c_bigendian=unknown
13641 $as_echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649 cat >conftest.$ac_ext <<_ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13660 /* Are we little or big endian? From Harbison&Steele. */
13664 char c[sizeof (long int)];
13667 return u.c[sizeof (long int) - 1] == 1;
13673 rm -f conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681 (eval "$ac_link") 2>&5
13683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13690 $as_echo "$ac_try_echo") >&5
13691 (eval "$ac_try") 2>&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_c_bigendian=no
13697 $as_echo "$as_me: program exited with status $ac_status" >&5
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ( exit $ac_status )
13702 ac_cv_c_bigendian=yes
13704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13713 $as_echo "$ac_cv_c_bigendian" >&6; }
13714 case $ac_cv_c_bigendian in
13717 cat >>confdefs.h <<\_ACEOF
13718 #define WORDS_BIGENDIAN 1
13724 { { $as_echo "$as_me:$LINENO: error: unknown endianness
13725 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13726 $as_echo "$as_me: error: unknown endianness
13727 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13728 { (exit 1); exit 1; }; } ;;
13731 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
13732 $as_echo_n "checking whether memrchr is declared... " >&6; }
13733 if test "${ac_cv_have_decl_memrchr+set}" = set; then
13734 $as_echo_n "(cached) " >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.$ac_objext; then
13772 ac_cv_have_decl_memrchr=yes
13774 $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_cv_have_decl_memrchr=no
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
13783 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
13784 if test $ac_cv_have_decl_memrchr = yes; then
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_DECL_MEMRCHR 1
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_DECL_MEMRCHR 0
13805 GNULIB_GETSUBOPT=0;
13812 # Check whether --enable-largefile was given.
13813 if test "${enable_largefile+set}" = set; then
13814 enableval=$enable_largefile;
13817 if test "$enable_largefile" != no; then
13819 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13820 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13821 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13822 $as_echo_n "(cached) " >&6
13824 ac_cv_sys_largefile_CC=no
13825 if test "$GCC" != yes; then
13828 # IRIX 6.2 and later do not support large files by default,
13829 # so use the C compiler's -n32 option if that helps.
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <sys/types.h>
13837 /* Check that off_t can represent 2**63 - 1 correctly.
13838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13839 since some C++ compilers masquerading as C compilers
13840 incorrectly reject 9223372036854775807. */
13841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13843 && LARGE_OFF_T % 2147483647 == 1)
13853 rm -f conftest.$ac_objext
13854 if { (ac_try="$ac_compile"
13855 case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13860 $as_echo "$ac_try_echo") >&5
13861 (eval "$ac_compile") 2>conftest.er1
13863 grep -v '^ *+' conftest.er1 >conftest.err
13865 cat conftest.err >&5
13866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } && {
13868 test -z "$ac_c_werror_flag" ||
13869 test ! -s conftest.err
13870 } && test -s conftest.$ac_objext; then
13873 $as_echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13879 rm -f core conftest.err conftest.$ac_objext
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 ac_cv_sys_largefile_CC=' -n32'; break
13901 $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13907 rm -f core conftest.err conftest.$ac_objext
13911 rm -f conftest.$ac_ext
13914 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13915 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13916 if test "$ac_cv_sys_largefile_CC" != no; then
13917 CC=$CC$ac_cv_sys_largefile_CC
13920 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13921 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13923 $as_echo_n "(cached) " >&6
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <sys/types.h>
13933 /* Check that off_t can represent 2**63 - 1 correctly.
13934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13935 since some C++ compilers masquerading as C compilers
13936 incorrectly reject 9223372036854775807. */
13937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13939 && LARGE_OFF_T % 2147483647 == 1)
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13956 $as_echo "$ac_try_echo") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 ac_cv_sys_file_offset_bits=no; break
13969 $as_echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #define _FILE_OFFSET_BITS 64
13983 #include <sys/types.h>
13984 /* Check that off_t can represent 2**63 - 1 correctly.
13985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13986 since some C++ compilers masquerading as C compilers
13987 incorrectly reject 9223372036854775807. */
13988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13990 && LARGE_OFF_T % 2147483647 == 1)
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14007 $as_echo "$ac_try_echo") >&5
14008 (eval "$ac_compile") 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && {
14015 test -z "$ac_c_werror_flag" ||
14016 test ! -s conftest.err
14017 } && test -s conftest.$ac_objext; then
14018 ac_cv_sys_file_offset_bits=64; break
14020 $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 ac_cv_sys_file_offset_bits=unknown
14031 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14032 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14033 case $ac_cv_sys_file_offset_bits in #(
14036 cat >>confdefs.h <<_ACEOF
14037 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14042 if test $ac_cv_sys_file_offset_bits = unknown; then
14043 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14044 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14045 if test "${ac_cv_sys_large_files+set}" = set; then
14046 $as_echo_n "(cached) " >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14056 /* Check that off_t can represent 2**63 - 1 correctly.
14057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14058 since some C++ compilers masquerading as C compilers
14059 incorrectly reject 9223372036854775807. */
14060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14062 && LARGE_OFF_T % 2147483647 == 1)
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14079 $as_echo "$ac_try_echo") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest.$ac_objext; then
14090 ac_cv_sys_large_files=no; break
14092 $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 #define _LARGE_FILES 1
14106 #include <sys/types.h>
14107 /* Check that off_t can represent 2**63 - 1 correctly.
14108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14109 since some C++ compilers masquerading as C compilers
14110 incorrectly reject 9223372036854775807. */
14111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14113 && LARGE_OFF_T % 2147483647 == 1)
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_cv_sys_large_files=1; break
14143 $as_echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 ac_cv_sys_large_files=unknown
14154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14155 $as_echo "$ac_cv_sys_large_files" >&6; }
14156 case $ac_cv_sys_large_files in #(
14159 cat >>confdefs.h <<_ACEOF
14160 #define _LARGE_FILES $ac_cv_sys_large_files
14173 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14174 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14175 REPLACE_STRPTIME=GNULIB_PORTCHECK;
14176 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14182 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
14183 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
14184 if test "${gl_cv_var__system_configuration+set}" = set; then
14185 $as_echo_n "(cached) " >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/systemcfg.h>
14198 double x = _system_configuration.physmem;
14199 if (x > 0.0) return 0;
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14211 $as_echo "$ac_try_echo") >&5
14212 (eval "$ac_link") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 gl_cv_var__system_configuration=yes
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 gl_cv_var__system_configuration=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14234 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
14235 $as_echo "$gl_cv_var__system_configuration" >&6; }
14237 if test $gl_cv_var__system_configuration = yes; then
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE__SYSTEM_CONFIGURATION 1
14247 { $as_echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
14248 $as_echo_n "checking for desired default level of POSIX conformance... " >&6; }
14249 gl_default_posix2_version=none-specified
14250 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
14251 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
14253 cat >>confdefs.h <<_ACEOF
14254 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
14258 { $as_echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
14259 $as_echo "$gl_default_posix2_version" >&6; }
14280 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
14281 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
14282 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
14283 $as_echo_n "(cached) " >&6
14285 if test "$cross_compiling" = yes; then
14286 ac_cv_func_lstat_empty_string_bug=yes
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14299 return lstat ("", &sbuf) == 0;
14304 rm -f conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312 (eval "$ac_link") 2>&5
14314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14321 $as_echo "$ac_try_echo") >&5
14322 (eval "$ac_try") 2>&5
14324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_func_lstat_empty_string_bug=no
14328 $as_echo "$as_me: program exited with status $ac_status" >&5
14329 $as_echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ( exit $ac_status )
14333 ac_cv_func_lstat_empty_string_bug=yes
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
14341 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
14342 if test $ac_cv_func_lstat_empty_string_bug = yes; then
14343 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
14358 GNULIB_FPRINTF_POSIX=0;
14359 GNULIB_PRINTF_POSIX=0;
14361 GNULIB_SPRINTF_POSIX=0;
14362 GNULIB_VFPRINTF_POSIX=0;
14363 GNULIB_VPRINTF_POSIX=0;
14364 GNULIB_VSNPRINTF=0;
14365 GNULIB_VSPRINTF_POSIX=0;
14367 REPLACE_VFPRINTF=0;
14370 REPLACE_SNPRINTF=0;
14371 HAVE_DECL_SNPRINTF=1;
14372 REPLACE_VSNPRINTF=0;
14373 HAVE_DECL_VSNPRINTF=1;
14375 REPLACE_VSPRINTF=0;
14377 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14378 $as_echo_n "checking whether snprintf is declared... " >&6; }
14379 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14380 $as_echo_n "(cached) " >&6
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 $ac_includes_default
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14407 $as_echo "$ac_try_echo") >&5
14408 (eval "$ac_compile") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && {
14415 test -z "$ac_c_werror_flag" ||
14416 test ! -s conftest.err
14417 } && test -s conftest.$ac_objext; then
14418 ac_cv_have_decl_snprintf=yes
14420 $as_echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_have_decl_snprintf=no
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14429 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
14430 if test $ac_cv_have_decl_snprintf = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_DECL_SNPRINTF 1
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_DECL_SNPRINTF 0
14450 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
14451 $as_echo_n "checking whether strdup is declared... " >&6; }
14452 if test "${ac_cv_have_decl_strdup+set}" = set; then
14453 $as_echo_n "(cached) " >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest.$ac_objext; then
14491 ac_cv_have_decl_strdup=yes
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_cv_have_decl_strdup=no
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
14502 $as_echo "$ac_cv_have_decl_strdup" >&6; }
14503 if test $ac_cv_have_decl_strdup = yes; then
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_DECL_STRDUP 1
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_DECL_STRDUP 0
14530 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
14531 $as_echo_n "checking absolute name of <string.h>... " >&6; }
14532 if test "${gl_cv_absolute_string_h+set}" = set; then
14533 $as_echo_n "(cached) " >&6
14540 if test $ac_cv_header_string_h = yes; then
14541 cat >conftest.$ac_ext <<_ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h. */
14547 #include <string.h>
14549 gl_cv_absolute_string_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14550 sed -n '\#/string.h#{s#.*"\(.*/string.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
14554 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_string_h" >&5
14555 $as_echo "$gl_cv_absolute_string_h" >&6; }
14556 cat >>confdefs.h <<_ACEOF
14557 #define ABSOLUTE_STRING_H "$gl_cv_absolute_string_h"
14561 ABSOLUTE_STRING_H=\"$gl_cv_absolute_string_h\"
14564 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
14565 $as_echo_n "checking whether strndup is declared... " >&6; }
14566 if test "${ac_cv_have_decl_strndup+set}" = set; then
14567 $as_echo_n "(cached) " >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14587 rm -f conftest.$ac_objext
14588 if { (ac_try="$ac_compile"
14589 case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14594 $as_echo "$ac_try_echo") >&5
14595 (eval "$ac_compile") 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest.$ac_objext; then
14605 ac_cv_have_decl_strndup=yes
14607 $as_echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ac_cv_have_decl_strndup=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
14616 $as_echo "$ac_cv_have_decl_strndup" >&6; }
14617 if test $ac_cv_have_decl_strndup = yes; then
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_STRNDUP 1
14625 cat >>confdefs.h <<_ACEOF
14626 #define HAVE_DECL_STRNDUP 0
14633 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
14634 $as_echo_n "checking whether strnlen is declared... " >&6; }
14635 if test "${ac_cv_have_decl_strnlen+set}" = set; then
14636 $as_echo_n "(cached) " >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 $ac_includes_default
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14663 $as_echo "$ac_try_echo") >&5
14664 (eval "$ac_compile") 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && {
14671 test -z "$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 } && test -s conftest.$ac_objext; then
14674 ac_cv_have_decl_strnlen=yes
14676 $as_echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_cv_have_decl_strnlen=no
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
14685 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
14686 if test $ac_cv_have_decl_strnlen = yes; then
14688 cat >>confdefs.h <<_ACEOF
14689 #define HAVE_DECL_STRNLEN 1
14694 cat >>confdefs.h <<_ACEOF
14695 #define HAVE_DECL_STRNLEN 0
14704 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14705 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14706 if test "${ac_cv_header_stat_broken+set}" = set; then
14707 $as_echo_n "(cached) " >&6
14709 cat >conftest.$ac_ext <<_ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <sys/types.h>
14716 #include <sys/stat.h>
14718 #if defined S_ISBLK && defined S_IFDIR
14719 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14722 #if defined S_ISBLK && defined S_IFCHR
14723 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14726 #if defined S_ISLNK && defined S_IFREG
14727 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14730 #if defined S_ISSOCK && defined S_IFREG
14731 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14735 rm -f conftest.$ac_objext
14736 if { (ac_try="$ac_compile"
14737 case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14742 $as_echo "$ac_try_echo") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } && {
14750 test -z "$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest.$ac_objext; then
14753 ac_cv_header_stat_broken=no
14755 $as_echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_cv_header_stat_broken=yes
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14764 $as_echo "$ac_cv_header_stat_broken" >&6; }
14765 if test $ac_cv_header_stat_broken = yes; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define STAT_MACROS_BROKEN 1
14784 { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
14785 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14786 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14800 static struct timespec x; x.tv_sec = x.tv_nsec;
14805 rm -f conftest.$ac_objext
14806 if { (ac_try="$ac_compile"
14807 case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14812 $as_echo "$ac_try_echo") >&5
14813 (eval "$ac_compile") 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } && {
14820 test -z "$ac_c_werror_flag" ||
14821 test ! -s conftest.err
14822 } && test -s conftest.$ac_objext; then
14823 gl_cv_sys_struct_timespec_in_time_h=yes
14825 $as_echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 gl_cv_sys_struct_timespec_in_time_h=no
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14834 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14836 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14837 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14838 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14839 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14841 { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
14842 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14843 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
14844 $as_echo_n "(cached) " >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <sys/time.h>
14857 static struct timespec x; x.tv_sec = x.tv_nsec;
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14869 $as_echo "$ac_try_echo") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14872 grep -v '^ *+' conftest.er1 >conftest.err
14874 cat conftest.err >&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest.$ac_objext; then
14880 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14882 $as_echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 gl_cv_sys_struct_timespec_in_sys_time_h=no
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14891 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14892 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14893 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14902 { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
14903 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14904 if test "${gl_cv_absolute_time_h+set}" = set; then
14905 $as_echo_n "(cached) " >&6
14912 if test $ac_cv_header_time_h = yes; then
14913 cat >conftest.$ac_ext <<_ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14921 gl_cv_absolute_time_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14922 sed -n '\#/time.h#{s#.*"\(.*/time.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
14926 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_time_h" >&5
14927 $as_echo "$gl_cv_absolute_time_h" >&6; }
14928 cat >>confdefs.h <<_ACEOF
14929 #define ABSOLUTE_TIME_H "$gl_cv_absolute_time_h"
14933 ABSOLUTE_TIME_H=\"$gl_cv_absolute_time_h\"
14941 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
14942 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
14943 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
14944 $as_echo_n "(cached) " >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14956 #ifndef clearerr_unlocked
14957 (void) clearerr_unlocked;
14964 rm -f conftest.$ac_objext
14965 if { (ac_try="$ac_compile"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_compile") 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest.$ac_objext; then
14982 ac_cv_have_decl_clearerr_unlocked=yes
14984 $as_echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ac_cv_have_decl_clearerr_unlocked=no
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
14993 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
14994 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_DECL_CLEARERR_UNLOCKED 1
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_DECL_CLEARERR_UNLOCKED 0
15010 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
15011 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
15012 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
15013 $as_echo_n "(cached) " >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 $ac_includes_default
15025 #ifndef feof_unlocked
15026 (void) feof_unlocked;
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15040 $as_echo "$ac_try_echo") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && {
15048 test -z "$ac_c_werror_flag" ||
15049 test ! -s conftest.err
15050 } && test -s conftest.$ac_objext; then
15051 ac_cv_have_decl_feof_unlocked=yes
15053 $as_echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_cv_have_decl_feof_unlocked=no
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
15062 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
15063 if test $ac_cv_have_decl_feof_unlocked = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define HAVE_DECL_FEOF_UNLOCKED 1
15071 cat >>confdefs.h <<_ACEOF
15072 #define HAVE_DECL_FEOF_UNLOCKED 0
15079 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
15080 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
15081 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
15082 $as_echo_n "(cached) " >&6
15084 cat >conftest.$ac_ext <<_ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 $ac_includes_default
15094 #ifndef ferror_unlocked
15095 (void) ferror_unlocked;
15102 rm -f conftest.$ac_objext
15103 if { (ac_try="$ac_compile"
15104 case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15109 $as_echo "$ac_try_echo") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && {
15117 test -z "$ac_c_werror_flag" ||
15118 test ! -s conftest.err
15119 } && test -s conftest.$ac_objext; then
15120 ac_cv_have_decl_ferror_unlocked=yes
15122 $as_echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ac_cv_have_decl_ferror_unlocked=no
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
15131 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
15132 if test $ac_cv_have_decl_ferror_unlocked = yes; then
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_DECL_FERROR_UNLOCKED 1
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_DECL_FERROR_UNLOCKED 0
15148 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
15149 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
15150 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
15151 $as_echo_n "(cached) " >&6
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $ac_includes_default
15163 #ifndef fgets_unlocked
15164 (void) fgets_unlocked;
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15178 $as_echo "$ac_try_echo") >&5
15179 (eval "$ac_compile") 2>conftest.er1
15181 grep -v '^ *+' conftest.er1 >conftest.err
15183 cat conftest.err >&5
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } && {
15186 test -z "$ac_c_werror_flag" ||
15187 test ! -s conftest.err
15188 } && test -s conftest.$ac_objext; then
15189 ac_cv_have_decl_fgets_unlocked=yes
15191 $as_echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_cv_have_decl_fgets_unlocked=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
15200 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
15201 if test $ac_cv_have_decl_fgets_unlocked = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_DECL_FGETS_UNLOCKED 1
15209 cat >>confdefs.h <<_ACEOF
15210 #define HAVE_DECL_FGETS_UNLOCKED 0
15217 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
15218 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
15219 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
15220 $as_echo_n "(cached) " >&6
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 $ac_includes_default
15232 #ifndef fputc_unlocked
15233 (void) fputc_unlocked;
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15247 $as_echo "$ac_try_echo") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest.$ac_objext; then
15258 ac_cv_have_decl_fputc_unlocked=yes
15260 $as_echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_have_decl_fputc_unlocked=no
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
15269 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
15270 if test $ac_cv_have_decl_fputc_unlocked = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_DECL_FPUTC_UNLOCKED 1
15278 cat >>confdefs.h <<_ACEOF
15279 #define HAVE_DECL_FPUTC_UNLOCKED 0
15286 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
15287 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
15288 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
15289 $as_echo_n "(cached) " >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15301 #ifndef fread_unlocked
15302 (void) fread_unlocked;
15309 rm -f conftest.$ac_objext
15310 if { (ac_try="$ac_compile"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15316 $as_echo "$ac_try_echo") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.$ac_objext; then
15327 ac_cv_have_decl_fread_unlocked=yes
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_have_decl_fread_unlocked=no
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
15338 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
15339 if test $ac_cv_have_decl_fread_unlocked = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_DECL_FREAD_UNLOCKED 1
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_DECL_FREAD_UNLOCKED 0
15355 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
15356 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
15357 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
15358 $as_echo_n "(cached) " >&6
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15370 #ifndef fwrite_unlocked
15371 (void) fwrite_unlocked;
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386 (eval "$ac_compile") 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest.$ac_objext; then
15396 ac_cv_have_decl_fwrite_unlocked=yes
15398 $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 ac_cv_have_decl_fwrite_unlocked=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
15407 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
15408 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_DECL_FWRITE_UNLOCKED 1
15416 cat >>confdefs.h <<_ACEOF
15417 #define HAVE_DECL_FWRITE_UNLOCKED 0
15424 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
15425 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
15426 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
15427 $as_echo_n "(cached) " >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 $ac_includes_default
15439 #ifndef getchar_unlocked
15440 (void) getchar_unlocked;
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454 $as_echo "$ac_try_echo") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest.$ac_objext; then
15465 ac_cv_have_decl_getchar_unlocked=yes
15467 $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_have_decl_getchar_unlocked=no
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
15476 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
15477 if test $ac_cv_have_decl_getchar_unlocked = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_DECL_GETCHAR_UNLOCKED 1
15485 cat >>confdefs.h <<_ACEOF
15486 #define HAVE_DECL_GETCHAR_UNLOCKED 0
15493 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
15494 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
15495 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
15496 $as_echo_n "(cached) " >&6
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15508 #ifndef putchar_unlocked
15509 (void) putchar_unlocked;
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523 $as_echo "$ac_try_echo") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest.$ac_objext; then
15534 ac_cv_have_decl_putchar_unlocked=yes
15536 $as_echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_have_decl_putchar_unlocked=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
15545 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
15546 if test $ac_cv_have_decl_putchar_unlocked = yes; then
15548 cat >>confdefs.h <<_ACEOF
15549 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
15570 { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15571 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
15572 if test "${ac_cv_func_utime_null+set}" = set; then
15573 $as_echo_n "(cached) " >&6
15575 rm -f conftest.data; >conftest.data
15576 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
15577 if test "$cross_compiling" = yes; then
15578 ac_cv_func_utime_null=no
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15587 #ifdef HAVE_UTIME_H
15588 # include <utime.h>
15594 return ! (stat ("conftest.data", &s) == 0
15595 && utime ("conftest.data", 0) == 0
15596 && stat ("conftest.data", &t) == 0
15597 && t.st_mtime >= s.st_mtime
15598 && t.st_mtime - s.st_mtime < 120);
15603 rm -f conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611 (eval "$ac_link") 2>&5
15613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15615 { (case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621 (eval "$ac_try") 2>&5
15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_cv_func_utime_null=yes
15627 $as_echo "$as_me: program exited with status $ac_status" >&5
15628 $as_echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ( exit $ac_status )
15632 ac_cv_func_utime_null=no
15634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15640 $as_echo "$ac_cv_func_utime_null" >&6; }
15641 if test $ac_cv_func_utime_null = yes; then
15643 cat >>confdefs.h <<\_ACEOF
15644 #define HAVE_UTIME_NULL 1
15648 rm -f conftest.data
15659 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
15660 $as_echo_n "checking for struct utimbuf... " >&6; }
15661 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
15662 $as_echo_n "(cached) " >&6
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 #if HAVE_SYS_TIME_H
15671 #include <sys/time.h>
15674 #ifdef HAVE_UTIME_H
15681 static struct utimbuf x; x.actime = x.modtime;
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15693 $as_echo "$ac_try_echo") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest.$ac_objext; then
15704 gl_cv_sys_struct_utimbuf=yes
15706 $as_echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 gl_cv_sys_struct_utimbuf=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
15715 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
15717 if test $gl_cv_sys_struct_utimbuf = yes; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_STRUCT_UTIMBUF 1
15726 { $as_echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
15727 $as_echo_n "checking determine whether the utimes function works... " >&6; }
15728 if test "${gl_cv_func_working_utimes+set}" = set; then
15729 $as_echo_n "(cached) " >&6
15732 if test "$cross_compiling" = yes; then
15733 gl_cv_func_working_utimes=no
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15742 #include <sys/types.h>
15743 #include <sys/stat.h>
15745 #include <sys/time.h>
15747 #include <unistd.h>
15748 #include <stdlib.h>
15755 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
15757 char const *file = "conftest.utimes";
15762 int ok = ((f = fopen (file, "w"))
15764 && utimes (file, timeval) == 0
15765 && lstat (file, &sbuf) == 0
15766 && sbuf.st_atime == timeval[0].tv_sec
15767 && sbuf.st_mtime == timeval[1].tv_sec);
15773 ((f = fopen (file, "w"))
15775 && time (&now) != (time_t)-1
15776 && utimes (file, NULL) == 0
15777 && lstat (file, &sbuf) == 0
15778 && now - sbuf.st_atime <= 2
15779 && now - sbuf.st_mtime <= 2);
15784 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
15786 && utimes (file, NULL) == 0);
15793 rm -f conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801 (eval "$ac_link") 2>&5
15803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15810 $as_echo "$ac_try_echo") >&5
15811 (eval "$ac_try") 2>&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 gl_cv_func_working_utimes=yes
15817 $as_echo "$as_me: program exited with status $ac_status" >&5
15818 $as_echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ( exit $ac_status )
15822 gl_cv_func_working_utimes=no
15824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
15830 $as_echo "$gl_cv_func_working_utimes" >&6; }
15832 if test $gl_cv_func_working_utimes = yes; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_WORKING_UTIMES 1
15846 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
15847 $as_echo_n "checking for EOVERFLOW... " >&6; }
15848 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
15849 $as_echo_n "(cached) " >&6
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15866 $EGREP "yes" >/dev/null 2>&1; then
15871 if test -n "$have_eoverflow"; then
15872 ac_cv_decl_EOVERFLOW=yes
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 #define _XOPEN_SOURCE_EXTENDED 1
15888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15889 $EGREP "yes" >/dev/null 2>&1; then
15894 if test -n "$have_eoverflow"; then
15895 if test "$cross_compiling" = yes; then
15896 # Depending upon the size, compute the lo and hi bounds.
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 #define _XOPEN_SOURCE_EXTENDED 1
15906 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15908 #include <stdlib.h>
15913 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927 $as_echo "$ac_try_echo") >&5
15928 (eval "$ac_compile") 2>conftest.er1
15930 grep -v '^ *+' conftest.er1 >conftest.err
15932 cat conftest.err >&5
15933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } && {
15935 test -z "$ac_c_werror_flag" ||
15936 test ! -s conftest.err
15937 } && test -s conftest.$ac_objext; then
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15947 #define _XOPEN_SOURCE_EXTENDED 1
15949 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15951 #include <stdlib.h>
15956 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970 $as_echo "$ac_try_echo") >&5
15971 (eval "$ac_compile") 2>conftest.er1
15973 grep -v '^ *+' conftest.er1 >conftest.err
15975 cat conftest.err >&5
15976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest.$ac_objext; then
15981 ac_hi=$ac_mid; break
15983 $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_lo=`expr $ac_mid + 1`
15987 if test $ac_lo -le $ac_mid; then
15991 ac_mid=`expr 2 '*' $ac_mid + 1`
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 $as_echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16007 #define _XOPEN_SOURCE_EXTENDED 1
16009 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16011 #include <stdlib.h>
16016 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16030 $as_echo "$ac_try_echo") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest.$ac_objext; then
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16050 #define _XOPEN_SOURCE_EXTENDED 1
16052 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16054 #include <stdlib.h>
16059 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
16066 rm -f conftest.$ac_objext
16067 if { (ac_try="$ac_compile"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16073 $as_echo "$ac_try_echo") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1 >conftest.err
16078 cat conftest.err >&5
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && {
16081 test -z "$ac_c_werror_flag" ||
16082 test ! -s conftest.err
16083 } && test -s conftest.$ac_objext; then
16084 ac_lo=$ac_mid; break
16086 $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_hi=`expr '(' $ac_mid ')' - 1`
16090 if test $ac_mid -le $ac_hi; then
16094 ac_mid=`expr 2 '*' $ac_mid`
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 $as_echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 # Binary search between lo and hi bounds.
16111 while test "x$ac_lo" != "x$ac_hi"; do
16112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16120 #define _XOPEN_SOURCE_EXTENDED 1
16122 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16124 #include <stdlib.h>
16129 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
16136 rm -f conftest.$ac_objext
16137 if { (ac_try="$ac_compile"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143 $as_echo "$ac_try_echo") >&5
16144 (eval "$ac_compile") 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest.$ac_objext; then
16156 $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_lo=`expr '(' $ac_mid ')' + 1`
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16176 #define _XOPEN_SOURCE_EXTENDED 1
16178 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16180 #include <stdlib.h>
16182 static long int longval () { return EOVERFLOW; }
16183 static unsigned long int ulongval () { return EOVERFLOW; }
16185 #include <stdlib.h>
16190 FILE *f = fopen ("conftest.val", "w");
16193 if ((EOVERFLOW) < 0)
16195 long int i = longval ();
16196 if (i != (EOVERFLOW))
16198 fprintf (f, "%ld", i);
16202 unsigned long int i = ulongval ();
16203 if (i != (EOVERFLOW))
16205 fprintf (f, "%lu", i);
16207 /* Do not output a trailing newline, as this causes \r\n confusion
16208 on some platforms. */
16209 return ferror (f) || fclose (f) != 0;
16215 rm -f conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16222 $as_echo "$ac_try_echo") >&5
16223 (eval "$ac_link") 2>&5
16225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16227 { (case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233 (eval "$ac_try") 2>&5
16235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_cv_decl_EOVERFLOW=`cat conftest.val`
16239 $as_echo "$as_me: program exited with status $ac_status" >&5
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16248 ac_cv_decl_EOVERFLOW=E2BIG
16253 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
16254 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
16255 if test "$ac_cv_decl_EOVERFLOW" != yes; then
16257 cat >>confdefs.h <<_ACEOF
16258 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
16261 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
16268 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16269 $as_echo_n "checking for wchar_t... " >&6; }
16270 if test "${gt_cv_c_wchar_t+set}" = set; then
16271 $as_echo_n "(cached) " >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 #include <stddef.h>
16280 wchar_t foo = (wchar_t)'\0';
16289 rm -f conftest.$ac_objext
16290 if { (ac_try="$ac_compile"
16291 case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16296 $as_echo "$ac_try_echo") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16299 grep -v '^ *+' conftest.er1 >conftest.err
16301 cat conftest.err >&5
16302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest.$ac_objext; then
16307 gt_cv_c_wchar_t=yes
16309 $as_echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16318 $as_echo "$gt_cv_c_wchar_t" >&6; }
16319 if test $gt_cv_c_wchar_t = yes; then
16321 cat >>confdefs.h <<\_ACEOF
16322 #define HAVE_WCHAR_T 1
16328 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
16329 $as_echo_n "checking for wint_t... " >&6; }
16330 if test "${gt_cv_c_wint_t+set}" = set; then
16331 $as_echo_n "(cached) " >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16340 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16342 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16343 before <wchar.h>. */
16344 #include <stddef.h>
16348 wint_t foo = (wchar_t)'\0';
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364 $as_echo "$ac_try_echo") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16367 grep -v '^ *+' conftest.er1 >conftest.err
16369 cat conftest.err >&5
16370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest.$ac_objext; then
16377 $as_echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16386 $as_echo "$gt_cv_c_wint_t" >&6; }
16387 if test $gt_cv_c_wint_t = yes; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_WINT_T 1
16396 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
16397 $as_echo_n "checking for inttypes.h... " >&6; }
16398 if test "${gl_cv_header_inttypes_h+set}" = set; then
16399 $as_echo_n "(cached) " >&6
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <sys/types.h>
16408 #include <inttypes.h>
16412 uintmax_t i = (uintmax_t) -1; return !i;
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest.$ac_objext; then
16435 gl_cv_header_inttypes_h=yes
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 gl_cv_header_inttypes_h=no
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
16446 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16447 if test $gl_cv_header_inttypes_h = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16456 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
16457 $as_echo_n "checking for stdint.h... " >&6; }
16458 if test "${gl_cv_header_stdint_h+set}" = set; then
16459 $as_echo_n "(cached) " >&6
16461 cat >conftest.$ac_ext <<_ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h. */
16467 #include <sys/types.h>
16468 #include <stdint.h>
16472 uintmax_t i = (uintmax_t) -1; return !i;
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16484 $as_echo "$ac_try_echo") >&5
16485 (eval "$ac_compile") 2>conftest.er1
16487 grep -v '^ *+' conftest.er1 >conftest.err
16489 cat conftest.err >&5
16490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest.$ac_objext; then
16495 gl_cv_header_stdint_h=yes
16497 $as_echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 gl_cv_header_stdint_h=no
16503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
16506 $as_echo "$gl_cv_header_stdint_h" >&6; }
16507 if test $gl_cv_header_stdint_h = yes; then
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_STDINT_H_WITH_UINTMAX 1
16517 ac_cv_type_long_long=$ac_cv_type_long_long_int
16518 if test $ac_cv_type_long_long = yes; then
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE_LONG_LONG 1
16529 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
16530 $as_echo_n "checking for intmax_t... " >&6; }
16531 if test "${gt_cv_c_intmax_t+set}" = set; then
16532 $as_echo_n "(cached) " >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16541 #include <stddef.h>
16542 #include <stdlib.h>
16543 #if HAVE_STDINT_H_WITH_UINTMAX
16544 #include <stdint.h>
16546 #if HAVE_INTTYPES_H_WITH_UINTMAX
16547 #include <inttypes.h>
16553 intmax_t x = -1; return !x;
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16565 $as_echo "$ac_try_echo") >&5
16566 (eval "$ac_compile") 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && {
16573 test -z "$ac_c_werror_flag" ||
16574 test ! -s conftest.err
16575 } && test -s conftest.$ac_objext; then
16576 gt_cv_c_intmax_t=yes
16578 $as_echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 gt_cv_c_intmax_t=no
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16587 $as_echo "$gt_cv_c_intmax_t" >&6; }
16588 if test $gt_cv_c_intmax_t = yes; then
16590 cat >>confdefs.h <<\_ACEOF
16591 #define HAVE_INTMAX_T 1
16596 test $ac_cv_type_long_long = yes \
16597 && ac_type='long long' \
16600 cat >>confdefs.h <<_ACEOF
16601 #define intmax_t $ac_type
16610 { $as_echo "$as_me:$LINENO: checking POSIX termios" >&5
16611 $as_echo_n "checking POSIX termios... " >&6; }
16612 if test "${ac_cv_sys_posix_termios+set}" = set; then
16613 $as_echo_n "(cached) " >&6
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 #include <sys/types.h>
16622 #include <unistd.h>
16623 #include <termios.h>
16628 /* SunOS 4.0.3 has termios.h but not the library calls. */
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16641 $as_echo "$ac_try_echo") >&5
16642 (eval "$ac_link") 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } && {
16649 test -z "$ac_c_werror_flag" ||
16650 test ! -s conftest.err
16651 } && test -s conftest$ac_exeext &&
16652 $as_test_x conftest$ac_exeext; then
16653 ac_cv_sys_posix_termios=yes
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_sys_posix_termios=no
16661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16662 conftest$ac_exeext conftest.$ac_ext
16664 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
16665 $as_echo "$ac_cv_sys_posix_termios" >&6; }
16668 { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
16669 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
16670 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
16671 $as_echo_n "(cached) " >&6
16673 jm_cv_sys_tiocgwinsz_needs_termios_h=no
16675 if test $ac_cv_sys_posix_termios = yes; then
16676 cat >conftest.$ac_ext <<_ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 #include <sys/types.h>
16683 # include <termios.h>
16689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690 $EGREP "yes" >/dev/null 2>&1; then
16691 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
16698 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
16699 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
16706 GL_COND_LIBTOOL_TRUE=
16707 GL_COND_LIBTOOL_FALSE='#'
16709 GL_COND_LIBTOOL_TRUE='#'
16710 GL_COND_LIBTOOL_FALSE=
16713 gl_cond_libtool=false
16716 gl_source_base='lib'
16718 gl_LIBOBJS="$gl_LIBOBJS acl.$ac_objext"
16719 gl_LIBOBJS="$gl_LIBOBJS file-has-acl.$ac_objext"
16722 for ac_header in sys/acl.h
16724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16727 $as_echo_n "checking for $ac_header... " >&6; }
16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 $as_echo_n "(cached) " >&6
16731 ac_res=`eval 'as_val=${'$as_ac_Header'}
16732 $as_echo "$as_val"'`
16733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16734 $as_echo "$ac_res" >&6; }
16736 # Is the header compilable?
16737 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16738 $as_echo_n "checking $ac_header usability... " >&6; }
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 $ac_includes_default
16746 #include <$ac_header>
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16755 $as_echo "$ac_try_echo") >&5
16756 (eval "$ac_compile") 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && {
16763 test -z "$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 } && test -s conftest.$ac_objext; then
16766 ac_header_compiler=yes
16768 $as_echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 ac_header_compiler=no
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16776 $as_echo "$ac_header_compiler" >&6; }
16778 # Is the header present?
16779 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16780 $as_echo_n "checking $ac_header presence... " >&6; }
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <$ac_header>
16789 if { (ac_try="$ac_cpp conftest.$ac_ext"
16790 case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16795 $as_echo "$ac_try_echo") >&5
16796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16798 grep -v '^ *+' conftest.er1 >conftest.err
16800 cat conftest.err >&5
16801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } >/dev/null && {
16803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16806 ac_header_preproc=yes
16808 $as_echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_header_preproc=no
16814 rm -f conftest.err conftest.$ac_ext
16815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816 $as_echo "$ac_header_preproc" >&6; }
16818 # So? What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16822 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16825 ac_header_preproc=yes
16828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16829 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16831 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16833 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16835 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16837 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16839 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16841 ## ------------------------------------ ##
16842 ## Report this to bug-coreutils@gnu.org ##
16843 ## ------------------------------------ ##
16845 ) | sed "s/^/$as_me: WARNING: /" >&2
16848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16849 $as_echo_n "checking for $ac_header... " >&6; }
16850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16851 $as_echo_n "(cached) " >&6
16853 eval "$as_ac_Header=\$ac_header_preproc"
16855 ac_res=`eval 'as_val=${'$as_ac_Header'}
16856 $as_echo "$as_val"'`
16857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16858 $as_echo "$ac_res" >&6; }
16861 if test `eval 'as_val=${'$as_ac_Header'}
16862 $as_echo "$as_val"'` = yes; then
16863 cat >>confdefs.h <<_ACEOF
16864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16876 $as_echo_n "checking for $ac_func... " >&6; }
16877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16878 $as_echo_n "(cached) " >&6
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16888 #define $ac_func innocuous_$ac_func
16890 /* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16896 # include <limits.h>
16898 # include <assert.h>
16903 /* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
16910 /* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
16913 #if defined __stub_$ac_func || defined __stub___$ac_func
16920 return $ac_func ();
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16932 $as_echo "$ac_try_echo") >&5
16933 (eval "$ac_link") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } && {
16940 test -z "$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 } && test -s conftest$ac_exeext &&
16943 $as_test_x conftest$ac_exeext; then
16944 eval "$as_ac_var=yes"
16946 $as_echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 eval "$as_ac_var=no"
16952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16953 conftest$ac_exeext conftest.$ac_ext
16955 ac_res=`eval 'as_val=${'$as_ac_var'}
16956 $as_echo "$as_val"'`
16957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16958 $as_echo "$ac_res" >&6; }
16959 if test `eval 'as_val=${'$as_ac_var'}
16960 $as_echo "$as_val"'` = yes; then
16961 cat >>confdefs.h <<_ACEOF
16962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968 ac_save_LIBS="$LIBS"
16969 { $as_echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
16970 $as_echo_n "checking for library containing acl_get_file... " >&6; }
16971 if test "${ac_cv_search_acl_get_file+set}" = set; then
16972 $as_echo_n "(cached) " >&6
16974 ac_func_search_save_LIBS=$LIBS
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16988 char acl_get_file ();
16992 return acl_get_file ();
16997 for ac_lib in '' acl; do
16998 if test -z "$ac_lib"; then
16999 ac_res="none required"
17002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17011 $as_echo "$ac_try_echo") >&5
17012 (eval "$ac_link") 2>conftest.er1
17014 grep -v '^ *+' conftest.er1 >conftest.err
17016 cat conftest.err >&5
17017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } && {
17019 test -z "$ac_c_werror_flag" ||
17020 test ! -s conftest.err
17021 } && test -s conftest$ac_exeext &&
17022 $as_test_x conftest$ac_exeext; then
17023 ac_cv_search_acl_get_file=$ac_res
17025 $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17033 if test "${ac_cv_search_acl_get_file+set}" = set; then
17037 if test "${ac_cv_search_acl_get_file+set}" = set; then
17040 ac_cv_search_acl_get_file=no
17042 rm conftest.$ac_ext
17043 LIBS=$ac_func_search_save_LIBS
17045 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
17046 $as_echo "$ac_cv_search_acl_get_file" >&6; }
17047 ac_res=$ac_cv_search_acl_get_file
17048 if test "$ac_res" != no; then
17049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17050 test "$ac_cv_search_acl_get_file" = "none required" ||
17051 LIB_ACL=$ac_cv_search_acl_get_file
17056 for ac_header in acl/libacl.h
17058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17061 $as_echo_n "checking for $ac_header... " >&6; }
17062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17063 $as_echo_n "(cached) " >&6
17065 ac_res=`eval 'as_val=${'$as_ac_Header'}
17066 $as_echo "$as_val"'`
17067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17068 $as_echo "$ac_res" >&6; }
17070 # Is the header compilable?
17071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17072 $as_echo_n "checking $ac_header usability... " >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 $ac_includes_default
17080 #include <$ac_header>
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17089 $as_echo "$ac_try_echo") >&5
17090 (eval "$ac_compile") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && {
17097 test -z "$ac_c_werror_flag" ||
17098 test ! -s conftest.err
17099 } && test -s conftest.$ac_objext; then
17100 ac_header_compiler=yes
17102 $as_echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_header_compiler=no
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17110 $as_echo "$ac_header_compiler" >&6; }
17112 # Is the header present?
17113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17114 $as_echo_n "checking $ac_header presence... " >&6; }
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <$ac_header>
17123 if { (ac_try="$ac_cpp conftest.$ac_ext"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17129 $as_echo "$ac_try_echo") >&5
17130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } >/dev/null && {
17137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17140 ac_header_preproc=yes
17142 $as_echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 ac_header_preproc=no
17148 rm -f conftest.err conftest.$ac_ext
17149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17150 $as_echo "$ac_header_preproc" >&6; }
17152 # So? What about this header?
17153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17159 ac_header_preproc=yes
17162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17175 ## ------------------------------------ ##
17176 ## Report this to bug-coreutils@gnu.org ##
17177 ## ------------------------------------ ##
17179 ) | sed "s/^/$as_me: WARNING: /" >&2
17182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17183 $as_echo_n "checking for $ac_header... " >&6; }
17184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17185 $as_echo_n "(cached) " >&6
17187 eval "$as_ac_Header=\$ac_header_preproc"
17189 ac_res=`eval 'as_val=${'$as_ac_Header'}
17190 $as_echo "$as_val"'`
17191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17192 $as_echo "$ac_res" >&6; }
17195 if test `eval 'as_val=${'$as_ac_Header'}
17196 $as_echo "$as_val"'` = yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
17215 acl_free acl_from_mode acl_from_text \
17216 acl_delete_def_file acl_extended_file
17218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17219 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17220 $as_echo_n "checking for $ac_func... " >&6; }
17221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17222 $as_echo_n "(cached) " >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17232 #define $ac_func innocuous_$ac_func
17234 /* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func (); below.
17236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17237 <limits.h> exists even on freestanding compilers. */
17240 # include <limits.h>
17242 # include <assert.h>
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17254 /* The GNU C library defines this for functions which it implements
17255 to always fail with ENOSYS. Some functions are actually named
17256 something starting with __ and the normal name is an alias. */
17257 #if defined __stub_$ac_func || defined __stub___$ac_func
17264 return $ac_func ();
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (ac_try="$ac_link"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277 (eval "$ac_link") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest$ac_exeext &&
17287 $as_test_x conftest$ac_exeext; then
17288 eval "$as_ac_var=yes"
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 eval "$as_ac_var=no"
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17299 ac_res=`eval 'as_val=${'$as_ac_var'}
17300 $as_echo "$as_val"'`
17301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17302 $as_echo "$ac_res" >&6; }
17303 if test `eval 'as_val=${'$as_ac_var'}
17304 $as_echo "$as_val"'` = yes; then
17305 cat >>confdefs.h <<_ACEOF
17306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17312 if test $ac_cv_header_sys_acl_h = yes; then
17314 if test $ac_cv_func_acl_get_file = yes; then
17315 # If we detect the acl_get_file bug, disable ACL support altogether.
17317 { $as_echo "$as_me:$LINENO: checking for working acl_get_file" >&5
17318 $as_echo_n "checking for working acl_get_file... " >&6; }
17319 if test "${gl_cv_func_working_acl_get_file+set}" = set; then
17320 $as_echo_n "(cached) " >&6
17322 if test "$cross_compiling" = yes; then
17323 gl_cv_func_working_acl_get_file=cross-compiling
17325 cat >conftest.$ac_ext <<_ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17331 #include <sys/types.h>
17332 #include <sys/acl.h>
17338 return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
17339 && errno == ENOENT);
17344 rm -f conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351 $as_echo "$ac_try_echo") >&5
17352 (eval "$ac_link") 2>&5
17354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17361 $as_echo "$ac_try_echo") >&5
17362 (eval "$ac_try") 2>&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 gl_cv_func_working_acl_get_file=yes
17368 $as_echo "$as_me: program exited with status $ac_status" >&5
17369 $as_echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ( exit $ac_status )
17373 gl_cv_func_working_acl_get_file=no
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17380 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5
17381 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
17383 if test $gl_cv_func_working_acl_get_file = yes; then
17394 if test $use_acl = 1 &&
17395 test $ac_cv_func_acl_get_file = yes &&
17396 test $ac_cv_func_acl_free = yes; then
17398 for ac_func in acl_entries
17400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17402 $as_echo_n "checking for $ac_func... " >&6; }
17403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17404 $as_echo_n "(cached) " >&6
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17414 #define $ac_func innocuous_$ac_func
17416 /* System header to define __stub macros and hopefully few prototypes,
17417 which can conflict with char $ac_func (); below.
17418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419 <limits.h> exists even on freestanding compilers. */
17422 # include <limits.h>
17424 # include <assert.h>
17429 /* Override any GCC internal prototype to avoid an error.
17430 Use char because int might match the return type of a GCC
17431 builtin and then its argument prototype would still apply. */
17436 /* The GNU C library defines this for functions which it implements
17437 to always fail with ENOSYS. Some functions are actually named
17438 something starting with __ and the normal name is an alias. */
17439 #if defined __stub_$ac_func || defined __stub___$ac_func
17446 return $ac_func ();
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (ac_try="$ac_link"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17458 $as_echo "$ac_try_echo") >&5
17459 (eval "$ac_link") 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } && {
17466 test -z "$ac_c_werror_flag" ||
17467 test ! -s conftest.err
17468 } && test -s conftest$ac_exeext &&
17469 $as_test_x conftest$ac_exeext; then
17470 eval "$as_ac_var=yes"
17472 $as_echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 eval "$as_ac_var=no"
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479 conftest$ac_exeext conftest.$ac_ext
17481 ac_res=`eval 'as_val=${'$as_ac_var'}
17482 $as_echo "$as_val"'`
17483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17484 $as_echo "$ac_res" >&6; }
17485 if test `eval 'as_val=${'$as_ac_var'}
17486 $as_echo "$as_val"'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17492 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17497 LIBS="$ac_save_LIBS"
17498 if test $use_acl = 1; then
17499 ac_save_LIBS="$LIBS"
17500 { $as_echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5
17501 $as_echo_n "checking for library containing acl_trivial... " >&6; }
17502 if test "${ac_cv_search_acl_trivial+set}" = set; then
17503 $as_echo_n "(cached) " >&6
17505 ac_func_search_save_LIBS=$LIBS
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17519 char acl_trivial ();
17523 return acl_trivial ();
17528 for ac_lib in '' sec; do
17529 if test -z "$ac_lib"; then
17530 ac_res="none required"
17533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17542 $as_echo "$ac_try_echo") >&5
17543 (eval "$ac_link") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext &&
17553 $as_test_x conftest$ac_exeext; then
17554 ac_cv_search_acl_trivial=$ac_res
17556 $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17564 if test "${ac_cv_search_acl_trivial+set}" = set; then
17568 if test "${ac_cv_search_acl_trivial+set}" = set; then
17571 ac_cv_search_acl_trivial=no
17573 rm conftest.$ac_ext
17574 LIBS=$ac_func_search_save_LIBS
17576 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5
17577 $as_echo "$ac_cv_search_acl_trivial" >&6; }
17578 ac_res=$ac_cv_search_acl_trivial
17579 if test "$ac_res" != no; then
17580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_ACL_TRIVIAL 1
17586 test "$ac_cv_search_acl_trivial" = "none required" ||
17587 LIB_ACL_TRIVIAL="$ac_cv_search_acl_trivial"
17591 LIBS="$ac_save_LIBS"
17594 cat >>confdefs.h <<_ACEOF
17595 #define USE_ACL $use_acl
17604 if test $ac_cv_func_alloca_works = no; then
17608 # Define an additional variable used in the Makefile substitution.
17609 if test $ac_cv_working_alloca_h = yes; then
17610 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
17611 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17612 if test "${gl_cv_rpl_alloca+set}" = set; then
17613 $as_echo_n "(cached) " >&6
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17623 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17629 $EGREP "Need own alloca" >/dev/null 2>&1; then
17630 gl_cv_rpl_alloca=yes
17632 gl_cv_rpl_alloca=no
17638 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
17639 $as_echo "$gl_cv_rpl_alloca" >&6; }
17640 if test $gl_cv_rpl_alloca = yes; then
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_ALLOCA 1
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_ALLOCA_H 1
17667 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
17676 if test $ac_cv_header_arpa_inet_h = yes; then
17679 ARPA_INET_H='arpa/inet.h'
17683 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
17685 if test -z "$MKDIR_P"; then
17686 if test "${ac_cv_path_mkdir+set}" = set; then
17687 $as_echo_n "(cached) " >&6
17689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17693 test -z "$as_dir" && as_dir=.
17694 for ac_prog in mkdir gmkdir; do
17695 for ac_exec_ext in '' $ac_executable_extensions; do
17696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
17697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
17698 'mkdir (GNU coreutils) '* | \
17699 'mkdir (coreutils) '* | \
17700 'mkdir (fileutils) '4.1*)
17701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
17711 if test "${ac_cv_path_mkdir+set}" = set; then
17712 MKDIR_P="$ac_cv_path_mkdir -p"
17714 # As a last resort, use the slow shell script. Don't cache a
17715 # value for MKDIR_P within a source directory, because that will
17716 # break other packages using the cache if that directory is
17717 # removed, or if the value is a relative name.
17718 test -d ./--version && rmdir ./--version
17719 MKDIR_P="$ac_install_sh -d"
17722 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
17723 $as_echo "$MKDIR_P" >&6; }
17726 { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
17727 $as_echo_n "checking whether to enable assertions... " >&6; }
17728 # Check whether --enable-assert was given.
17729 if test "${enable_assert+set}" = set; then
17730 enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5
17731 $as_echo "no" >&6; }
17733 cat >>confdefs.h <<\_ACEOF
17738 { $as_echo "$as_me:$LINENO: result: yes" >&5
17739 $as_echo "yes" >&6; }
17746 for ac_func in atexit
17748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 $as_echo_n "checking for $ac_func... " >&6; }
17751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752 $as_echo_n "(cached) " >&6
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17770 # include <limits.h>
17772 # include <assert.h>
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 return $ac_func ();
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806 $as_echo "$ac_try_echo") >&5
17807 (eval "$ac_link") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest$ac_exeext &&
17817 $as_test_x conftest$ac_exeext; then
17818 eval "$as_ac_var=yes"
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 eval "$as_ac_var=no"
17826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17827 conftest$ac_exeext conftest.$ac_ext
17829 ac_res=`eval 'as_val=${'$as_ac_var'}
17830 $as_echo "$as_val"'`
17831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17832 $as_echo "$ac_res" >&6; }
17833 if test `eval 'as_val=${'$as_ac_var'}
17834 $as_echo "$as_val"'` = yes; then
17835 cat >>confdefs.h <<_ACEOF
17836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17844 if test $ac_cv_func_atexit = no; then
17851 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
17870 gl_LIBOBJS="$gl_LIBOBJS c-strtod.$ac_objext"
17876 gl_LIBOBJS="$gl_LIBOBJS c-strtold.$ac_objext"
17882 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
17883 $as_echo_n "checking for GNU libc compatible calloc... " >&6; }
17884 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
17885 $as_echo_n "(cached) " >&6
17887 if test "$cross_compiling" = yes; then
17888 ac_cv_func_calloc_0_nonnull=no
17890 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 $ac_includes_default
17900 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
17905 rm -f conftest$ac_exeext
17906 if { (ac_try="$ac_link"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_link") 2>&5
17915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_try") 2>&5
17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_func_calloc_0_nonnull=yes
17929 $as_echo "$as_me: program exited with status $ac_status" >&5
17930 $as_echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ( exit $ac_status )
17934 ac_cv_func_calloc_0_nonnull=no
17936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
17942 $as_echo "$ac_cv_func_calloc_0_nonnull" >&6; }
17943 if test $ac_cv_func_calloc_0_nonnull = yes; then
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_CALLOC 1
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_CALLOC 0
17954 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
17956 cat >>confdefs.h <<\_ACEOF
17957 #define calloc rpl_calloc
17965 gl_LIBOBJS="$gl_LIBOBJS canon-host.$ac_objext"
17971 gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext"
17994 cat >>confdefs.h <<\_ACEOF
17995 #define GNULIB_CANONICALIZE 1
18000 { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
18001 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
18002 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
18003 $as_echo_n "(cached) " >&6
18005 cat >conftest.$ac_ext <<_ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 #include <unistd.h>
18012 #include <limits.h>
18013 #if defined PATH_MAX || defined MAXPATHLEN
18014 have_arbitrary_file_name_length_limit
18017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18018 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
18019 gl_cv_have_arbitrary_file_name_length_limit=yes
18021 gl_cv_have_arbitrary_file_name_length_limit=no
18026 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
18027 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
18029 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
18030 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
18042 if test $ac_cv_func_chown_works = no; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
18050 # If chown has either of the above problems, then we need the wrapper.
18051 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
18052 : # no wrapper needed
18055 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
18057 { $as_echo "$as_me:$LINENO: checking for fchown" >&5
18058 $as_echo_n "checking for fchown... " >&6; }
18059 if test "${ac_cv_func_fchown+set}" = set; then
18060 $as_echo_n "(cached) " >&6
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
18069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18070 #define fchown innocuous_fchown
18072 /* System header to define __stub macros and hopefully few prototypes,
18073 which can conflict with char fchown (); below.
18074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18075 <limits.h> exists even on freestanding compilers. */
18078 # include <limits.h>
18080 # include <assert.h>
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18092 /* The GNU C library defines this for functions which it implements
18093 to always fail with ENOSYS. Some functions are actually named
18094 something starting with __ and the normal name is an alias. */
18095 #if defined __stub_fchown || defined __stub___fchown
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18114 $as_echo "$ac_try_echo") >&5
18115 (eval "$ac_link") 2>conftest.er1
18117 grep -v '^ *+' conftest.er1 >conftest.err
18119 cat conftest.err >&5
18120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } && {
18122 test -z "$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18124 } && test -s conftest$ac_exeext &&
18125 $as_test_x conftest$ac_exeext; then
18126 ac_cv_func_fchown=yes
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_cv_func_fchown=no
18134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18135 conftest$ac_exeext conftest.$ac_ext
18137 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
18138 $as_echo "$ac_cv_func_fchown" >&6; }
18139 if test $ac_cv_func_fchown = yes; then
18142 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
18155 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
18156 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18158 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
18159 # programs in the package would end up linked with that potentially-shared
18160 # library, inducing unnecessary run-time overhead.
18161 gl_saved_libs=$LIBS
18162 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
18163 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18164 if test "${ac_cv_search_clock_gettime+set}" = set; then
18165 $as_echo_n "(cached) " >&6
18167 ac_func_search_save_LIBS=$LIBS
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18181 char clock_gettime ();
18185 return clock_gettime ();
18190 for ac_lib in '' rt posix4; do
18191 if test -z "$ac_lib"; then
18192 ac_res="none required"
18195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18204 $as_echo "$ac_try_echo") >&5
18205 (eval "$ac_link") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1 >conftest.err
18209 cat conftest.err >&5
18210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest$ac_exeext &&
18215 $as_test_x conftest$ac_exeext; then
18216 ac_cv_search_clock_gettime=$ac_res
18218 $as_echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18226 if test "${ac_cv_search_clock_gettime+set}" = set; then
18230 if test "${ac_cv_search_clock_gettime+set}" = set; then
18233 ac_cv_search_clock_gettime=no
18235 rm conftest.$ac_ext
18236 LIBS=$ac_func_search_save_LIBS
18238 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
18239 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18240 ac_res=$ac_cv_search_clock_gettime
18241 if test "$ac_res" != no; then
18242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18243 test "$ac_cv_search_clock_gettime" = "none required" ||
18244 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
18250 for ac_func in clock_gettime clock_settime
18252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18254 $as_echo_n "checking for $ac_func... " >&6; }
18255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18256 $as_echo_n "(cached) " >&6
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18266 #define $ac_func innocuous_$ac_func
18268 /* System header to define __stub macros and hopefully few prototypes,
18269 which can conflict with char $ac_func (); below.
18270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18271 <limits.h> exists even on freestanding compilers. */
18274 # include <limits.h>
18276 # include <assert.h>
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18288 /* The GNU C library defines this for functions which it implements
18289 to always fail with ENOSYS. Some functions are actually named
18290 something starting with __ and the normal name is an alias. */
18291 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 return $ac_func ();
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18310 $as_echo "$ac_try_echo") >&5
18311 (eval "$ac_link") 2>conftest.er1
18313 grep -v '^ *+' conftest.er1 >conftest.err
18315 cat conftest.err >&5
18316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } && {
18318 test -z "$ac_c_werror_flag" ||
18319 test ! -s conftest.err
18320 } && test -s conftest$ac_exeext &&
18321 $as_test_x conftest$ac_exeext; then
18322 eval "$as_ac_var=yes"
18324 $as_echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 eval "$as_ac_var=no"
18330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18331 conftest$ac_exeext conftest.$ac_ext
18333 ac_res=`eval 'as_val=${'$as_ac_var'}
18334 $as_echo "$as_val"'`
18335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18336 $as_echo "$ac_res" >&6; }
18337 if test `eval 'as_val=${'$as_ac_var'}
18338 $as_echo "$as_val"'` = yes; then
18339 cat >>confdefs.h <<_ACEOF
18340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 LIBS=$gl_saved_libs
18349 gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
18352 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
18358 cat >>confdefs.h <<\_ACEOF
18359 #define GNULIB_CLOSE_STREAM 1
18364 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
18371 gl_LIBOBJS="$gl_LIBOBJS cycle-check.$ac_objext"
18373 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
18374 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18375 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
18376 $as_echo_n "(cached) " >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18385 #include <sys/types.h>
18386 #include <dirent.h>
18391 struct dirent dp; dp.d_ino = 0;
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18403 $as_echo "$ac_try_echo") >&5
18404 (eval "$ac_link") 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && {
18411 test -z "$ac_c_werror_flag" ||
18412 test ! -s conftest.err
18413 } && test -s conftest$ac_exeext &&
18414 $as_test_x conftest$ac_exeext; then
18415 jm_cv_struct_dirent_d_ino=yes
18417 $as_echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 jm_cv_struct_dirent_d_ino=no
18423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18424 conftest$ac_exeext conftest.$ac_ext
18428 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
18429 $as_echo "$jm_cv_struct_dirent_d_ino" >&6; }
18430 if test $jm_cv_struct_dirent_d_ino = yes; then
18432 cat >>confdefs.h <<\_ACEOF
18433 #define D_INO_IN_DIRENT 1
18439 { $as_echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
18440 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18441 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
18442 $as_echo_n "(cached) " >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18451 #include <sys/types.h>
18452 #include <dirent.h>
18457 struct dirent dp; dp.d_type = 0;
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18469 $as_echo "$ac_try_echo") >&5
18470 (eval "$ac_link") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && {
18477 test -z "$ac_c_werror_flag" ||
18478 test ! -s conftest.err
18479 } && test -s conftest$ac_exeext &&
18480 $as_test_x conftest$ac_exeext; then
18481 jm_cv_struct_dirent_d_type=yes
18483 $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 jm_cv_struct_dirent_d_type=no
18489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18490 conftest$ac_exeext conftest.$ac_ext
18494 { $as_echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
18495 $as_echo "$jm_cv_struct_dirent_d_type" >&6; }
18496 if test $jm_cv_struct_dirent_d_type = yes; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_STRUCT_DIRENT_D_TYPE 1
18509 for ac_func in dirfd
18511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18513 $as_echo_n "checking for $ac_func... " >&6; }
18514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18515 $as_echo_n "(cached) " >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18525 #define $ac_func innocuous_$ac_func
18527 /* System header to define __stub macros and hopefully few prototypes,
18528 which can conflict with char $ac_func (); below.
18529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18530 <limits.h> exists even on freestanding compilers. */
18533 # include <limits.h>
18535 # include <assert.h>
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18547 /* The GNU C library defines this for functions which it implements
18548 to always fail with ENOSYS. Some functions are actually named
18549 something starting with __ and the normal name is an alias. */
18550 #if defined __stub_$ac_func || defined __stub___$ac_func
18557 return $ac_func ();
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18569 $as_echo "$ac_try_echo") >&5
18570 (eval "$ac_link") 2>conftest.er1
18572 grep -v '^ *+' conftest.er1 >conftest.err
18574 cat conftest.err >&5
18575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } && {
18577 test -z "$ac_c_werror_flag" ||
18578 test ! -s conftest.err
18579 } && test -s conftest$ac_exeext &&
18580 $as_test_x conftest$ac_exeext; then
18581 eval "$as_ac_var=yes"
18583 $as_echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 eval "$as_ac_var=no"
18589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18590 conftest$ac_exeext conftest.$ac_ext
18592 ac_res=`eval 'as_val=${'$as_ac_var'}
18593 $as_echo "$as_val"'`
18594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 if test `eval 'as_val=${'$as_ac_var'}
18597 $as_echo "$as_val"'` = yes; then
18598 cat >>confdefs.h <<_ACEOF
18599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
18606 $as_echo_n "checking whether dirfd is declared... " >&6; }
18607 if test "${ac_cv_have_decl_dirfd+set}" = set; then
18608 $as_echo_n "(cached) " >&6
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 #include <sys/types.h>
18617 #include <dirent.h>
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18637 $as_echo "$ac_try_echo") >&5
18638 (eval "$ac_compile") 2>conftest.er1
18640 grep -v '^ *+' conftest.er1 >conftest.err
18642 cat conftest.err >&5
18643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } && {
18645 test -z "$ac_c_werror_flag" ||
18646 test ! -s conftest.err
18647 } && test -s conftest.$ac_objext; then
18648 ac_cv_have_decl_dirfd=yes
18650 $as_echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 ac_cv_have_decl_dirfd=no
18656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
18659 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
18660 if test $ac_cv_have_decl_dirfd = yes; then
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_DECL_DIRFD 1
18668 cat >>confdefs.h <<_ACEOF
18669 #define HAVE_DECL_DIRFD 0
18677 { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
18678 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18679 if test "${gl_cv_func_dirfd_macro+set}" = set; then
18680 $as_echo_n "(cached) " >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18689 #include <sys/types.h>
18690 #include <dirent.h>
18692 dirent_header_defines_dirfd
18695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18696 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
18697 gl_cv_func_dirfd_macro=yes
18699 gl_cv_func_dirfd_macro=no
18704 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
18705 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18707 # Use the replacement only if we have no function, macro,
18708 # or declaration with that name.
18709 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
18712 for ac_func in dirfd
18714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 $as_echo_n "checking for $ac_func... " >&6; }
18717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18718 $as_echo_n "(cached) " >&6
18720 cat >conftest.$ac_ext <<_ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define $ac_func innocuous_$ac_func
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char $ac_func (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18736 # include <limits.h>
18738 # include <assert.h>
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 return $ac_func ();
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18772 $as_echo "$ac_try_echo") >&5
18773 (eval "$ac_link") 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && {
18780 test -z "$ac_c_werror_flag" ||
18781 test ! -s conftest.err
18782 } && test -s conftest$ac_exeext &&
18783 $as_test_x conftest$ac_exeext; then
18784 eval "$as_ac_var=yes"
18786 $as_echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 eval "$as_ac_var=no"
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18795 ac_res=`eval 'as_val=${'$as_ac_var'}
18796 $as_echo "$as_val"'`
18797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18798 $as_echo "$ac_res" >&6; }
18799 if test `eval 'as_val=${'$as_ac_var'}
18800 $as_echo "$as_val"'` = yes; then
18801 cat >>confdefs.h <<_ACEOF
18802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18810 { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
18811 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18812 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
18813 $as_echo_n "(cached) " >&6
18816 dirfd_save_CFLAGS=$CFLAGS
18817 for ac_expr in d_fd dd_fd; do
18819 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #include <sys/types.h>
18827 #include <dirent.h>
18831 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844 (eval "$ac_compile") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest.$ac_objext; then
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 CFLAGS=$dirfd_save_CFLAGS
18865 test "$dir_fd_found" = yes && break
18867 test "$dir_fd_found" = yes || ac_expr=no_such_member
18869 gl_cv_sys_dir_fd_member_name=$ac_expr
18873 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
18874 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18875 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
18877 cat >>confdefs.h <<_ACEOF
18878 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18887 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
18888 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
18889 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
18897 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
18898 $as_echo_n "checking whether // is distinct from /... " >&6; }
18899 if test "${gl_cv_double_slash_root+set}" = set; then
18900 $as_echo_n "(cached) " >&6
18902 if test x"$cross_compiling" = xyes ; then
18903 # When cross-compiling, there is no way to tell whether // is special
18904 # short of a list of hosts. However, the only known hosts to date
18905 # that have a distinct // are Apollo DomainOS (too old to port to),
18906 # Cygwin, and z/OS. If anyone knows of another system for which // has
18907 # special semantics and is distinct from /, please report it to
18908 # <bug-gnulib@gnu.org>.
18910 *-cygwin | i370-ibm-openedition)
18911 gl_cv_double_slash_root=yes ;;
18913 # Be optimistic and assume that / and // are the same when we
18915 gl_cv_double_slash_root='unknown, assuming no' ;;
18918 set x `ls -di / //`
18919 if test $2 = $4 && wc //dev/null >/dev/null 2>&1; then
18920 gl_cv_double_slash_root=no
18922 gl_cv_double_slash_root=yes
18926 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
18927 $as_echo "$gl_cv_double_slash_root" >&6; }
18928 if test "$gl_cv_double_slash_root" = yes; then
18930 cat >>confdefs.h <<\_ACEOF
18931 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
18944 if test $ac_cv_func_dup2 = no; then
18946 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18954 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18955 $as_echo_n "checking for error_at_line... " >&6; }
18956 if test "${ac_cv_lib_error_at_line+set}" = set; then
18957 $as_echo_n "(cached) " >&6
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18969 error_at_line (0, 0, "", 0, "an error occurred");
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982 (eval "$ac_link") 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest$ac_exeext &&
18992 $as_test_x conftest$ac_exeext; then
18993 ac_cv_lib_error_at_line=yes
18995 $as_echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_cv_lib_error_at_line=no
19001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002 conftest$ac_exeext conftest.$ac_ext
19004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
19005 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19006 if test $ac_cv_lib_error_at_line = no; then
19007 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
19023 for ac_func in euidaccess
19025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19026 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19027 $as_echo_n "checking for $ac_func... " >&6; }
19028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19029 $as_echo_n "(cached) " >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19039 #define $ac_func innocuous_$ac_func
19041 /* System header to define __stub macros and hopefully few prototypes,
19042 which can conflict with char $ac_func (); below.
19043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19044 <limits.h> exists even on freestanding compilers. */
19047 # include <limits.h>
19049 # include <assert.h>
19054 /* Override any GCC internal prototype to avoid an error.
19055 Use char because int might match the return type of a GCC
19056 builtin and then its argument prototype would still apply. */
19061 /* The GNU C library defines this for functions which it implements
19062 to always fail with ENOSYS. Some functions are actually named
19063 something starting with __ and the normal name is an alias. */
19064 #if defined __stub_$ac_func || defined __stub___$ac_func
19071 return $ac_func ();
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084 (eval "$ac_link") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest$ac_exeext &&
19094 $as_test_x conftest$ac_exeext; then
19095 eval "$as_ac_var=yes"
19097 $as_echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 eval "$as_ac_var=no"
19103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19104 conftest$ac_exeext conftest.$ac_ext
19106 ac_res=`eval 'as_val=${'$as_ac_var'}
19107 $as_echo "$as_val"'`
19108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19109 $as_echo "$ac_res" >&6; }
19110 if test `eval 'as_val=${'$as_ac_var'}
19111 $as_echo "$as_val"'` = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19117 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19121 if test $ac_cv_func_euidaccess = no; then
19135 # Solaris 9 needs -lgen to get the eaccess function.
19136 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
19137 # programs in the package would end up linked with that potentially-shared
19138 # library, inducing unnecessary run-time overhead.
19139 gl_saved_libs=$LIBS
19140 { $as_echo "$as_me:$LINENO: checking for library containing eaccess" >&5
19141 $as_echo_n "checking for library containing eaccess... " >&6; }
19142 if test "${ac_cv_search_eaccess+set}" = set; then
19143 $as_echo_n "(cached) " >&6
19145 ac_func_search_save_LIBS=$LIBS
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19168 for ac_lib in '' gen; do
19169 if test -z "$ac_lib"; then
19170 ac_res="none required"
19173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19182 $as_echo "$ac_try_echo") >&5
19183 (eval "$ac_link") 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest$ac_exeext &&
19193 $as_test_x conftest$ac_exeext; then
19194 ac_cv_search_eaccess=$ac_res
19196 $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 if test "${ac_cv_search_eaccess+set}" = set; then
19208 if test "${ac_cv_search_eaccess+set}" = set; then
19211 ac_cv_search_eaccess=no
19213 rm conftest.$ac_ext
19214 LIBS=$ac_func_search_save_LIBS
19216 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
19217 $as_echo "$ac_cv_search_eaccess" >&6; }
19218 ac_res=$ac_cv_search_eaccess
19219 if test "$ac_res" != no; then
19220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19221 test "$ac_cv_search_eaccess" = "none required" ||
19222 LIB_EACCESS=$ac_cv_search_eaccess
19227 for ac_func in eaccess
19229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19231 $as_echo_n "checking for $ac_func... " >&6; }
19232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19233 $as_echo_n "(cached) " >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19243 #define $ac_func innocuous_$ac_func
19245 /* System header to define __stub macros and hopefully few prototypes,
19246 which can conflict with char $ac_func (); below.
19247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19248 <limits.h> exists even on freestanding compilers. */
19251 # include <limits.h>
19253 # include <assert.h>
19258 /* Override any GCC internal prototype to avoid an error.
19259 Use char because int might match the return type of a GCC
19260 builtin and then its argument prototype would still apply. */
19265 /* The GNU C library defines this for functions which it implements
19266 to always fail with ENOSYS. Some functions are actually named
19267 something starting with __ and the normal name is an alias. */
19268 #if defined __stub_$ac_func || defined __stub___$ac_func
19275 return $ac_func ();
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_link") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19299 eval "$as_ac_var=yes"
19301 $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 eval "$as_ac_var=no"
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308 conftest$ac_exeext conftest.$ac_ext
19310 ac_res=`eval 'as_val=${'$as_ac_var'}
19311 $as_echo "$as_val"'`
19312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19313 $as_echo "$ac_res" >&6; }
19314 if test `eval 'as_val=${'$as_ac_var'}
19315 $as_echo "$as_val"'` = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19323 LIBS=$gl_saved_libs
19328 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
19331 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
19343 if test $ac_cv_func_fchdir = no; then
19345 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
19348 cat >>confdefs.h <<\_ACEOF
19349 #define FCHDIR_REPLACEMENT 1
19352 { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
19353 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
19354 if test "${gl_cv_absolute_dirent_h+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19362 if test $ac_cv_header_dirent_h = yes; then
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 #include <dirent.h>
19371 gl_cv_absolute_dirent_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19372 sed -n '\#/dirent.h#{s#.*"\(.*/dirent.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19376 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_dirent_h" >&5
19377 $as_echo "$gl_cv_absolute_dirent_h" >&6; }
19378 cat >>confdefs.h <<_ACEOF
19379 #define ABSOLUTE_DIRENT_H "$gl_cv_absolute_dirent_h"
19383 ABSOLUTE_DIRENT_H=\"$gl_cv_absolute_dirent_h\"
19384 DIRENT_H='dirent.h'
19396 { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
19397 $as_echo_n "checking for working fcntl.h... " >&6; }
19398 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
19399 $as_echo_n "(cached) " >&6
19401 if test "$cross_compiling" = yes; then
19402 gl_cv_header_working_fcntl_h=cross-compiling
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 #include <sys/types.h>
19411 #include <sys/stat.h>
19412 #include <unistd.h>
19415 #define O_NOATIME 0
19418 #define O_NOFOLLOW 0
19420 static int const constants[] =
19422 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19423 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19430 int status = !constants;
19432 static char const sym[] = "conftest.sym";
19433 if (symlink (".", sym) != 0
19434 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
19438 static char const file[] = "confdefs.h";
19439 int fd = open (file, O_RDONLY | O_NOATIME);
19441 struct stat st0, st1;
19443 || fstat (fd, &st0) != 0
19445 || read (fd, &c, 1) != 1
19447 || stat (file, &st1) != 0
19448 || st0.st_atime != st1.st_atime)
19456 rm -f conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19463 $as_echo "$ac_try_echo") >&5
19464 (eval "$ac_link") 2>&5
19466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19468 { (case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19473 $as_echo "$ac_try_echo") >&5
19474 (eval "$ac_try") 2>&5
19476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 gl_cv_header_working_fcntl_h=yes
19480 $as_echo "$as_me: program exited with status $ac_status" >&5
19481 $as_echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ( exit $ac_status )
19486 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19487 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19488 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19489 *) gl_cv_header_working_fcntl_h='no';;
19492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19497 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
19498 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19500 case $gl_cv_header_working_fcntl_h in #(
19501 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_WORKING_O_NOATIME $ac_val
19510 case $gl_cv_header_working_fcntl_h in #(
19511 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19520 { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
19521 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19522 if test "${gl_cv_absolute_fcntl_h+set}" = set; then
19523 $as_echo_n "(cached) " >&6
19530 if test $ac_cv_header_fcntl_h = yes; then
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19539 gl_cv_absolute_fcntl_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19540 sed -n '\#/fcntl.h#{s#.*"\(.*/fcntl.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
19544 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_fcntl_h" >&5
19545 $as_echo "$gl_cv_absolute_fcntl_h" >&6; }
19546 cat >>confdefs.h <<_ACEOF
19547 #define ABSOLUTE_FCNTL_H "$gl_cv_absolute_fcntl_h"
19551 ABSOLUTE_FCNTL_H=\"$gl_cv_absolute_fcntl_h\"
19557 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
19558 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
19562 cat >>confdefs.h <<\_ACEOF
19563 #define GNULIB_FCNTL_SAFER 1
19568 gl_LIBOBJS="$gl_LIBOBJS file-type.$ac_objext"
19571 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19572 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
19573 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19574 $as_echo_n "(cached) " >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 $ac_includes_default
19586 static struct stat ac_aggr;
19587 if (ac_aggr.st_blocks)
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19600 $as_echo "$ac_try_echo") >&5
19601 (eval "$ac_compile") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest.$ac_objext; then
19611 ac_cv_member_struct_stat_st_blocks=yes
19613 $as_echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 $ac_includes_default
19626 static struct stat ac_aggr;
19627 if (sizeof ac_aggr.st_blocks)
19633 rm -f conftest.$ac_objext
19634 if { (ac_try="$ac_compile"
19635 case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19640 $as_echo "$ac_try_echo") >&5
19641 (eval "$ac_compile") 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest.$ac_objext; then
19651 ac_cv_member_struct_stat_st_blocks=yes
19653 $as_echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_member_struct_stat_st_blocks=no
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19665 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
19666 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_ST_BLOCKS 1
19678 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
19682 if test $ac_cv_member_struct_stat_st_blocks = no; then
19696 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
19703 gl_LIBOBJS="$gl_LIBOBJS filenamecat.$ac_objext"
19713 { $as_echo "$as_me:$LINENO: checking for flexible array member" >&5
19714 $as_echo_n "checking for flexible array member... " >&6; }
19715 if test "${ac_cv_c_flexmember+set}" = set; then
19716 $as_echo_n "(cached) " >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <stdlib.h>
19726 #include <stddef.h>
19727 struct s { int n; double d[]; };
19731 int m = getchar ();
19732 struct s *p = malloc (offsetof (struct s, d)
19733 + m * sizeof (double));
19735 return p->d != (double *) NULL;
19740 rm -f conftest.$ac_objext
19741 if { (ac_try="$ac_compile"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19747 $as_echo "$ac_try_echo") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest.$ac_objext; then
19758 ac_cv_c_flexmember=yes
19760 $as_echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_cv_c_flexmember=no
19766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
19769 $as_echo "$ac_cv_c_flexmember" >&6; }
19770 if test $ac_cv_c_flexmember = yes; then
19772 cat >>confdefs.h <<\_ACEOF
19773 #define FLEXIBLE_ARRAY_MEMBER
19777 cat >>confdefs.h <<\_ACEOF
19778 #define FLEXIBLE_ARRAY_MEMBER 1
19783 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
19788 { $as_echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
19789 $as_echo_n "checking for working GNU fnmatch... " >&6; }
19790 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
19791 $as_echo_n "(cached) " >&6
19793 if test "$cross_compiling" = yes; then
19794 ac_cv_func_fnmatch_gnu=cross
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 #include <fnmatch.h>
19804 y (char const *pattern, char const *string, int flags)
19806 return fnmatch (pattern, string, flags) == 0;
19809 n (char const *pattern, char const *string, int flags)
19811 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19817 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19818 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19819 static char const A_1[] = { 'A' - 1, 0 };
19820 static char const A01[] = { 'A' + 1, 0 };
19821 static char const a_1[] = { 'a' - 1, 0 };
19822 static char const a01[] = { 'a' + 1, 0 };
19823 static char const bs_1[] = { '\\\\' - 1, 0 };
19824 static char const bs01[] = { '\\\\' + 1, 0 };
19827 && y ("a*", "abc", 0)
19828 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19829 && y ("a\\\\bc", "abc", 0)
19830 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19831 && y ("*x", ".x", 0)
19832 && n ("*x", ".x", FNM_PERIOD)
19833 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
19834 && y (apat, "\\\\", 0) && y (apat, "a", 0)
19835 && n (Apat, A_1, 0) == ('A' < '\\\\')
19836 && n (apat, a_1, 0) == ('a' < '\\\\')
19837 && y (Apat, A01, 0) == ('A' < '\\\\')
19838 && y (apat, a01, 0) == ('a' < '\\\\')
19839 && y (Apat, bs_1, 0) == ('A' < '\\\\')
19840 && y (apat, bs_1, 0) == ('a' < '\\\\')
19841 && n (Apat, bs01, 0) == ('A' < '\\\\')
19842 && n (apat, bs01, 0) == ('a' < '\\\\')
19843 && y ("xxXX", "xXxX", FNM_CASEFOLD)
19844 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
19845 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
19846 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
19847 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
19848 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR));
19853 rm -f conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861 (eval "$ac_link") 2>&5
19863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19870 $as_echo "$ac_try_echo") >&5
19871 (eval "$ac_try") 2>&5
19873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_func_fnmatch_gnu=yes
19877 $as_echo "$as_me: program exited with status $ac_status" >&5
19878 $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ( exit $ac_status )
19882 ac_cv_func_fnmatch_gnu=no
19884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
19890 $as_echo "$ac_cv_func_fnmatch_gnu" >&6; }
19891 if test $ac_cv_func_fnmatch_gnu = yes; then
19892 rm -f lib/fnmatch.h
19894 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
19895 $as_echo_n "checking whether isblank is declared... " >&6; }
19896 if test "${ac_cv_have_decl_isblank+set}" = set; then
19897 $as_echo_n "(cached) " >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest.$ac_objext; then
19936 ac_cv_have_decl_isblank=yes
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_cv_have_decl_isblank=no
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
19947 $as_echo "$ac_cv_have_decl_isblank" >&6; }
19948 if test $ac_cv_have_decl_isblank = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_DECL_ISBLANK 1
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_DECL_ISBLANK 0
19988 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
19989 FNMATCH_H=fnmatch.h
19994 if test $ac_cv_func_fnmatch_gnu != yes; then
19996 cat >>confdefs.h <<\_ACEOF
19997 #define fnmatch gnu_fnmatch
20004 gl_LIBOBJS="$gl_LIBOBJS fopen-safer.$ac_objext"
20008 cat >>confdefs.h <<\_ACEOF
20009 #define GNULIB_FOPEN_SAFER 1
20021 for ac_func in __fpending
20023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20025 $as_echo_n "checking for $ac_func... " >&6; }
20026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20027 $as_echo_n "(cached) " >&6
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20037 #define $ac_func innocuous_$ac_func
20039 /* System header to define __stub macros and hopefully few prototypes,
20040 which can conflict with char $ac_func (); below.
20041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042 <limits.h> exists even on freestanding compilers. */
20045 # include <limits.h>
20047 # include <assert.h>
20052 /* Override any GCC internal prototype to avoid an error.
20053 Use char because int might match the return type of a GCC
20054 builtin and then its argument prototype would still apply. */
20059 /* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062 #if defined __stub_$ac_func || defined __stub___$ac_func
20069 return $ac_func ();
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082 (eval "$ac_link") 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest$ac_exeext &&
20092 $as_test_x conftest$ac_exeext; then
20093 eval "$as_ac_var=yes"
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 eval "$as_ac_var=no"
20101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20102 conftest$ac_exeext conftest.$ac_ext
20104 ac_res=`eval 'as_val=${'$as_ac_var'}
20105 $as_echo "$as_val"'`
20106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20107 $as_echo "$ac_res" >&6; }
20108 if test `eval 'as_val=${'$as_ac_var'}
20109 $as_echo "$as_val"'` = yes; then
20110 cat >>confdefs.h <<_ACEOF
20111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20120 # include <stdio.h>
20121 # if HAVE_STDIO_EXT_H
20122 # include <stdio_ext.h>
20125 { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
20126 $as_echo_n "checking whether __fpending is declared... " >&6; }
20127 if test "${ac_cv_have_decl___fpending+set}" = set; then
20128 $as_echo_n "(cached) " >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 ac_cv_have_decl___fpending=yes
20169 $as_echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_cv_have_decl___fpending=no
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
20178 $as_echo "$ac_cv_have_decl___fpending" >&6; }
20179 if test $ac_cv_have_decl___fpending = yes; then
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_DECL___FPENDING 1
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_DECL___FPENDING 0
20195 if test $ac_cv_func___fpending = no; then
20196 { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
20197 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20198 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
20199 $as_echo_n "(cached) " >&6
20205 'fp->_IO_write_ptr - fp->_IO_write_base' \
20207 '# traditional Unix' \
20208 'fp->_ptr - fp->_base' \
20211 'fp->_p - fp->_bf._base' \
20213 '# SCO, Unixware' \
20214 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20217 'fp->__bufp - fp->__buffer' \
20219 '# old glibc iostream?' \
20220 'fp->_pptr - fp->_pbase' \
20223 '(*fp)->_ptr - (*fp)->_base' \
20225 '# e.g., DGUX R4.11; the info is not available' \
20229 # Skip each embedded comment.
20230 case "$ac_expr" in '#'*) continue;; esac
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20243 FILE *fp = stdin; (void) ($ac_expr);
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
20269 $as_echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 test "$fp_done" = yes && break
20279 ac_cv_sys_pending_output_n_bytes=$ac_expr
20283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
20284 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20286 cat >>confdefs.h <<_ACEOF
20287 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20293 gl_LIBOBJS="$gl_LIBOBJS fprintftime.$ac_objext"
20296 { $as_echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
20297 $as_echo_n "checking whether free (NULL) is known to work... " >&6; }
20298 if test "${gl_cv_func_free+set}" = set; then
20299 $as_echo_n "(cached) " >&6
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 #include <unistd.h>
20311 #if _POSIX_VERSION < 199009L && \
20312 (defined unix || defined _unix || defined _unix_ \
20313 || defined __unix || defined __unix__)
20314 #error "'free (NULL)' is not known to work"
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest.$ac_objext; then
20338 gl_cv_func_free=yes
20340 $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
20349 $as_echo "$gl_cv_func_free" >&6; }
20351 if test $gl_cv_func_free = no; then
20352 gl_LIBOBJS="$gl_LIBOBJS free.$ac_objext"
20354 cat >>confdefs.h <<\_ACEOF
20355 #define free rpl_free
20376 for ac_header in sys/mount.h
20378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20380 $as_echo_n "checking for $ac_header... " >&6; }
20381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20382 $as_echo_n "(cached) " >&6
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20391 #if HAVE_SYS_PARAM_H
20392 #include <sys/param.h>
20395 #include <$ac_header>
20397 rm -f conftest.$ac_objext
20398 if { (ac_try="$ac_compile"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20404 $as_echo "$ac_try_echo") >&5
20405 (eval "$ac_compile") 2>conftest.er1
20407 grep -v '^ *+' conftest.er1 >conftest.err
20409 cat conftest.err >&5
20410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest.$ac_objext; then
20415 eval "$as_ac_Header=yes"
20417 $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 eval "$as_ac_Header=no"
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 ac_res=`eval 'as_val=${'$as_ac_Header'}
20426 $as_echo "$as_val"'`
20427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20428 $as_echo "$ac_res" >&6; }
20429 if test `eval 'as_val=${'$as_ac_Header'}
20430 $as_echo "$as_val"'` = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20441 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
20442 $as_echo "$as_me: checking how to get file system space usage" >&6;}
20443 ac_fsusage_space=no
20445 # Perform only the link test since it seems there are no variants of the
20446 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
20447 # because that got a false positive on SCO OSR5. Adding the declaration
20448 # of a `struct statvfs' causes this test to fail (as it should) on such
20449 # systems. That system is reported to work fine with STAT_STATFS4 which
20450 # is what it gets when this test fails.
20451 if test $ac_fsusage_space = no; then
20453 { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
20454 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
20455 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
20456 $as_echo_n "(cached) " >&6
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 #include <sys/types.h>
20465 #if defined __GLIBC__ && !defined __BEOS__
20466 Do not use statvfs on systems with GNU libc, because that function stats
20467 all preceding entries in /proc/mounts, and that makes df hang if even
20468 one of the corresponding file systems is hard-mounted, but not available.
20469 statvfs in GNU libc on BeOS operates differently: it only makes a system
20472 #include <sys/statvfs.h>
20476 struct statvfs fsd; statvfs (0, &fsd);
20481 rm -f conftest.$ac_objext conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488 $as_echo "$ac_try_echo") >&5
20489 (eval "$ac_link") 2>conftest.er1
20491 grep -v '^ *+' conftest.er1 >conftest.err
20493 cat conftest.err >&5
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest$ac_exeext &&
20499 $as_test_x conftest$ac_exeext; then
20500 fu_cv_sys_stat_statvfs=yes
20502 $as_echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 fu_cv_sys_stat_statvfs=no
20508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20509 conftest$ac_exeext conftest.$ac_ext
20511 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
20512 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
20513 if test $fu_cv_sys_stat_statvfs = yes; then
20514 ac_fsusage_space=yes
20516 cat >>confdefs.h <<\_ACEOF
20517 #define STAT_STATVFS 1
20523 if test $ac_fsusage_space = no; then
20524 # DEC Alpha running OSF/1
20525 { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
20526 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
20527 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
20528 $as_echo_n "(cached) " >&6
20530 if test "$cross_compiling" = yes; then
20531 fu_cv_sys_stat_statfs3_osf1=no
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 #include <sys/param.h>
20541 #include <sys/types.h>
20542 #include <sys/mount.h>
20548 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
20551 rm -f conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>&5
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_try") 2>&5
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 fu_cv_sys_stat_statfs3_osf1=yes
20575 $as_echo "$as_me: program exited with status $ac_status" >&5
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ( exit $ac_status )
20580 fu_cv_sys_stat_statfs3_osf1=no
20582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20588 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
20589 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
20590 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
20591 ac_fsusage_space=yes
20593 cat >>confdefs.h <<\_ACEOF
20594 #define STAT_STATFS3_OSF1 1
20600 if test $ac_fsusage_space = no; then
20602 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
20603 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
20604 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
20605 $as_echo_n "(cached) " >&6
20607 if test "$cross_compiling" = yes; then
20608 fu_cv_sys_stat_statfs2_bsize=no
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20617 #ifdef HAVE_SYS_PARAM_H
20618 #include <sys/param.h>
20620 #ifdef HAVE_SYS_MOUNT_H
20621 #include <sys/mount.h>
20623 #ifdef HAVE_SYS_VFS_H
20624 #include <sys/vfs.h>
20631 return statfs (".", &fsd) != 0;
20634 rm -f conftest$ac_exeext
20635 if { (ac_try="$ac_link"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_link") 2>&5
20644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652 (eval "$ac_try") 2>&5
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 fu_cv_sys_stat_statfs2_bsize=yes
20658 $as_echo "$as_me: program exited with status $ac_status" >&5
20659 $as_echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ( exit $ac_status )
20663 fu_cv_sys_stat_statfs2_bsize=no
20665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20671 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
20672 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
20673 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
20674 ac_fsusage_space=yes
20676 cat >>confdefs.h <<\_ACEOF
20677 #define STAT_STATFS2_BSIZE 1
20683 if test $ac_fsusage_space = no; then
20685 { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
20686 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
20687 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
20688 $as_echo_n "(cached) " >&6
20690 if test "$cross_compiling" = yes; then
20691 fu_cv_sys_stat_statfs4=no
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 #include <sys/types.h>
20700 #include <sys/statfs.h>
20705 return statfs (".", &fsd, sizeof fsd, 0) != 0;
20708 rm -f conftest$ac_exeext
20709 if { (ac_try="$ac_link"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20715 $as_echo "$ac_try_echo") >&5
20716 (eval "$ac_link") 2>&5
20718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725 $as_echo "$ac_try_echo") >&5
20726 (eval "$ac_try") 2>&5
20728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 fu_cv_sys_stat_statfs4=yes
20732 $as_echo "$as_me: program exited with status $ac_status" >&5
20733 $as_echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ( exit $ac_status )
20737 fu_cv_sys_stat_statfs4=no
20739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20745 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
20746 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
20747 if test $fu_cv_sys_stat_statfs4 = yes; then
20748 ac_fsusage_space=yes
20750 cat >>confdefs.h <<\_ACEOF
20751 #define STAT_STATFS4 1
20757 if test $ac_fsusage_space = no; then
20758 # 4.4BSD and NetBSD
20759 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
20760 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
20761 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
20762 $as_echo_n "(cached) " >&6
20764 if test "$cross_compiling" = yes; then
20765 fu_cv_sys_stat_statfs2_fsize=no
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 #include <sys/types.h>
20774 #ifdef HAVE_SYS_PARAM_H
20775 #include <sys/param.h>
20777 #ifdef HAVE_SYS_MOUNT_H
20778 #include <sys/mount.h>
20785 return statfs (".", &fsd) != 0;
20788 rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796 (eval "$ac_link") 2>&5
20798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20805 $as_echo "$ac_try_echo") >&5
20806 (eval "$ac_try") 2>&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 fu_cv_sys_stat_statfs2_fsize=yes
20812 $as_echo "$as_me: program exited with status $ac_status" >&5
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ( exit $ac_status )
20817 fu_cv_sys_stat_statfs2_fsize=no
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20825 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
20826 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
20827 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
20828 ac_fsusage_space=yes
20830 cat >>confdefs.h <<\_ACEOF
20831 #define STAT_STATFS2_FSIZE 1
20837 if test $ac_fsusage_space = no; then
20839 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
20840 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
20841 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
20842 $as_echo_n "(cached) " >&6
20844 if test "$cross_compiling" = yes; then
20845 fu_cv_sys_stat_fs_data=no
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <sys/types.h>
20854 #ifdef HAVE_SYS_PARAM_H
20855 #include <sys/param.h>
20857 #ifdef HAVE_SYS_MOUNT_H
20858 #include <sys/mount.h>
20860 #ifdef HAVE_SYS_FS_TYPES_H
20861 #include <sys/fs_types.h>
20866 struct fs_data fsd;
20867 /* Ultrix's statfs returns 1 for success,
20868 0 for not mounted, -1 for failure. */
20869 return statfs (".", &fsd) != 1;
20872 rm -f conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20879 $as_echo "$ac_try_echo") >&5
20880 (eval "$ac_link") 2>&5
20882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20889 $as_echo "$ac_try_echo") >&5
20890 (eval "$ac_try") 2>&5
20892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 fu_cv_sys_stat_fs_data=yes
20896 $as_echo "$as_me: program exited with status $ac_status" >&5
20897 $as_echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ( exit $ac_status )
20901 fu_cv_sys_stat_fs_data=no
20903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20909 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
20910 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
20911 if test $fu_cv_sys_stat_fs_data = yes; then
20912 ac_fsusage_space=yes
20914 cat >>confdefs.h <<\_ACEOF
20915 #define STAT_STATFS2_FS_DATA 1
20921 if test $ac_fsusage_space = no; then
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <sys/filsys.h>
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } >/dev/null && {
20946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20950 cat >>confdefs.h <<\_ACEOF
20951 #define STAT_READ_FILSYS 1
20954 ac_fsusage_space=yes
20956 $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20962 rm -f conftest.err conftest.$ac_ext
20965 if test $ac_fsusage_space = yes; then
20973 if test $gl_cv_fs_space = yes; then
20974 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
20980 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
20982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20985 $as_echo_n "checking for $ac_header... " >&6; }
20986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20987 $as_echo_n "(cached) " >&6
20989 ac_res=`eval 'as_val=${'$as_ac_Header'}
20990 $as_echo "$as_val"'`
20991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20992 $as_echo "$ac_res" >&6; }
20994 # Is the header compilable?
20995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20996 $as_echo_n "checking $ac_header usability... " >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 $ac_includes_default
21004 #include <$ac_header>
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014 (eval "$ac_compile") 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && {
21021 test -z "$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21023 } && test -s conftest.$ac_objext; then
21024 ac_header_compiler=yes
21026 $as_echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_header_compiler=no
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 $as_echo "$ac_header_compiler" >&6; }
21036 # Is the header present?
21037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 $as_echo_n "checking $ac_header presence... " >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <$ac_header>
21047 if { (ac_try="$ac_cpp conftest.$ac_ext"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null && {
21061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21064 ac_header_preproc=yes
21066 $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_preproc=no
21072 rm -f conftest.err conftest.$ac_ext
21073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21074 $as_echo "$ac_header_preproc" >&6; }
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21083 ac_header_preproc=yes
21086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21099 ## ------------------------------------ ##
21100 ## Report this to bug-coreutils@gnu.org ##
21101 ## ------------------------------------ ##
21103 ) | sed "s/^/$as_me: WARNING: /" >&2
21106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21107 $as_echo_n "checking for $ac_header... " >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21109 $as_echo_n "(cached) " >&6
21111 eval "$as_ac_Header=\$ac_header_preproc"
21113 ac_res=`eval 'as_val=${'$as_ac_Header'}
21114 $as_echo "$as_val"'`
21115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21116 $as_echo "$ac_res" >&6; }
21119 if test `eval 'as_val=${'$as_ac_Header'}
21120 $as_echo "$as_val"'` = yes; then
21121 cat >>confdefs.h <<_ACEOF
21122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21130 { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
21131 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
21132 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
21133 $as_echo_n "(cached) " >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21142 #if !defined(sun) && !defined(__sun)
21143 choke -- this is a workaround for a Sun-specific problem
21145 #include <sys/types.h>
21146 #include <sys/vfs.h>
21150 struct statfs t; long c = *(t.f_spare);
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21174 fu_cv_sys_truncating_statfs=yes
21176 $as_echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 fu_cv_sys_truncating_statfs=no
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 if test $fu_cv_sys_truncating_statfs = yes; then
21187 cat >>confdefs.h <<\_ACEOF
21188 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
21192 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
21193 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
21207 if test $ac_cv_func_ftruncate = no; then
21209 gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
21212 for ac_func in chsize
21214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21216 $as_echo_n "checking for $ac_func... " >&6; }
21217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21218 $as_echo_n "(cached) " >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21228 #define $ac_func innocuous_$ac_func
21230 /* System header to define __stub macros and hopefully few prototypes,
21231 which can conflict with char $ac_func (); below.
21232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21233 <limits.h> exists even on freestanding compilers. */
21236 # include <limits.h>
21238 # include <assert.h>
21243 /* Override any GCC internal prototype to avoid an error.
21244 Use char because int might match the return type of a GCC
21245 builtin and then its argument prototype would still apply. */
21250 /* The GNU C library defines this for functions which it implements
21251 to always fail with ENOSYS. Some functions are actually named
21252 something starting with __ and the normal name is an alias. */
21253 #if defined __stub_$ac_func || defined __stub___$ac_func
21260 return $ac_func ();
21265 rm -f conftest.$ac_objext conftest$ac_exeext
21266 if { (ac_try="$ac_link"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21272 $as_echo "$ac_try_echo") >&5
21273 (eval "$ac_link") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest$ac_exeext &&
21283 $as_test_x conftest$ac_exeext; then
21284 eval "$as_ac_var=yes"
21286 $as_echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 eval "$as_ac_var=no"
21292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21293 conftest$ac_exeext conftest.$ac_ext
21295 ac_res=`eval 'as_val=${'$as_ac_var'}
21296 $as_echo "$as_val"'`
21297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21298 $as_echo "$ac_res" >&6; }
21299 if test `eval 'as_val=${'$as_ac_var'}
21300 $as_echo "$as_val"'` = yes; then
21301 cat >>confdefs.h <<_ACEOF
21302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21311 # Yes, we know mingw lacks ftruncate.
21314 # If someone lacks ftruncate, make configure fail, and request
21315 # a bug report to inform us about it.
21316 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
21317 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
21318 Please report this, along with the output of \"uname -a\", to the
21319 bug-coreutils@gnu.org mailing list. To continue past this point,
21320 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21321 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21322 See \`config.log' for more details." >&5
21323 $as_echo "$as_me: error: Your system lacks the ftruncate function.
21324 Please report this, along with the output of \"uname -a\", to the
21325 bug-coreutils@gnu.org mailing list. To continue past this point,
21326 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
21327 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
21328 See \`config.log' for more details." >&2;}
21329 { (exit 1); exit 1; }; }
21340 gl_LIBOBJS="$gl_LIBOBJS fts.$ac_objext"
21343 gl_LIBOBJS="$gl_LIBOBJS openat-die.$ac_objext"
21344 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
21361 for ac_func in fchmodat mkdirat openat
21363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21365 $as_echo_n "checking for $ac_func... " >&6; }
21366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21367 $as_echo_n "(cached) " >&6
21369 cat >conftest.$ac_ext <<_ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21377 #define $ac_func innocuous_$ac_func
21379 /* System header to define __stub macros and hopefully few prototypes,
21380 which can conflict with char $ac_func (); below.
21381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21382 <limits.h> exists even on freestanding compilers. */
21385 # include <limits.h>
21387 # include <assert.h>
21392 /* Override any GCC internal prototype to avoid an error.
21393 Use char because int might match the return type of a GCC
21394 builtin and then its argument prototype would still apply. */
21399 /* The GNU C library defines this for functions which it implements
21400 to always fail with ENOSYS. Some functions are actually named
21401 something starting with __ and the normal name is an alias. */
21402 #if defined __stub_$ac_func || defined __stub___$ac_func
21409 return $ac_func ();
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21421 $as_echo "$ac_try_echo") >&5
21422 (eval "$ac_link") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest$ac_exeext &&
21432 $as_test_x conftest$ac_exeext; then
21433 eval "$as_ac_var=yes"
21435 $as_echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 eval "$as_ac_var=no"
21441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21442 conftest$ac_exeext conftest.$ac_ext
21444 ac_res=`eval 'as_val=${'$as_ac_var'}
21445 $as_echo "$as_val"'`
21446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21447 $as_echo "$ac_res" >&6; }
21448 if test `eval 'as_val=${'$as_ac_var'}
21449 $as_echo "$as_val"'` = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21455 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
21459 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
21461 yes+*) gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext";;
21464 cat >>confdefs.h <<\_ACEOF
21465 #define __OPENAT_PREFIX rpl_
21473 # Assume we'll use the replacement function.
21474 # The only case in which we won't is when we have fchownat, and it works.
21475 use_replacement_fchownat=yes
21477 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
21478 $as_echo_n "checking for fchownat... " >&6; }
21479 if test "${ac_cv_func_fchownat+set}" = set; then
21480 $as_echo_n "(cached) " >&6
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
21489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21490 #define fchownat innocuous_fchownat
21492 /* System header to define __stub macros and hopefully few prototypes,
21493 which can conflict with char fchownat (); below.
21494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21495 <limits.h> exists even on freestanding compilers. */
21498 # include <limits.h>
21500 # include <assert.h>
21505 /* Override any GCC internal prototype to avoid an error.
21506 Use char because int might match the return type of a GCC
21507 builtin and then its argument prototype would still apply. */
21512 /* The GNU C library defines this for functions which it implements
21513 to always fail with ENOSYS. Some functions are actually named
21514 something starting with __ and the normal name is an alias. */
21515 #if defined __stub_fchownat || defined __stub___fchownat
21522 return fchownat ();
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534 $as_echo "$ac_try_echo") >&5
21535 (eval "$ac_link") 2>conftest.er1
21537 grep -v '^ *+' conftest.er1 >conftest.err
21539 cat conftest.err >&5
21540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest$ac_exeext &&
21545 $as_test_x conftest$ac_exeext; then
21546 ac_cv_func_fchownat=yes
21548 $as_echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_func_fchownat=no
21554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21555 conftest$ac_exeext conftest.$ac_ext
21557 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
21558 $as_echo "$ac_cv_func_fchownat" >&6; }
21559 if test $ac_cv_func_fchownat = yes; then
21565 if test $have_fchownat = yes; then
21567 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
21568 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
21569 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
21570 $as_echo_n "(cached) " >&6
21573 gl_dangle=conftest.dangle
21574 # Remove any remnants of a previous test.
21576 # Arrange for deletion of the temporary file this test creates.
21577 ac_clean_files="$ac_clean_files $gl_dangle"
21578 if test "$cross_compiling" = yes; then
21579 gl_cv_func_fchownat_nofollow_works=no
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21589 #include <unistd.h>
21590 #include <stdlib.h>
21592 #include <sys/types.h>
21596 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
21597 AT_SYMLINK_NOFOLLOW) != 0
21598 && errno == ENOENT);
21602 rm -f conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610 (eval "$ac_link") 2>&5
21612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614 { (case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620 (eval "$ac_try") 2>&5
21622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 gl_cv_func_fchownat_nofollow_works=yes
21626 $as_echo "$as_me: program exited with status $ac_status" >&5
21627 $as_echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ( exit $ac_status )
21631 gl_cv_func_fchownat_nofollow_works=no
21633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21639 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
21640 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
21641 if test $gl_cv_func_fchownat_nofollow_works = no; then
21642 have_fchownat_bug=yes
21646 if test $have_fchownat_bug = no; then
21647 use_replacement_fchownat=no
21651 if test $use_replacement_fchownat = yes; then
21652 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
21654 cat >>confdefs.h <<\_ACEOF
21655 #define fchownat rpl_fchownat
21662 # Checks for header files.
21672 cat >>confdefs.h <<\_ACEOF
21673 #define GNULIB_FTS 1
21678 { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
21679 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
21681 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
21682 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
21683 if test "${ac_cv_search_getaddrinfo+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21686 ac_func_search_save_LIBS=$LIBS
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21700 char getaddrinfo ();
21704 return getaddrinfo ();
21709 for ac_lib in '' nsl socket; do
21710 if test -z "$ac_lib"; then
21711 ac_res="none required"
21714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21723 $as_echo "$ac_try_echo") >&5
21724 (eval "$ac_link") 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest$ac_exeext &&
21734 $as_test_x conftest$ac_exeext; then
21735 ac_cv_search_getaddrinfo=$ac_res
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21745 if test "${ac_cv_search_getaddrinfo+set}" = set; then
21749 if test "${ac_cv_search_getaddrinfo+set}" = set; then
21752 ac_cv_search_getaddrinfo=no
21754 rm conftest.$ac_ext
21755 LIBS=$ac_func_search_save_LIBS
21757 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
21758 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
21759 ac_res=$ac_cv_search_getaddrinfo
21760 if test "$ac_res" != no; then
21761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21766 for ac_func in getaddrinfo
21768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21770 $as_echo_n "checking for $ac_func... " >&6; }
21771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21772 $as_echo_n "(cached) " >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21782 #define $ac_func innocuous_$ac_func
21784 /* System header to define __stub macros and hopefully few prototypes,
21785 which can conflict with char $ac_func (); below.
21786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787 <limits.h> exists even on freestanding compilers. */
21790 # include <limits.h>
21792 # include <assert.h>
21797 /* Override any GCC internal prototype to avoid an error.
21798 Use char because int might match the return type of a GCC
21799 builtin and then its argument prototype would still apply. */
21804 /* The GNU C library defines this for functions which it implements
21805 to always fail with ENOSYS. Some functions are actually named
21806 something starting with __ and the normal name is an alias. */
21807 #if defined __stub_$ac_func || defined __stub___$ac_func
21814 return $ac_func ();
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21826 $as_echo "$ac_try_echo") >&5
21827 (eval "$ac_link") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest$ac_exeext &&
21837 $as_test_x conftest$ac_exeext; then
21838 eval "$as_ac_var=yes"
21840 $as_echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 eval "$as_ac_var=no"
21846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21847 conftest$ac_exeext conftest.$ac_ext
21849 ac_res=`eval 'as_val=${'$as_ac_var'}
21850 $as_echo "$as_val"'`
21851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21852 $as_echo "$ac_res" >&6; }
21853 if test `eval 'as_val=${'$as_ac_var'}
21854 $as_echo "$as_val"'` = yes; then
21855 cat >>confdefs.h <<_ACEOF
21856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21861 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
21862 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
21863 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
21864 $as_echo_n "(cached) " >&6
21867 gl_cv_w32_getaddrinfo=no
21868 am_save_LIBS="$LIBS"
21869 LIBS="$LIBS -lws2_32"
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21877 #ifdef HAVE_WS2TCPIP_H
21878 #include <ws2tcpip.h>
21884 getaddrinfo(0, 0, 0, 0);
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897 (eval "$ac_link") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext &&
21907 $as_test_x conftest$ac_exeext; then
21908 gl_cv_w32_getaddrinfo=yes
21910 $as_echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21917 conftest$ac_exeext conftest.$ac_ext
21918 LIBS="$am_save_LIBS"
21920 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
21921 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
21922 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
21923 LIBS="$LIBS -lws2_32"
21925 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
21933 for ac_func in gai_strerror
21935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21937 $as_echo_n "checking for $ac_func... " >&6; }
21938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21939 $as_echo_n "(cached) " >&6
21941 cat >conftest.$ac_ext <<_ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h. */
21947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21949 #define $ac_func innocuous_$ac_func
21951 /* System header to define __stub macros and hopefully few prototypes,
21952 which can conflict with char $ac_func (); below.
21953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21954 <limits.h> exists even on freestanding compilers. */
21957 # include <limits.h>
21959 # include <assert.h>
21964 /* Override any GCC internal prototype to avoid an error.
21965 Use char because int might match the return type of a GCC
21966 builtin and then its argument prototype would still apply. */
21971 /* The GNU C library defines this for functions which it implements
21972 to always fail with ENOSYS. Some functions are actually named
21973 something starting with __ and the normal name is an alias. */
21974 #if defined __stub_$ac_func || defined __stub___$ac_func
21981 return $ac_func ();
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21993 $as_echo "$ac_try_echo") >&5
21994 (eval "$ac_link") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest$ac_exeext &&
22004 $as_test_x conftest$ac_exeext; then
22005 eval "$as_ac_var=yes"
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 eval "$as_ac_var=no"
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22016 ac_res=`eval 'as_val=${'$as_ac_var'}
22017 $as_echo "$as_val"'`
22018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22019 $as_echo "$ac_res" >&6; }
22020 if test `eval 'as_val=${'$as_ac_var'}
22021 $as_echo "$as_val"'` = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22027 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22032 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22033 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22034 if test "${ac_cv_search_gethostbyname+set}" = set; then
22035 $as_echo_n "(cached) " >&6
22037 ac_func_search_save_LIBS=$LIBS
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22045 /* Override any GCC internal prototype to avoid an error.
22046 Use char because int might match the return type of a GCC
22047 builtin and then its argument prototype would still apply. */
22051 char gethostbyname ();
22055 return gethostbyname ();
22060 for ac_lib in '' inet nsl; do
22061 if test -z "$ac_lib"; then
22062 ac_res="none required"
22065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22074 $as_echo "$ac_try_echo") >&5
22075 (eval "$ac_link") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest$ac_exeext &&
22085 $as_test_x conftest$ac_exeext; then
22086 ac_cv_search_gethostbyname=$ac_res
22088 $as_echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22096 if test "${ac_cv_search_gethostbyname+set}" = set; then
22100 if test "${ac_cv_search_gethostbyname+set}" = set; then
22103 ac_cv_search_gethostbyname=no
22105 rm conftest.$ac_ext
22106 LIBS=$ac_func_search_save_LIBS
22108 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22109 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22110 ac_res=$ac_cv_search_gethostbyname
22111 if test "$ac_res" != no; then
22112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22116 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
22117 $as_echo_n "checking for library containing getservbyname... " >&6; }
22118 if test "${ac_cv_search_getservbyname+set}" = set; then
22119 $as_echo_n "(cached) " >&6
22121 ac_func_search_save_LIBS=$LIBS
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22129 /* Override any GCC internal prototype to avoid an error.
22130 Use char because int might match the return type of a GCC
22131 builtin and then its argument prototype would still apply. */
22135 char getservbyname ();
22139 return getservbyname ();
22144 for ac_lib in '' inet nsl socket xnet; do
22145 if test -z "$ac_lib"; then
22146 ac_res="none required"
22149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159 (eval "$ac_link") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest$ac_exeext &&
22169 $as_test_x conftest$ac_exeext; then
22170 ac_cv_search_getservbyname=$ac_res
22172 $as_echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180 if test "${ac_cv_search_getservbyname+set}" = set; then
22184 if test "${ac_cv_search_getservbyname+set}" = set; then
22187 ac_cv_search_getservbyname=no
22189 rm conftest.$ac_ext
22190 LIBS=$ac_func_search_save_LIBS
22192 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
22193 $as_echo "$ac_cv_search_getservbyname" >&6; }
22194 ac_res=$ac_cv_search_getservbyname
22195 if test "$ac_res" != no; then
22196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22201 for ac_func in gethostbyname
22203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22205 $as_echo_n "checking for $ac_func... " >&6; }
22206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22207 $as_echo_n "(cached) " >&6
22209 cat >conftest.$ac_ext <<_ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22217 #define $ac_func innocuous_$ac_func
22219 /* System header to define __stub macros and hopefully few prototypes,
22220 which can conflict with char $ac_func (); below.
22221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22222 <limits.h> exists even on freestanding compilers. */
22225 # include <limits.h>
22227 # include <assert.h>
22232 /* Override any GCC internal prototype to avoid an error.
22233 Use char because int might match the return type of a GCC
22234 builtin and then its argument prototype would still apply. */
22239 /* The GNU C library defines this for functions which it implements
22240 to always fail with ENOSYS. Some functions are actually named
22241 something starting with __ and the normal name is an alias. */
22242 #if defined __stub_$ac_func || defined __stub___$ac_func
22249 return $ac_func ();
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22261 $as_echo "$ac_try_echo") >&5
22262 (eval "$ac_link") 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest$ac_exeext &&
22272 $as_test_x conftest$ac_exeext; then
22273 eval "$as_ac_var=yes"
22275 $as_echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 eval "$as_ac_var=no"
22281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282 conftest$ac_exeext conftest.$ac_ext
22284 ac_res=`eval 'as_val=${'$as_ac_var'}
22285 $as_echo "$as_val"'`
22286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22287 $as_echo "$ac_res" >&6; }
22288 if test `eval 'as_val=${'$as_ac_var'}
22289 $as_echo "$as_val"'` = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22296 { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22297 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22298 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22299 $as_echo_n "(cached) " >&6
22302 gl_cv_w32_gethostbyname=no
22303 am_save_LIBS="$LIBS"
22304 LIBS="$LIBS -lws2_32"
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 #ifdef HAVE_WINSOCK2_H
22313 #include <winsock2.h>
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332 (eval "$ac_link") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest$ac_exeext &&
22342 $as_test_x conftest$ac_exeext; then
22343 gl_cv_w32_gethostbyname=yes
22345 $as_echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352 conftest$ac_exeext conftest.$ac_ext
22353 LIBS="$am_save_LIBS"
22355 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22356 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22357 if test "$gl_cv_w32_gethostbyname" = "yes"; then
22358 LIBS="$LIBS -lws2_32"
22377 { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
22378 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
22379 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
22380 $as_echo_n "(cached) " >&6
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22389 /* sys/types.h is not needed according to POSIX, but the
22390 sys/socket.h in i386-unknown-freebsd4.10 and
22391 powerpc-apple-darwin5.5 required it. */
22392 #include <sys/types.h>
22393 #ifdef HAVE_SYS_SOCKET_H
22394 #include <sys/socket.h>
22396 #ifdef HAVE_NETDB_H
22399 #ifdef HAVE_WS2TCPIP_H
22400 #include <ws2tcpip.h>
22407 #ifndef getaddrinfo
22408 (void) getaddrinfo;
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422 $as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_cv_have_decl_getaddrinfo=yes
22435 $as_echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_have_decl_getaddrinfo=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
22444 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
22445 if test $ac_cv_have_decl_getaddrinfo = yes; then
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_DECL_GETADDRINFO 1
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_DECL_GETADDRINFO 0
22459 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
22460 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
22461 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
22462 $as_echo_n "(cached) " >&6
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22471 /* sys/types.h is not needed according to POSIX, but the
22472 sys/socket.h in i386-unknown-freebsd4.10 and
22473 powerpc-apple-darwin5.5 required it. */
22474 #include <sys/types.h>
22475 #ifdef HAVE_SYS_SOCKET_H
22476 #include <sys/socket.h>
22478 #ifdef HAVE_NETDB_H
22481 #ifdef HAVE_WS2TCPIP_H
22482 #include <ws2tcpip.h>
22489 #ifndef freeaddrinfo
22490 (void) freeaddrinfo;
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22504 $as_echo "$ac_try_echo") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_cv_have_decl_freeaddrinfo=yes
22517 $as_echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_cv_have_decl_freeaddrinfo=no
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
22526 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
22527 if test $ac_cv_have_decl_freeaddrinfo = yes; then
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_DECL_FREEADDRINFO 1
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_DECL_FREEADDRINFO 0
22541 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
22542 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
22543 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
22544 $as_echo_n "(cached) " >&6
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22553 /* sys/types.h is not needed according to POSIX, but the
22554 sys/socket.h in i386-unknown-freebsd4.10 and
22555 powerpc-apple-darwin5.5 required it. */
22556 #include <sys/types.h>
22557 #ifdef HAVE_SYS_SOCKET_H
22558 #include <sys/socket.h>
22560 #ifdef HAVE_NETDB_H
22563 #ifdef HAVE_WS2TCPIP_H
22564 #include <ws2tcpip.h>
22571 #ifndef gai_strerror
22572 (void) gai_strerror;
22579 rm -f conftest.$ac_objext
22580 if { (ac_try="$ac_compile"
22581 case "(($ac_try" in
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583 *) ac_try_echo=$ac_try;;
22585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22586 $as_echo "$ac_try_echo") >&5
22587 (eval "$ac_compile") 2>conftest.er1
22589 grep -v '^ *+' conftest.er1 >conftest.err
22591 cat conftest.err >&5
22592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } && {
22594 test -z "$ac_c_werror_flag" ||
22595 test ! -s conftest.err
22596 } && test -s conftest.$ac_objext; then
22597 ac_cv_have_decl_gai_strerror=yes
22599 $as_echo "$as_me: failed program was:" >&5
22600 sed 's/^/| /' conftest.$ac_ext >&5
22602 ac_cv_have_decl_gai_strerror=no
22605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
22608 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
22609 if test $ac_cv_have_decl_gai_strerror = yes; then
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE_DECL_GAI_STRERROR 1
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_GAI_STRERROR 0
22623 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
22624 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
22625 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
22626 $as_echo_n "(cached) " >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22635 /* sys/types.h is not needed according to POSIX, but the
22636 sys/socket.h in i386-unknown-freebsd4.10 and
22637 powerpc-apple-darwin5.5 required it. */
22638 #include <sys/types.h>
22639 #ifdef HAVE_SYS_SOCKET_H
22640 #include <sys/socket.h>
22642 #ifdef HAVE_NETDB_H
22645 #ifdef HAVE_WS2TCPIP_H
22646 #include <ws2tcpip.h>
22653 #ifndef getnameinfo
22654 (void) getnameinfo;
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668 $as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_cv_have_decl_getnameinfo=yes
22681 $as_echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_have_decl_getnameinfo=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
22690 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
22691 if test $ac_cv_have_decl_getnameinfo = yes; then
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_DECL_GETNAMEINFO 1
22699 cat >>confdefs.h <<_ACEOF
22700 #define HAVE_DECL_GETNAMEINFO 0
22707 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22708 $as_echo_n "checking for struct addrinfo... " >&6; }
22709 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
22710 $as_echo_n "(cached) " >&6
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22719 #include <sys/types.h>
22720 #ifdef HAVE_SYS_SOCKET_H
22721 #include <sys/socket.h>
22723 #ifdef HAVE_NETDB_H
22726 #ifdef HAVE_WS2TCPIP_H
22727 #include <ws2tcpip.h>
22731 typedef struct addrinfo ac__type_new_;
22735 if ((ac__type_new_ *) 0)
22737 if (sizeof (ac__type_new_))
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22761 ac_cv_type_struct_addrinfo=yes
22763 $as_echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_cv_type_struct_addrinfo=no
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
22772 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
22773 if test $ac_cv_type_struct_addrinfo = yes; then
22775 cat >>confdefs.h <<_ACEOF
22776 #define HAVE_STRUCT_ADDRINFO 1
22789 case $gl_cv_func_getcwd_null in
22797 { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
22798 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
22799 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
22800 $as_echo_n "(cached) " >&6
22802 # Arrange for deletion of the temporary directory this test creates.
22803 ac_clean_files="$ac_clean_files confdir3"
22804 if test "$cross_compiling" = yes; then
22805 gl_cv_func_getcwd_path_max=no
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22815 #include <stdlib.h>
22816 #include <unistd.h>
22817 #include <string.h>
22818 #include <limits.h>
22819 #include <sys/stat.h>
22820 #include <sys/types.h>
22824 # define AT_FDCWD 0
22826 #ifdef ENAMETOOLONG
22827 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
22829 # define is_ENAMETOOLONG(x) 0
22832 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
22836 # define S_IRWXU 0700
22839 /* The length of this name must be 8. */
22840 #define DIR_NAME "confdir3"
22841 #define DIR_NAME_LEN 8
22842 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
22844 /* The length of "../". */
22845 #define DOTDOTSLASH_LEN 3
22847 /* Leftover bytes in the buffer, to work around library or OS bugs. */
22848 #define BUF_SLOP 20
22854 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
22855 at least not on a local file system. And if we were to start worrying
22856 about remote file systems, we'd have to enable the wrapper function
22857 all of the time, just to be safe. That's not worth the cost. */
22859 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
22860 - DIR_NAME_SIZE - BUF_SLOP) \
22862 /* FIXME: Assuming there's a system for which this is true,
22863 this should be done in a compile test. */
22866 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
22867 + DIR_NAME_SIZE + BUF_SLOP];
22868 char *cwd = getcwd (buf, PATH_MAX);
22869 size_t initial_cwd_len;
22872 size_t n_chdirs = 0;
22877 cwd_len = initial_cwd_len = strlen (cwd);
22881 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
22884 cwd_len += DIR_NAME_SIZE;
22885 /* If mkdir or chdir fails, it could be that this system cannot create
22886 any file with an absolute name longer than PATH_MAX, such as cygwin.
22887 If so, leave fail as 0, because the current working directory can't
22888 be too long for getcwd if it can't even be created. For other
22889 errors, be pessimistic and consider that as a failure, too. */
22890 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
22892 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
22897 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
22899 c = getcwd (buf, PATH_MAX);
22900 if (!c && errno == ENOENT)
22905 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
22912 if (dotdot_max <= cwd_len - initial_cwd_len)
22914 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
22916 c = getcwd (buf, cwd_len + 1);
22919 if (! (errno == ERANGE || errno == ENOENT
22920 || is_ENAMETOOLONG (errno)))
22925 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
22933 if (c && strlen (c) != cwd_len)
22941 /* Leaving behind such a deep directory is not polite.
22942 So clean up here, right away, even though the driving
22943 shell script would also clean up. */
22947 /* Try rmdir first, in case the chdir failed. */
22949 for (i = 0; i <= n_chdirs; i++)
22951 if (chdir ("..") < 0)
22962 rm -f conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_link") 2>&5
22972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22974 { (case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980 (eval "$ac_try") 2>&5
22982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; }; then
22984 gl_cv_func_getcwd_path_max=yes
22986 $as_echo "$as_me: program exited with status $ac_status" >&5
22987 $as_echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22990 ( exit $ac_status )
22992 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
22993 *) gl_cv_func_getcwd_path_max=no;;
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23002 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
23003 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
23004 case $gl_cv_func_getcwd_path_max in
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_PARTLY_WORKING_GETCWD 1
23019 for ac_func in getpagesize
23021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23023 $as_echo_n "checking for $ac_func... " >&6; }
23024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23025 $as_echo_n "(cached) " >&6
23027 cat >conftest.$ac_ext <<_ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23035 #define $ac_func innocuous_$ac_func
23037 /* System header to define __stub macros and hopefully few prototypes,
23038 which can conflict with char $ac_func (); below.
23039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23040 <limits.h> exists even on freestanding compilers. */
23043 # include <limits.h>
23045 # include <assert.h>
23050 /* Override any GCC internal prototype to avoid an error.
23051 Use char because int might match the return type of a GCC
23052 builtin and then its argument prototype would still apply. */
23057 /* The GNU C library defines this for functions which it implements
23058 to always fail with ENOSYS. Some functions are actually named
23059 something starting with __ and the normal name is an alias. */
23060 #if defined __stub_$ac_func || defined __stub___$ac_func
23067 return $ac_func ();
23072 rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23079 $as_echo "$ac_try_echo") >&5
23080 (eval "$ac_link") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest$ac_exeext &&
23090 $as_test_x conftest$ac_exeext; then
23091 eval "$as_ac_var=yes"
23093 $as_echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 eval "$as_ac_var=no"
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100 conftest$ac_exeext conftest.$ac_ext
23102 ac_res=`eval 'as_val=${'$as_ac_var'}
23103 $as_echo "$as_val"'`
23104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23105 $as_echo "$ac_res" >&6; }
23106 if test `eval 'as_val=${'$as_ac_var'}
23107 $as_echo "$as_val"'` = yes; then
23108 cat >>confdefs.h <<_ACEOF
23109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23115 { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
23116 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
23117 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
23118 $as_echo_n "(cached) " >&6
23120 # Remove any remnants of a previous test.
23121 rm -rf confdir-14B---
23122 # Arrange for deletion of the temporary directory this test creates.
23123 ac_clean_files="$ac_clean_files confdir-14B---"
23124 if test "$cross_compiling" = yes; then
23125 gl_cv_func_getcwd_abort_bug=yes
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23134 #include <stdlib.h>
23135 #include <unistd.h>
23136 #include <limits.h>
23137 #include <string.h>
23138 #include <sys/stat.h>
23140 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
23144 # define S_IRWXU 0700
23147 /* FIXME: skip the run-test altogether on systems without getpagesize. */
23148 #if ! HAVE_GETPAGESIZE
23149 # define getpagesize() 0
23152 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
23153 the 16kB pagesize on ia64 linux. Those conditions make the code below
23154 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
23155 #define TARGET_LEN (5 * 1024)
23160 char const *dir_name = "confdir-14B---";
23162 size_t initial_cwd_len;
23164 size_t desired_depth;
23167 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
23168 this relative expensive and invasive test if that's not true. */
23169 if (getpagesize () <= PATH_MAX)
23172 cwd = getcwd (NULL, 0);
23176 initial_cwd_len = strlen (cwd);
23178 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
23179 / (1 + strlen (dir_name)));
23180 for (d = 0; d < desired_depth; d++)
23182 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
23184 fail = 3; /* Unable to construct deep hierarchy. */
23189 /* If libc has the bug in question, this invocation of getcwd
23190 results in a failed assertion. */
23191 cwd = getcwd (NULL, 0);
23193 fail = 4; /* getcwd failed. This is ok, and expected. */
23196 /* Call rmdir first, in case the above chdir failed. */
23200 if (chdir ("..") < 0)
23209 rm -f conftest$ac_exeext
23210 if { (ac_try="$ac_link"
23211 case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217 (eval "$ac_link") 2>&5
23219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23221 { (case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23226 $as_echo "$ac_try_echo") >&5
23227 (eval "$ac_try") 2>&5
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 gl_cv_func_getcwd_abort_bug=no
23233 $as_echo "$as_me: program exited with status $ac_status" >&5
23234 $as_echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ( exit $ac_status )
23238 gl_cv_func_getcwd_abort_bug=yes
23240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23246 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
23247 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
23248 if test $gl_cv_func_getcwd_abort_bug = yes; then
23255 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
23259 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
23277 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23278 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
23279 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23280 $as_echo_n "(cached) " >&6
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 #include <sys/types.h>
23289 #include <$ac_cv_struct_tm>
23295 static struct tm ac_aggr;
23296 if (ac_aggr.tm_zone)
23302 rm -f conftest.$ac_objext
23303 if { (ac_try="$ac_compile"
23304 case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23309 $as_echo "$ac_try_echo") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23312 grep -v '^ *+' conftest.er1 >conftest.err
23314 cat conftest.err >&5
23315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.$ac_objext; then
23320 ac_cv_member_struct_tm_tm_zone=yes
23322 $as_echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 #include <sys/types.h>
23332 #include <$ac_cv_struct_tm>
23338 static struct tm ac_aggr;
23339 if (sizeof ac_aggr.tm_zone)
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353 (eval "$ac_compile") 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest.$ac_objext; then
23363 ac_cv_member_struct_tm_tm_zone=yes
23365 $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_cv_member_struct_tm_tm_zone=no
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23377 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
23378 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_STRUCT_TM_TM_ZONE 1
23387 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_TM_ZONE 1
23394 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23395 $as_echo_n "checking whether tzname is declared... " >&6; }
23396 if test "${ac_cv_have_decl_tzname+set}" = set; then
23397 $as_echo_n "(cached) " >&6
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23418 rm -f conftest.$ac_objext
23419 if { (ac_try="$ac_compile"
23420 case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425 $as_echo "$ac_try_echo") >&5
23426 (eval "$ac_compile") 2>conftest.er1
23428 grep -v '^ *+' conftest.er1 >conftest.err
23430 cat conftest.err >&5
23431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } && {
23433 test -z "$ac_c_werror_flag" ||
23434 test ! -s conftest.err
23435 } && test -s conftest.$ac_objext; then
23436 ac_cv_have_decl_tzname=yes
23438 $as_echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441 ac_cv_have_decl_tzname=no
23444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23447 $as_echo "$ac_cv_have_decl_tzname" >&6; }
23448 if test $ac_cv_have_decl_tzname = yes; then
23450 cat >>confdefs.h <<_ACEOF
23451 #define HAVE_DECL_TZNAME 1
23456 cat >>confdefs.h <<_ACEOF
23457 #define HAVE_DECL_TZNAME 0
23464 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
23465 $as_echo_n "checking for tzname... " >&6; }
23466 if test "${ac_cv_var_tzname+set}" = set; then
23467 $as_echo_n "(cached) " >&6
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23476 #if !HAVE_DECL_TZNAME
23477 extern char *tzname[];
23483 return tzname[0][0];
23488 rm -f conftest.$ac_objext conftest$ac_exeext
23489 if { (ac_try="$ac_link"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495 $as_echo "$ac_try_echo") >&5
23496 (eval "$ac_link") 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest$ac_exeext &&
23506 $as_test_x conftest$ac_exeext; then
23507 ac_cv_var_tzname=yes
23509 $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 ac_cv_var_tzname=no
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516 conftest$ac_exeext conftest.$ac_ext
23518 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23519 $as_echo "$ac_cv_var_tzname" >&6; }
23520 if test $ac_cv_var_tzname = yes; then
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_TZNAME 1
23537 for ac_func in getdelim
23539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23540 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23541 $as_echo_n "checking for $ac_func... " >&6; }
23542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23543 $as_echo_n "(cached) " >&6
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23553 #define $ac_func innocuous_$ac_func
23555 /* System header to define __stub macros and hopefully few prototypes,
23556 which can conflict with char $ac_func (); below.
23557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23558 <limits.h> exists even on freestanding compilers. */
23561 # include <limits.h>
23563 # include <assert.h>
23568 /* Override any GCC internal prototype to avoid an error.
23569 Use char because int might match the return type of a GCC
23570 builtin and then its argument prototype would still apply. */
23575 /* The GNU C library defines this for functions which it implements
23576 to always fail with ENOSYS. Some functions are actually named
23577 something starting with __ and the normal name is an alias. */
23578 #if defined __stub_$ac_func || defined __stub___$ac_func
23585 return $ac_func ();
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (ac_try="$ac_link"
23592 case "(($ac_try" in
23593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594 *) ac_try_echo=$ac_try;;
23596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23597 $as_echo "$ac_try_echo") >&5
23598 (eval "$ac_link") 2>conftest.er1
23600 grep -v '^ *+' conftest.er1 >conftest.err
23602 cat conftest.err >&5
23603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest$ac_exeext &&
23608 $as_test_x conftest$ac_exeext; then
23609 eval "$as_ac_var=yes"
23611 $as_echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23614 eval "$as_ac_var=no"
23617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23618 conftest$ac_exeext conftest.$ac_ext
23620 ac_res=`eval 'as_val=${'$as_ac_var'}
23621 $as_echo "$as_val"'`
23622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23623 $as_echo "$ac_res" >&6; }
23624 if test `eval 'as_val=${'$as_ac_var'}
23625 $as_echo "$as_val"'` = yes; then
23626 cat >>confdefs.h <<_ACEOF
23627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23631 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23640 if test $ac_cv_func_getdelim = no; then
23644 for ac_func in flockfile funlockfile
23646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23648 $as_echo_n "checking for $ac_func... " >&6; }
23649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23650 $as_echo_n "(cached) " >&6
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23660 #define $ac_func innocuous_$ac_func
23662 /* System header to define __stub macros and hopefully few prototypes,
23663 which can conflict with char $ac_func (); below.
23664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665 <limits.h> exists even on freestanding compilers. */
23668 # include <limits.h>
23670 # include <assert.h>
23675 /* Override any GCC internal prototype to avoid an error.
23676 Use char because int might match the return type of a GCC
23677 builtin and then its argument prototype would still apply. */
23682 /* The GNU C library defines this for functions which it implements
23683 to always fail with ENOSYS. Some functions are actually named
23684 something starting with __ and the normal name is an alias. */
23685 #if defined __stub_$ac_func || defined __stub___$ac_func
23692 return $ac_func ();
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23704 $as_echo "$ac_try_echo") >&5
23705 (eval "$ac_link") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest$ac_exeext &&
23715 $as_test_x conftest$ac_exeext; then
23716 eval "$as_ac_var=yes"
23718 $as_echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 eval "$as_ac_var=no"
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725 conftest$ac_exeext conftest.$ac_ext
23727 ac_res=`eval 'as_val=${'$as_ac_var'}
23728 $as_echo "$as_val"'`
23729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23730 $as_echo "$ac_res" >&6; }
23731 if test `eval 'as_val=${'$as_ac_var'}
23732 $as_echo "$as_val"'` = yes; then
23733 cat >>confdefs.h <<_ACEOF
23734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23745 if test $ac_cv_func_getgroups_works = no; then
23746 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
23748 cat >>confdefs.h <<\_ACEOF
23749 #define getgroups rpl_getgroups
23756 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
23760 for ac_func in gethostname
23762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23763 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23764 $as_echo_n "checking for $ac_func... " >&6; }
23765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23766 $as_echo_n "(cached) " >&6
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23776 #define $ac_func innocuous_$ac_func
23778 /* System header to define __stub macros and hopefully few prototypes,
23779 which can conflict with char $ac_func (); below.
23780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23781 <limits.h> exists even on freestanding compilers. */
23784 # include <limits.h>
23786 # include <assert.h>
23791 /* Override any GCC internal prototype to avoid an error.
23792 Use char because int might match the return type of a GCC
23793 builtin and then its argument prototype would still apply. */
23798 /* The GNU C library defines this for functions which it implements
23799 to always fail with ENOSYS. Some functions are actually named
23800 something starting with __ and the normal name is an alias. */
23801 #if defined __stub_$ac_func || defined __stub___$ac_func
23808 return $ac_func ();
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821 (eval "$ac_link") 2>conftest.er1
23823 grep -v '^ *+' conftest.er1 >conftest.err
23825 cat conftest.err >&5
23826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } && {
23828 test -z "$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23830 } && test -s conftest$ac_exeext &&
23831 $as_test_x conftest$ac_exeext; then
23832 eval "$as_ac_var=yes"
23834 $as_echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23837 eval "$as_ac_var=no"
23840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23841 conftest$ac_exeext conftest.$ac_ext
23843 ac_res=`eval 'as_val=${'$as_ac_var'}
23844 $as_echo "$as_val"'`
23845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23846 $as_echo "$ac_res" >&6; }
23847 if test `eval 'as_val=${'$as_ac_var'}
23848 $as_echo "$as_val"'` = yes; then
23849 cat >>confdefs.h <<_ACEOF
23850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23854 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23858 if test $ac_cv_func_gethostname = no; then
23861 for ac_func in uname
23863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23865 $as_echo_n "checking for $ac_func... " >&6; }
23866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23867 $as_echo_n "(cached) " >&6
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23877 #define $ac_func innocuous_$ac_func
23879 /* System header to define __stub macros and hopefully few prototypes,
23880 which can conflict with char $ac_func (); below.
23881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23882 <limits.h> exists even on freestanding compilers. */
23885 # include <limits.h>
23887 # include <assert.h>
23892 /* Override any GCC internal prototype to avoid an error.
23893 Use char because int might match the return type of a GCC
23894 builtin and then its argument prototype would still apply. */
23899 /* The GNU C library defines this for functions which it implements
23900 to always fail with ENOSYS. Some functions are actually named
23901 something starting with __ and the normal name is an alias. */
23902 #if defined __stub_$ac_func || defined __stub___$ac_func
23909 return $ac_func ();
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922 (eval "$ac_link") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest$ac_exeext &&
23932 $as_test_x conftest$ac_exeext; then
23933 eval "$as_ac_var=yes"
23935 $as_echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 eval "$as_ac_var=no"
23941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23942 conftest$ac_exeext conftest.$ac_ext
23944 ac_res=`eval 'as_val=${'$as_ac_var'}
23945 $as_echo "$as_val"'`
23946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23947 $as_echo "$ac_res" >&6; }
23948 if test `eval 'as_val=${'$as_ac_var'}
23949 $as_echo "$as_val"'` = yes; then
23950 cat >>confdefs.h <<_ACEOF
23951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23964 { $as_echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
23965 $as_echo_n "checking whether gethrtime is declared... " >&6; }
23966 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
23967 $as_echo_n "(cached) " >&6
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23995 $as_echo "$ac_try_echo") >&5
23996 (eval "$ac_compile") 2>conftest.er1
23998 grep -v '^ *+' conftest.er1 >conftest.err
24000 cat conftest.err >&5
24001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest.$ac_objext; then
24006 ac_cv_have_decl_gethrtime=yes
24008 $as_echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 ac_cv_have_decl_gethrtime=no
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24016 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
24017 $as_echo "$ac_cv_have_decl_gethrtime" >&6; }
24018 if test $ac_cv_have_decl_gethrtime = yes; then
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_DECL_GETHRTIME 1
24026 cat >>confdefs.h <<_ACEOF
24027 #define HAVE_DECL_GETHRTIME 0
24034 case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
24037 gl_LIBOBJS="$gl_LIBOBJS gethrxtime.$ac_objext"
24050 if test $ac_cv_func_nanouptime != yes; then
24052 { $as_echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined" >&5
24053 $as_echo_n "checking whether CLOCK_MONOTONIC or CLOCK_REALTIME is defined... " >&6; }
24054 if test "${gl_cv_have_clock_gettime_macro+set}" = set; then
24055 $as_echo_n "(cached) " >&6
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24065 # if defined CLOCK_MONOTONIC || defined CLOCK_REALTIME
24066 have_clock_gettime_macro
24070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24071 $EGREP "have_clock_gettime_macro" >/dev/null 2>&1; then
24072 gl_cv_have_clock_gettime_macro=yes
24074 gl_cv_have_clock_gettime_macro=no
24079 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_clock_gettime_macro" >&5
24080 $as_echo "$gl_cv_have_clock_gettime_macro" >&6; }
24081 if test $gl_cv_have_clock_gettime_macro = yes; then
24082 LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
24092 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
24093 $as_echo_n "checking whether getline is declared... " >&6; }
24094 if test "${ac_cv_have_decl_getline+set}" = set; then
24095 $as_echo_n "(cached) " >&6
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 $ac_includes_default
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24122 $as_echo "$ac_try_echo") >&5
24123 (eval "$ac_compile") 2>conftest.er1
24125 grep -v '^ *+' conftest.er1 >conftest.err
24127 cat conftest.err >&5
24128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && {
24130 test -z "$ac_c_werror_flag" ||
24131 test ! -s conftest.err
24132 } && test -s conftest.$ac_objext; then
24133 ac_cv_have_decl_getline=yes
24135 $as_echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ac_cv_have_decl_getline=no
24141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
24144 $as_echo "$ac_cv_have_decl_getline" >&6; }
24145 if test $ac_cv_have_decl_getline = yes; then
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_DECL_GETLINE 1
24153 cat >>confdefs.h <<_ACEOF
24154 #define HAVE_DECL_GETLINE 0
24162 gl_getline_needs_run_time_check=no
24163 { $as_echo "$as_me:$LINENO: checking for getline" >&5
24164 $as_echo_n "checking for getline... " >&6; }
24165 if test "${ac_cv_func_getline+set}" = set; then
24166 $as_echo_n "(cached) " >&6
24168 cat >conftest.$ac_ext <<_ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
24175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24176 #define getline innocuous_getline
24178 /* System header to define __stub macros and hopefully few prototypes,
24179 which can conflict with char getline (); below.
24180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24181 <limits.h> exists even on freestanding compilers. */
24184 # include <limits.h>
24186 # include <assert.h>
24191 /* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24198 /* The GNU C library defines this for functions which it implements
24199 to always fail with ENOSYS. Some functions are actually named
24200 something starting with __ and the normal name is an alias. */
24201 #if defined __stub_getline || defined __stub___getline
24213 rm -f conftest.$ac_objext conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_link") 2>conftest.er1
24223 grep -v '^ *+' conftest.er1 >conftest.err
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest$ac_exeext &&
24231 $as_test_x conftest$ac_exeext; then
24232 ac_cv_func_getline=yes
24234 $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24237 ac_cv_func_getline=no
24240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24241 conftest$ac_exeext conftest.$ac_ext
24243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
24244 $as_echo "$ac_cv_func_getline" >&6; }
24245 if test $ac_cv_func_getline = yes; then
24246 gl_getline_needs_run_time_check=yes
24248 am_cv_func_working_getline=no
24251 if test $gl_getline_needs_run_time_check = yes; then
24252 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
24253 $as_echo_n "checking for working getline function... " >&6; }
24254 if test "${am_cv_func_working_getline+set}" = set; then
24255 $as_echo_n "(cached) " >&6
24257 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
24258 if test "$cross_compiling" = yes; then
24259 cat >conftest.$ac_ext <<_ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24266 #include <features.h>
24267 #ifdef __GNU_LIBRARY__
24268 #if (__GLIBC__ >= 2)
24274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24275 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
24276 am_cv_func_working_getline=yes
24278 am_cv_func_working_getline=no
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24291 # include <stdio.h>
24292 # include <stdlib.h>
24293 # include <string.h>
24295 { /* Based on a test program from Karl Heuer. */
24299 FILE *in = fopen ("./conftest.data", "r");
24302 len = getline (&line, &siz, in);
24303 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
24307 rm -f conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24314 $as_echo "$ac_try_echo") >&5
24315 (eval "$ac_link") 2>&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24319 { (case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24324 $as_echo "$ac_try_echo") >&5
24325 (eval "$ac_try") 2>&5
24327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; }; then
24329 am_cv_func_working_getline=yes
24331 $as_echo "$as_me: program exited with status $ac_status" >&5
24332 $as_echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24335 ( exit $ac_status )
24336 am_cv_func_working_getline=no
24338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24343 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
24344 $as_echo "$am_cv_func_working_getline" >&6; }
24347 if test $am_cv_func_working_getline = no; then
24349 cat >>confdefs.h <<\_ACEOF
24350 #define getline gnu_getline
24353 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
24361 for ac_func in getdelim
24363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24365 $as_echo_n "checking for $ac_func... " >&6; }
24366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24367 $as_echo_n "(cached) " >&6
24369 cat >conftest.$ac_ext <<_ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24377 #define $ac_func innocuous_$ac_func
24379 /* System header to define __stub macros and hopefully few prototypes,
24380 which can conflict with char $ac_func (); below.
24381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24382 <limits.h> exists even on freestanding compilers. */
24385 # include <limits.h>
24387 # include <assert.h>
24392 /* Override any GCC internal prototype to avoid an error.
24393 Use char because int might match the return type of a GCC
24394 builtin and then its argument prototype would still apply. */
24399 /* The GNU C library defines this for functions which it implements
24400 to always fail with ENOSYS. Some functions are actually named
24401 something starting with __ and the normal name is an alias. */
24402 #if defined __stub_$ac_func || defined __stub___$ac_func
24409 return $ac_func ();
24414 rm -f conftest.$ac_objext conftest$ac_exeext
24415 if { (ac_try="$ac_link"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24421 $as_echo "$ac_try_echo") >&5
24422 (eval "$ac_link") 2>conftest.er1
24424 grep -v '^ *+' conftest.er1 >conftest.err
24426 cat conftest.err >&5
24427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest$ac_exeext &&
24432 $as_test_x conftest$ac_exeext; then
24433 eval "$as_ac_var=yes"
24435 $as_echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 eval "$as_ac_var=no"
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24444 ac_res=`eval 'as_val=${'$as_ac_var'}
24445 $as_echo "$as_val"'`
24446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24447 $as_echo "$ac_res" >&6; }
24448 if test `eval 'as_val=${'$as_ac_var'}
24449 $as_echo "$as_val"'` = yes; then
24450 cat >>confdefs.h <<_ACEOF
24451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24455 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24464 if test $ac_cv_func_getdelim = no; then
24468 for ac_func in flockfile funlockfile
24470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24472 $as_echo_n "checking for $ac_func... " >&6; }
24473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24474 $as_echo_n "(cached) " >&6
24476 cat >conftest.$ac_ext <<_ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24484 #define $ac_func innocuous_$ac_func
24486 /* System header to define __stub macros and hopefully few prototypes,
24487 which can conflict with char $ac_func (); below.
24488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24489 <limits.h> exists even on freestanding compilers. */
24492 # include <limits.h>
24494 # include <assert.h>
24499 /* Override any GCC internal prototype to avoid an error.
24500 Use char because int might match the return type of a GCC
24501 builtin and then its argument prototype would still apply. */
24506 /* The GNU C library defines this for functions which it implements
24507 to always fail with ENOSYS. Some functions are actually named
24508 something starting with __ and the normal name is an alias. */
24509 #if defined __stub_$ac_func || defined __stub___$ac_func
24516 return $ac_func ();
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24528 $as_echo "$ac_try_echo") >&5
24529 (eval "$ac_link") 2>conftest.er1
24531 grep -v '^ *+' conftest.er1 >conftest.err
24533 cat conftest.err >&5
24534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } && {
24536 test -z "$ac_c_werror_flag" ||
24537 test ! -s conftest.err
24538 } && test -s conftest$ac_exeext &&
24539 $as_test_x conftest$ac_exeext; then
24540 eval "$as_ac_var=yes"
24542 $as_echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 eval "$as_ac_var=no"
24548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24549 conftest$ac_exeext conftest.$ac_ext
24551 ac_res=`eval 'as_val=${'$as_ac_var'}
24552 $as_echo "$as_val"'`
24553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24554 $as_echo "$ac_res" >&6; }
24555 if test `eval 'as_val=${'$as_ac_var'}
24556 $as_echo "$as_val"'` = yes; then
24557 cat >>confdefs.h <<_ACEOF
24558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24570 gl_have_func=no # yes means we've found a way to get the load average.
24572 # Make sure getloadavg.c is where it belongs, at configure-time.
24573 test -f "$srcdir/lib/getloadavg.c" ||
24574 { { $as_echo "$as_me:$LINENO: error: $srcdir/lib/getloadavg.c is missing" >&5
24575 $as_echo "$as_me: error: $srcdir/lib/getloadavg.c is missing" >&2;}
24576 { (exit 1); exit 1; }; }
24580 # Check for getloadavg, but be sure not to touch the cache variable.
24581 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
24582 $as_echo_n "checking for getloadavg... " >&6; }
24583 if test "${ac_cv_func_getloadavg+set}" = set; then
24584 $as_echo_n "(cached) " >&6
24586 cat >conftest.$ac_ext <<_ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24592 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
24593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24594 #define getloadavg innocuous_getloadavg
24596 /* System header to define __stub macros and hopefully few prototypes,
24597 which can conflict with char getloadavg (); below.
24598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24599 <limits.h> exists even on freestanding compilers. */
24602 # include <limits.h>
24604 # include <assert.h>
24609 /* Override any GCC internal prototype to avoid an error.
24610 Use char because int might match the return type of a GCC
24611 builtin and then its argument prototype would still apply. */
24615 char getloadavg ();
24616 /* The GNU C library defines this for functions which it implements
24617 to always fail with ENOSYS. Some functions are actually named
24618 something starting with __ and the normal name is an alias. */
24619 #if defined __stub_getloadavg || defined __stub___getloadavg
24626 return getloadavg ();
24631 rm -f conftest.$ac_objext conftest$ac_exeext
24632 if { (ac_try="$ac_link"
24633 case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24638 $as_echo "$ac_try_echo") >&5
24639 (eval "$ac_link") 2>conftest.er1
24641 grep -v '^ *+' conftest.er1 >conftest.err
24643 cat conftest.err >&5
24644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest$ac_exeext &&
24649 $as_test_x conftest$ac_exeext; then
24650 ac_cv_func_getloadavg=yes
24652 $as_echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ac_cv_func_getloadavg=no
24658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24659 conftest$ac_exeext conftest.$ac_ext
24661 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
24662 $as_echo "$ac_cv_func_getloadavg" >&6; }
24663 if test $ac_cv_func_getloadavg = yes; then
24668 ) && gl_have_func=yes
24670 # On HPUX9, an unprivileged user can get load averages through this function.
24672 for ac_func in pstat_getdynamic
24674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24675 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24676 $as_echo_n "checking for $ac_func... " >&6; }
24677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24678 $as_echo_n "(cached) " >&6
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24688 #define $ac_func innocuous_$ac_func
24690 /* System header to define __stub macros and hopefully few prototypes,
24691 which can conflict with char $ac_func (); below.
24692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24693 <limits.h> exists even on freestanding compilers. */
24696 # include <limits.h>
24698 # include <assert.h>
24703 /* Override any GCC internal prototype to avoid an error.
24704 Use char because int might match the return type of a GCC
24705 builtin and then its argument prototype would still apply. */
24710 /* The GNU C library defines this for functions which it implements
24711 to always fail with ENOSYS. Some functions are actually named
24712 something starting with __ and the normal name is an alias. */
24713 #if defined __stub_$ac_func || defined __stub___$ac_func
24720 return $ac_func ();
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (ac_try="$ac_link"
24727 case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733 (eval "$ac_link") 2>conftest.er1
24735 grep -v '^ *+' conftest.er1 >conftest.err
24737 cat conftest.err >&5
24738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } && {
24740 test -z "$ac_c_werror_flag" ||
24741 test ! -s conftest.err
24742 } && test -s conftest$ac_exeext &&
24743 $as_test_x conftest$ac_exeext; then
24744 eval "$as_ac_var=yes"
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 eval "$as_ac_var=no"
24752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24753 conftest$ac_exeext conftest.$ac_ext
24755 ac_res=`eval 'as_val=${'$as_ac_var'}
24756 $as_echo "$as_val"'`
24757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24758 $as_echo "$ac_res" >&6; }
24759 if test `eval 'as_val=${'$as_ac_var'}
24760 $as_echo "$as_val"'` = yes; then
24761 cat >>confdefs.h <<_ACEOF
24762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24769 # Solaris has libkstat which does not require root.
24771 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
24772 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
24773 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
24774 $as_echo_n "(cached) " >&6
24776 ac_check_lib_save_LIBS=$LIBS
24777 LIBS="-lkstat $LIBS"
24778 cat >conftest.$ac_ext <<_ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24785 /* Override any GCC internal prototype to avoid an error.
24786 Use char because int might match the return type of a GCC
24787 builtin and then its argument prototype would still apply. */
24791 char kstat_open ();
24795 return kstat_open ();
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (ac_try="$ac_link"
24802 case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_link") 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest$ac_exeext &&
24818 $as_test_x conftest$ac_exeext; then
24819 ac_cv_lib_kstat_kstat_open=yes
24821 $as_echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 ac_cv_lib_kstat_kstat_open=no
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828 conftest$ac_exeext conftest.$ac_ext
24829 LIBS=$ac_check_lib_save_LIBS
24831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
24832 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
24833 if test $ac_cv_lib_kstat_kstat_open = yes; then
24834 cat >>confdefs.h <<_ACEOF
24835 #define HAVE_LIBKSTAT 1
24838 LIBS="-lkstat $LIBS"
24842 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
24844 # Some systems with -lutil have (and need) -lkvm as well, some do not.
24845 # On Solaris, -lkvm requires nlist from -lelf, so check that first
24846 # to get the right answer into the cache.
24847 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
24848 if test $gl_have_func = no; then
24849 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24850 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
24851 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24852 $as_echo_n "(cached) " >&6
24854 ac_check_lib_save_LIBS=$LIBS
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24863 /* Override any GCC internal prototype to avoid an error.
24864 Use char because int might match the return type of a GCC
24865 builtin and then its argument prototype would still apply. */
24873 return elf_begin ();
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (ac_try="$ac_link"
24880 case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24885 $as_echo "$ac_try_echo") >&5
24886 (eval "$ac_link") 2>conftest.er1
24888 grep -v '^ *+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && {
24893 test -z "$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 } && test -s conftest$ac_exeext &&
24896 $as_test_x conftest$ac_exeext; then
24897 ac_cv_lib_elf_elf_begin=yes
24899 $as_echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 ac_cv_lib_elf_elf_begin=no
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906 conftest$ac_exeext conftest.$ac_ext
24907 LIBS=$ac_check_lib_save_LIBS
24909 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24910 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
24911 if test $ac_cv_lib_elf_elf_begin = yes; then
24916 if test $gl_have_func = no; then
24917 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
24918 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
24919 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
24920 $as_echo_n "(cached) " >&6
24922 ac_check_lib_save_LIBS=$LIBS
24924 cat >conftest.$ac_ext <<_ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h. */
24931 /* Override any GCC internal prototype to avoid an error.
24932 Use char because int might match the return type of a GCC
24933 builtin and then its argument prototype would still apply. */
24941 return kvm_open ();
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24953 $as_echo "$ac_try_echo") >&5
24954 (eval "$ac_link") 2>conftest.er1
24956 grep -v '^ *+' conftest.er1 >conftest.err
24958 cat conftest.err >&5
24959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest$ac_exeext &&
24964 $as_test_x conftest$ac_exeext; then
24965 ac_cv_lib_kvm_kvm_open=yes
24967 $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_cv_lib_kvm_kvm_open=no
24973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24974 conftest$ac_exeext conftest.$ac_ext
24975 LIBS=$ac_check_lib_save_LIBS
24977 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
24978 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
24979 if test $ac_cv_lib_kvm_kvm_open = yes; then
24983 # Check for the 4.4BSD definition of getloadavg.
24984 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
24985 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
24986 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
24987 $as_echo_n "(cached) " >&6
24989 ac_check_lib_save_LIBS=$LIBS
24990 LIBS="-lutil $LIBS"
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24998 /* Override any GCC internal prototype to avoid an error.
24999 Use char because int might match the return type of a GCC
25000 builtin and then its argument prototype would still apply. */
25004 char getloadavg ();
25008 return getloadavg ();
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017 *) ac_try_echo=$ac_try;;
25019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25020 $as_echo "$ac_try_echo") >&5
25021 (eval "$ac_link") 2>conftest.er1
25023 grep -v '^ *+' conftest.er1 >conftest.err
25025 cat conftest.err >&5
25026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } && {
25028 test -z "$ac_c_werror_flag" ||
25029 test ! -s conftest.err
25030 } && test -s conftest$ac_exeext &&
25031 $as_test_x conftest$ac_exeext; then
25032 ac_cv_lib_util_getloadavg=yes
25034 $as_echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25037 ac_cv_lib_util_getloadavg=no
25040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25041 conftest$ac_exeext conftest.$ac_ext
25042 LIBS=$ac_check_lib_save_LIBS
25044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
25045 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
25046 if test $ac_cv_lib_util_getloadavg = yes; then
25047 LIBS="-lutil $LIBS" gl_have_func=yes gl_cv_func_getloadavg_setgid=yes
25052 if test $gl_have_func = no; then
25053 # There is a commonly available library for RS/6000 AIX.
25054 # Since it is not a standard part of AIX, it might be installed locally.
25055 gl_getloadavg_LIBS=$LIBS
25056 LIBS="-L/usr/local/lib $LIBS"
25057 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
25058 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
25059 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
25060 $as_echo_n "(cached) " >&6
25062 ac_check_lib_save_LIBS=$LIBS
25063 LIBS="-lgetloadavg $LIBS"
25064 cat >conftest.$ac_ext <<_ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25071 /* Override any GCC internal prototype to avoid an error.
25072 Use char because int might match the return type of a GCC
25073 builtin and then its argument prototype would still apply. */
25077 char getloadavg ();
25081 return getloadavg ();
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (ac_try="$ac_link"
25088 case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25093 $as_echo "$ac_try_echo") >&5
25094 (eval "$ac_link") 2>conftest.er1
25096 grep -v '^ *+' conftest.er1 >conftest.err
25098 cat conftest.err >&5
25099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } && {
25101 test -z "$ac_c_werror_flag" ||
25102 test ! -s conftest.err
25103 } && test -s conftest$ac_exeext &&
25104 $as_test_x conftest$ac_exeext; then
25105 ac_cv_lib_getloadavg_getloadavg=yes
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 ac_cv_lib_getloadavg_getloadavg=no
25113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25114 conftest$ac_exeext conftest.$ac_ext
25115 LIBS=$ac_check_lib_save_LIBS
25117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
25118 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
25119 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
25120 LIBS="-lgetloadavg $LIBS"
25122 LIBS=$gl_getloadavg_LIBS
25127 # Make sure it is really in the library, if we think we found it,
25128 # otherwise set up the replacement function.
25130 for ac_func in getloadavg
25132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25133 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25134 $as_echo_n "checking for $ac_func... " >&6; }
25135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25136 $as_echo_n "(cached) " >&6
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25146 #define $ac_func innocuous_$ac_func
25148 /* System header to define __stub macros and hopefully few prototypes,
25149 which can conflict with char $ac_func (); below.
25150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25151 <limits.h> exists even on freestanding compilers. */
25154 # include <limits.h>
25156 # include <assert.h>
25161 /* Override any GCC internal prototype to avoid an error.
25162 Use char because int might match the return type of a GCC
25163 builtin and then its argument prototype would still apply. */
25168 /* The GNU C library defines this for functions which it implements
25169 to always fail with ENOSYS. Some functions are actually named
25170 something starting with __ and the normal name is an alias. */
25171 #if defined __stub_$ac_func || defined __stub___$ac_func
25178 return $ac_func ();
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25190 $as_echo "$ac_try_echo") >&5
25191 (eval "$ac_link") 2>conftest.er1
25193 grep -v '^ *+' conftest.er1 >conftest.err
25195 cat conftest.err >&5
25196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && {
25198 test -z "$ac_c_werror_flag" ||
25199 test ! -s conftest.err
25200 } && test -s conftest$ac_exeext &&
25201 $as_test_x conftest$ac_exeext; then
25202 eval "$as_ac_var=yes"
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 eval "$as_ac_var=no"
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25213 ac_res=`eval 'as_val=${'$as_ac_var'}
25214 $as_echo "$as_val"'`
25215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25216 $as_echo "$ac_res" >&6; }
25217 if test `eval 'as_val=${'$as_ac_var'}
25218 $as_echo "$as_val"'` = yes; then
25219 cat >>confdefs.h <<_ACEOF
25220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25224 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
25226 cat >>confdefs.h <<\_ACEOF
25227 #define C_GETLOADAVG 1
25230 # Figure out what our getloadavg.c needs.
25232 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25233 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
25234 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
25235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25236 $as_echo_n "(cached) " >&6
25238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
25239 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
25241 # Is the header compilable?
25242 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
25243 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 $ac_includes_default
25251 #include <sys/dg_sys_info.h>
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25260 $as_echo "$ac_try_echo") >&5
25261 (eval "$ac_compile") 2>conftest.er1
25263 grep -v '^ *+' conftest.er1 >conftest.err
25265 cat conftest.err >&5
25266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); } && {
25268 test -z "$ac_c_werror_flag" ||
25269 test ! -s conftest.err
25270 } && test -s conftest.$ac_objext; then
25271 ac_header_compiler=yes
25273 $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25276 ac_header_compiler=no
25279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25281 $as_echo "$ac_header_compiler" >&6; }
25283 # Is the header present?
25284 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
25285 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
25286 cat >conftest.$ac_ext <<_ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25292 #include <sys/dg_sys_info.h>
25294 if { (ac_try="$ac_cpp conftest.$ac_ext"
25295 case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25300 $as_echo "$ac_try_echo") >&5
25301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } >/dev/null && {
25308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25309 test ! -s conftest.err
25311 ac_header_preproc=yes
25313 $as_echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_header_preproc=no
25319 rm -f conftest.err conftest.$ac_ext
25320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25321 $as_echo "$ac_header_preproc" >&6; }
25323 # So? What about this header?
25324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25326 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
25327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25328 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
25329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
25330 ac_header_preproc=yes
25333 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
25334 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
25335 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
25336 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
25337 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
25338 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
25339 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
25340 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
25341 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
25342 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
25343 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
25344 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
25346 ## ------------------------------------ ##
25347 ## Report this to bug-coreutils@gnu.org ##
25348 ## ------------------------------------ ##
25350 ) | sed "s/^/$as_me: WARNING: /" >&2
25353 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
25354 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
25355 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
25356 $as_echo_n "(cached) " >&6
25358 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
25360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
25361 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
25364 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
25367 cat >>confdefs.h <<\_ACEOF
25372 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
25373 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
25374 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
25375 $as_echo_n "(cached) " >&6
25377 ac_check_lib_save_LIBS=$LIBS
25379 cat >conftest.$ac_ext <<_ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25386 /* Override any GCC internal prototype to avoid an error.
25387 Use char because int might match the return type of a GCC
25388 builtin and then its argument prototype would still apply. */
25392 char dg_sys_info ();
25396 return dg_sys_info ();
25401 rm -f conftest.$ac_objext conftest$ac_exeext
25402 if { (ac_try="$ac_link"
25403 case "(($ac_try" in
25404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405 *) ac_try_echo=$ac_try;;
25407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25408 $as_echo "$ac_try_echo") >&5
25409 (eval "$ac_link") 2>conftest.er1
25411 grep -v '^ *+' conftest.er1 >conftest.err
25413 cat conftest.err >&5
25414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } && {
25416 test -z "$ac_c_werror_flag" ||
25417 test ! -s conftest.err
25418 } && test -s conftest$ac_exeext &&
25419 $as_test_x conftest$ac_exeext; then
25420 ac_cv_lib_dgc_dg_sys_info=yes
25422 $as_echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ac_cv_lib_dgc_dg_sys_info=no
25428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25429 conftest$ac_exeext conftest.$ac_ext
25430 LIBS=$ac_check_lib_save_LIBS
25432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
25433 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
25434 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
25435 cat >>confdefs.h <<_ACEOF
25436 #define HAVE_LIBDGC 1
25447 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
25448 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
25449 # Irix 4.0.5F has the header but not the library.
25450 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
25453 cat >>confdefs.h <<\_ACEOF
25459 if test $gl_have_func = no; then
25460 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25461 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
25462 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
25463 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25464 $as_echo_n "(cached) " >&6
25466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
25467 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
25469 # Is the header compilable?
25470 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
25471 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25479 #include <inq_stats/cpustats.h>
25481 rm -f conftest.$ac_objext
25482 if { (ac_try="$ac_compile"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489 (eval "$ac_compile") 2>conftest.er1
25491 grep -v '^ *+' conftest.er1 >conftest.err
25493 cat conftest.err >&5
25494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } && {
25496 test -z "$ac_c_werror_flag" ||
25497 test ! -s conftest.err
25498 } && test -s conftest.$ac_objext; then
25499 ac_header_compiler=yes
25501 $as_echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_compiler=no
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25509 $as_echo "$ac_header_compiler" >&6; }
25511 # Is the header present?
25512 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
25513 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 #include <inq_stats/cpustats.h>
25522 if { (ac_try="$ac_cpp conftest.$ac_ext"
25523 case "(($ac_try" in
25524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525 *) ac_try_echo=$ac_try;;
25527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25528 $as_echo "$ac_try_echo") >&5
25529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25531 grep -v '^ *+' conftest.er1 >conftest.err
25533 cat conftest.err >&5
25534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } >/dev/null && {
25536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25537 test ! -s conftest.err
25539 ac_header_preproc=yes
25541 $as_echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25544 ac_header_preproc=no
25547 rm -f conftest.err conftest.$ac_ext
25548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25549 $as_echo "$ac_header_preproc" >&6; }
25551 # So? What about this header?
25552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25554 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
25555 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25556 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
25557 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
25558 ac_header_preproc=yes
25561 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
25562 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
25563 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
25564 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
25565 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
25566 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
25567 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
25568 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
25569 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
25570 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
25571 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
25572 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
25574 ## ------------------------------------ ##
25575 ## Report this to bug-coreutils@gnu.org ##
25576 ## ------------------------------------ ##
25578 ) | sed "s/^/$as_me: WARNING: /" >&2
25581 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
25582 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
25583 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
25584 $as_echo_n "(cached) " >&6
25586 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
25588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
25589 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
25592 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
25595 cat >>confdefs.h <<\_ACEOF
25600 cat >>confdefs.h <<\_ACEOF
25609 if test $gl_have_func = no; then
25610 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25611 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
25612 $as_echo_n "checking for sys/cpustats.h... " >&6; }
25613 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25614 $as_echo_n "(cached) " >&6
25616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
25617 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
25619 # Is the header compilable?
25620 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
25621 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
25622 cat >conftest.$ac_ext <<_ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 $ac_includes_default
25629 #include <sys/cpustats.h>
25631 rm -f conftest.$ac_objext
25632 if { (ac_try="$ac_compile"
25633 case "(($ac_try" in
25634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635 *) ac_try_echo=$ac_try;;
25637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25638 $as_echo "$ac_try_echo") >&5
25639 (eval "$ac_compile") 2>conftest.er1
25641 grep -v '^ *+' conftest.er1 >conftest.err
25643 cat conftest.err >&5
25644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } && {
25646 test -z "$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25648 } && test -s conftest.$ac_objext; then
25649 ac_header_compiler=yes
25651 $as_echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 ac_header_compiler=no
25657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25659 $as_echo "$ac_header_compiler" >&6; }
25661 # Is the header present?
25662 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
25663 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 #include <sys/cpustats.h>
25672 if { (ac_try="$ac_cpp conftest.$ac_ext"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } >/dev/null && {
25686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25689 ac_header_preproc=yes
25691 $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ac_header_preproc=no
25697 rm -f conftest.err conftest.$ac_ext
25698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 $as_echo "$ac_header_preproc" >&6; }
25701 # So? What about this header?
25702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25704 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
25705 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
25707 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
25708 ac_header_preproc=yes
25711 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
25712 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
25713 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
25714 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
25715 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
25716 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
25717 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
25718 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
25719 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
25720 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
25721 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
25722 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
25724 ## ------------------------------------ ##
25725 ## Report this to bug-coreutils@gnu.org ##
25726 ## ------------------------------------ ##
25728 ) | sed "s/^/$as_me: WARNING: /" >&2
25731 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
25732 $as_echo_n "checking for sys/cpustats.h... " >&6; }
25733 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
25734 $as_echo_n "(cached) " >&6
25736 ac_cv_header_sys_cpustats_h=$ac_header_preproc
25738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
25739 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
25742 if test $ac_cv_header_sys_cpustats_h = yes; then
25743 gl_have_func=yes; cat >>confdefs.h <<\_ACEOF
25752 if test $gl_have_func = no; then
25754 for ac_header in mach/mach.h
25756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25759 $as_echo_n "checking for $ac_header... " >&6; }
25760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25761 $as_echo_n "(cached) " >&6
25763 ac_res=`eval 'as_val=${'$as_ac_Header'}
25764 $as_echo "$as_val"'`
25765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25766 $as_echo "$ac_res" >&6; }
25768 # Is the header compilable?
25769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25770 $as_echo_n "checking $ac_header usability... " >&6; }
25771 cat >conftest.$ac_ext <<_ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h. */
25777 $ac_includes_default
25778 #include <$ac_header>
25780 rm -f conftest.$ac_objext
25781 if { (ac_try="$ac_compile"
25782 case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25787 $as_echo "$ac_try_echo") >&5
25788 (eval "$ac_compile") 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } && {
25795 test -z "$ac_c_werror_flag" ||
25796 test ! -s conftest.err
25797 } && test -s conftest.$ac_objext; then
25798 ac_header_compiler=yes
25800 $as_echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25803 ac_header_compiler=no
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25808 $as_echo "$ac_header_compiler" >&6; }
25810 # Is the header present?
25811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25812 $as_echo_n "checking $ac_header presence... " >&6; }
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 #include <$ac_header>
25821 if { (ac_try="$ac_cpp conftest.$ac_ext"
25822 case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } >/dev/null && {
25835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25838 ac_header_preproc=yes
25840 $as_echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25843 ac_header_preproc=no
25846 rm -f conftest.err conftest.$ac_ext
25847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25848 $as_echo "$ac_header_preproc" >&6; }
25850 # So? What about this header?
25851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25857 ac_header_preproc=yes
25860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25863 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25867 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25873 ## ------------------------------------ ##
25874 ## Report this to bug-coreutils@gnu.org ##
25875 ## ------------------------------------ ##
25877 ) | sed "s/^/$as_me: WARNING: /" >&2
25880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25881 $as_echo_n "checking for $ac_header... " >&6; }
25882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25883 $as_echo_n "(cached) " >&6
25885 eval "$as_ac_Header=\$ac_header_preproc"
25887 ac_res=`eval 'as_val=${'$as_ac_Header'}
25888 $as_echo "$as_val"'`
25889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25890 $as_echo "$ac_res" >&6; }
25893 if test `eval 'as_val=${'$as_ac_Header'}
25894 $as_echo "$as_val"'` = yes; then
25895 cat >>confdefs.h <<_ACEOF
25896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25906 for ac_header in nlist.h
25908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25911 $as_echo_n "checking for $ac_header... " >&6; }
25912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25913 $as_echo_n "(cached) " >&6
25915 ac_res=`eval 'as_val=${'$as_ac_Header'}
25916 $as_echo "$as_val"'`
25917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25918 $as_echo "$ac_res" >&6; }
25920 # Is the header compilable?
25921 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25922 $as_echo_n "checking $ac_header usability... " >&6; }
25923 cat >conftest.$ac_ext <<_ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 $ac_includes_default
25930 #include <$ac_header>
25932 rm -f conftest.$ac_objext
25933 if { (ac_try="$ac_compile"
25934 case "(($ac_try" in
25935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 *) ac_try_echo=$ac_try;;
25938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25939 $as_echo "$ac_try_echo") >&5
25940 (eval "$ac_compile") 2>conftest.er1
25942 grep -v '^ *+' conftest.er1 >conftest.err
25944 cat conftest.err >&5
25945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } && {
25947 test -z "$ac_c_werror_flag" ||
25948 test ! -s conftest.err
25949 } && test -s conftest.$ac_objext; then
25950 ac_header_compiler=yes
25952 $as_echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25955 ac_header_compiler=no
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25960 $as_echo "$ac_header_compiler" >&6; }
25962 # Is the header present?
25963 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25964 $as_echo_n "checking $ac_header presence... " >&6; }
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 #include <$ac_header>
25973 if { (ac_try="$ac_cpp conftest.$ac_ext"
25974 case "(($ac_try" in
25975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976 *) ac_try_echo=$ac_try;;
25978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25979 $as_echo "$ac_try_echo") >&5
25980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25982 grep -v '^ *+' conftest.er1 >conftest.err
25984 cat conftest.err >&5
25985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } >/dev/null && {
25987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25988 test ! -s conftest.err
25990 ac_header_preproc=yes
25992 $as_echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25995 ac_header_preproc=no
25998 rm -f conftest.err conftest.$ac_ext
25999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26000 $as_echo "$ac_header_preproc" >&6; }
26002 # So? What about this header?
26003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26006 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26009 ac_header_preproc=yes
26012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26013 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26015 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26017 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26019 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26023 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26025 ## ------------------------------------ ##
26026 ## Report this to bug-coreutils@gnu.org ##
26027 ## ------------------------------------ ##
26029 ) | sed "s/^/$as_me: WARNING: /" >&2
26032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26033 $as_echo_n "checking for $ac_header... " >&6; }
26034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26035 $as_echo_n "(cached) " >&6
26037 eval "$as_ac_Header=\$ac_header_preproc"
26039 ac_res=`eval 'as_val=${'$as_ac_Header'}
26040 $as_echo "$as_val"'`
26041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26042 $as_echo "$ac_res" >&6; }
26045 if test `eval 'as_val=${'$as_ac_Header'}
26046 $as_echo "$as_val"'` = yes; then
26047 cat >>confdefs.h <<_ACEOF
26048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26050 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
26051 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
26052 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
26053 $as_echo_n "(cached) " >&6
26055 cat >conftest.$ac_ext <<_ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h. */
26066 static struct nlist ac_aggr;
26067 if (ac_aggr.n_un.n_name)
26073 rm -f conftest.$ac_objext
26074 if { (ac_try="$ac_compile"
26075 case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081 (eval "$ac_compile") 2>conftest.er1
26083 grep -v '^ *+' conftest.er1 >conftest.err
26085 cat conftest.err >&5
26086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } && {
26088 test -z "$ac_c_werror_flag" ||
26089 test ! -s conftest.err
26090 } && test -s conftest.$ac_objext; then
26091 ac_cv_member_struct_nlist_n_un_n_name=yes
26093 $as_echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26096 cat >conftest.$ac_ext <<_ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h. */
26107 static struct nlist ac_aggr;
26108 if (sizeof ac_aggr.n_un.n_name)
26114 rm -f conftest.$ac_objext
26115 if { (ac_try="$ac_compile"
26116 case "(($ac_try" in
26117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118 *) ac_try_echo=$ac_try;;
26120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26121 $as_echo "$ac_try_echo") >&5
26122 (eval "$ac_compile") 2>conftest.er1
26124 grep -v '^ *+' conftest.er1 >conftest.err
26126 cat conftest.err >&5
26127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } && {
26129 test -z "$ac_c_werror_flag" ||
26130 test ! -s conftest.err
26131 } && test -s conftest.$ac_objext; then
26132 ac_cv_member_struct_nlist_n_un_n_name=yes
26134 $as_echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26137 ac_cv_member_struct_nlist_n_un_n_name=no
26140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
26146 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
26147 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
26149 cat >>confdefs.h <<_ACEOF
26150 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
26154 cat >>confdefs.h <<\_ACEOF
26155 #define NLIST_NAME_UNION 1
26169 # Some definitions of getloadavg require that the program be installed setgid.
26170 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
26171 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
26172 if test "${gl_cv_func_getloadavg_setgid+set}" = set; then
26173 $as_echo_n "(cached) " >&6
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 #define CONFIGURING_GETLOADAVG
26182 #include "$srcdir/lib/getloadavg.c"
26183 #ifdef LDAV_PRIVILEGED
26184 Yowza Am I SETGID yet
26188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26189 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
26190 gl_cv_func_getloadavg_setgid=yes
26192 gl_cv_func_getloadavg_setgid=no
26197 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getloadavg_setgid" >&5
26198 $as_echo "$gl_cv_func_getloadavg_setgid" >&6; }
26199 if test $gl_cv_func_getloadavg_setgid = yes; then
26202 cat >>confdefs.h <<\_ACEOF
26203 #define GETLOADAVG_PRIVILEGED 1
26210 if test $gl_cv_func_getloadavg_setgid = yes; then
26211 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
26212 $as_echo_n "checking group of /dev/kmem... " >&6; }
26213 if test "${gl_cv_group_kmem+set}" = set; then
26214 $as_echo_n "(cached) " >&6
26216 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
26217 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
26218 # If we got an error (system does not support symlinks), try without -L.
26219 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
26220 gl_cv_group_kmem=`echo $ac_ls_output \
26221 | sed -ne 's/[ ][ ]*/ /g
26222 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/
26226 { $as_echo "$as_me:$LINENO: result: $gl_cv_group_kmem" >&5
26227 $as_echo "$gl_cv_group_kmem" >&6; }
26228 KMEM_GROUP=$gl_cv_group_kmem
26230 if test "x$gl_save_LIBS" = x; then
26231 GETLOADAVG_LIBS=$LIBS
26233 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
26239 gl_LIBOBJS="$gl_LIBOBJS getndelim2.$ac_objext"
26246 if test -n "$GETOPT_H"; then
26248 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26249 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
26253 cat >>confdefs.h <<\_ACEOF
26254 #define __GETOPT_PREFIX rpl_
26277 for ac_header in OS.h
26279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26282 $as_echo_n "checking for $ac_header... " >&6; }
26283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284 $as_echo_n "(cached) " >&6
26286 ac_res=`eval 'as_val=${'$as_ac_Header'}
26287 $as_echo "$as_val"'`
26288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26289 $as_echo "$ac_res" >&6; }
26291 # Is the header compilable?
26292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26293 $as_echo_n "checking $ac_header usability... " >&6; }
26294 cat >conftest.$ac_ext <<_ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 $ac_includes_default
26301 #include <$ac_header>
26303 rm -f conftest.$ac_objext
26304 if { (ac_try="$ac_compile"
26305 case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26310 $as_echo "$ac_try_echo") >&5
26311 (eval "$ac_compile") 2>conftest.er1
26313 grep -v '^ *+' conftest.er1 >conftest.err
26315 cat conftest.err >&5
26316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } && {
26318 test -z "$ac_c_werror_flag" ||
26319 test ! -s conftest.err
26320 } && test -s conftest.$ac_objext; then
26321 ac_header_compiler=yes
26323 $as_echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26326 ac_header_compiler=no
26329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26331 $as_echo "$ac_header_compiler" >&6; }
26333 # Is the header present?
26334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26335 $as_echo_n "checking $ac_header presence... " >&6; }
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 #include <$ac_header>
26344 if { (ac_try="$ac_cpp conftest.$ac_ext"
26345 case "(($ac_try" in
26346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26350 $as_echo "$ac_try_echo") >&5
26351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26353 grep -v '^ *+' conftest.er1 >conftest.err
26355 cat conftest.err >&5
26356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } >/dev/null && {
26358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26359 test ! -s conftest.err
26361 ac_header_preproc=yes
26363 $as_echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26366 ac_header_preproc=no
26369 rm -f conftest.err conftest.$ac_ext
26370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26371 $as_echo "$ac_header_preproc" >&6; }
26373 # So? What about this header?
26374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26380 ac_header_preproc=yes
26383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26386 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26390 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26396 ## ------------------------------------ ##
26397 ## Report this to bug-coreutils@gnu.org ##
26398 ## ------------------------------------ ##
26400 ) | sed "s/^/$as_me: WARNING: /" >&2
26403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26404 $as_echo_n "checking for $ac_header... " >&6; }
26405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26406 $as_echo_n "(cached) " >&6
26408 eval "$as_ac_Header=\$ac_header_preproc"
26410 ac_res=`eval 'as_val=${'$as_ac_Header'}
26411 $as_echo "$as_val"'`
26412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26413 $as_echo "$ac_res" >&6; }
26416 if test `eval 'as_val=${'$as_ac_Header'}
26417 $as_echo "$as_val"'` = yes; then
26418 cat >>confdefs.h <<_ACEOF
26419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26427 for ac_func in getpagesize
26429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26431 $as_echo_n "checking for $ac_func... " >&6; }
26432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26433 $as_echo_n "(cached) " >&6
26435 cat >conftest.$ac_ext <<_ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26443 #define $ac_func innocuous_$ac_func
26445 /* System header to define __stub macros and hopefully few prototypes,
26446 which can conflict with char $ac_func (); below.
26447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26448 <limits.h> exists even on freestanding compilers. */
26451 # include <limits.h>
26453 # include <assert.h>
26458 /* Override any GCC internal prototype to avoid an error.
26459 Use char because int might match the return type of a GCC
26460 builtin and then its argument prototype would still apply. */
26465 /* The GNU C library defines this for functions which it implements
26466 to always fail with ENOSYS. Some functions are actually named
26467 something starting with __ and the normal name is an alias. */
26468 #if defined __stub_$ac_func || defined __stub___$ac_func
26475 return $ac_func ();
26480 rm -f conftest.$ac_objext conftest$ac_exeext
26481 if { (ac_try="$ac_link"
26482 case "(($ac_try" in
26483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26484 *) ac_try_echo=$ac_try;;
26486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26487 $as_echo "$ac_try_echo") >&5
26488 (eval "$ac_link") 2>conftest.er1
26490 grep -v '^ *+' conftest.er1 >conftest.err
26492 cat conftest.err >&5
26493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } && {
26495 test -z "$ac_c_werror_flag" ||
26496 test ! -s conftest.err
26497 } && test -s conftest$ac_exeext &&
26498 $as_test_x conftest$ac_exeext; then
26499 eval "$as_ac_var=yes"
26501 $as_echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 eval "$as_ac_var=no"
26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508 conftest$ac_exeext conftest.$ac_ext
26510 ac_res=`eval 'as_val=${'$as_ac_var'}
26511 $as_echo "$as_val"'`
26512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26513 $as_echo "$ac_res" >&6; }
26514 if test `eval 'as_val=${'$as_ac_var'}
26515 $as_echo "$as_val"'` = yes; then
26516 cat >>confdefs.h <<_ACEOF
26517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26529 gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
26549 { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
26550 $as_echo_n "checking whether __fsetlocking is declared... " >&6; }
26551 if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
26552 $as_echo_n "(cached) " >&6
26554 cat >conftest.$ac_ext <<_ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h. */
26561 #if HAVE_STDIO_EXT_H
26562 #include <stdio_ext.h>
26568 #ifndef __fsetlocking
26569 (void) __fsetlocking;
26576 rm -f conftest.$ac_objext
26577 if { (ac_try="$ac_compile"
26578 case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26583 $as_echo "$ac_try_echo") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26586 grep -v '^ *+' conftest.er1 >conftest.err
26588 cat conftest.err >&5
26589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_c_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 ac_cv_have_decl___fsetlocking=yes
26596 $as_echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 ac_cv_have_decl___fsetlocking=no
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
26605 $as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
26606 if test $ac_cv_have_decl___fsetlocking = yes; then
26608 cat >>confdefs.h <<_ACEOF
26609 #define HAVE_DECL___FSETLOCKING 1
26614 cat >>confdefs.h <<_ACEOF
26615 #define HAVE_DECL___FSETLOCKING 0
26645 cat >>confdefs.h <<\_ACEOF
26646 #define getpass gnu_getpass
26652 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
26675 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
26676 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
26677 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
26678 $as_echo_n "(cached) " >&6
26680 cat >conftest.$ac_ext <<_ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 #include <sys/time.h>
26693 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
26695 return !(x | c.tv_sec | c.tv_usec);
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26708 $as_echo "$ac_try_echo") >&5
26709 (eval "$ac_compile") 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && {
26716 test -z "$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 } && test -s conftest.$ac_objext; then
26719 gl_cv_func_gettimeofday_posix_signature=yes
26721 $as_echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 gl_cv_func_gettimeofday_posix_signature=no
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26729 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
26730 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
26735 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
26736 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
26737 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
26738 $as_echo_n "(cached) " >&6
26740 if test "$cross_compiling" = yes; then
26741 gl_cv_func_gettimeofday_clobber=yes
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <string.h>
26750 #include <sys/time.h>
26752 #include <stdlib.h>
26760 struct tm saved_lt;
26762 lt = localtime (&t);
26764 gettimeofday (&tv, NULL);
26765 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
26771 rm -f conftest$ac_exeext
26772 if { (ac_try="$ac_link"
26773 case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26778 $as_echo "$ac_try_echo") >&5
26779 (eval "$ac_link") 2>&5
26781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26783 { (case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26788 $as_echo "$ac_try_echo") >&5
26789 (eval "$ac_try") 2>&5
26791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; }; then
26793 gl_cv_func_gettimeofday_clobber=no
26795 $as_echo "$as_me: program exited with status $ac_status" >&5
26796 $as_echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ( exit $ac_status )
26800 gl_cv_func_gettimeofday_clobber=yes
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26807 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
26808 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
26810 if test $gl_cv_func_gettimeofday_clobber = yes; then
26811 REPLACE_GETTIMEOFDAY=1
26812 SYS_TIME_H=sys/time.h
26814 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
26817 for ac_header in sys/timeb.h
26819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26822 $as_echo_n "checking for $ac_header... " >&6; }
26823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26824 $as_echo_n "(cached) " >&6
26826 ac_res=`eval 'as_val=${'$as_ac_Header'}
26827 $as_echo "$as_val"'`
26828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26829 $as_echo "$ac_res" >&6; }
26831 # Is the header compilable?
26832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26833 $as_echo_n "checking $ac_header usability... " >&6; }
26834 cat >conftest.$ac_ext <<_ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h. */
26840 $ac_includes_default
26841 #include <$ac_header>
26843 rm -f conftest.$ac_objext
26844 if { (ac_try="$ac_compile"
26845 case "(($ac_try" in
26846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847 *) ac_try_echo=$ac_try;;
26849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26850 $as_echo "$ac_try_echo") >&5
26851 (eval "$ac_compile") 2>conftest.er1
26853 grep -v '^ *+' conftest.er1 >conftest.err
26855 cat conftest.err >&5
26856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } && {
26858 test -z "$ac_c_werror_flag" ||
26859 test ! -s conftest.err
26860 } && test -s conftest.$ac_objext; then
26861 ac_header_compiler=yes
26863 $as_echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 ac_header_compiler=no
26869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26871 $as_echo "$ac_header_compiler" >&6; }
26873 # Is the header present?
26874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26875 $as_echo_n "checking $ac_header presence... " >&6; }
26876 cat >conftest.$ac_ext <<_ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882 #include <$ac_header>
26884 if { (ac_try="$ac_cpp conftest.$ac_ext"
26885 case "(($ac_try" in
26886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887 *) ac_try_echo=$ac_try;;
26889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26890 $as_echo "$ac_try_echo") >&5
26891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26893 grep -v '^ *+' conftest.er1 >conftest.err
26895 cat conftest.err >&5
26896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } >/dev/null && {
26898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26899 test ! -s conftest.err
26901 ac_header_preproc=yes
26903 $as_echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26906 ac_header_preproc=no
26909 rm -f conftest.err conftest.$ac_ext
26910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26911 $as_echo "$ac_header_preproc" >&6; }
26913 # So? What about this header?
26914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26920 ac_header_preproc=yes
26923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26936 ## ------------------------------------ ##
26937 ## Report this to bug-coreutils@gnu.org ##
26938 ## ------------------------------------ ##
26940 ) | sed "s/^/$as_me: WARNING: /" >&2
26943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 $as_echo_n "checking for $ac_header... " >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946 $as_echo_n "(cached) " >&6
26948 eval "$as_ac_Header=\$ac_header_preproc"
26950 ac_res=`eval 'as_val=${'$as_ac_Header'}
26951 $as_echo "$as_val"'`
26952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26953 $as_echo "$ac_res" >&6; }
26956 if test `eval 'as_val=${'$as_ac_Header'}
26957 $as_echo "$as_val"'` = yes; then
26958 cat >>confdefs.h <<_ACEOF
26959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26967 for ac_func in _ftime
26969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26971 $as_echo_n "checking for $ac_func... " >&6; }
26972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26973 $as_echo_n "(cached) " >&6
26975 cat >conftest.$ac_ext <<_ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h. */
26981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26983 #define $ac_func innocuous_$ac_func
26985 /* System header to define __stub macros and hopefully few prototypes,
26986 which can conflict with char $ac_func (); below.
26987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26988 <limits.h> exists even on freestanding compilers. */
26991 # include <limits.h>
26993 # include <assert.h>
26998 /* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
27005 /* The GNU C library defines this for functions which it implements
27006 to always fail with ENOSYS. Some functions are actually named
27007 something starting with __ and the normal name is an alias. */
27008 #if defined __stub_$ac_func || defined __stub___$ac_func
27015 return $ac_func ();
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028 (eval "$ac_link") 2>conftest.er1
27030 grep -v '^ *+' conftest.er1 >conftest.err
27032 cat conftest.err >&5
27033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } && {
27035 test -z "$ac_c_werror_flag" ||
27036 test ! -s conftest.err
27037 } && test -s conftest$ac_exeext &&
27038 $as_test_x conftest$ac_exeext; then
27039 eval "$as_ac_var=yes"
27041 $as_echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27044 eval "$as_ac_var=no"
27047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27048 conftest$ac_exeext conftest.$ac_ext
27050 ac_res=`eval 'as_val=${'$as_ac_var'}
27051 $as_echo "$as_val"'`
27052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27053 $as_echo "$ac_res" >&6; }
27054 if test `eval 'as_val=${'$as_ac_var'}
27055 $as_echo "$as_val"'` = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27065 cat >>confdefs.h <<\_ACEOF
27066 #define gmtime rpl_gmtime
27070 cat >>confdefs.h <<\_ACEOF
27071 #define localtime rpl_localtime
27076 cat >>confdefs.h <<\_ACEOF
27077 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
27083 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
27084 REPLACE_GETTIMEOFDAY=1
27085 SYS_TIME_H=sys/time.h
27086 if test $gl_cv_func_gettimeofday_clobber != yes; then
27087 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
27090 for ac_header in sys/timeb.h
27092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27094 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27095 $as_echo_n "checking for $ac_header... " >&6; }
27096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27097 $as_echo_n "(cached) " >&6
27099 ac_res=`eval 'as_val=${'$as_ac_Header'}
27100 $as_echo "$as_val"'`
27101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27102 $as_echo "$ac_res" >&6; }
27104 # Is the header compilable?
27105 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27106 $as_echo_n "checking $ac_header usability... " >&6; }
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 $ac_includes_default
27114 #include <$ac_header>
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27123 $as_echo "$ac_try_echo") >&5
27124 (eval "$ac_compile") 2>conftest.er1
27126 grep -v '^ *+' conftest.er1 >conftest.err
27128 cat conftest.err >&5
27129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } && {
27131 test -z "$ac_c_werror_flag" ||
27132 test ! -s conftest.err
27133 } && test -s conftest.$ac_objext; then
27134 ac_header_compiler=yes
27136 $as_echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27139 ac_header_compiler=no
27142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27144 $as_echo "$ac_header_compiler" >&6; }
27146 # Is the header present?
27147 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27148 $as_echo_n "checking $ac_header presence... " >&6; }
27149 cat >conftest.$ac_ext <<_ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h. */
27155 #include <$ac_header>
27157 if { (ac_try="$ac_cpp conftest.$ac_ext"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27163 $as_echo "$ac_try_echo") >&5
27164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27166 grep -v '^ *+' conftest.er1 >conftest.err
27168 cat conftest.err >&5
27169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } >/dev/null && {
27171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27172 test ! -s conftest.err
27174 ac_header_preproc=yes
27176 $as_echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27179 ac_header_preproc=no
27182 rm -f conftest.err conftest.$ac_ext
27183 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27184 $as_echo "$ac_header_preproc" >&6; }
27186 # So? What about this header?
27187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27190 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27192 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27193 ac_header_preproc=yes
27196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27197 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27199 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27201 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27203 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27207 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27209 ## ------------------------------------ ##
27210 ## Report this to bug-coreutils@gnu.org ##
27211 ## ------------------------------------ ##
27213 ) | sed "s/^/$as_me: WARNING: /" >&2
27216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27217 $as_echo_n "checking for $ac_header... " >&6; }
27218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27219 $as_echo_n "(cached) " >&6
27221 eval "$as_ac_Header=\$ac_header_preproc"
27223 ac_res=`eval 'as_val=${'$as_ac_Header'}
27224 $as_echo "$as_val"'`
27225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27226 $as_echo "$ac_res" >&6; }
27229 if test `eval 'as_val=${'$as_ac_Header'}
27230 $as_echo "$as_val"'` = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27240 for ac_func in _ftime
27242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27243 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27244 $as_echo_n "checking for $ac_func... " >&6; }
27245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27246 $as_echo_n "(cached) " >&6
27248 cat >conftest.$ac_ext <<_ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h. */
27254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27256 #define $ac_func innocuous_$ac_func
27258 /* System header to define __stub macros and hopefully few prototypes,
27259 which can conflict with char $ac_func (); below.
27260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27261 <limits.h> exists even on freestanding compilers. */
27264 # include <limits.h>
27266 # include <assert.h>
27271 /* Override any GCC internal prototype to avoid an error.
27272 Use char because int might match the return type of a GCC
27273 builtin and then its argument prototype would still apply. */
27278 /* The GNU C library defines this for functions which it implements
27279 to always fail with ENOSYS. Some functions are actually named
27280 something starting with __ and the normal name is an alias. */
27281 #if defined __stub_$ac_func || defined __stub___$ac_func
27288 return $ac_func ();
27293 rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27300 $as_echo "$ac_try_echo") >&5
27301 (eval "$ac_link") 2>conftest.er1
27303 grep -v '^ *+' conftest.er1 >conftest.err
27305 cat conftest.err >&5
27306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_c_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest$ac_exeext &&
27311 $as_test_x conftest$ac_exeext; then
27312 eval "$as_ac_var=yes"
27314 $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 eval "$as_ac_var=no"
27320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321 conftest$ac_exeext conftest.$ac_ext
27323 ac_res=`eval 'as_val=${'$as_ac_var'}
27324 $as_echo "$as_val"'`
27325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27326 $as_echo "$ac_res" >&6; }
27327 if test `eval 'as_val=${'$as_ac_var'}
27328 $as_echo "$as_val"'` = yes; then
27329 cat >>confdefs.h <<_ACEOF
27330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27341 gl_LIBOBJS="$gl_LIBOBJS getugroups.$ac_objext"
27343 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
27344 $as_echo_n "checking type of array argument to getgroups... " >&6; }
27345 if test "${ac_cv_type_getgroups+set}" = set; then
27346 $as_echo_n "(cached) " >&6
27348 if test "$cross_compiling" = yes; then
27349 ac_cv_type_getgroups=cross
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 /* Thanks to Mike Rendell for this test. */
27358 $ac_includes_default
27361 #define MAX(x, y) ((x) > (y) ? (x) : (y))
27366 gid_t gidset[NGID];
27368 union { gid_t gval; long int lval; } val;
27371 for (i = 0; i < NGID; i++)
27372 gidset[i] = val.gval;
27373 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
27375 /* Exit non-zero if getgroups seems to require an array of ints. This
27376 happens when gid_t is short int but getgroups modifies an array
27378 return n > 0 && gidset[n] != val.gval;
27381 rm -f conftest$ac_exeext
27382 if { (ac_try="$ac_link"
27383 case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27388 $as_echo "$ac_try_echo") >&5
27389 (eval "$ac_link") 2>&5
27391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27393 { (case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27398 $as_echo "$ac_try_echo") >&5
27399 (eval "$ac_try") 2>&5
27401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_type_getgroups=gid_t
27405 $as_echo "$as_me: program exited with status $ac_status" >&5
27406 $as_echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27409 ( exit $ac_status )
27410 ac_cv_type_getgroups=int
27412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27416 if test $ac_cv_type_getgroups = cross; then
27417 cat >conftest.$ac_ext <<_ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27423 #include <unistd.h>
27426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27427 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
27428 ac_cv_type_getgroups=gid_t
27430 ac_cv_type_getgroups=int
27436 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
27437 $as_echo "$ac_cv_type_getgroups" >&6; }
27439 cat >>confdefs.h <<_ACEOF
27440 #define GETGROUPS_T $ac_cv_type_getgroups
27447 for ac_func in getusershell
27449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27451 $as_echo_n "checking for $ac_func... " >&6; }
27452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27453 $as_echo_n "(cached) " >&6
27455 cat >conftest.$ac_ext <<_ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27463 #define $ac_func innocuous_$ac_func
27465 /* System header to define __stub macros and hopefully few prototypes,
27466 which can conflict with char $ac_func (); below.
27467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468 <limits.h> exists even on freestanding compilers. */
27471 # include <limits.h>
27473 # include <assert.h>
27478 /* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
27485 /* The GNU C library defines this for functions which it implements
27486 to always fail with ENOSYS. Some functions are actually named
27487 something starting with __ and the normal name is an alias. */
27488 #if defined __stub_$ac_func || defined __stub___$ac_func
27495 return $ac_func ();
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27507 $as_echo "$ac_try_echo") >&5
27508 (eval "$ac_link") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } && {
27515 test -z "$ac_c_werror_flag" ||
27516 test ! -s conftest.err
27517 } && test -s conftest$ac_exeext &&
27518 $as_test_x conftest$ac_exeext; then
27519 eval "$as_ac_var=yes"
27521 $as_echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 eval "$as_ac_var=no"
27527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27528 conftest$ac_exeext conftest.$ac_ext
27530 ac_res=`eval 'as_val=${'$as_ac_var'}
27531 $as_echo "$as_val"'`
27532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27533 $as_echo "$ac_res" >&6; }
27534 if test `eval 'as_val=${'$as_ac_var'}
27535 $as_echo "$as_val"'` = yes; then
27536 cat >>confdefs.h <<_ACEOF
27537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27541 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
27549 { $as_echo "$as_me:$LINENO: checking for group_member" >&5
27550 $as_echo_n "checking for group_member... " >&6; }
27551 if test "${ac_cv_func_group_member+set}" = set; then
27552 $as_echo_n "(cached) " >&6
27554 cat >conftest.$ac_ext <<_ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h. */
27560 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
27561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27562 #define group_member innocuous_group_member
27564 /* System header to define __stub macros and hopefully few prototypes,
27565 which can conflict with char group_member (); below.
27566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27567 <limits.h> exists even on freestanding compilers. */
27570 # include <limits.h>
27572 # include <assert.h>
27575 #undef group_member
27577 /* Override any GCC internal prototype to avoid an error.
27578 Use char because int might match the return type of a GCC
27579 builtin and then its argument prototype would still apply. */
27583 char group_member ();
27584 /* The GNU C library defines this for functions which it implements
27585 to always fail with ENOSYS. Some functions are actually named
27586 something starting with __ and the normal name is an alias. */
27587 #if defined __stub_group_member || defined __stub___group_member
27594 return group_member ();
27599 rm -f conftest.$ac_objext conftest$ac_exeext
27600 if { (ac_try="$ac_link"
27601 case "(($ac_try" in
27602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603 *) ac_try_echo=$ac_try;;
27605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27606 $as_echo "$ac_try_echo") >&5
27607 (eval "$ac_link") 2>conftest.er1
27609 grep -v '^ *+' conftest.er1 >conftest.err
27611 cat conftest.err >&5
27612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); } && {
27614 test -z "$ac_c_werror_flag" ||
27615 test ! -s conftest.err
27616 } && test -s conftest$ac_exeext &&
27617 $as_test_x conftest$ac_exeext; then
27618 ac_cv_func_group_member=yes
27620 $as_echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27623 ac_cv_func_group_member=no
27626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27627 conftest$ac_exeext conftest.$ac_ext
27629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
27630 $as_echo "$ac_cv_func_group_member" >&6; }
27631 if test $ac_cv_func_group_member = yes; then
27635 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
27644 gl_LIBOBJS="$gl_LIBOBJS hard-locale.$ac_objext"
27647 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
27652 { $as_echo "$as_me:$LINENO: checking host operating system" >&5
27653 $as_echo_n "checking host operating system... " >&6; }
27654 if test "${gl_cv_host_operating_system+set}" = set; then
27655 $as_echo_n "(cached) " >&6
27659 # These operating system names do not use the default heuristic below.
27660 # They are in reverse order, so that more-specific prefixes come first.
27661 winnt*) os='Windows NT';;
27663 sysv*) os='Unix System V';;
27664 superux*) os='SUPER-UX';;
27665 sunos*) os='SunOS';;
27667 sco*) os='SCO Unix';;
27668 riscos*) os='RISC OS';;
27669 riscix*) os='RISCiX';;
27673 plan9*) os='Plan 9';;
27676 openbsd*) os='OpenBSD';;
27677 nsk*) os='NonStop Kernel';;
27678 nonstopux*) os='NonStop-UX';;
27679 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
27680 netbsd*) os='NetBSD';;
27681 knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
27682 kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
27683 msdosdjgpp*) os='DJGPP';;
27684 mpeix*) os='MPE/iX';;
27686 mingw*) os='MinGW';;
27687 lynxos*) os='LynxOS';;
27688 linux*) os='GNU/Linux';;
27689 hpux*) os='HP-UX';;
27690 hiux*) os='HI-UX';;
27692 freebsd*) os='FreeBSD';;
27693 dgux*) os='DG/UX';;
27694 bsdi*) os='BSD/OS';;
27698 atheos*) os='AtheOS';;
27699 amigaos*) os='Amiga OS';;
27702 # The default heuristic takes the initial alphabetic string
27703 # from $host_os, but capitalizes its first letter.
27706 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
27708 expr "X$host_os" : 'X.\([A-Za-z]*\)'
27712 # If $host_os does not start with an alphabetic string, use it unchanged.
27716 gl_cv_host_operating_system=$os
27718 { $as_echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
27719 $as_echo "$gl_cv_host_operating_system" >&6; }
27721 cat >>confdefs.h <<_ACEOF
27722 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
27727 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
27732 gl_LIBOBJS="$gl_LIBOBJS i-ring.$ac_objext"
27739 am_save_CPPFLAGS="$CPPFLAGS"
27741 for element in $INCICONV; do
27743 for x in $CPPFLAGS; do
27745 acl_save_prefix="$prefix"
27746 prefix="$acl_final_prefix"
27747 acl_save_exec_prefix="$exec_prefix"
27748 exec_prefix="$acl_final_exec_prefix"
27750 exec_prefix="$acl_save_exec_prefix"
27751 prefix="$acl_save_prefix"
27753 if test "X$x" = "X$element"; then
27758 if test -z "$haveit"; then
27759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27764 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
27765 $as_echo_n "checking for iconv... " >&6; }
27766 if test "${am_cv_func_iconv+set}" = set; then
27767 $as_echo_n "(cached) " >&6
27770 am_cv_func_iconv="no, consider installing GNU libiconv"
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27778 #include <stdlib.h>
27783 iconv_t cd = iconv_open("","");
27784 iconv(cd,NULL,NULL,NULL,NULL);
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (ac_try="$ac_link"
27792 case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27797 $as_echo "$ac_try_echo") >&5
27798 (eval "$ac_link") 2>conftest.er1
27800 grep -v '^ *+' conftest.er1 >conftest.err
27802 cat conftest.err >&5
27803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); } && {
27805 test -z "$ac_c_werror_flag" ||
27806 test ! -s conftest.err
27807 } && test -s conftest$ac_exeext &&
27808 $as_test_x conftest$ac_exeext; then
27809 am_cv_func_iconv=yes
27811 $as_echo "$as_me: failed program was:" >&5
27812 sed 's/^/| /' conftest.$ac_ext >&5
27817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27818 conftest$ac_exeext conftest.$ac_ext
27819 if test "$am_cv_func_iconv" != yes; then
27820 am_save_LIBS="$LIBS"
27821 LIBS="$LIBS $LIBICONV"
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27828 #include <stdlib.h>
27833 iconv_t cd = iconv_open("","");
27834 iconv(cd,NULL,NULL,NULL,NULL);
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (ac_try="$ac_link"
27842 case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27847 $as_echo "$ac_try_echo") >&5
27848 (eval "$ac_link") 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } && {
27855 test -z "$ac_c_werror_flag" ||
27856 test ! -s conftest.err
27857 } && test -s conftest$ac_exeext &&
27858 $as_test_x conftest$ac_exeext; then
27859 am_cv_lib_iconv=yes
27860 am_cv_func_iconv=yes
27862 $as_echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27869 conftest$ac_exeext conftest.$ac_ext
27870 LIBS="$am_save_LIBS"
27874 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27875 $as_echo "$am_cv_func_iconv" >&6; }
27876 if test "$am_cv_func_iconv" = yes; then
27878 cat >>confdefs.h <<\_ACEOF
27879 #define HAVE_ICONV 1
27883 if test "$am_cv_lib_iconv" = yes; then
27884 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
27885 $as_echo_n "checking how to link with libiconv... " >&6; }
27886 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
27887 $as_echo "$LIBICONV" >&6; }
27889 CPPFLAGS="$am_save_CPPFLAGS"
27896 if test "$am_cv_func_iconv" = yes; then
27897 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
27898 $as_echo_n "checking for iconv declaration... " >&6; }
27899 if test "${am_cv_proto_iconv+set}" = set; then
27900 $as_echo_n "(cached) " >&6
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27910 #include <stdlib.h>
27916 #if defined(__STDC__) || defined(__cplusplus)
27917 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27937 $as_echo "$ac_try_echo") >&5
27938 (eval "$ac_compile") 2>conftest.er1
27940 grep -v '^ *+' conftest.er1 >conftest.err
27942 cat conftest.err >&5
27943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } && {
27945 test -z "$ac_c_werror_flag" ||
27946 test ! -s conftest.err
27947 } && test -s conftest.$ac_objext; then
27948 am_cv_proto_iconv_arg1=""
27950 $as_echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27953 am_cv_proto_iconv_arg1="const"
27956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 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);"
27960 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
27961 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
27962 }$am_cv_proto_iconv" >&5
27964 }$am_cv_proto_iconv" >&6; }
27966 cat >>confdefs.h <<_ACEOF
27967 #define ICONV_CONST $am_cv_proto_iconv_arg1
27973 gl_LIBOBJS="$gl_LIBOBJS idcache.$ac_objext"
27977 for ac_func in inet_ntop
27979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27981 $as_echo_n "checking for $ac_func... " >&6; }
27982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27983 $as_echo_n "(cached) " >&6
27985 cat >conftest.$ac_ext <<_ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27993 #define $ac_func innocuous_$ac_func
27995 /* System header to define __stub macros and hopefully few prototypes,
27996 which can conflict with char $ac_func (); below.
27997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27998 <limits.h> exists even on freestanding compilers. */
28001 # include <limits.h>
28003 # include <assert.h>
28008 /* Override any GCC internal prototype to avoid an error.
28009 Use char because int might match the return type of a GCC
28010 builtin and then its argument prototype would still apply. */
28015 /* The GNU C library defines this for functions which it implements
28016 to always fail with ENOSYS. Some functions are actually named
28017 something starting with __ and the normal name is an alias. */
28018 #if defined __stub_$ac_func || defined __stub___$ac_func
28025 return $ac_func ();
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (ac_try="$ac_link"
28032 case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28037 $as_echo "$ac_try_echo") >&5
28038 (eval "$ac_link") 2>conftest.er1
28040 grep -v '^ *+' conftest.er1 >conftest.err
28042 cat conftest.err >&5
28043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } && {
28045 test -z "$ac_c_werror_flag" ||
28046 test ! -s conftest.err
28047 } && test -s conftest$ac_exeext &&
28048 $as_test_x conftest$ac_exeext; then
28049 eval "$as_ac_var=yes"
28051 $as_echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28054 eval "$as_ac_var=no"
28057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28058 conftest$ac_exeext conftest.$ac_ext
28060 ac_res=`eval 'as_val=${'$as_ac_var'}
28061 $as_echo "$as_val"'`
28062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28063 $as_echo "$ac_res" >&6; }
28064 if test `eval 'as_val=${'$as_ac_var'}
28065 $as_echo "$as_val"'` = yes; then
28066 cat >>confdefs.h <<_ACEOF
28067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28071 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28084 { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
28085 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
28086 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
28087 $as_echo_n "(cached) " >&6
28089 cat >conftest.$ac_ext <<_ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28095 #include <arpa/inet.h>
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116 (eval "$ac_compile") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest.$ac_objext; then
28126 ac_cv_have_decl_inet_ntop=yes
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_cv_have_decl_inet_ntop=no
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28136 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
28137 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
28138 if test $ac_cv_have_decl_inet_ntop = yes; then
28140 cat >>confdefs.h <<_ACEOF
28141 #define HAVE_DECL_INET_NTOP 1
28146 cat >>confdefs.h <<_ACEOF
28147 #define HAVE_DECL_INET_NTOP 0
28160 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
28161 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
28162 if test "${gl_cv_c_inline_effective+set}" = set; then
28163 $as_echo_n "(cached) " >&6
28165 if test $ac_cv_c_inline = no; then
28166 gl_cv_c_inline_effective=no
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28178 #ifdef __NO_INLINE__
28179 #error "inline is not effective"
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28192 $as_echo "$ac_try_echo") >&5
28193 (eval "$ac_compile") 2>conftest.er1
28195 grep -v '^ *+' conftest.er1 >conftest.err
28197 cat conftest.err >&5
28198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } && {
28200 test -z "$ac_c_werror_flag" ||
28201 test ! -s conftest.err
28202 } && test -s conftest.$ac_objext; then
28203 gl_cv_c_inline_effective=yes
28205 $as_echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28208 gl_cv_c_inline_effective=no
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28215 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
28216 $as_echo "$gl_cv_c_inline_effective" >&6; }
28217 if test $gl_cv_c_inline_effective = yes; then
28219 cat >>confdefs.h <<\_ACEOF
28220 #define HAVE_INLINE 1
28226 gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
28227 gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
28228 gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
28229 gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
28260 { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
28261 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
28262 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
28263 $as_echo_n "(cached) " >&6
28265 gl_cv_header_working_inttypes_h=no
28266 if test "$gl_cv_header_working_stdint_h" = yes \
28267 && test $ac_cv_header_inttypes_h = yes \
28268 && test "$ac_cv_have_decl_imaxabs" = yes \
28269 && test "$ac_cv_have_decl_imaxdiv" = yes \
28270 && test "$ac_cv_have_decl_strtoimax" = yes \
28271 && test "$ac_cv_have_decl_strtoumax" = yes; then
28272 cat >conftest.$ac_ext <<_ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h. */
28280 #include <stddef.h>
28281 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28282 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28283 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
28284 #include ABSOLUTE_INTTYPES_H
28286 /* No need to duplicate the tests of stdint.m4; they are subsumed by
28287 $gl_cv_header_working_stdint_h = yes. */
28289 /* Tests for macros supposed to be defined in inttypes.h. */
28291 const char *k = /* implicit string concatenation */
28296 PRIo8 PRIu8 PRIx8 PRIX8
28302 PRIo16 PRIu16 PRIx16 PRIX16
28308 PRIo32 PRIu32 PRIx32 PRIX32
28314 PRIo64 PRIu64 PRIx64 PRIX64
28316 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
28317 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
28318 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
28319 PRIdLEAST64 PRIiLEAST64
28320 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
28321 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
28322 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
28323 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
28324 PRIdFAST64 PRIiFAST64
28325 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
28326 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
28331 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
28334 const char *l = /* implicit string concatenation */
28345 SCNo16 SCNu16 SCNx16
28351 SCNo32 SCNu32 SCNx32
28357 SCNo64 SCNu64 SCNx64
28359 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
28360 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
28361 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
28362 SCNdLEAST64 SCNiLEAST64
28363 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
28364 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
28365 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
28366 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
28367 SCNdFAST64 SCNiFAST64
28368 SCNoFAST64 SCNuFAST64 SCNxFAST64
28369 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
28374 SCNoPTR SCNuPTR SCNxPTR
28386 rm -f conftest.$ac_objext
28387 if { (ac_try="$ac_compile"
28388 case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28393 $as_echo "$ac_try_echo") >&5
28394 (eval "$ac_compile") 2>conftest.er1
28396 grep -v '^ *+' conftest.er1 >conftest.err
28398 cat conftest.err >&5
28399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } && {
28401 test -z "$ac_c_werror_flag" ||
28402 test ! -s conftest.err
28403 } && test -s conftest.$ac_objext; then
28404 gl_cv_header_working_inttypes_h=yes
28406 $as_echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
28416 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
28418 if false && test $gl_cv_header_working_inttypes_h = yes; then
28423 if test $ac_cv_header_inttypes_h = yes; then
28424 { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
28425 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
28426 if test "${gl_cv_absolute_inttypes_h+set}" = set; then
28427 $as_echo_n "(cached) " >&6
28434 if test $ac_cv_header_inttypes_h = yes; then
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 #include <inttypes.h>
28443 gl_cv_absolute_inttypes_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28444 sed -n '\#/inttypes.h#{s#.*"\(.*/inttypes.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
28448 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_inttypes_h" >&5
28449 $as_echo "$gl_cv_absolute_inttypes_h" >&6; }
28450 cat >>confdefs.h <<_ACEOF
28451 #define ABSOLUTE_INTTYPES_H "$gl_cv_absolute_inttypes_h"
28455 ABSOLUTE_INTTYPES_H=\"$gl_cv_absolute_inttypes_h\"
28457 ABSOLUTE_INTTYPES_H=\"no/such/file/inttypes.h\"
28462 if test -n "$STDINT_H"; then
28463 PRIPTR_PREFIX='"l"'
28465 for glpfx in '' l ll I64; do
28467 '') gltype1='int';;
28468 l) gltype1='long int';;
28469 ll) gltype1='long long int';;
28470 I64) gltype1='__int64';;
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 #include <stdint.h>
28479 extern intptr_t foo;
28480 extern $gltype1 foo;
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496 $as_echo "$ac_try_echo") >&5
28497 (eval "$ac_compile") 2>conftest.er1
28499 grep -v '^ *+' conftest.er1 >conftest.err
28501 cat conftest.err >&5
28502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } && {
28504 test -z "$ac_c_werror_flag" ||
28505 test ! -s conftest.err
28506 } && test -s conftest.$ac_objext; then
28507 PRIPTR_PREFIX='"'$glpfx'"'
28509 $as_echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 test -n "$PRIPTR_PREFIX" && break
28521 if test "$ac_cv_have_decl_imaxabs" = yes; then
28522 HAVE_DECL_IMAXABS=1
28524 HAVE_DECL_IMAXABS=0
28527 if test "$ac_cv_have_decl_imaxdiv" = yes; then
28528 HAVE_DECL_IMAXDIV=1
28530 HAVE_DECL_IMAXDIV=0
28533 if test "$ac_cv_have_decl_strtoimax" = yes; then
28534 HAVE_DECL_STRTOIMAX=1
28536 HAVE_DECL_STRTOIMAX=0
28539 if test "$ac_cv_have_decl_strtoumax" = yes; then
28540 HAVE_DECL_STRTOUMAX=1
28542 HAVE_DECL_STRTOUMAX=0
28545 INTTYPES_H='inttypes.h'
28550 # OpenVMS has isapipe already, so check for it.
28552 for ac_func in isapipe
28554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28556 $as_echo_n "checking for $ac_func... " >&6; }
28557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28558 $as_echo_n "(cached) " >&6
28560 cat >conftest.$ac_ext <<_ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28568 #define $ac_func innocuous_$ac_func
28570 /* System header to define __stub macros and hopefully few prototypes,
28571 which can conflict with char $ac_func (); below.
28572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573 <limits.h> exists even on freestanding compilers. */
28576 # include <limits.h>
28578 # include <assert.h>
28583 /* Override any GCC internal prototype to avoid an error.
28584 Use char because int might match the return type of a GCC
28585 builtin and then its argument prototype would still apply. */
28590 /* The GNU C library defines this for functions which it implements
28591 to always fail with ENOSYS. Some functions are actually named
28592 something starting with __ and the normal name is an alias. */
28593 #if defined __stub_$ac_func || defined __stub___$ac_func
28600 return $ac_func ();
28605 rm -f conftest.$ac_objext conftest$ac_exeext
28606 if { (ac_try="$ac_link"
28607 case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28612 $as_echo "$ac_try_echo") >&5
28613 (eval "$ac_link") 2>conftest.er1
28615 grep -v '^ *+' conftest.er1 >conftest.err
28617 cat conftest.err >&5
28618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } && {
28620 test -z "$ac_c_werror_flag" ||
28621 test ! -s conftest.err
28622 } && test -s conftest$ac_exeext &&
28623 $as_test_x conftest$ac_exeext; then
28624 eval "$as_ac_var=yes"
28626 $as_echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28629 eval "$as_ac_var=no"
28632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28633 conftest$ac_exeext conftest.$ac_ext
28635 ac_res=`eval 'as_val=${'$as_ac_var'}
28636 $as_echo "$as_val"'`
28637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28638 $as_echo "$ac_res" >&6; }
28639 if test `eval 'as_val=${'$as_ac_var'}
28640 $as_echo "$as_val"'` = yes; then
28641 cat >>confdefs.h <<_ACEOF
28642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28646 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28650 if test $ac_cv_func_isapipe = no; then
28652 { $as_echo "$as_me:$LINENO: checking whether pipes are FIFOs (and for their link count)" >&5
28653 $as_echo_n "checking whether pipes are FIFOs (and for their link count)... " >&6; }
28654 if test "${gl_cv_pipes_are_fifos+set}" = set; then
28655 $as_echo_n "(cached) " >&6
28657 if test "$cross_compiling" = yes; then
28658 gl_cv_pipes_are_fifos=cross-compiling
28660 cat >conftest.$ac_ext <<_ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28667 #include <sys/types.h>
28668 #include <sys/stat.h>
28669 #include <unistd.h>
28671 #define S_ISFIFO(m) 0
28674 #define S_ISSOCK(m) 0
28677 main (int argc, char **argv)
28681 if (pipe (fd) != 0 || fstat (fd[0], &st) != 0)
28683 if (2 <= argc && argv[1][0] == '-')
28685 char const *yesno = (S_ISFIFO (st.st_mode) ? "yes" : "no");
28686 if (st.st_nlink <= 1)
28688 long int i = st.st_nlink;
28689 if (i != st.st_nlink)
28691 printf ("%s (%ld)\n", yesno, i);
28695 unsigned long int i = st.st_nlink;
28696 if (i != st.st_nlink)
28698 printf ("%s (%lu)\n", yesno, i);
28703 if (! S_ISFIFO (st.st_mode) && ! S_ISSOCK (st.st_mode))
28709 rm -f conftest$ac_exeext
28710 if { (ac_try="$ac_link"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28716 $as_echo "$ac_try_echo") >&5
28717 (eval "$ac_link") 2>&5
28719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28721 { (case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28726 $as_echo "$ac_try_echo") >&5
28727 (eval "$ac_try") 2>&5
28729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; }; then
28731 gl_cv_pipes_are_fifos=`./conftest$ac_exeext -`
28732 test -z "$gl_cv_pipes_are_fifos" && gl_cv_pipes_are_fifos=no
28734 $as_echo "$as_me: program exited with status $ac_status" >&5
28735 $as_echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28738 ( exit $ac_status )
28739 gl_cv_pipes_are_fifos=unknown
28741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28746 { $as_echo "$as_me:$LINENO: result: $gl_cv_pipes_are_fifos" >&5
28747 $as_echo "$gl_cv_pipes_are_fifos" >&6; }
28749 case $gl_cv_pipes_are_fifos in #(
28752 cat >>confdefs.h <<\_ACEOF
28753 #define HAVE_FIFO_PIPES 1
28757 cat >>confdefs.h <<\_ACEOF
28758 #define HAVE_FIFO_PIPES 0
28763 case $gl_cv_pipes_are_fifos in #(
28766 cat >>confdefs.h <<_ACEOF
28767 #define PIPE_LINK_COUNT_MAX `expr "$gl_cv_pipes_are_fifos" : '.*\((.*)\)'`
28790 for ac_func in lchown
28792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28793 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28794 $as_echo_n "checking for $ac_func... " >&6; }
28795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28796 $as_echo_n "(cached) " >&6
28798 cat >conftest.$ac_ext <<_ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28806 #define $ac_func innocuous_$ac_func
28808 /* System header to define __stub macros and hopefully few prototypes,
28809 which can conflict with char $ac_func (); below.
28810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28811 <limits.h> exists even on freestanding compilers. */
28814 # include <limits.h>
28816 # include <assert.h>
28821 /* Override any GCC internal prototype to avoid an error.
28822 Use char because int might match the return type of a GCC
28823 builtin and then its argument prototype would still apply. */
28828 /* The GNU C library defines this for functions which it implements
28829 to always fail with ENOSYS. Some functions are actually named
28830 something starting with __ and the normal name is an alias. */
28831 #if defined __stub_$ac_func || defined __stub___$ac_func
28838 return $ac_func ();
28843 rm -f conftest.$ac_objext conftest$ac_exeext
28844 if { (ac_try="$ac_link"
28845 case "(($ac_try" in
28846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847 *) ac_try_echo=$ac_try;;
28849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28850 $as_echo "$ac_try_echo") >&5
28851 (eval "$ac_link") 2>conftest.er1
28853 grep -v '^ *+' conftest.er1 >conftest.err
28855 cat conftest.err >&5
28856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } && {
28858 test -z "$ac_c_werror_flag" ||
28859 test ! -s conftest.err
28860 } && test -s conftest$ac_exeext &&
28861 $as_test_x conftest$ac_exeext; then
28862 eval "$as_ac_var=yes"
28864 $as_echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28867 eval "$as_ac_var=no"
28870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28871 conftest$ac_exeext conftest.$ac_ext
28873 ac_res=`eval 'as_val=${'$as_ac_var'}
28874 $as_echo "$as_val"'`
28875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28876 $as_echo "$ac_res" >&6; }
28877 if test `eval 'as_val=${'$as_ac_var'}
28878 $as_echo "$as_val"'` = yes; then
28879 cat >>confdefs.h <<_ACEOF
28880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28884 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
28890 { $as_echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
28891 $as_echo_n "checking for flag to ignore unused libraries... " >&6; }
28892 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
28893 $as_echo_n "(cached) " >&6
28895 gl_cv_ignore_unused_libraries=none
28896 gl_saved_ldflags=$LDFLAGS
28897 gl_saved_libs=$LIBS
28898 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
28899 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
28901 # Use long option sequences like '-z ignore' to test for the feature,
28902 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
28903 # GCC + binutils likes '-Wl,--as-needed'.
28904 # GCC + Solaris ld likes '-Wl,-z,ignore'.
28905 # Sun C likes '-z ignore'.
28906 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
28907 # native cc issues annoying warnings and then ignores it,
28908 # which would cause us to incorrectly conclude that it worked.
28910 '-Wl,--as-needed' \
28914 LDFLAGS="$gl_flags $LDFLAGS"
28915 cat >conftest.$ac_ext <<_ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h. */
28930 rm -f conftest.$ac_objext conftest$ac_exeext
28931 if { (ac_try="$ac_link"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28937 $as_echo "$ac_try_echo") >&5
28938 (eval "$ac_link") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest$ac_exeext &&
28948 $as_test_x conftest$ac_exeext; then
28949 gl_cv_ignore_unused_libraries=$gl_flags
28951 $as_echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958 conftest$ac_exeext conftest.$ac_ext
28959 LDFLAGS=$gl_saved_ldflags
28960 test "$gl_cv_ignore_unused_libraries" != none && break
28962 LIBS=$gl_saved_libs
28964 { $as_echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
28965 $as_echo "$gl_cv_ignore_unused_libraries" >&6; }
28967 test "$gl_cv_ignore_unused_libraries" != none &&
28968 LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
28970 { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
28971 $as_echo_n "checking whether link(2) dereferences a symlink specified with a trailing slash... " >&6; }
28972 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
28973 $as_echo_n "(cached) " >&6
28976 # Create a regular file.
28977 echo > conftest.file
28978 if test "$cross_compiling" = yes; then
28979 jm_ac_cv_func_link_follows_symlink=yes
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28988 # include <sys/types.h>
28989 # include <sys/stat.h>
28990 # include <unistd.h>
28991 # include <stdlib.h>
28993 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
28994 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
28995 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
29000 const char *file = "conftest.file";
29001 const char *sym = "conftest.sym";
29002 const char *hard = "conftest.hard";
29003 struct stat sb_file, sb_hard;
29005 /* Create a symlink to the regular file. */
29006 if (symlink (file, sym))
29009 /* Create a hard link to that symlink. */
29010 if (link (sym, hard))
29013 if (lstat (hard, &sb_hard))
29015 if (lstat (file, &sb_file))
29018 /* If the dev/inode of hard and file are the same, then
29019 the link call followed the symlink. */
29020 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29031 $as_echo "$ac_try_echo") >&5
29032 (eval "$ac_link") 2>&5
29034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29036 { (case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29041 $as_echo "$ac_try_echo") >&5
29042 (eval "$ac_try") 2>&5
29044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 jm_ac_cv_func_link_follows_symlink=yes
29048 $as_echo "$as_me: program exited with status $ac_status" >&5
29049 $as_echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29052 ( exit $ac_status )
29053 jm_ac_cv_func_link_follows_symlink=no
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29061 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
29062 $as_echo "$jm_ac_cv_func_link_follows_symlink" >&6; }
29063 if test $jm_ac_cv_func_link_follows_symlink = yes; then
29065 cat >>confdefs.h <<\_ACEOF
29066 #define LINK_FOLLOWS_SYMLINKS 1
29082 gl_LIBOBJS="$gl_LIBOBJS long-options.$ac_objext"
29086 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
29087 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
29088 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
29089 $as_echo_n "(cached) " >&6
29091 rm -f conftest.sym conftest.file
29092 echo >conftest.file
29093 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
29094 if test "$cross_compiling" = yes; then
29095 ac_cv_func_lstat_dereferences_slashed_symlink=no
29097 cat >conftest.$ac_ext <<_ACEOF
29100 cat confdefs.h >>conftest.$ac_ext
29101 cat >>conftest.$ac_ext <<_ACEOF
29102 /* end confdefs.h. */
29103 $ac_includes_default
29108 /* Linux will dereference the symlink and fail.
29109 That is better in the sense that it means we will not
29110 have to compile and use the lstat wrapper. */
29111 return lstat ("conftest.sym/", &sbuf) == 0;
29116 rm -f conftest$ac_exeext
29117 if { (ac_try="$ac_link"
29118 case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124 (eval "$ac_link") 2>&5
29126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29128 { (case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29133 $as_echo "$ac_try_echo") >&5
29134 (eval "$ac_try") 2>&5
29136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_cv_func_lstat_dereferences_slashed_symlink=yes
29140 $as_echo "$as_me: program exited with status $ac_status" >&5
29141 $as_echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ( exit $ac_status )
29145 ac_cv_func_lstat_dereferences_slashed_symlink=no
29147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29152 # If the `ln -s' command failed, then we probably don't even
29153 # have an lstat function.
29154 ac_cv_func_lstat_dereferences_slashed_symlink=no
29156 rm -f conftest.sym conftest.file
29159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
29160 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29162 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
29164 cat >>confdefs.h <<_ACEOF
29165 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29169 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
29170 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
29176 for ac_header in stdlib.h
29178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29181 $as_echo_n "checking for $ac_header... " >&6; }
29182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29183 $as_echo_n "(cached) " >&6
29185 ac_res=`eval 'as_val=${'$as_ac_Header'}
29186 $as_echo "$as_val"'`
29187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29188 $as_echo "$ac_res" >&6; }
29190 # Is the header compilable?
29191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29192 $as_echo_n "checking $ac_header usability... " >&6; }
29193 cat >conftest.$ac_ext <<_ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 $ac_includes_default
29200 #include <$ac_header>
29202 rm -f conftest.$ac_objext
29203 if { (ac_try="$ac_compile"
29204 case "(($ac_try" in
29205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206 *) ac_try_echo=$ac_try;;
29208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29209 $as_echo "$ac_try_echo") >&5
29210 (eval "$ac_compile") 2>conftest.er1
29212 grep -v '^ *+' conftest.er1 >conftest.err
29214 cat conftest.err >&5
29215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); } && {
29217 test -z "$ac_c_werror_flag" ||
29218 test ! -s conftest.err
29219 } && test -s conftest.$ac_objext; then
29220 ac_header_compiler=yes
29222 $as_echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_header_compiler=no
29228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29230 $as_echo "$ac_header_compiler" >&6; }
29232 # Is the header present?
29233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29234 $as_echo_n "checking $ac_header presence... " >&6; }
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29241 #include <$ac_header>
29243 if { (ac_try="$ac_cpp conftest.$ac_ext"
29244 case "(($ac_try" in
29245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246 *) ac_try_echo=$ac_try;;
29248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29249 $as_echo "$ac_try_echo") >&5
29250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29252 grep -v '^ *+' conftest.er1 >conftest.err
29254 cat conftest.err >&5
29255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } >/dev/null && {
29257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29258 test ! -s conftest.err
29260 ac_header_preproc=yes
29262 $as_echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29265 ac_header_preproc=no
29268 rm -f conftest.err conftest.$ac_ext
29269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29270 $as_echo "$ac_header_preproc" >&6; }
29272 # So? What about this header?
29273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29279 ac_header_preproc=yes
29282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29285 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29289 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29295 ## ------------------------------------ ##
29296 ## Report this to bug-coreutils@gnu.org ##
29297 ## ------------------------------------ ##
29299 ) | sed "s/^/$as_me: WARNING: /" >&2
29302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29303 $as_echo_n "checking for $ac_header... " >&6; }
29304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29305 $as_echo_n "(cached) " >&6
29307 eval "$as_ac_Header=\$ac_header_preproc"
29309 ac_res=`eval 'as_val=${'$as_ac_Header'}
29310 $as_echo "$as_val"'`
29311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29312 $as_echo "$ac_res" >&6; }
29315 if test `eval 'as_val=${'$as_ac_Header'}
29316 $as_echo "$as_val"'` = yes; then
29317 cat >>confdefs.h <<_ACEOF
29318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29325 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
29326 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
29327 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
29328 $as_echo_n "(cached) " >&6
29330 if test "$cross_compiling" = yes; then
29331 ac_cv_func_malloc_0_nonnull=no
29333 cat >conftest.$ac_ext <<_ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29339 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
29340 # include <stdlib.h>
29348 return ! malloc (0);
29353 rm -f conftest$ac_exeext
29354 if { (ac_try="$ac_link"
29355 case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29360 $as_echo "$ac_try_echo") >&5
29361 (eval "$ac_link") 2>&5
29363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29365 { (case "(($ac_try" in
29366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367 *) ac_try_echo=$ac_try;;
29369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29370 $as_echo "$ac_try_echo") >&5
29371 (eval "$ac_try") 2>&5
29373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; }; then
29375 ac_cv_func_malloc_0_nonnull=yes
29377 $as_echo "$as_me: program exited with status $ac_status" >&5
29378 $as_echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29381 ( exit $ac_status )
29382 ac_cv_func_malloc_0_nonnull=no
29384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29389 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
29390 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
29391 if test $ac_cv_func_malloc_0_nonnull = yes; then
29393 cat >>confdefs.h <<\_ACEOF
29394 #define HAVE_MALLOC 1
29398 cat >>confdefs.h <<\_ACEOF
29399 #define HAVE_MALLOC 0
29402 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
29404 cat >>confdefs.h <<\_ACEOF
29405 #define malloc rpl_malloc
29423 GNULIB_MBSCASECMP=1
29441 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
29442 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
29443 if test "${gl_cv_func_mbrtowc+set}" = set; then
29444 $as_echo_n "(cached) " >&6
29446 cat >conftest.$ac_ext <<_ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29457 char const s[] = "";
29460 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
29465 rm -f conftest.$ac_objext conftest$ac_exeext
29466 if { (ac_try="$ac_link"
29467 case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472 $as_echo "$ac_try_echo") >&5
29473 (eval "$ac_link") 2>conftest.er1
29475 grep -v '^ *+' conftest.er1 >conftest.err
29477 cat conftest.err >&5
29478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } && {
29480 test -z "$ac_c_werror_flag" ||
29481 test ! -s conftest.err
29482 } && test -s conftest$ac_exeext &&
29483 $as_test_x conftest$ac_exeext; then
29484 gl_cv_func_mbrtowc=yes
29486 $as_echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29489 gl_cv_func_mbrtowc=no
29492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29493 conftest$ac_exeext conftest.$ac_ext
29495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
29496 $as_echo "$gl_cv_func_mbrtowc" >&6; }
29497 if test $gl_cv_func_mbrtowc = yes; then
29499 cat >>confdefs.h <<\_ACEOF
29500 #define HAVE_MBRTOWC 1
29506 { $as_echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
29507 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
29508 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
29509 $as_echo_n "(cached) " >&6
29511 cat >conftest.$ac_ext <<_ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29518 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29520 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29521 before <wchar.h>. */
29522 #include <stddef.h>
29531 char *p = (char *) mbswidth;
29538 rm -f conftest.$ac_objext
29539 if { (ac_try="$ac_compile"
29540 case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29545 $as_echo "$ac_try_echo") >&5
29546 (eval "$ac_compile") 2>conftest.er1
29548 grep -v '^ *+' conftest.er1 >conftest.err
29550 cat conftest.err >&5
29551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); } && {
29553 test -z "$ac_c_werror_flag" ||
29554 test ! -s conftest.err
29555 } && test -s conftest.$ac_objext; then
29556 ac_cv_have_decl_mbswidth=yes
29558 $as_echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29561 ac_cv_have_decl_mbswidth=no
29564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29566 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
29567 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
29568 if test $ac_cv_have_decl_mbswidth = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
29579 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
29580 $as_echo_n "checking for mbstate_t... " >&6; }
29581 if test "${ac_cv_type_mbstate_t+set}" = set; then
29582 $as_echo_n "(cached) " >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 $ac_includes_default
29591 # include <wchar.h>
29595 mbstate_t x; return sizeof x;
29600 rm -f conftest.$ac_objext
29601 if { (ac_try="$ac_compile"
29602 case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29607 $as_echo "$ac_try_echo") >&5
29608 (eval "$ac_compile") 2>conftest.er1
29610 grep -v '^ *+' conftest.er1 >conftest.err
29612 cat conftest.err >&5
29613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); } && {
29615 test -z "$ac_c_werror_flag" ||
29616 test ! -s conftest.err
29617 } && test -s conftest.$ac_objext; then
29618 ac_cv_type_mbstate_t=yes
29620 $as_echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29623 ac_cv_type_mbstate_t=no
29626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
29629 $as_echo "$ac_cv_type_mbstate_t" >&6; }
29630 if test $ac_cv_type_mbstate_t = yes; then
29632 cat >>confdefs.h <<\_ACEOF
29633 #define HAVE_MBSTATE_T 1
29638 cat >>confdefs.h <<\_ACEOF
29639 #define mbstate_t int
29650 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
29656 gl_LIBOBJS="$gl_LIBOBJS memcasecmp.$ac_objext"
29660 for ac_func in memchr
29662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29664 $as_echo_n "checking for $ac_func... " >&6; }
29665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29666 $as_echo_n "(cached) " >&6
29668 cat >conftest.$ac_ext <<_ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h. */
29674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29676 #define $ac_func innocuous_$ac_func
29678 /* System header to define __stub macros and hopefully few prototypes,
29679 which can conflict with char $ac_func (); below.
29680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29681 <limits.h> exists even on freestanding compilers. */
29684 # include <limits.h>
29686 # include <assert.h>
29691 /* Override any GCC internal prototype to avoid an error.
29692 Use char because int might match the return type of a GCC
29693 builtin and then its argument prototype would still apply. */
29698 /* The GNU C library defines this for functions which it implements
29699 to always fail with ENOSYS. Some functions are actually named
29700 something starting with __ and the normal name is an alias. */
29701 #if defined __stub_$ac_func || defined __stub___$ac_func
29708 return $ac_func ();
29713 rm -f conftest.$ac_objext conftest$ac_exeext
29714 if { (ac_try="$ac_link"
29715 case "(($ac_try" in
29716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717 *) ac_try_echo=$ac_try;;
29719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29720 $as_echo "$ac_try_echo") >&5
29721 (eval "$ac_link") 2>conftest.er1
29723 grep -v '^ *+' conftest.er1 >conftest.err
29725 cat conftest.err >&5
29726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } && {
29728 test -z "$ac_c_werror_flag" ||
29729 test ! -s conftest.err
29730 } && test -s conftest$ac_exeext &&
29731 $as_test_x conftest$ac_exeext; then
29732 eval "$as_ac_var=yes"
29734 $as_echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29737 eval "$as_ac_var=no"
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741 conftest$ac_exeext conftest.$ac_ext
29743 ac_res=`eval 'as_val=${'$as_ac_var'}
29744 $as_echo "$as_val"'`
29745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29746 $as_echo "$ac_res" >&6; }
29747 if test `eval 'as_val=${'$as_ac_var'}
29748 $as_echo "$as_val"'` = yes; then
29749 cat >>confdefs.h <<_ACEOF
29750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29754 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
29758 if test $ac_cv_func_memchr = no; then
29761 for ac_header in bp-sym.h
29763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29766 $as_echo_n "checking for $ac_header... " >&6; }
29767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29768 $as_echo_n "(cached) " >&6
29770 ac_res=`eval 'as_val=${'$as_ac_Header'}
29771 $as_echo "$as_val"'`
29772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29773 $as_echo "$ac_res" >&6; }
29775 # Is the header compilable?
29776 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29777 $as_echo_n "checking $ac_header usability... " >&6; }
29778 cat >conftest.$ac_ext <<_ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h. */
29784 $ac_includes_default
29785 #include <$ac_header>
29787 rm -f conftest.$ac_objext
29788 if { (ac_try="$ac_compile"
29789 case "(($ac_try" in
29790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29794 $as_echo "$ac_try_echo") >&5
29795 (eval "$ac_compile") 2>conftest.er1
29797 grep -v '^ *+' conftest.er1 >conftest.err
29799 cat conftest.err >&5
29800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } && {
29802 test -z "$ac_c_werror_flag" ||
29803 test ! -s conftest.err
29804 } && test -s conftest.$ac_objext; then
29805 ac_header_compiler=yes
29807 $as_echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29810 ac_header_compiler=no
29813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29814 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29815 $as_echo "$ac_header_compiler" >&6; }
29817 # Is the header present?
29818 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29819 $as_echo_n "checking $ac_header presence... " >&6; }
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 #include <$ac_header>
29828 if { (ac_try="$ac_cpp conftest.$ac_ext"
29829 case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29834 $as_echo "$ac_try_echo") >&5
29835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29837 grep -v '^ *+' conftest.er1 >conftest.err
29839 cat conftest.err >&5
29840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); } >/dev/null && {
29842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29843 test ! -s conftest.err
29845 ac_header_preproc=yes
29847 $as_echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29850 ac_header_preproc=no
29853 rm -f conftest.err conftest.$ac_ext
29854 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29855 $as_echo "$ac_header_preproc" >&6; }
29857 # So? What about this header?
29858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29861 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29863 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29864 ac_header_preproc=yes
29867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29868 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29870 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29872 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29874 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29878 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29880 ## ------------------------------------ ##
29881 ## Report this to bug-coreutils@gnu.org ##
29882 ## ------------------------------------ ##
29884 ) | sed "s/^/$as_me: WARNING: /" >&2
29887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29888 $as_echo_n "checking for $ac_header... " >&6; }
29889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29890 $as_echo_n "(cached) " >&6
29892 eval "$as_ac_Header=\$ac_header_preproc"
29894 ac_res=`eval 'as_val=${'$as_ac_Header'}
29895 $as_echo "$as_val"'`
29896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29897 $as_echo "$ac_res" >&6; }
29900 if test `eval 'as_val=${'$as_ac_Header'}
29901 $as_echo "$as_val"'` = yes; then
29902 cat >>confdefs.h <<_ACEOF
29903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29914 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29915 $as_echo_n "checking for working memcmp... " >&6; }
29916 if test "${ac_cv_func_memcmp_working+set}" = set; then
29917 $as_echo_n "(cached) " >&6
29919 if test "$cross_compiling" = yes; then
29920 ac_cv_func_memcmp_working=no
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 $ac_includes_default
29933 /* Some versions of memcmp are not 8-bit clean. */
29934 char c0 = '\100', c1 = '\200', c2 = '\201';
29935 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29938 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29939 or more and with at least one buffer not starting on a 4-byte boundary.
29940 William Lewis provided this test program. */
29945 for (i = 0; i < 4; i++)
29949 strcpy (a, "--------01111111");
29950 strcpy (b, "--------10000000");
29951 if (memcmp (a, b, 16) >= 0)
29961 rm -f conftest$ac_exeext
29962 if { (ac_try="$ac_link"
29963 case "(($ac_try" in
29964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965 *) ac_try_echo=$ac_try;;
29967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29968 $as_echo "$ac_try_echo") >&5
29969 (eval "$ac_link") 2>&5
29971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29973 { (case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29978 $as_echo "$ac_try_echo") >&5
29979 (eval "$ac_try") 2>&5
29981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; }; then
29983 ac_cv_func_memcmp_working=yes
29985 $as_echo "$as_me: program exited with status $ac_status" >&5
29986 $as_echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29989 ( exit $ac_status )
29990 ac_cv_func_memcmp_working=no
29992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29997 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29998 $as_echo "$ac_cv_func_memcmp_working" >&6; }
29999 test $ac_cv_func_memcmp_working = no && gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
30001 if test $ac_cv_func_memcmp_working = no; then
30003 cat >>confdefs.h <<\_ACEOF
30004 #define memcmp rpl_memcmp
30011 gl_LIBOBJS="$gl_LIBOBJS memcoll.$ac_objext"
30013 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
30014 $as_echo_n "checking for working strcoll... " >&6; }
30015 if test "${ac_cv_func_strcoll_works+set}" = set; then
30016 $as_echo_n "(cached) " >&6
30018 if test "$cross_compiling" = yes; then
30019 ac_cv_func_strcoll_works=no
30021 cat >conftest.$ac_ext <<_ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30027 $ac_includes_default
30031 return (strcoll ("abc", "def") >= 0 ||
30032 strcoll ("ABC", "DEF") >= 0 ||
30033 strcoll ("123", "456") >= 0)
30038 rm -f conftest$ac_exeext
30039 if { (ac_try="$ac_link"
30040 case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30045 $as_echo "$ac_try_echo") >&5
30046 (eval "$ac_link") 2>&5
30048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30050 { (case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30055 $as_echo "$ac_try_echo") >&5
30056 (eval "$ac_try") 2>&5
30058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 ac_cv_func_strcoll_works=yes
30062 $as_echo "$as_me: program exited with status $ac_status" >&5
30063 $as_echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30066 ( exit $ac_status )
30067 ac_cv_func_strcoll_works=no
30069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30074 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
30075 $as_echo "$ac_cv_func_strcoll_works" >&6; }
30076 if test $ac_cv_func_strcoll_works = yes; then
30078 cat >>confdefs.h <<\_ACEOF
30079 #define HAVE_STRCOLL 1
30087 for ac_func in memcpy
30089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30091 $as_echo_n "checking for $ac_func... " >&6; }
30092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30093 $as_echo_n "(cached) " >&6
30095 cat >conftest.$ac_ext <<_ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30103 #define $ac_func innocuous_$ac_func
30105 /* System header to define __stub macros and hopefully few prototypes,
30106 which can conflict with char $ac_func (); below.
30107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30108 <limits.h> exists even on freestanding compilers. */
30111 # include <limits.h>
30113 # include <assert.h>
30118 /* Override any GCC internal prototype to avoid an error.
30119 Use char because int might match the return type of a GCC
30120 builtin and then its argument prototype would still apply. */
30125 /* The GNU C library defines this for functions which it implements
30126 to always fail with ENOSYS. Some functions are actually named
30127 something starting with __ and the normal name is an alias. */
30128 #if defined __stub_$ac_func || defined __stub___$ac_func
30135 return $ac_func ();
30140 rm -f conftest.$ac_objext conftest$ac_exeext
30141 if { (ac_try="$ac_link"
30142 case "(($ac_try" in
30143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144 *) ac_try_echo=$ac_try;;
30146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30147 $as_echo "$ac_try_echo") >&5
30148 (eval "$ac_link") 2>conftest.er1
30150 grep -v '^ *+' conftest.er1 >conftest.err
30152 cat conftest.err >&5
30153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } && {
30155 test -z "$ac_c_werror_flag" ||
30156 test ! -s conftest.err
30157 } && test -s conftest$ac_exeext &&
30158 $as_test_x conftest$ac_exeext; then
30159 eval "$as_ac_var=yes"
30161 $as_echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30164 eval "$as_ac_var=no"
30167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30168 conftest$ac_exeext conftest.$ac_ext
30170 ac_res=`eval 'as_val=${'$as_ac_var'}
30171 $as_echo "$as_val"'`
30172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30173 $as_echo "$ac_res" >&6; }
30174 if test `eval 'as_val=${'$as_ac_var'}
30175 $as_echo "$as_val"'` = yes; then
30176 cat >>confdefs.h <<_ACEOF
30177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30181 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30185 if test $ac_cv_func_memcpy = no; then
30193 for ac_func in memmove
30195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 $as_echo_n "checking for $ac_func... " >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199 $as_echo_n "(cached) " >&6
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30209 #define $ac_func innocuous_$ac_func
30211 /* System header to define __stub macros and hopefully few prototypes,
30212 which can conflict with char $ac_func (); below.
30213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214 <limits.h> exists even on freestanding compilers. */
30217 # include <limits.h>
30219 # include <assert.h>
30224 /* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
30231 /* The GNU C library defines this for functions which it implements
30232 to always fail with ENOSYS. Some functions are actually named
30233 something starting with __ and the normal name is an alias. */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30241 return $ac_func ();
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30253 $as_echo "$ac_try_echo") >&5
30254 (eval "$ac_link") 2>conftest.er1
30256 grep -v '^ *+' conftest.er1 >conftest.err
30258 cat conftest.err >&5
30259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } && {
30261 test -z "$ac_c_werror_flag" ||
30262 test ! -s conftest.err
30263 } && test -s conftest$ac_exeext &&
30264 $as_test_x conftest$ac_exeext; then
30265 eval "$as_ac_var=yes"
30267 $as_echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30270 eval "$as_ac_var=no"
30273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30274 conftest$ac_exeext conftest.$ac_ext
30276 ac_res=`eval 'as_val=${'$as_ac_var'}
30277 $as_echo "$as_val"'`
30278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30279 $as_echo "$ac_res" >&6; }
30280 if test `eval 'as_val=${'$as_ac_var'}
30281 $as_echo "$as_val"'` = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30291 if test $ac_cv_func_memmove = no; then
30304 for ac_func in mempcpy
30306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30308 $as_echo_n "checking for $ac_func... " >&6; }
30309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30310 $as_echo_n "(cached) " >&6
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30320 #define $ac_func innocuous_$ac_func
30322 /* System header to define __stub macros and hopefully few prototypes,
30323 which can conflict with char $ac_func (); below.
30324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30325 <limits.h> exists even on freestanding compilers. */
30328 # include <limits.h>
30330 # include <assert.h>
30335 /* Override any GCC internal prototype to avoid an error.
30336 Use char because int might match the return type of a GCC
30337 builtin and then its argument prototype would still apply. */
30342 /* The GNU C library defines this for functions which it implements
30343 to always fail with ENOSYS. Some functions are actually named
30344 something starting with __ and the normal name is an alias. */
30345 #if defined __stub_$ac_func || defined __stub___$ac_func
30352 return $ac_func ();
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (ac_try="$ac_link"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30364 $as_echo "$ac_try_echo") >&5
30365 (eval "$ac_link") 2>conftest.er1
30367 grep -v '^ *+' conftest.er1 >conftest.err
30369 cat conftest.err >&5
30370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); } && {
30372 test -z "$ac_c_werror_flag" ||
30373 test ! -s conftest.err
30374 } && test -s conftest$ac_exeext &&
30375 $as_test_x conftest$ac_exeext; then
30376 eval "$as_ac_var=yes"
30378 $as_echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30381 eval "$as_ac_var=no"
30384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30385 conftest$ac_exeext conftest.$ac_ext
30387 ac_res=`eval 'as_val=${'$as_ac_var'}
30388 $as_echo "$as_val"'`
30389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30390 $as_echo "$ac_res" >&6; }
30391 if test `eval 'as_val=${'$as_ac_var'}
30392 $as_echo "$as_val"'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30398 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30402 if test $ac_cv_func_mempcpy = no; then
30421 if test $ac_cv_have_decl_memrchr = no; then
30422 HAVE_DECL_MEMRCHR=0
30426 for ac_func in memrchr
30428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30430 $as_echo_n "checking for $ac_func... " >&6; }
30431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30432 $as_echo_n "(cached) " >&6
30434 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30442 #define $ac_func innocuous_$ac_func
30444 /* System header to define __stub macros and hopefully few prototypes,
30445 which can conflict with char $ac_func (); below.
30446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30447 <limits.h> exists even on freestanding compilers. */
30450 # include <limits.h>
30452 # include <assert.h>
30457 /* Override any GCC internal prototype to avoid an error.
30458 Use char because int might match the return type of a GCC
30459 builtin and then its argument prototype would still apply. */
30464 /* The GNU C library defines this for functions which it implements
30465 to always fail with ENOSYS. Some functions are actually named
30466 something starting with __ and the normal name is an alias. */
30467 #if defined __stub_$ac_func || defined __stub___$ac_func
30474 return $ac_func ();
30479 rm -f conftest.$ac_objext conftest$ac_exeext
30480 if { (ac_try="$ac_link"
30481 case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30486 $as_echo "$ac_try_echo") >&5
30487 (eval "$ac_link") 2>conftest.er1
30489 grep -v '^ *+' conftest.er1 >conftest.err
30491 cat conftest.err >&5
30492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } && {
30494 test -z "$ac_c_werror_flag" ||
30495 test ! -s conftest.err
30496 } && test -s conftest$ac_exeext &&
30497 $as_test_x conftest$ac_exeext; then
30498 eval "$as_ac_var=yes"
30500 $as_echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 eval "$as_ac_var=no"
30506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30507 conftest$ac_exeext conftest.$ac_ext
30509 ac_res=`eval 'as_val=${'$as_ac_var'}
30510 $as_echo "$as_val"'`
30511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30512 $as_echo "$ac_res" >&6; }
30513 if test `eval 'as_val=${'$as_ac_var'}
30514 $as_echo "$as_val"'` = yes; then
30515 cat >>confdefs.h <<_ACEOF
30516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30520 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30524 if test $ac_cv_func_memrchr = no; then
30534 for ac_func in memset
30536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30538 $as_echo_n "checking for $ac_func... " >&6; }
30539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30540 $as_echo_n "(cached) " >&6
30542 cat >conftest.$ac_ext <<_ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h. */
30548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30550 #define $ac_func innocuous_$ac_func
30552 /* System header to define __stub macros and hopefully few prototypes,
30553 which can conflict with char $ac_func (); below.
30554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30555 <limits.h> exists even on freestanding compilers. */
30558 # include <limits.h>
30560 # include <assert.h>
30565 /* Override any GCC internal prototype to avoid an error.
30566 Use char because int might match the return type of a GCC
30567 builtin and then its argument prototype would still apply. */
30572 /* The GNU C library defines this for functions which it implements
30573 to always fail with ENOSYS. Some functions are actually named
30574 something starting with __ and the normal name is an alias. */
30575 #if defined __stub_$ac_func || defined __stub___$ac_func
30582 return $ac_func ();
30587 rm -f conftest.$ac_objext conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30594 $as_echo "$ac_try_echo") >&5
30595 (eval "$ac_link") 2>conftest.er1
30597 grep -v '^ *+' conftest.er1 >conftest.err
30599 cat conftest.err >&5
30600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); } && {
30602 test -z "$ac_c_werror_flag" ||
30603 test ! -s conftest.err
30604 } && test -s conftest$ac_exeext &&
30605 $as_test_x conftest$ac_exeext; then
30606 eval "$as_ac_var=yes"
30608 $as_echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 eval "$as_ac_var=no"
30614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30615 conftest$ac_exeext conftest.$ac_ext
30617 ac_res=`eval 'as_val=${'$as_ac_var'}
30618 $as_echo "$as_val"'`
30619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30620 $as_echo "$ac_res" >&6; }
30621 if test `eval 'as_val=${'$as_ac_var'}
30622 $as_echo "$as_val"'` = yes; then
30623 cat >>confdefs.h <<_ACEOF
30624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30628 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30632 if test $ac_cv_func_memset = no; then
30639 gl_LIBOBJS="$gl_LIBOBJS mkancesdirs.$ac_objext"
30647 { $as_echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
30648 $as_echo_n "checking whether mkdir fails due to a trailing slash... " >&6; }
30649 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
30650 $as_echo_n "(cached) " >&6
30653 # Arrange for deletion of the temporary directory this test might create.
30654 ac_clean_files="$ac_clean_files confdir-slash"
30655 if test "$cross_compiling" = yes; then
30656 gl_cv_func_mkdir_trailing_slash_bug=yes
30659 cat >conftest.$ac_ext <<_ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h. */
30666 # include <sys/types.h>
30667 # include <sys/stat.h>
30668 # include <stdlib.h>
30669 # ifdef HAVE_UNISTD_H
30670 # include <unistd.h>
30674 rmdir ("confdir-slash");
30675 exit (mkdir ("confdir-slash/", 0700));
30679 rm -f conftest$ac_exeext
30680 if { (ac_try="$ac_link"
30681 case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30686 $as_echo "$ac_try_echo") >&5
30687 (eval "$ac_link") 2>&5
30689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30691 { (case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30696 $as_echo "$ac_try_echo") >&5
30697 (eval "$ac_try") 2>&5
30699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; }; then
30701 gl_cv_func_mkdir_trailing_slash_bug=no
30703 $as_echo "$as_me: program exited with status $ac_status" >&5
30704 $as_echo "$as_me: failed program was:" >&5
30705 sed 's/^/| /' conftest.$ac_ext >&5
30707 ( exit $ac_status )
30708 gl_cv_func_mkdir_trailing_slash_bug=yes
30710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30717 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
30718 $as_echo "$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
30720 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
30721 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
30723 cat >>confdefs.h <<\_ACEOF
30724 #define mkdir rpl_mkdir
30731 gl_LIBOBJS="$gl_LIBOBJS dirchownmod.$ac_objext"
30732 gl_LIBOBJS="$gl_LIBOBJS mkdir-p.$ac_objext"
30747 { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5
30748 $as_echo_n "checking for working mkstemp... " >&6; }
30749 if test "${gl_cv_func_working_mkstemp+set}" = set; then
30750 $as_echo_n "(cached) " >&6
30753 mkdir conftest.mkstemp
30754 if test "$cross_compiling" = yes; then
30755 gl_cv_func_working_mkstemp=no
30757 cat >conftest.$ac_ext <<_ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h. */
30763 $ac_includes_default
30768 off_t large = (off_t) 4294967295u;
30770 large = 2147483647;
30771 for (i = 0; i < 70; i++)
30773 char templ[] = "conftest.mkstemp/coXXXXXX";
30774 int (*mkstemp_function) (char *) = mkstemp;
30775 int fd = mkstemp_function (templ);
30776 if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
30785 rm -f conftest$ac_exeext
30786 if { (ac_try="$ac_link"
30787 case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30792 $as_echo "$ac_try_echo") >&5
30793 (eval "$ac_link") 2>&5
30795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30802 $as_echo "$ac_try_echo") >&5
30803 (eval "$ac_try") 2>&5
30805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
30807 gl_cv_func_working_mkstemp=yes
30809 $as_echo "$as_me: program exited with status $ac_status" >&5
30810 $as_echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30813 ( exit $ac_status )
30814 gl_cv_func_working_mkstemp=no
30816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30820 rm -rf conftest.mkstemp
30823 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_mkstemp" >&5
30824 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
30826 if test $gl_cv_func_working_mkstemp != yes; then
30828 gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
30850 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
30851 $as_echo_n "checking for working mktime... " >&6; }
30852 if test "${ac_cv_func_working_mktime+set}" = set; then
30853 $as_echo_n "(cached) " >&6
30855 if test "$cross_compiling" = yes; then
30856 ac_cv_func_working_mktime=no
30858 cat >conftest.$ac_ext <<_ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h. */
30864 /* Test program from Paul Eggert and Tony Leneis. */
30865 #include <limits.h>
30866 #include <stdlib.h>
30869 #ifdef HAVE_UNISTD_H
30870 # include <unistd.h>
30874 # define alarm(X) /* empty */
30877 /* Work around redefinition to rpl_putenv by other config tests. */
30880 static time_t time_t_max;
30881 static time_t time_t_min;
30883 /* Values we'll use to set the TZ environment variable. */
30884 static char *tz_strings[] = {
30885 (char *) 0, "TZ=GMT0", "TZ=JST-9",
30886 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
30888 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
30890 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
30891 Based on a problem report from Andreas Jaeger. */
30893 spring_forward_gap ()
30895 /* glibc (up to about 1998-10-07) failed this test. */
30898 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30899 instead of "TZ=America/Vancouver" in order to detect the bug even
30900 on systems that don't support the Olson extension, or don't have the
30901 full zoneinfo tables installed. */
30902 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30911 return mktime (&tm) != (time_t) -1;
30919 return ! (lt = localtime (&now)) || mktime (lt) == now;
30926 return (mktime_test1 (now)
30927 && mktime_test1 ((time_t) (time_t_max - now))
30928 && mktime_test1 ((time_t) (time_t_min + now)));
30934 /* Based on code from Ariel Faigon. */
30944 return tm.tm_mon == 2 && tm.tm_mday == 31;
30953 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
30954 now = mktime (&tm);
30955 if (now != (time_t) -1)
30957 struct tm *lt = localtime (&now);
30959 && lt->tm_year == tm.tm_year
30960 && lt->tm_mon == tm.tm_mon
30961 && lt->tm_mday == tm.tm_mday
30962 && lt->tm_hour == tm.tm_hour
30963 && lt->tm_min == tm.tm_min
30964 && lt->tm_sec == tm.tm_sec
30965 && lt->tm_yday == tm.tm_yday
30966 && lt->tm_wday == tm.tm_wday
30967 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
30968 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
30977 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
30978 ignoring leap seconds. */
30979 unsigned long int answer = 2527315200UL;
30983 tm.tm_year = 2050 - 1900;
30986 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
30989 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30990 instead of "TZ=America/Vancouver" in order to detect the bug even
30991 on systems that don't support the Olson extension, or don't have the
30992 full zoneinfo tables installed. */
30993 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30997 /* Check that the result is either a failure, or close enough
30998 to the correct answer that we can assume the discrepancy is
30999 due to leap seconds. */
31000 return (t == (time_t) -1
31001 || (0 < t && answer - 120 <= t && t <= answer + 120));
31010 /* This test makes some buggy mktime implementations loop.
31011 Give up after 60 seconds; a mktime slower than that
31012 isn't worth using anyway. */
31017 t = (time_t_max << 1) + 1;
31018 if (t <= time_t_max)
31022 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
31024 delta = time_t_max / 997; /* a suitable prime number */
31025 for (i = 0; i < N_STRINGS; i++)
31028 putenv (tz_strings[i]);
31030 for (t = 0; t <= time_t_max - delta; t += delta)
31031 if (! mktime_test (t))
31033 if (! (mktime_test ((time_t) 1)
31034 && mktime_test ((time_t) (60 * 60))
31035 && mktime_test ((time_t) (60 * 60 * 24))))
31038 for (j = 1; ; j <<= 1)
31039 if (! bigtime_test (j))
31041 else if (INT_MAX / 2 < j)
31043 if (! bigtime_test (INT_MAX))
31046 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
31049 rm -f conftest$ac_exeext
31050 if { (ac_try="$ac_link"
31051 case "(($ac_try" in
31052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053 *) ac_try_echo=$ac_try;;
31055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31056 $as_echo "$ac_try_echo") >&5
31057 (eval "$ac_link") 2>&5
31059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31066 $as_echo "$ac_try_echo") >&5
31067 (eval "$ac_try") 2>&5
31069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; }; then
31071 ac_cv_func_working_mktime=yes
31073 $as_echo "$as_me: program exited with status $ac_status" >&5
31074 $as_echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31077 ( exit $ac_status )
31078 ac_cv_func_working_mktime=no
31080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31085 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
31086 $as_echo "$ac_cv_func_working_mktime" >&6; }
31087 if test $ac_cv_func_working_mktime = no; then
31088 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
31091 if test $ac_cv_func_working_mktime = no; then
31093 cat >>confdefs.h <<\_ACEOF
31094 #define mktime rpl_mktime
31103 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
31109 for ac_func in listmntent getmntinfo
31111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31113 $as_echo_n "checking for $ac_func... " >&6; }
31114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31115 $as_echo_n "(cached) " >&6
31117 cat >conftest.$ac_ext <<_ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h. */
31123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31125 #define $ac_func innocuous_$ac_func
31127 /* System header to define __stub macros and hopefully few prototypes,
31128 which can conflict with char $ac_func (); below.
31129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31130 <limits.h> exists even on freestanding compilers. */
31133 # include <limits.h>
31135 # include <assert.h>
31140 /* Override any GCC internal prototype to avoid an error.
31141 Use char because int might match the return type of a GCC
31142 builtin and then its argument prototype would still apply. */
31147 /* The GNU C library defines this for functions which it implements
31148 to always fail with ENOSYS. Some functions are actually named
31149 something starting with __ and the normal name is an alias. */
31150 #if defined __stub_$ac_func || defined __stub___$ac_func
31157 return $ac_func ();
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31169 $as_echo "$ac_try_echo") >&5
31170 (eval "$ac_link") 2>conftest.er1
31172 grep -v '^ *+' conftest.er1 >conftest.err
31174 cat conftest.err >&5
31175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); } && {
31177 test -z "$ac_c_werror_flag" ||
31178 test ! -s conftest.err
31179 } && test -s conftest$ac_exeext &&
31180 $as_test_x conftest$ac_exeext; then
31181 eval "$as_ac_var=yes"
31183 $as_echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 eval "$as_ac_var=no"
31189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31190 conftest$ac_exeext conftest.$ac_ext
31192 ac_res=`eval 'as_val=${'$as_ac_var'}
31193 $as_echo "$as_val"'`
31194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31195 $as_echo "$ac_res" >&6; }
31196 if test `eval 'as_val=${'$as_ac_var'}
31197 $as_echo "$as_val"'` = yes; then
31198 cat >>confdefs.h <<_ACEOF
31199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31214 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
31215 # NGROUPS (as the array dimension for a struct member) without a definition.
31217 for ac_header in sys/ucred.h
31219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31221 $as_echo_n "checking for $ac_header... " >&6; }
31222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31223 $as_echo_n "(cached) " >&6
31225 cat >conftest.$ac_ext <<_ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31233 #include <$ac_header>
31235 rm -f conftest.$ac_objext
31236 if { (ac_try="$ac_compile"
31237 case "(($ac_try" in
31238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239 *) ac_try_echo=$ac_try;;
31241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31242 $as_echo "$ac_try_echo") >&5
31243 (eval "$ac_compile") 2>conftest.er1
31245 grep -v '^ *+' conftest.er1 >conftest.err
31247 cat conftest.err >&5
31248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } && {
31250 test -z "$ac_c_werror_flag" ||
31251 test ! -s conftest.err
31252 } && test -s conftest.$ac_objext; then
31253 eval "$as_ac_Header=yes"
31255 $as_echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31258 eval "$as_ac_Header=no"
31261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31263 ac_res=`eval 'as_val=${'$as_ac_Header'}
31264 $as_echo "$as_val"'`
31265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31266 $as_echo "$ac_res" >&6; }
31267 if test `eval 'as_val=${'$as_ac_Header'}
31268 $as_echo "$as_val"'` = yes; then
31269 cat >>confdefs.h <<_ACEOF
31270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31279 for ac_header in sys/mount.h
31281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31283 $as_echo_n "checking for $ac_header... " >&6; }
31284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31285 $as_echo_n "(cached) " >&6
31287 cat >conftest.$ac_ext <<_ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31293 $ac_includes_default
31294 #if HAVE_SYS_PARAM_H
31295 #include <sys/param.h>
31298 #include <$ac_header>
31300 rm -f conftest.$ac_objext
31301 if { (ac_try="$ac_compile"
31302 case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31307 $as_echo "$ac_try_echo") >&5
31308 (eval "$ac_compile") 2>conftest.er1
31310 grep -v '^ *+' conftest.er1 >conftest.err
31312 cat conftest.err >&5
31313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } && {
31315 test -z "$ac_c_werror_flag" ||
31316 test ! -s conftest.err
31317 } && test -s conftest.$ac_objext; then
31318 eval "$as_ac_Header=yes"
31320 $as_echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31323 eval "$as_ac_Header=no"
31326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31328 ac_res=`eval 'as_val=${'$as_ac_Header'}
31329 $as_echo "$as_val"'`
31330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31331 $as_echo "$ac_res" >&6; }
31332 if test `eval 'as_val=${'$as_ac_Header'}
31333 $as_echo "$as_val"'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31345 for ac_header in mntent.h sys/fs_types.h
31347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31350 $as_echo_n "checking for $ac_header... " >&6; }
31351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31352 $as_echo_n "(cached) " >&6
31354 ac_res=`eval 'as_val=${'$as_ac_Header'}
31355 $as_echo "$as_val"'`
31356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31357 $as_echo "$ac_res" >&6; }
31359 # Is the header compilable?
31360 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31361 $as_echo_n "checking $ac_header usability... " >&6; }
31362 cat >conftest.$ac_ext <<_ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h. */
31368 $ac_includes_default
31369 #include <$ac_header>
31371 rm -f conftest.$ac_objext
31372 if { (ac_try="$ac_compile"
31373 case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31378 $as_echo "$ac_try_echo") >&5
31379 (eval "$ac_compile") 2>conftest.er1
31381 grep -v '^ *+' conftest.er1 >conftest.err
31383 cat conftest.err >&5
31384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); } && {
31386 test -z "$ac_c_werror_flag" ||
31387 test ! -s conftest.err
31388 } && test -s conftest.$ac_objext; then
31389 ac_header_compiler=yes
31391 $as_echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31394 ac_header_compiler=no
31397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31399 $as_echo "$ac_header_compiler" >&6; }
31401 # Is the header present?
31402 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31403 $as_echo_n "checking $ac_header presence... " >&6; }
31404 cat >conftest.$ac_ext <<_ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h. */
31410 #include <$ac_header>
31412 if { (ac_try="$ac_cpp conftest.$ac_ext"
31413 case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31418 $as_echo "$ac_try_echo") >&5
31419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31421 grep -v '^ *+' conftest.er1 >conftest.err
31423 cat conftest.err >&5
31424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } >/dev/null && {
31426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31427 test ! -s conftest.err
31429 ac_header_preproc=yes
31431 $as_echo "$as_me: failed program was:" >&5
31432 sed 's/^/| /' conftest.$ac_ext >&5
31434 ac_header_preproc=no
31437 rm -f conftest.err conftest.$ac_ext
31438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31439 $as_echo "$ac_header_preproc" >&6; }
31441 # So? What about this header?
31442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31445 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31447 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31448 ac_header_preproc=yes
31451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31452 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31454 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31456 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31458 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31462 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31464 ## ------------------------------------ ##
31465 ## Report this to bug-coreutils@gnu.org ##
31466 ## ------------------------------------ ##
31468 ) | sed "s/^/$as_me: WARNING: /" >&2
31471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31472 $as_echo_n "checking for $ac_header... " >&6; }
31473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31474 $as_echo_n "(cached) " >&6
31476 eval "$as_ac_Header=\$ac_header_preproc"
31478 ac_res=`eval 'as_val=${'$as_ac_Header'}
31479 $as_echo "$as_val"'`
31480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31481 $as_echo "$ac_res" >&6; }
31484 if test `eval 'as_val=${'$as_ac_Header'}
31485 $as_echo "$as_val"'` = yes; then
31486 cat >>confdefs.h <<_ACEOF
31487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31494 getfsstat_includes="\
31495 $ac_includes_default
31496 #if HAVE_SYS_PARAM_H
31497 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
31499 #if HAVE_SYS_UCRED_H
31500 # include <grp.h> /* needed for definition of NGROUPS */
31501 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
31503 #if HAVE_SYS_MOUNT_H
31504 # include <sys/mount.h>
31506 #if HAVE_SYS_FS_TYPES_H
31507 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
31510 { $as_echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
31511 $as_echo_n "checking for struct fsstat.f_fstypename... " >&6; }
31512 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
31513 $as_echo_n "(cached) " >&6
31515 cat >conftest.$ac_ext <<_ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h. */
31521 $getfsstat_includes
31526 static struct fsstat ac_aggr;
31527 if (ac_aggr.f_fstypename)
31533 rm -f conftest.$ac_objext
31534 if { (ac_try="$ac_compile"
31535 case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31540 $as_echo "$ac_try_echo") >&5
31541 (eval "$ac_compile") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } && {
31548 test -z "$ac_c_werror_flag" ||
31549 test ! -s conftest.err
31550 } && test -s conftest.$ac_objext; then
31551 ac_cv_member_struct_fsstat_f_fstypename=yes
31553 $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 cat >conftest.$ac_ext <<_ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h. */
31562 $getfsstat_includes
31567 static struct fsstat ac_aggr;
31568 if (sizeof ac_aggr.f_fstypename)
31574 rm -f conftest.$ac_objext
31575 if { (ac_try="$ac_compile"
31576 case "(($ac_try" in
31577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578 *) ac_try_echo=$ac_try;;
31580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31581 $as_echo "$ac_try_echo") >&5
31582 (eval "$ac_compile") 2>conftest.er1
31584 grep -v '^ *+' conftest.er1 >conftest.err
31586 cat conftest.err >&5
31587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); } && {
31589 test -z "$ac_c_werror_flag" ||
31590 test ! -s conftest.err
31591 } && test -s conftest.$ac_objext; then
31592 ac_cv_member_struct_fsstat_f_fstypename=yes
31594 $as_echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31597 ac_cv_member_struct_fsstat_f_fstypename=no
31600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31605 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
31606 $as_echo "$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
31607 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
31609 cat >>confdefs.h <<_ACEOF
31610 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
31617 # Determine how to get the list of mounted file systems.
31618 ac_list_mounted_fs=
31620 # If the getmntent function is available but not in the standard library,
31621 # make sure LIBS contains the appropriate -l option.
31622 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31623 # -lseq on Dynix/PTX, -lgen on Unixware.
31624 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31625 $as_echo_n "checking for library containing getmntent... " >&6; }
31626 if test "${ac_cv_search_getmntent+set}" = set; then
31627 $as_echo_n "(cached) " >&6
31629 ac_func_search_save_LIBS=$LIBS
31630 cat >conftest.$ac_ext <<_ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31637 /* Override any GCC internal prototype to avoid an error.
31638 Use char because int might match the return type of a GCC
31639 builtin and then its argument prototype would still apply. */
31647 return getmntent ();
31652 for ac_lib in '' sun seq gen; do
31653 if test -z "$ac_lib"; then
31654 ac_res="none required"
31657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31659 rm -f conftest.$ac_objext conftest$ac_exeext
31660 if { (ac_try="$ac_link"
31661 case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31666 $as_echo "$ac_try_echo") >&5
31667 (eval "$ac_link") 2>conftest.er1
31669 grep -v '^ *+' conftest.er1 >conftest.err
31671 cat conftest.err >&5
31672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } && {
31674 test -z "$ac_c_werror_flag" ||
31675 test ! -s conftest.err
31676 } && test -s conftest$ac_exeext &&
31677 $as_test_x conftest$ac_exeext; then
31678 ac_cv_search_getmntent=$ac_res
31680 $as_echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31688 if test "${ac_cv_search_getmntent+set}" = set; then
31692 if test "${ac_cv_search_getmntent+set}" = set; then
31695 ac_cv_search_getmntent=no
31697 rm conftest.$ac_ext
31698 LIBS=$ac_func_search_save_LIBS
31700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
31701 $as_echo "$ac_cv_search_getmntent" >&6; }
31702 ac_res=$ac_cv_search_getmntent
31703 if test "$ac_res" != no; then
31704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31709 for ac_func in getmntent
31711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31713 $as_echo_n "checking for $ac_func... " >&6; }
31714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31715 $as_echo_n "(cached) " >&6
31717 cat >conftest.$ac_ext <<_ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h. */
31723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31725 #define $ac_func innocuous_$ac_func
31727 /* System header to define __stub macros and hopefully few prototypes,
31728 which can conflict with char $ac_func (); below.
31729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730 <limits.h> exists even on freestanding compilers. */
31733 # include <limits.h>
31735 # include <assert.h>
31740 /* Override any GCC internal prototype to avoid an error.
31741 Use char because int might match the return type of a GCC
31742 builtin and then its argument prototype would still apply. */
31747 /* The GNU C library defines this for functions which it implements
31748 to always fail with ENOSYS. Some functions are actually named
31749 something starting with __ and the normal name is an alias. */
31750 #if defined __stub_$ac_func || defined __stub___$ac_func
31757 return $ac_func ();
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (ac_try="$ac_link"
31764 case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31769 $as_echo "$ac_try_echo") >&5
31770 (eval "$ac_link") 2>conftest.er1
31772 grep -v '^ *+' conftest.er1 >conftest.err
31774 cat conftest.err >&5
31775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } && {
31777 test -z "$ac_c_werror_flag" ||
31778 test ! -s conftest.err
31779 } && test -s conftest$ac_exeext &&
31780 $as_test_x conftest$ac_exeext; then
31781 eval "$as_ac_var=yes"
31783 $as_echo "$as_me: failed program was:" >&5
31784 sed 's/^/| /' conftest.$ac_ext >&5
31786 eval "$as_ac_var=no"
31789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31790 conftest$ac_exeext conftest.$ac_ext
31792 ac_res=`eval 'as_val=${'$as_ac_var'}
31793 $as_echo "$as_val"'`
31794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31795 $as_echo "$ac_res" >&6; }
31796 if test `eval 'as_val=${'$as_ac_var'}
31797 $as_echo "$as_val"'` = yes; then
31798 cat >>confdefs.h <<_ACEOF
31799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31807 # This test must precede the ones for getmntent because Unicos-9 is
31808 # reported to have the getmntent function, but its support is incompatible
31809 # with other getmntent implementations.
31811 # NOTE: Normally, I wouldn't use a check for system type as I've done for
31812 # `CRAY' below since that goes against the whole autoconf philosophy. But
31813 # I think there is too great a chance that some non-Cray system has a
31814 # function named listmntent to risk the false positive.
31816 if test -z "$ac_list_mounted_fs"; then
31818 { $as_echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
31819 $as_echo_n "checking for listmntent of Cray/Unicos-9... " >&6; }
31820 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
31821 $as_echo_n "(cached) " >&6
31823 fu_cv_sys_mounted_cray_listmntent=no
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31836 $EGREP "yes" >/dev/null 2>&1; then
31837 test $ac_cv_func_listmntent = yes \
31838 && fu_cv_sys_mounted_cray_listmntent=yes
31847 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
31848 $as_echo "$fu_cv_sys_mounted_cray_listmntent" >&6; }
31849 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
31850 ac_list_mounted_fs=found
31852 cat >>confdefs.h <<\_ACEOF
31853 #define MOUNTED_LISTMNTENT 1
31859 if test -z "$ac_list_mounted_fs"; then
31861 { $as_echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
31862 $as_echo_n "checking for mntctl function and struct vmount... " >&6; }
31863 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
31864 $as_echo_n "(cached) " >&6
31866 cat >conftest.$ac_ext <<_ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h. */
31872 #include <fshelp.h>
31874 if { (ac_try="$ac_cpp conftest.$ac_ext"
31875 case "(($ac_try" in
31876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877 *) ac_try_echo=$ac_try;;
31879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31880 $as_echo "$ac_try_echo") >&5
31881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31883 grep -v '^ *+' conftest.er1 >conftest.err
31885 cat conftest.err >&5
31886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); } >/dev/null && {
31888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31889 test ! -s conftest.err
31891 fu_cv_sys_mounted_vmount=yes
31893 $as_echo "$as_me: failed program was:" >&5
31894 sed 's/^/| /' conftest.$ac_ext >&5
31896 fu_cv_sys_mounted_vmount=no
31899 rm -f conftest.err conftest.$ac_ext
31902 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
31903 $as_echo "$fu_cv_sys_mounted_vmount" >&6; }
31904 if test $fu_cv_sys_mounted_vmount = yes; then
31905 ac_list_mounted_fs=found
31907 cat >>confdefs.h <<\_ACEOF
31908 #define MOUNTED_VMOUNT 1
31914 if test $ac_cv_func_getmntent = yes; then
31916 # This system has the getmntent function.
31917 # Determine whether it's the one-argument variant or the two-argument one.
31919 if test -z "$ac_list_mounted_fs"; then
31920 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
31921 { $as_echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
31922 $as_echo_n "checking for one-argument getmntent function... " >&6; }
31923 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
31924 $as_echo_n "(cached) " >&6
31926 cat >conftest.$ac_ext <<_ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h. */
31933 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
31936 #include <mntent.h>
31937 #if !defined MOUNTED
31938 # if defined _PATH_MOUNTED /* GNU libc */
31939 # define MOUNTED _PATH_MOUNTED
31941 # if defined MNT_MNTTAB /* HP-UX. */
31942 # define MOUNTED MNT_MNTTAB
31944 # if defined MNTTABNAME /* Dynix. */
31945 # define MOUNTED MNTTABNAME
31952 struct mntent *mnt = 0; char *table = MOUNTED;
31953 if (sizeof mnt && sizeof table) return 0;
31958 rm -f conftest.$ac_objext
31959 if { (ac_try="$ac_compile"
31960 case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31965 $as_echo "$ac_try_echo") >&5
31966 (eval "$ac_compile") 2>conftest.er1
31968 grep -v '^ *+' conftest.er1 >conftest.err
31970 cat conftest.err >&5
31971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } && {
31973 test -z "$ac_c_werror_flag" ||
31974 test ! -s conftest.err
31975 } && test -s conftest.$ac_objext; then
31976 fu_cv_sys_mounted_getmntent1=yes
31978 $as_echo "$as_me: failed program was:" >&5
31979 sed 's/^/| /' conftest.$ac_ext >&5
31981 fu_cv_sys_mounted_getmntent1=no
31984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31987 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
31988 $as_echo "$fu_cv_sys_mounted_getmntent1" >&6; }
31989 if test $fu_cv_sys_mounted_getmntent1 = yes; then
31990 ac_list_mounted_fs=found
31992 cat >>confdefs.h <<\_ACEOF
31993 #define MOUNTED_GETMNTENT1 1
31999 if test -z "$ac_list_mounted_fs"; then
32001 { $as_echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
32002 $as_echo_n "checking for two-argument getmntent function... " >&6; }
32003 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
32004 $as_echo_n "(cached) " >&6
32006 cat >conftest.$ac_ext <<_ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h. */
32012 #include <sys/mnttab.h>
32015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32016 $EGREP "getmntent" >/dev/null 2>&1; then
32017 fu_cv_sys_mounted_getmntent2=yes
32019 fu_cv_sys_mounted_getmntent2=no
32025 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
32026 $as_echo "$fu_cv_sys_mounted_getmntent2" >&6; }
32027 if test $fu_cv_sys_mounted_getmntent2 = yes; then
32028 ac_list_mounted_fs=found
32030 cat >>confdefs.h <<\_ACEOF
32031 #define MOUNTED_GETMNTENT2 1
32035 for ac_func in hasmntopt
32037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32039 $as_echo_n "checking for $ac_func... " >&6; }
32040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041 $as_echo_n "(cached) " >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32051 #define $ac_func innocuous_$ac_func
32053 /* System header to define __stub macros and hopefully few prototypes,
32054 which can conflict with char $ac_func (); below.
32055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056 <limits.h> exists even on freestanding compilers. */
32059 # include <limits.h>
32061 # include <assert.h>
32066 /* Override any GCC internal prototype to avoid an error.
32067 Use char because int might match the return type of a GCC
32068 builtin and then its argument prototype would still apply. */
32073 /* The GNU C library defines this for functions which it implements
32074 to always fail with ENOSYS. Some functions are actually named
32075 something starting with __ and the normal name is an alias. */
32076 #if defined __stub_$ac_func || defined __stub___$ac_func
32083 return $ac_func ();
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (ac_try="$ac_link"
32090 case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32095 $as_echo "$ac_try_echo") >&5
32096 (eval "$ac_link") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest$ac_exeext &&
32106 $as_test_x conftest$ac_exeext; then
32107 eval "$as_ac_var=yes"
32109 $as_echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32112 eval "$as_ac_var=no"
32115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32116 conftest$ac_exeext conftest.$ac_ext
32118 ac_res=`eval 'as_val=${'$as_ac_var'}
32119 $as_echo "$as_val"'`
32120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32121 $as_echo "$ac_res" >&6; }
32122 if test `eval 'as_val=${'$as_ac_var'}
32123 $as_echo "$as_val"'` = yes; then
32124 cat >>confdefs.h <<_ACEOF
32125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32136 if test -z "$ac_list_mounted_fs"; then
32137 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
32138 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
32140 { $as_echo "$as_me:$LINENO: checking for getfsstat function" >&5
32141 $as_echo_n "checking for getfsstat function... " >&6; }
32142 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
32143 $as_echo_n "(cached) " >&6
32145 cat >conftest.$ac_ext <<_ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h. */
32152 #include <sys/types.h>
32153 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
32154 # define FS_TYPE(Ent) ((Ent).f_fstypename)
32156 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
32158 $getfsstat_includes
32163 struct statfs *stats;
32164 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
32165 char *t = FS_TYPE (*stats);
32170 rm -f conftest.$ac_objext conftest$ac_exeext
32171 if { (ac_try="$ac_link"
32172 case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32177 $as_echo "$ac_try_echo") >&5
32178 (eval "$ac_link") 2>conftest.er1
32180 grep -v '^ *+' conftest.er1 >conftest.err
32182 cat conftest.err >&5
32183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); } && {
32185 test -z "$ac_c_werror_flag" ||
32186 test ! -s conftest.err
32187 } && test -s conftest$ac_exeext &&
32188 $as_test_x conftest$ac_exeext; then
32189 fu_cv_sys_mounted_getfsstat=yes
32191 $as_echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32194 fu_cv_sys_mounted_getfsstat=no
32197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32198 conftest$ac_exeext conftest.$ac_ext
32201 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
32202 $as_echo "$fu_cv_sys_mounted_getfsstat" >&6; }
32203 if test $fu_cv_sys_mounted_getfsstat = yes; then
32204 ac_list_mounted_fs=found
32206 cat >>confdefs.h <<\_ACEOF
32207 #define MOUNTED_GETFSSTAT 1
32213 if test -z "$ac_list_mounted_fs"; then
32215 { $as_echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
32216 $as_echo_n "checking for FIXME existence of three headers... " >&6; }
32217 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
32218 $as_echo_n "(cached) " >&6
32220 cat >conftest.$ac_ext <<_ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h. */
32227 #include <sys/statfs.h>
32228 #include <sys/fstyp.h>
32229 #include <mnttab.h>
32231 if { (ac_try="$ac_cpp conftest.$ac_ext"
32232 case "(($ac_try" in
32233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234 *) ac_try_echo=$ac_try;;
32236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32237 $as_echo "$ac_try_echo") >&5
32238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32240 grep -v '^ *+' conftest.er1 >conftest.err
32242 cat conftest.err >&5
32243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } >/dev/null && {
32245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32246 test ! -s conftest.err
32248 fu_cv_sys_mounted_fread_fstyp=yes
32250 $as_echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 fu_cv_sys_mounted_fread_fstyp=no
32256 rm -f conftest.err conftest.$ac_ext
32259 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
32260 $as_echo "$fu_cv_sys_mounted_fread_fstyp" >&6; }
32261 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
32262 ac_list_mounted_fs=found
32264 cat >>confdefs.h <<\_ACEOF
32265 #define MOUNTED_FREAD_FSTYP 1
32271 if test -z "$ac_list_mounted_fs"; then
32272 # 4.4BSD and DEC OSF/1.
32273 { $as_echo "$as_me:$LINENO: checking for getmntinfo function" >&5
32274 $as_echo_n "checking for getmntinfo function... " >&6; }
32275 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
32276 $as_echo_n "(cached) " >&6
32279 test "$ac_cv_func_getmntinfo" = yes \
32280 && fu_cv_sys_mounted_getmntinfo=yes \
32281 || fu_cv_sys_mounted_getmntinfo=no
32285 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
32286 $as_echo "$fu_cv_sys_mounted_getmntinfo" >&6; }
32287 if test $fu_cv_sys_mounted_getmntinfo = yes; then
32288 { $as_echo "$as_me:$LINENO: checking whether getmntinfo returns statvfs structures" >&5
32289 $as_echo_n "checking whether getmntinfo returns statvfs structures... " >&6; }
32290 if test "${fu_cv_sys_mounted_getmntinfo2+set}" = set; then
32291 $as_echo_n "(cached) " >&6
32294 cat >conftest.$ac_ext <<_ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32301 #if HAVE_SYS_PARAM_H
32302 # include <sys/param.h>
32304 #include <sys/types.h>
32305 #if HAVE_SYS_MOUNT_H
32306 # include <sys/mount.h>
32308 #if HAVE_SYS_STATVFS_H
32309 # include <sys/statvfs.h>
32311 extern int getmntinfo (struct statfs **, int);
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32328 $as_echo "$ac_try_echo") >&5
32329 (eval "$ac_compile") 2>conftest.er1
32331 grep -v '^ *+' conftest.er1 >conftest.err
32333 cat conftest.err >&5
32334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); } && {
32336 test -z "$ac_c_werror_flag" ||
32337 test ! -s conftest.err
32338 } && test -s conftest.$ac_objext; then
32339 fu_cv_sys_mounted_getmntinfo2=no
32341 $as_echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32344 fu_cv_sys_mounted_getmntinfo2=yes
32347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32351 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo2" >&5
32352 $as_echo "$fu_cv_sys_mounted_getmntinfo2" >&6; }
32353 if test $fu_cv_sys_mounted_getmntinfo2 = no; then
32354 ac_list_mounted_fs=found
32356 cat >>confdefs.h <<\_ACEOF
32357 #define MOUNTED_GETMNTINFO 1
32361 ac_list_mounted_fs=found
32363 cat >>confdefs.h <<\_ACEOF
32364 #define MOUNTED_GETMNTINFO2 1
32371 if test -z "$ac_list_mounted_fs"; then
32373 { $as_echo "$as_me:$LINENO: checking for getmnt function" >&5
32374 $as_echo_n "checking for getmnt function... " >&6; }
32375 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
32376 $as_echo_n "(cached) " >&6
32378 cat >conftest.$ac_ext <<_ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32385 #include <sys/fs_types.h>
32386 #include <sys/mount.h>
32388 if { (ac_try="$ac_cpp conftest.$ac_ext"
32389 case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32394 $as_echo "$ac_try_echo") >&5
32395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32397 grep -v '^ *+' conftest.er1 >conftest.err
32399 cat conftest.err >&5
32400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); } >/dev/null && {
32402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32403 test ! -s conftest.err
32405 fu_cv_sys_mounted_getmnt=yes
32407 $as_echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32410 fu_cv_sys_mounted_getmnt=no
32413 rm -f conftest.err conftest.$ac_ext
32416 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
32417 $as_echo "$fu_cv_sys_mounted_getmnt" >&6; }
32418 if test $fu_cv_sys_mounted_getmnt = yes; then
32419 ac_list_mounted_fs=found
32421 cat >>confdefs.h <<\_ACEOF
32422 #define MOUNTED_GETMNT 1
32428 if test -z "$ac_list_mounted_fs"; then
32432 for ac_func in next_dev fs_stat_dev
32434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32436 $as_echo_n "checking for $ac_func... " >&6; }
32437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32438 $as_echo_n "(cached) " >&6
32440 cat >conftest.$ac_ext <<_ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h. */
32446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32448 #define $ac_func innocuous_$ac_func
32450 /* System header to define __stub macros and hopefully few prototypes,
32451 which can conflict with char $ac_func (); below.
32452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32453 <limits.h> exists even on freestanding compilers. */
32456 # include <limits.h>
32458 # include <assert.h>
32463 /* Override any GCC internal prototype to avoid an error.
32464 Use char because int might match the return type of a GCC
32465 builtin and then its argument prototype would still apply. */
32470 /* The GNU C library defines this for functions which it implements
32471 to always fail with ENOSYS. Some functions are actually named
32472 something starting with __ and the normal name is an alias. */
32473 #if defined __stub_$ac_func || defined __stub___$ac_func
32480 return $ac_func ();
32485 rm -f conftest.$ac_objext conftest$ac_exeext
32486 if { (ac_try="$ac_link"
32487 case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32492 $as_echo "$ac_try_echo") >&5
32493 (eval "$ac_link") 2>conftest.er1
32495 grep -v '^ *+' conftest.er1 >conftest.err
32497 cat conftest.err >&5
32498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } && {
32500 test -z "$ac_c_werror_flag" ||
32501 test ! -s conftest.err
32502 } && test -s conftest$ac_exeext &&
32503 $as_test_x conftest$ac_exeext; then
32504 eval "$as_ac_var=yes"
32506 $as_echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.$ac_ext >&5
32509 eval "$as_ac_var=no"
32512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32513 conftest$ac_exeext conftest.$ac_ext
32515 ac_res=`eval 'as_val=${'$as_ac_var'}
32516 $as_echo "$as_val"'`
32517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32518 $as_echo "$ac_res" >&6; }
32519 if test `eval 'as_val=${'$as_ac_var'}
32520 $as_echo "$as_val"'` = yes; then
32521 cat >>confdefs.h <<_ACEOF
32522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 for ac_header in fs_info.h
32531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32533 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32534 $as_echo_n "checking for $ac_header... " >&6; }
32535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32536 $as_echo_n "(cached) " >&6
32538 ac_res=`eval 'as_val=${'$as_ac_Header'}
32539 $as_echo "$as_val"'`
32540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32541 $as_echo "$ac_res" >&6; }
32543 # Is the header compilable?
32544 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32545 $as_echo_n "checking $ac_header usability... " >&6; }
32546 cat >conftest.$ac_ext <<_ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h. */
32552 $ac_includes_default
32553 #include <$ac_header>
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32562 $as_echo "$ac_try_echo") >&5
32563 (eval "$ac_compile") 2>conftest.er1
32565 grep -v '^ *+' conftest.er1 >conftest.err
32567 cat conftest.err >&5
32568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); } && {
32570 test -z "$ac_c_werror_flag" ||
32571 test ! -s conftest.err
32572 } && test -s conftest.$ac_objext; then
32573 ac_header_compiler=yes
32575 $as_echo "$as_me: failed program was:" >&5
32576 sed 's/^/| /' conftest.$ac_ext >&5
32578 ac_header_compiler=no
32581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32583 $as_echo "$ac_header_compiler" >&6; }
32585 # Is the header present?
32586 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32587 $as_echo_n "checking $ac_header presence... " >&6; }
32588 cat >conftest.$ac_ext <<_ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h. */
32594 #include <$ac_header>
32596 if { (ac_try="$ac_cpp conftest.$ac_ext"
32597 case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602 $as_echo "$ac_try_echo") >&5
32603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32605 grep -v '^ *+' conftest.er1 >conftest.err
32607 cat conftest.err >&5
32608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); } >/dev/null && {
32610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32611 test ! -s conftest.err
32613 ac_header_preproc=yes
32615 $as_echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32618 ac_header_preproc=no
32621 rm -f conftest.err conftest.$ac_ext
32622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32623 $as_echo "$ac_header_preproc" >&6; }
32625 # So? What about this header?
32626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32629 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32632 ac_header_preproc=yes
32635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32636 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32638 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32640 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32642 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32646 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32648 ## ------------------------------------ ##
32649 ## Report this to bug-coreutils@gnu.org ##
32650 ## ------------------------------------ ##
32652 ) | sed "s/^/$as_me: WARNING: /" >&2
32655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32656 $as_echo_n "checking for $ac_header... " >&6; }
32657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32658 $as_echo_n "(cached) " >&6
32660 eval "$as_ac_Header=\$ac_header_preproc"
32662 ac_res=`eval 'as_val=${'$as_ac_Header'}
32663 $as_echo "$as_val"'`
32664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32665 $as_echo "$ac_res" >&6; }
32668 if test `eval 'as_val=${'$as_ac_Header'}
32669 $as_echo "$as_val"'` = yes; then
32670 cat >>confdefs.h <<_ACEOF
32671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32678 { $as_echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
32679 $as_echo_n "checking for BEOS mounted file system support functions... " >&6; }
32680 if test $ac_cv_header_fs_info_h = yes \
32681 && test $ac_cv_func_next_dev = yes \
32682 && test $ac_cv_func_fs_stat_dev = yes; then
32687 { $as_echo "$as_me:$LINENO: result: $fu_result" >&5
32688 $as_echo "$fu_result" >&6; }
32689 if test $fu_result = yes; then
32690 ac_list_mounted_fs=found
32692 cat >>confdefs.h <<\_ACEOF
32693 #define MOUNTED_FS_STAT_DEV 1
32699 if test -z "$ac_list_mounted_fs"; then
32701 { $as_echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
32702 $as_echo_n "checking whether it is possible to resort to fread on /etc/mnttab... " >&6; }
32703 if test "${fu_cv_sys_mounted_fread+set}" = set; then
32704 $as_echo_n "(cached) " >&6
32706 cat >conftest.$ac_ext <<_ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h. */
32712 #include <mnttab.h>
32714 if { (ac_try="$ac_cpp conftest.$ac_ext"
32715 case "(($ac_try" in
32716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717 *) ac_try_echo=$ac_try;;
32719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32720 $as_echo "$ac_try_echo") >&5
32721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32723 grep -v '^ *+' conftest.er1 >conftest.err
32725 cat conftest.err >&5
32726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } >/dev/null && {
32728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32729 test ! -s conftest.err
32731 fu_cv_sys_mounted_fread=yes
32733 $as_echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32736 fu_cv_sys_mounted_fread=no
32739 rm -f conftest.err conftest.$ac_ext
32742 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
32743 $as_echo "$fu_cv_sys_mounted_fread" >&6; }
32744 if test $fu_cv_sys_mounted_fread = yes; then
32745 ac_list_mounted_fs=found
32747 cat >>confdefs.h <<\_ACEOF
32748 #define MOUNTED_FREAD 1
32754 if test -z "$ac_list_mounted_fs"; then
32755 { { $as_echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
32756 $as_echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
32757 { (exit 1); exit 1; }; }
32758 # FIXME -- no need to abort building the whole package
32759 # Can't build mountlist.c or anything that needs its functions
32762 if test $ac_list_mounted_fs = found; then
32763 gl_cv_list_mounted_fs=yes
32765 gl_cv_list_mounted_fs=no
32770 if test $gl_cv_list_mounted_fs = yes; then
32771 gl_LIBOBJS="$gl_LIBOBJS mountlist.$ac_objext"
32774 for ac_header in sys/mntent.h
32776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32779 $as_echo_n "checking for $ac_header... " >&6; }
32780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32781 $as_echo_n "(cached) " >&6
32783 ac_res=`eval 'as_val=${'$as_ac_Header'}
32784 $as_echo "$as_val"'`
32785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32786 $as_echo "$ac_res" >&6; }
32788 # Is the header compilable?
32789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32790 $as_echo_n "checking $ac_header usability... " >&6; }
32791 cat >conftest.$ac_ext <<_ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32797 $ac_includes_default
32798 #include <$ac_header>
32800 rm -f conftest.$ac_objext
32801 if { (ac_try="$ac_compile"
32802 case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32807 $as_echo "$ac_try_echo") >&5
32808 (eval "$ac_compile") 2>conftest.er1
32810 grep -v '^ *+' conftest.er1 >conftest.err
32812 cat conftest.err >&5
32813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } && {
32815 test -z "$ac_c_werror_flag" ||
32816 test ! -s conftest.err
32817 } && test -s conftest.$ac_objext; then
32818 ac_header_compiler=yes
32820 $as_echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32823 ac_header_compiler=no
32826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32828 $as_echo "$ac_header_compiler" >&6; }
32830 # Is the header present?
32831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32832 $as_echo_n "checking $ac_header presence... " >&6; }
32833 cat >conftest.$ac_ext <<_ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h. */
32839 #include <$ac_header>
32841 if { (ac_try="$ac_cpp conftest.$ac_ext"
32842 case "(($ac_try" in
32843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844 *) ac_try_echo=$ac_try;;
32846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32847 $as_echo "$ac_try_echo") >&5
32848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32850 grep -v '^ *+' conftest.er1 >conftest.err
32852 cat conftest.err >&5
32853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); } >/dev/null && {
32855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32856 test ! -s conftest.err
32858 ac_header_preproc=yes
32860 $as_echo "$as_me: failed program was:" >&5
32861 sed 's/^/| /' conftest.$ac_ext >&5
32863 ac_header_preproc=no
32866 rm -f conftest.err conftest.$ac_ext
32867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32868 $as_echo "$ac_header_preproc" >&6; }
32870 # So? What about this header?
32871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32877 ac_header_preproc=yes
32880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32883 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32887 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32893 ## ------------------------------------ ##
32894 ## Report this to bug-coreutils@gnu.org ##
32895 ## ------------------------------------ ##
32897 ) | sed "s/^/$as_me: WARNING: /" >&2
32900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32901 $as_echo_n "checking for $ac_header... " >&6; }
32902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32903 $as_echo_n "(cached) " >&6
32905 eval "$as_ac_Header=\$ac_header_preproc"
32907 ac_res=`eval 'as_val=${'$as_ac_Header'}
32908 $as_echo "$as_val"'`
32909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32910 $as_echo "$ac_res" >&6; }
32913 if test `eval 'as_val=${'$as_ac_Header'}
32914 $as_echo "$as_val"'` = yes; then
32915 cat >>confdefs.h <<_ACEOF
32916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32924 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
32925 $as_echo_n "checking for struct statfs.f_fstypename... " >&6; }
32926 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
32927 $as_echo_n "(cached) " >&6
32929 cat >conftest.$ac_ext <<_ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32936 #include <sys/types.h>
32937 #include <sys/param.h>
32938 #include <sys/mount.h>
32944 static struct statfs ac_aggr;
32945 if (ac_aggr.f_fstypename)
32951 rm -f conftest.$ac_objext
32952 if { (ac_try="$ac_compile"
32953 case "(($ac_try" in
32954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955 *) ac_try_echo=$ac_try;;
32957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32958 $as_echo "$ac_try_echo") >&5
32959 (eval "$ac_compile") 2>conftest.er1
32961 grep -v '^ *+' conftest.er1 >conftest.err
32963 cat conftest.err >&5
32964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } && {
32966 test -z "$ac_c_werror_flag" ||
32967 test ! -s conftest.err
32968 } && test -s conftest.$ac_objext; then
32969 ac_cv_member_struct_statfs_f_fstypename=yes
32971 $as_echo "$as_me: failed program was:" >&5
32972 sed 's/^/| /' conftest.$ac_ext >&5
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32981 #include <sys/types.h>
32982 #include <sys/param.h>
32983 #include <sys/mount.h>
32989 static struct statfs ac_aggr;
32990 if (sizeof ac_aggr.f_fstypename)
32996 rm -f conftest.$ac_objext
32997 if { (ac_try="$ac_compile"
32998 case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33003 $as_echo "$ac_try_echo") >&5
33004 (eval "$ac_compile") 2>conftest.er1
33006 grep -v '^ *+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } && {
33011 test -z "$ac_c_werror_flag" ||
33012 test ! -s conftest.err
33013 } && test -s conftest.$ac_objext; then
33014 ac_cv_member_struct_statfs_f_fstypename=yes
33016 $as_echo "$as_me: failed program was:" >&5
33017 sed 's/^/| /' conftest.$ac_ext >&5
33019 ac_cv_member_struct_statfs_f_fstypename=no
33022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
33028 $as_echo "$ac_cv_member_struct_statfs_f_fstypename" >&6; }
33029 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
33031 cat >>confdefs.h <<_ACEOF
33032 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
33044 gl_LIBOBJS="$gl_LIBOBJS mpsort.$ac_objext"
33058 nanosleep_save_libs=$LIBS
33060 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
33061 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33062 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
33063 $as_echo_n "checking for library containing nanosleep... " >&6; }
33064 if test "${ac_cv_search_nanosleep+set}" = set; then
33065 $as_echo_n "(cached) " >&6
33067 ac_func_search_save_LIBS=$LIBS
33068 cat >conftest.$ac_ext <<_ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33075 /* Override any GCC internal prototype to avoid an error.
33076 Use char because int might match the return type of a GCC
33077 builtin and then its argument prototype would still apply. */
33085 return nanosleep ();
33090 for ac_lib in '' rt posix4; do
33091 if test -z "$ac_lib"; then
33092 ac_res="none required"
33095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33097 rm -f conftest.$ac_objext conftest$ac_exeext
33098 if { (ac_try="$ac_link"
33099 case "(($ac_try" in
33100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101 *) ac_try_echo=$ac_try;;
33103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33104 $as_echo "$ac_try_echo") >&5
33105 (eval "$ac_link") 2>conftest.er1
33107 grep -v '^ *+' conftest.er1 >conftest.err
33109 cat conftest.err >&5
33110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); } && {
33112 test -z "$ac_c_werror_flag" ||
33113 test ! -s conftest.err
33114 } && test -s conftest$ac_exeext &&
33115 $as_test_x conftest$ac_exeext; then
33116 ac_cv_search_nanosleep=$ac_res
33118 $as_echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33126 if test "${ac_cv_search_nanosleep+set}" = set; then
33130 if test "${ac_cv_search_nanosleep+set}" = set; then
33133 ac_cv_search_nanosleep=no
33135 rm conftest.$ac_ext
33136 LIBS=$ac_func_search_save_LIBS
33138 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
33139 $as_echo "$ac_cv_search_nanosleep" >&6; }
33140 ac_res=$ac_cv_search_nanosleep
33141 if test "$ac_res" != no; then
33142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33143 test "$ac_cv_search_nanosleep" = "none required" ||
33144 LIB_NANOSLEEP=$ac_cv_search_nanosleep
33148 { $as_echo "$as_me:$LINENO: checking for working nanosleep" >&5
33149 $as_echo_n "checking for working nanosleep... " >&6; }
33150 if test "${gl_cv_func_nanosleep+set}" = set; then
33151 $as_echo_n "(cached) " >&6
33154 if test "$cross_compiling" = yes; then
33155 gl_cv_func_nanosleep=cross-compiling
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33165 #include <limits.h>
33166 #include <signal.h>
33167 #if HAVE_SYS_TIME_H
33168 #include <sys/time.h>
33171 #include <unistd.h>
33172 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
33173 #define TYPE_MAXIMUM(t) \
33174 ((t) (! TYPE_SIGNED (t) \
33176 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
33179 check_for_SIGALRM (int sig)
33181 if (sig != SIGALRM)
33188 static struct timespec ts_sleep;
33189 static struct timespec ts_remaining;
33190 static struct sigaction act;
33193 act.sa_handler = check_for_SIGALRM;
33194 sigemptyset (&act.sa_mask);
33195 sigaction (SIGALRM, &act, NULL);
33196 ts_sleep.tv_sec = 0;
33197 ts_sleep.tv_nsec = 1;
33199 if (nanosleep (&ts_sleep, NULL) != 0)
33201 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
33202 ts_sleep.tv_nsec = 999999999;
33204 if (nanosleep (&ts_sleep, &ts_remaining) == -1 && errno == EINTR
33205 && TYPE_MAXIMUM (time_t) - 10 < ts_remaining.tv_sec)
33210 rm -f conftest$ac_exeext
33211 if { (ac_try="$ac_link"
33212 case "(($ac_try" in
33213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33217 $as_echo "$ac_try_echo") >&5
33218 (eval "$ac_link") 2>&5
33220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33222 { (case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33227 $as_echo "$ac_try_echo") >&5
33228 (eval "$ac_try") 2>&5
33230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
33232 gl_cv_func_nanosleep=yes
33234 $as_echo "$as_me: program exited with status $ac_status" >&5
33235 $as_echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238 ( exit $ac_status )
33239 case $? in 119) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;;
33242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33248 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_nanosleep" >&5
33249 $as_echo "$gl_cv_func_nanosleep" >&6; }
33250 if test "$gl_cv_func_nanosleep" = yes; then
33251 REPLACE_NANOSLEEP=0
33253 REPLACE_NANOSLEEP=1
33254 if test "$gl_cv_func_nanosleep" = 'no (mishandles large arguments)'; then
33256 cat >>confdefs.h <<\_ACEOF
33257 #define HAVE_BUG_BIG_NANOSLEEP 1
33260 for ac_lib in $LIB_CLOCK_GETTIME; do
33261 case " $LIB_NANOSLEEP " in
33263 *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
33267 gl_LIBOBJS="$gl_LIBOBJS nanosleep.$ac_objext"
33285 LIBS=$nanosleep_save_libs
33288 { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
33289 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
33290 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
33291 $as_echo_n "(cached) " >&6
33294 cat >conftest.$ac_ext <<_ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h. */
33300 #include <netinet/in.h>
33309 rm -f conftest.$ac_objext
33310 if { (ac_try="$ac_compile"
33311 case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33316 $as_echo "$ac_try_echo") >&5
33317 (eval "$ac_compile") 2>conftest.er1
33319 grep -v '^ *+' conftest.er1 >conftest.err
33321 cat conftest.err >&5
33322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); } && {
33324 test -z "$ac_c_werror_flag" ||
33325 test ! -s conftest.err
33326 } && test -s conftest.$ac_objext; then
33327 gl_cv_header_netinet_in_h_selfcontained=yes
33329 $as_echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33332 gl_cv_header_netinet_in_h_selfcontained=no
33335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33338 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
33339 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
33340 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
33343 NETINET_IN_H='netinet/in.h'
33345 for ac_header in netinet/in.h
33347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33350 $as_echo_n "checking for $ac_header... " >&6; }
33351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33352 $as_echo_n "(cached) " >&6
33354 ac_res=`eval 'as_val=${'$as_ac_Header'}
33355 $as_echo "$as_val"'`
33356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33357 $as_echo "$ac_res" >&6; }
33359 # Is the header compilable?
33360 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33361 $as_echo_n "checking $ac_header usability... " >&6; }
33362 cat >conftest.$ac_ext <<_ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33368 $ac_includes_default
33369 #include <$ac_header>
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33378 $as_echo "$ac_try_echo") >&5
33379 (eval "$ac_compile") 2>conftest.er1
33381 grep -v '^ *+' conftest.er1 >conftest.err
33383 cat conftest.err >&5
33384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } && {
33386 test -z "$ac_c_werror_flag" ||
33387 test ! -s conftest.err
33388 } && test -s conftest.$ac_objext; then
33389 ac_header_compiler=yes
33391 $as_echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33394 ac_header_compiler=no
33397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33399 $as_echo "$ac_header_compiler" >&6; }
33401 # Is the header present?
33402 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33403 $as_echo_n "checking $ac_header presence... " >&6; }
33404 cat >conftest.$ac_ext <<_ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h. */
33410 #include <$ac_header>
33412 if { (ac_try="$ac_cpp conftest.$ac_ext"
33413 case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33418 $as_echo "$ac_try_echo") >&5
33419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33421 grep -v '^ *+' conftest.er1 >conftest.err
33423 cat conftest.err >&5
33424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); } >/dev/null && {
33426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33427 test ! -s conftest.err
33429 ac_header_preproc=yes
33431 $as_echo "$as_me: failed program was:" >&5
33432 sed 's/^/| /' conftest.$ac_ext >&5
33434 ac_header_preproc=no
33437 rm -f conftest.err conftest.$ac_ext
33438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33439 $as_echo "$ac_header_preproc" >&6; }
33441 # So? What about this header?
33442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33445 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33447 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33448 ac_header_preproc=yes
33451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33452 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33454 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33456 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33458 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33462 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33464 ## ------------------------------------ ##
33465 ## Report this to bug-coreutils@gnu.org ##
33466 ## ------------------------------------ ##
33468 ) | sed "s/^/$as_me: WARNING: /" >&2
33471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33472 $as_echo_n "checking for $ac_header... " >&6; }
33473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33474 $as_echo_n "(cached) " >&6
33476 eval "$as_ac_Header=\$ac_header_preproc"
33478 ac_res=`eval 'as_val=${'$as_ac_Header'}
33479 $as_echo "$as_val"'`
33480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33481 $as_echo "$ac_res" >&6; }
33484 if test `eval 'as_val=${'$as_ac_Header'}
33485 $as_echo "$as_val"'` = yes; then
33486 cat >>confdefs.h <<_ACEOF
33487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33494 { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
33495 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
33496 if test "${gl_cv_absolute_netinet_in_h+set}" = set; then
33497 $as_echo_n "(cached) " >&6
33504 if test $ac_cv_header_netinet_in_h = yes; then
33505 cat >conftest.$ac_ext <<_ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h. */
33511 #include <netinet/in.h>
33513 gl_cv_absolute_netinet_in_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33514 sed -n '\#/netinet/in.h#{s#.*"\(.*/netinet/in.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
33518 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_netinet_in_h" >&5
33519 $as_echo "$gl_cv_absolute_netinet_in_h" >&6; }
33520 cat >>confdefs.h <<_ACEOF
33521 #define ABSOLUTE_NETINET_IN_H "$gl_cv_absolute_netinet_in_h"
33525 ABSOLUTE_NETINET_IN_H=\"$gl_cv_absolute_netinet_in_h\"
33527 if test $ac_cv_header_netinet_in_h = yes; then
33528 HAVE_NETINET_IN_H=1
33530 HAVE_NETINET_IN_H=0
33536 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
33537 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
33538 if test -z "$MKDIR_P"; then
33539 if test "${ac_cv_path_mkdir+set}" = set; then
33540 $as_echo_n "(cached) " >&6
33542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33543 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
33546 test -z "$as_dir" && as_dir=.
33547 for ac_prog in mkdir gmkdir; do
33548 for ac_exec_ext in '' $ac_executable_extensions; do
33549 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
33550 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
33551 'mkdir (GNU coreutils) '* | \
33552 'mkdir (coreutils) '* | \
33553 'mkdir (fileutils) '4.1*)
33554 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
33564 if test "${ac_cv_path_mkdir+set}" = set; then
33565 MKDIR_P="$ac_cv_path_mkdir -p"
33567 # As a last resort, use the slow shell script. Don't cache a
33568 # value for MKDIR_P within a source directory, because that will
33569 # break other packages using the cache if that directory is
33570 # removed, or if the value is a relative name.
33571 test -d ./--version && rmdir ./--version
33572 MKDIR_P="$ac_install_sh -d"
33575 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
33576 $as_echo "$MKDIR_P" >&6; }
33578 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
33579 $as_echo_n "checking for obstacks... " >&6; }
33580 if test "${ac_cv_func_obstack+set}" = set; then
33581 $as_echo_n "(cached) " >&6
33583 cat >conftest.$ac_ext <<_ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h. */
33589 $ac_includes_default
33590 #include "obstack.h"
33594 struct obstack mem;
33595 #define obstack_chunk_alloc malloc
33596 #define obstack_chunk_free free
33597 obstack_init (&mem);
33598 obstack_free (&mem, 0);
33603 rm -f conftest.$ac_objext conftest$ac_exeext
33604 if { (ac_try="$ac_link"
33605 case "(($ac_try" in
33606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607 *) ac_try_echo=$ac_try;;
33609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33610 $as_echo "$ac_try_echo") >&5
33611 (eval "$ac_link") 2>conftest.er1
33613 grep -v '^ *+' conftest.er1 >conftest.err
33615 cat conftest.err >&5
33616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); } && {
33618 test -z "$ac_c_werror_flag" ||
33619 test ! -s conftest.err
33620 } && test -s conftest$ac_exeext &&
33621 $as_test_x conftest$ac_exeext; then
33622 ac_cv_func_obstack=yes
33624 $as_echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33627 ac_cv_func_obstack=no
33630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33631 conftest$ac_exeext conftest.$ac_ext
33633 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
33634 $as_echo "$ac_cv_func_obstack" >&6; }
33635 if test $ac_cv_func_obstack = yes; then
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_OBSTACK 1
33642 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
33646 gl_LIBOBJS="$gl_LIBOBJS openat-die.$ac_objext"
33647 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
33664 for ac_func in fchmodat mkdirat openat
33666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33667 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33668 $as_echo_n "checking for $ac_func... " >&6; }
33669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33670 $as_echo_n "(cached) " >&6
33672 cat >conftest.$ac_ext <<_ACEOF
33675 cat confdefs.h >>conftest.$ac_ext
33676 cat >>conftest.$ac_ext <<_ACEOF
33677 /* end confdefs.h. */
33678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33680 #define $ac_func innocuous_$ac_func
33682 /* System header to define __stub macros and hopefully few prototypes,
33683 which can conflict with char $ac_func (); below.
33684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33685 <limits.h> exists even on freestanding compilers. */
33688 # include <limits.h>
33690 # include <assert.h>
33695 /* Override any GCC internal prototype to avoid an error.
33696 Use char because int might match the return type of a GCC
33697 builtin and then its argument prototype would still apply. */
33702 /* The GNU C library defines this for functions which it implements
33703 to always fail with ENOSYS. Some functions are actually named
33704 something starting with __ and the normal name is an alias. */
33705 #if defined __stub_$ac_func || defined __stub___$ac_func
33712 return $ac_func ();
33717 rm -f conftest.$ac_objext conftest$ac_exeext
33718 if { (ac_try="$ac_link"
33719 case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33724 $as_echo "$ac_try_echo") >&5
33725 (eval "$ac_link") 2>conftest.er1
33727 grep -v '^ *+' conftest.er1 >conftest.err
33729 cat conftest.err >&5
33730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); } && {
33732 test -z "$ac_c_werror_flag" ||
33733 test ! -s conftest.err
33734 } && test -s conftest$ac_exeext &&
33735 $as_test_x conftest$ac_exeext; then
33736 eval "$as_ac_var=yes"
33738 $as_echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33741 eval "$as_ac_var=no"
33744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33745 conftest$ac_exeext conftest.$ac_ext
33747 ac_res=`eval 'as_val=${'$as_ac_var'}
33748 $as_echo "$as_val"'`
33749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33750 $as_echo "$ac_res" >&6; }
33751 if test `eval 'as_val=${'$as_ac_var'}
33752 $as_echo "$as_val"'` = yes; then
33753 cat >>confdefs.h <<_ACEOF
33754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33758 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33762 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
33764 yes+*) gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext";;
33767 cat >>confdefs.h <<\_ACEOF
33768 #define __OPENAT_PREFIX rpl_
33776 # Assume we'll use the replacement function.
33777 # The only case in which we won't is when we have fchownat, and it works.
33778 use_replacement_fchownat=yes
33780 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
33781 $as_echo_n "checking for fchownat... " >&6; }
33782 if test "${ac_cv_func_fchownat+set}" = set; then
33783 $as_echo_n "(cached) " >&6
33785 cat >conftest.$ac_ext <<_ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h. */
33791 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
33792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33793 #define fchownat innocuous_fchownat
33795 /* System header to define __stub macros and hopefully few prototypes,
33796 which can conflict with char fchownat (); below.
33797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33798 <limits.h> exists even on freestanding compilers. */
33801 # include <limits.h>
33803 # include <assert.h>
33808 /* Override any GCC internal prototype to avoid an error.
33809 Use char because int might match the return type of a GCC
33810 builtin and then its argument prototype would still apply. */
33815 /* The GNU C library defines this for functions which it implements
33816 to always fail with ENOSYS. Some functions are actually named
33817 something starting with __ and the normal name is an alias. */
33818 #if defined __stub_fchownat || defined __stub___fchownat
33825 return fchownat ();
33830 rm -f conftest.$ac_objext conftest$ac_exeext
33831 if { (ac_try="$ac_link"
33832 case "(($ac_try" in
33833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834 *) ac_try_echo=$ac_try;;
33836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33837 $as_echo "$ac_try_echo") >&5
33838 (eval "$ac_link") 2>conftest.er1
33840 grep -v '^ *+' conftest.er1 >conftest.err
33842 cat conftest.err >&5
33843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); } && {
33845 test -z "$ac_c_werror_flag" ||
33846 test ! -s conftest.err
33847 } && test -s conftest$ac_exeext &&
33848 $as_test_x conftest$ac_exeext; then
33849 ac_cv_func_fchownat=yes
33851 $as_echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33854 ac_cv_func_fchownat=no
33857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33858 conftest$ac_exeext conftest.$ac_ext
33860 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
33861 $as_echo "$ac_cv_func_fchownat" >&6; }
33862 if test $ac_cv_func_fchownat = yes; then
33868 if test $have_fchownat = yes; then
33870 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
33871 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
33872 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
33873 $as_echo_n "(cached) " >&6
33876 gl_dangle=conftest.dangle
33877 # Remove any remnants of a previous test.
33879 # Arrange for deletion of the temporary file this test creates.
33880 ac_clean_files="$ac_clean_files $gl_dangle"
33881 if test "$cross_compiling" = yes; then
33882 gl_cv_func_fchownat_nofollow_works=no
33884 cat >conftest.$ac_ext <<_ACEOF
33887 cat confdefs.h >>conftest.$ac_ext
33888 cat >>conftest.$ac_ext <<_ACEOF
33889 /* end confdefs.h. */
33892 #include <unistd.h>
33893 #include <stdlib.h>
33895 #include <sys/types.h>
33899 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
33900 AT_SYMLINK_NOFOLLOW) != 0
33901 && errno == ENOENT);
33905 rm -f conftest$ac_exeext
33906 if { (ac_try="$ac_link"
33907 case "(($ac_try" in
33908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909 *) ac_try_echo=$ac_try;;
33911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33912 $as_echo "$ac_try_echo") >&5
33913 (eval "$ac_link") 2>&5
33915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33917 { (case "(($ac_try" in
33918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33922 $as_echo "$ac_try_echo") >&5
33923 (eval "$ac_try") 2>&5
33925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; }; then
33927 gl_cv_func_fchownat_nofollow_works=yes
33929 $as_echo "$as_me: program exited with status $ac_status" >&5
33930 $as_echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33933 ( exit $ac_status )
33934 gl_cv_func_fchownat_nofollow_works=no
33936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33942 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
33943 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
33944 if test $gl_cv_func_fchownat_nofollow_works = no; then
33945 have_fchownat_bug=yes
33949 if test $have_fchownat_bug = no; then
33950 use_replacement_fchownat=no
33954 if test $use_replacement_fchownat = yes; then
33955 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
33957 cat >>confdefs.h <<\_ACEOF
33958 #define fchownat rpl_fchownat
33973 { $as_echo "$as_me:$LINENO: checking for perl5.005 or newer" >&5
33974 $as_echo_n "checking for perl5.005 or newer... " >&6; }
33975 if test "${PERL+set}" = set; then
33976 # `PERL' is set in the user's environment.
33977 candidate_perl_names="$PERL"
33980 candidate_perl_names='perl perl5'
33986 PERL="$am_missing_run perl"
33987 for perl in $candidate_perl_names; do
33988 # Run test in a subshell; some versions of sh will print an error if
33989 # an executable is not found, even if stderr is redirected.
33990 if ( $perl -e 'require 5.005; use File::Compare' ) > /dev/null 2>&1; then
33997 { $as_echo "$as_me:$LINENO: result: $found" >&5
33998 $as_echo "$found" >&6; }
33999 test $found = no && { $as_echo "$as_me:$LINENO: WARNING:
34000 WARNING: You don't seem to have perl5.005 or newer installed, or you lack
34001 a usable version of the Perl File::Compare module. As a result,
34002 you may be unable to run a few tests or to regenerate certain
34003 files if you modify the sources from which they are derived.
34005 $as_echo "$as_me: WARNING:
34006 WARNING: You don't seem to have perl5.005 or newer installed, or you lack
34007 a usable version of the Perl File::Compare module. As a result,
34008 you may be unable to run a few tests or to regenerate certain
34009 files if you modify the sources from which they are derived.
34013 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
34015 # Prerequisites of lib/physmem.c.
34024 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
34025 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
34028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34030 $as_echo_n "checking for $ac_header... " >&6; }
34031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34032 $as_echo_n "(cached) " >&6
34034 cat >conftest.$ac_ext <<_ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h. */
34040 $ac_includes_default
34042 #include <$ac_header>
34044 rm -f conftest.$ac_objext
34045 if { (ac_try="$ac_compile"
34046 case "(($ac_try" in
34047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048 *) ac_try_echo=$ac_try;;
34050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34051 $as_echo "$ac_try_echo") >&5
34052 (eval "$ac_compile") 2>conftest.er1
34054 grep -v '^ *+' conftest.er1 >conftest.err
34056 cat conftest.err >&5
34057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); } && {
34059 test -z "$ac_c_werror_flag" ||
34060 test ! -s conftest.err
34061 } && test -s conftest.$ac_objext; then
34062 eval "$as_ac_Header=yes"
34064 $as_echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34067 eval "$as_ac_Header=no"
34070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34072 ac_res=`eval 'as_val=${'$as_ac_Header'}
34073 $as_echo "$as_val"'`
34074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34075 $as_echo "$ac_res" >&6; }
34076 if test `eval 'as_val=${'$as_ac_Header'}
34077 $as_echo "$as_val"'` = yes; then
34078 cat >>confdefs.h <<_ACEOF
34079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34093 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
34095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34097 $as_echo_n "checking for $ac_func... " >&6; }
34098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34099 $as_echo_n "(cached) " >&6
34101 cat >conftest.$ac_ext <<_ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h. */
34107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34109 #define $ac_func innocuous_$ac_func
34111 /* System header to define __stub macros and hopefully few prototypes,
34112 which can conflict with char $ac_func (); below.
34113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34114 <limits.h> exists even on freestanding compilers. */
34117 # include <limits.h>
34119 # include <assert.h>
34124 /* Override any GCC internal prototype to avoid an error.
34125 Use char because int might match the return type of a GCC
34126 builtin and then its argument prototype would still apply. */
34131 /* The GNU C library defines this for functions which it implements
34132 to always fail with ENOSYS. Some functions are actually named
34133 something starting with __ and the normal name is an alias. */
34134 #if defined __stub_$ac_func || defined __stub___$ac_func
34141 return $ac_func ();
34146 rm -f conftest.$ac_objext conftest$ac_exeext
34147 if { (ac_try="$ac_link"
34148 case "(($ac_try" in
34149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150 *) ac_try_echo=$ac_try;;
34152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34153 $as_echo "$ac_try_echo") >&5
34154 (eval "$ac_link") 2>conftest.er1
34156 grep -v '^ *+' conftest.er1 >conftest.err
34158 cat conftest.err >&5
34159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } && {
34161 test -z "$ac_c_werror_flag" ||
34162 test ! -s conftest.err
34163 } && test -s conftest$ac_exeext &&
34164 $as_test_x conftest$ac_exeext; then
34165 eval "$as_ac_var=yes"
34167 $as_echo "$as_me: failed program was:" >&5
34168 sed 's/^/| /' conftest.$ac_ext >&5
34170 eval "$as_ac_var=no"
34173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34174 conftest$ac_exeext conftest.$ac_ext
34176 ac_res=`eval 'as_val=${'$as_ac_var'}
34177 $as_echo "$as_val"'`
34178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34179 $as_echo "$ac_res" >&6; }
34180 if test `eval 'as_val=${'$as_ac_var'}
34181 $as_echo "$as_val"'` = yes; then
34182 cat >>confdefs.h <<_ACEOF
34183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34192 gl_LIBOBJS="$gl_LIBOBJS posixtm.$ac_objext"
34196 gl_LIBOBJS="$gl_LIBOBJS posixver.$ac_objext"
34200 { $as_echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
34201 $as_echo_n "checking for SVID conformant putenv... " >&6; }
34202 if test "${jm_cv_func_svid_putenv+set}" = set; then
34203 $as_echo_n "(cached) " >&6
34205 if test "$cross_compiling" = yes; then
34206 jm_cv_func_svid_putenv=no
34208 cat >conftest.$ac_ext <<_ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214 $ac_includes_default
34219 /* Put it in env. */
34220 if (putenv ("CONFTEST_putenv=val"))
34223 /* Try to remove it. */
34224 if (putenv ("CONFTEST_putenv"))
34227 /* Make sure it was deleted. */
34228 if (getenv ("CONFTEST_putenv") != 0)
34237 rm -f conftest$ac_exeext
34238 if { (ac_try="$ac_link"
34239 case "(($ac_try" in
34240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241 *) ac_try_echo=$ac_try;;
34243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34244 $as_echo "$ac_try_echo") >&5
34245 (eval "$ac_link") 2>&5
34247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34249 { (case "(($ac_try" in
34250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251 *) ac_try_echo=$ac_try;;
34253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34254 $as_echo "$ac_try_echo") >&5
34255 (eval "$ac_try") 2>&5
34257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259 jm_cv_func_svid_putenv=yes
34261 $as_echo "$as_me: program exited with status $ac_status" >&5
34262 $as_echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34265 ( exit $ac_status )
34266 jm_cv_func_svid_putenv=no
34268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34274 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
34275 $as_echo "$jm_cv_func_svid_putenv" >&6; }
34276 if test $jm_cv_func_svid_putenv = no; then
34277 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
34279 cat >>confdefs.h <<\_ACEOF
34280 #define putenv rpl_putenv
34286 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
34290 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
34298 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
34299 $as_echo_n "checking for mbstate_t... " >&6; }
34300 if test "${ac_cv_type_mbstate_t+set}" = set; then
34301 $as_echo_n "(cached) " >&6
34303 cat >conftest.$ac_ext <<_ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h. */
34309 $ac_includes_default
34310 # include <wchar.h>
34314 mbstate_t x; return sizeof x;
34319 rm -f conftest.$ac_objext
34320 if { (ac_try="$ac_compile"
34321 case "(($ac_try" in
34322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34323 *) ac_try_echo=$ac_try;;
34325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34326 $as_echo "$ac_try_echo") >&5
34327 (eval "$ac_compile") 2>conftest.er1
34329 grep -v '^ *+' conftest.er1 >conftest.err
34331 cat conftest.err >&5
34332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); } && {
34334 test -z "$ac_c_werror_flag" ||
34335 test ! -s conftest.err
34336 } && test -s conftest.$ac_objext; then
34337 ac_cv_type_mbstate_t=yes
34339 $as_echo "$as_me: failed program was:" >&5
34340 sed 's/^/| /' conftest.$ac_ext >&5
34342 ac_cv_type_mbstate_t=no
34345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34347 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34348 $as_echo "$ac_cv_type_mbstate_t" >&6; }
34349 if test $ac_cv_type_mbstate_t = yes; then
34351 cat >>confdefs.h <<\_ACEOF
34352 #define HAVE_MBSTATE_T 1
34357 cat >>confdefs.h <<\_ACEOF
34358 #define mbstate_t int
34363 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
34364 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
34365 if test "${gl_cv_func_mbrtowc+set}" = set; then
34366 $as_echo_n "(cached) " >&6
34368 cat >conftest.$ac_ext <<_ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h. */
34379 char const s[] = "";
34382 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (ac_try="$ac_link"
34389 case "(($ac_try" in
34390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391 *) ac_try_echo=$ac_try;;
34393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34394 $as_echo "$ac_try_echo") >&5
34395 (eval "$ac_link") 2>conftest.er1
34397 grep -v '^ *+' conftest.er1 >conftest.err
34399 cat conftest.err >&5
34400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } && {
34402 test -z "$ac_c_werror_flag" ||
34403 test ! -s conftest.err
34404 } && test -s conftest$ac_exeext &&
34405 $as_test_x conftest$ac_exeext; then
34406 gl_cv_func_mbrtowc=yes
34408 $as_echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34411 gl_cv_func_mbrtowc=no
34414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34415 conftest$ac_exeext conftest.$ac_ext
34417 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
34418 $as_echo "$gl_cv_func_mbrtowc" >&6; }
34419 if test $gl_cv_func_mbrtowc = yes; then
34421 cat >>confdefs.h <<\_ACEOF
34422 #define HAVE_MBRTOWC 1
34429 for ac_func in raise
34431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34432 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34433 $as_echo_n "checking for $ac_func... " >&6; }
34434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34435 $as_echo_n "(cached) " >&6
34437 cat >conftest.$ac_ext <<_ACEOF
34440 cat confdefs.h >>conftest.$ac_ext
34441 cat >>conftest.$ac_ext <<_ACEOF
34442 /* end confdefs.h. */
34443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34445 #define $ac_func innocuous_$ac_func
34447 /* System header to define __stub macros and hopefully few prototypes,
34448 which can conflict with char $ac_func (); below.
34449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34450 <limits.h> exists even on freestanding compilers. */
34453 # include <limits.h>
34455 # include <assert.h>
34460 /* Override any GCC internal prototype to avoid an error.
34461 Use char because int might match the return type of a GCC
34462 builtin and then its argument prototype would still apply. */
34467 /* The GNU C library defines this for functions which it implements
34468 to always fail with ENOSYS. Some functions are actually named
34469 something starting with __ and the normal name is an alias. */
34470 #if defined __stub_$ac_func || defined __stub___$ac_func
34477 return $ac_func ();
34482 rm -f conftest.$ac_objext conftest$ac_exeext
34483 if { (ac_try="$ac_link"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34489 $as_echo "$ac_try_echo") >&5
34490 (eval "$ac_link") 2>conftest.er1
34492 grep -v '^ *+' conftest.er1 >conftest.err
34494 cat conftest.err >&5
34495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496 (exit $ac_status); } && {
34497 test -z "$ac_c_werror_flag" ||
34498 test ! -s conftest.err
34499 } && test -s conftest$ac_exeext &&
34500 $as_test_x conftest$ac_exeext; then
34501 eval "$as_ac_var=yes"
34503 $as_echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 eval "$as_ac_var=no"
34509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34510 conftest$ac_exeext conftest.$ac_ext
34512 ac_res=`eval 'as_val=${'$as_ac_var'}
34513 $as_echo "$as_val"'`
34514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34515 $as_echo "$ac_res" >&6; }
34516 if test `eval 'as_val=${'$as_ac_var'}
34517 $as_echo "$as_val"'` = yes; then
34518 cat >>confdefs.h <<_ACEOF
34519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34523 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34535 if test $ac_cv_func_readlink = no; then
34537 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34548 gl_LIBOBJS="$gl_LIBOBJS readtokens.$ac_objext"
34563 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
34564 gl_LIBOBJS="$gl_LIBOBJS readutmp.$ac_objext"
34576 { $as_echo "$as_me:$LINENO: checking whether getutent is declared" >&5
34577 $as_echo_n "checking whether getutent is declared... " >&6; }
34578 if test "${ac_cv_have_decl_getutent+set}" = set; then
34579 $as_echo_n "(cached) " >&6
34581 cat >conftest.$ac_ext <<_ACEOF
34584 cat confdefs.h >>conftest.$ac_ext
34585 cat >>conftest.$ac_ext <<_ACEOF
34586 /* end confdefs.h. */
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608 *) ac_try_echo=$ac_try;;
34610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34611 $as_echo "$ac_try_echo") >&5
34612 (eval "$ac_compile") 2>conftest.er1
34614 grep -v '^ *+' conftest.er1 >conftest.err
34616 cat conftest.err >&5
34617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); } && {
34619 test -z "$ac_c_werror_flag" ||
34620 test ! -s conftest.err
34621 } && test -s conftest.$ac_objext; then
34622 ac_cv_have_decl_getutent=yes
34624 $as_echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34627 ac_cv_have_decl_getutent=no
34630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34632 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
34633 $as_echo "$ac_cv_have_decl_getutent" >&6; }
34634 if test $ac_cv_have_decl_getutent = yes; then
34636 cat >>confdefs.h <<_ACEOF
34637 #define HAVE_DECL_GETUTENT 1
34642 cat >>confdefs.h <<_ACEOF
34643 #define HAVE_DECL_GETUTENT 0
34651 $ac_includes_default
34652 #ifdef HAVE_UTMPX_H
34653 # include <utmpx.h>
34656 # if defined _THREAD_SAFE && defined UTMP_DATA_INIT
34657 /* When including both utmp.h and utmpx.h on AIX 4.3, with _THREAD_SAFE
34658 defined, work around the duplicate struct utmp_data declaration. */
34659 # define utmp_data gl_aix_4_3_workaround_utmp_data
34664 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
34665 $as_echo_n "checking for struct utmpx.ut_user... " >&6; }
34666 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
34667 $as_echo_n "(cached) " >&6
34669 cat >conftest.$ac_ext <<_ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h. */
34680 static struct utmpx ac_aggr;
34681 if (ac_aggr.ut_user)
34687 rm -f conftest.$ac_objext
34688 if { (ac_try="$ac_compile"
34689 case "(($ac_try" in
34690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691 *) ac_try_echo=$ac_try;;
34693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34694 $as_echo "$ac_try_echo") >&5
34695 (eval "$ac_compile") 2>conftest.er1
34697 grep -v '^ *+' conftest.er1 >conftest.err
34699 cat conftest.err >&5
34700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); } && {
34702 test -z "$ac_c_werror_flag" ||
34703 test ! -s conftest.err
34704 } && test -s conftest.$ac_objext; then
34705 ac_cv_member_struct_utmpx_ut_user=yes
34707 $as_echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34710 cat >conftest.$ac_ext <<_ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34721 static struct utmpx ac_aggr;
34722 if (sizeof ac_aggr.ut_user)
34728 rm -f conftest.$ac_objext
34729 if { (ac_try="$ac_compile"
34730 case "(($ac_try" in
34731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34732 *) ac_try_echo=$ac_try;;
34734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34735 $as_echo "$ac_try_echo") >&5
34736 (eval "$ac_compile") 2>conftest.er1
34738 grep -v '^ *+' conftest.er1 >conftest.err
34740 cat conftest.err >&5
34741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } && {
34743 test -z "$ac_c_werror_flag" ||
34744 test ! -s conftest.err
34745 } && test -s conftest.$ac_objext; then
34746 ac_cv_member_struct_utmpx_ut_user=yes
34748 $as_echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34751 ac_cv_member_struct_utmpx_ut_user=no
34754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
34760 $as_echo "$ac_cv_member_struct_utmpx_ut_user" >&6; }
34761 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
34763 cat >>confdefs.h <<_ACEOF
34764 #define HAVE_STRUCT_UTMPX_UT_USER 1
34770 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
34771 $as_echo_n "checking for struct utmp.ut_user... " >&6; }
34772 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
34773 $as_echo_n "(cached) " >&6
34775 cat >conftest.$ac_ext <<_ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34786 static struct utmp ac_aggr;
34787 if (ac_aggr.ut_user)
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34800 $as_echo "$ac_try_echo") >&5
34801 (eval "$ac_compile") 2>conftest.er1
34803 grep -v '^ *+' conftest.er1 >conftest.err
34805 cat conftest.err >&5
34806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } && {
34808 test -z "$ac_c_werror_flag" ||
34809 test ! -s conftest.err
34810 } && test -s conftest.$ac_objext; then
34811 ac_cv_member_struct_utmp_ut_user=yes
34813 $as_echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34816 cat >conftest.$ac_ext <<_ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h. */
34827 static struct utmp ac_aggr;
34828 if (sizeof ac_aggr.ut_user)
34834 rm -f conftest.$ac_objext
34835 if { (ac_try="$ac_compile"
34836 case "(($ac_try" in
34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34841 $as_echo "$ac_try_echo") >&5
34842 (eval "$ac_compile") 2>conftest.er1
34844 grep -v '^ *+' conftest.er1 >conftest.err
34846 cat conftest.err >&5
34847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); } && {
34849 test -z "$ac_c_werror_flag" ||
34850 test ! -s conftest.err
34851 } && test -s conftest.$ac_objext; then
34852 ac_cv_member_struct_utmp_ut_user=yes
34854 $as_echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34857 ac_cv_member_struct_utmp_ut_user=no
34860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34865 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
34866 $as_echo "$ac_cv_member_struct_utmp_ut_user" >&6; }
34867 if test $ac_cv_member_struct_utmp_ut_user = yes; then
34869 cat >>confdefs.h <<_ACEOF
34870 #define HAVE_STRUCT_UTMP_UT_USER 1
34876 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
34877 $as_echo_n "checking for struct utmpx.ut_name... " >&6; }
34878 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
34879 $as_echo_n "(cached) " >&6
34881 cat >conftest.$ac_ext <<_ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h. */
34892 static struct utmpx ac_aggr;
34893 if (ac_aggr.ut_name)
34899 rm -f conftest.$ac_objext
34900 if { (ac_try="$ac_compile"
34901 case "(($ac_try" in
34902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903 *) ac_try_echo=$ac_try;;
34905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34906 $as_echo "$ac_try_echo") >&5
34907 (eval "$ac_compile") 2>conftest.er1
34909 grep -v '^ *+' conftest.er1 >conftest.err
34911 cat conftest.err >&5
34912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); } && {
34914 test -z "$ac_c_werror_flag" ||
34915 test ! -s conftest.err
34916 } && test -s conftest.$ac_objext; then
34917 ac_cv_member_struct_utmpx_ut_name=yes
34919 $as_echo "$as_me: failed program was:" >&5
34920 sed 's/^/| /' conftest.$ac_ext >&5
34922 cat >conftest.$ac_ext <<_ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h. */
34933 static struct utmpx ac_aggr;
34934 if (sizeof ac_aggr.ut_name)
34940 rm -f conftest.$ac_objext
34941 if { (ac_try="$ac_compile"
34942 case "(($ac_try" in
34943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944 *) ac_try_echo=$ac_try;;
34946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34947 $as_echo "$ac_try_echo") >&5
34948 (eval "$ac_compile") 2>conftest.er1
34950 grep -v '^ *+' conftest.er1 >conftest.err
34952 cat conftest.err >&5
34953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); } && {
34955 test -z "$ac_c_werror_flag" ||
34956 test ! -s conftest.err
34957 } && test -s conftest.$ac_objext; then
34958 ac_cv_member_struct_utmpx_ut_name=yes
34960 $as_echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34963 ac_cv_member_struct_utmpx_ut_name=no
34966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34971 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
34972 $as_echo "$ac_cv_member_struct_utmpx_ut_name" >&6; }
34973 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
34975 cat >>confdefs.h <<_ACEOF
34976 #define HAVE_STRUCT_UTMPX_UT_NAME 1
34982 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
34983 $as_echo_n "checking for struct utmp.ut_name... " >&6; }
34984 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
34985 $as_echo_n "(cached) " >&6
34987 cat >conftest.$ac_ext <<_ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h. */
34998 static struct utmp ac_aggr;
34999 if (ac_aggr.ut_name)
35005 rm -f conftest.$ac_objext
35006 if { (ac_try="$ac_compile"
35007 case "(($ac_try" in
35008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35009 *) ac_try_echo=$ac_try;;
35011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35012 $as_echo "$ac_try_echo") >&5
35013 (eval "$ac_compile") 2>conftest.er1
35015 grep -v '^ *+' conftest.er1 >conftest.err
35017 cat conftest.err >&5
35018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } && {
35020 test -z "$ac_c_werror_flag" ||
35021 test ! -s conftest.err
35022 } && test -s conftest.$ac_objext; then
35023 ac_cv_member_struct_utmp_ut_name=yes
35025 $as_echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35028 cat >conftest.$ac_ext <<_ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h. */
35039 static struct utmp ac_aggr;
35040 if (sizeof ac_aggr.ut_name)
35046 rm -f conftest.$ac_objext
35047 if { (ac_try="$ac_compile"
35048 case "(($ac_try" in
35049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35050 *) ac_try_echo=$ac_try;;
35052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35053 $as_echo "$ac_try_echo") >&5
35054 (eval "$ac_compile") 2>conftest.er1
35056 grep -v '^ *+' conftest.er1 >conftest.err
35058 cat conftest.err >&5
35059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } && {
35061 test -z "$ac_c_werror_flag" ||
35062 test ! -s conftest.err
35063 } && test -s conftest.$ac_objext; then
35064 ac_cv_member_struct_utmp_ut_name=yes
35066 $as_echo "$as_me: failed program was:" >&5
35067 sed 's/^/| /' conftest.$ac_ext >&5
35069 ac_cv_member_struct_utmp_ut_name=no
35072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35077 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
35078 $as_echo "$ac_cv_member_struct_utmp_ut_name" >&6; }
35079 if test $ac_cv_member_struct_utmp_ut_name = yes; then
35081 cat >>confdefs.h <<_ACEOF
35082 #define HAVE_STRUCT_UTMP_UT_NAME 1
35088 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
35089 $as_echo_n "checking for struct utmpx.ut_type... " >&6; }
35090 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
35091 $as_echo_n "(cached) " >&6
35093 cat >conftest.$ac_ext <<_ACEOF
35096 cat confdefs.h >>conftest.$ac_ext
35097 cat >>conftest.$ac_ext <<_ACEOF
35098 /* end confdefs.h. */
35104 static struct utmpx ac_aggr;
35105 if (ac_aggr.ut_type)
35111 rm -f conftest.$ac_objext
35112 if { (ac_try="$ac_compile"
35113 case "(($ac_try" in
35114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35115 *) ac_try_echo=$ac_try;;
35117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35118 $as_echo "$ac_try_echo") >&5
35119 (eval "$ac_compile") 2>conftest.er1
35121 grep -v '^ *+' conftest.er1 >conftest.err
35123 cat conftest.err >&5
35124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); } && {
35126 test -z "$ac_c_werror_flag" ||
35127 test ! -s conftest.err
35128 } && test -s conftest.$ac_objext; then
35129 ac_cv_member_struct_utmpx_ut_type=yes
35131 $as_echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35134 cat >conftest.$ac_ext <<_ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h. */
35145 static struct utmpx ac_aggr;
35146 if (sizeof ac_aggr.ut_type)
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156 *) ac_try_echo=$ac_try;;
35158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35159 $as_echo "$ac_try_echo") >&5
35160 (eval "$ac_compile") 2>conftest.er1
35162 grep -v '^ *+' conftest.er1 >conftest.err
35164 cat conftest.err >&5
35165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } && {
35167 test -z "$ac_c_werror_flag" ||
35168 test ! -s conftest.err
35169 } && test -s conftest.$ac_objext; then
35170 ac_cv_member_struct_utmpx_ut_type=yes
35172 $as_echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35175 ac_cv_member_struct_utmpx_ut_type=no
35178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35183 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
35184 $as_echo "$ac_cv_member_struct_utmpx_ut_type" >&6; }
35185 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
35187 cat >>confdefs.h <<_ACEOF
35188 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
35194 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
35195 $as_echo_n "checking for struct utmp.ut_type... " >&6; }
35196 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
35197 $as_echo_n "(cached) " >&6
35199 cat >conftest.$ac_ext <<_ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h. */
35210 static struct utmp ac_aggr;
35211 if (ac_aggr.ut_type)
35217 rm -f conftest.$ac_objext
35218 if { (ac_try="$ac_compile"
35219 case "(($ac_try" in
35220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35221 *) ac_try_echo=$ac_try;;
35223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35224 $as_echo "$ac_try_echo") >&5
35225 (eval "$ac_compile") 2>conftest.er1
35227 grep -v '^ *+' conftest.er1 >conftest.err
35229 cat conftest.err >&5
35230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } && {
35232 test -z "$ac_c_werror_flag" ||
35233 test ! -s conftest.err
35234 } && test -s conftest.$ac_objext; then
35235 ac_cv_member_struct_utmp_ut_type=yes
35237 $as_echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35240 cat >conftest.$ac_ext <<_ACEOF
35243 cat confdefs.h >>conftest.$ac_ext
35244 cat >>conftest.$ac_ext <<_ACEOF
35245 /* end confdefs.h. */
35251 static struct utmp ac_aggr;
35252 if (sizeof ac_aggr.ut_type)
35258 rm -f conftest.$ac_objext
35259 if { (ac_try="$ac_compile"
35260 case "(($ac_try" in
35261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35262 *) ac_try_echo=$ac_try;;
35264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35265 $as_echo "$ac_try_echo") >&5
35266 (eval "$ac_compile") 2>conftest.er1
35268 grep -v '^ *+' conftest.er1 >conftest.err
35270 cat conftest.err >&5
35271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } && {
35273 test -z "$ac_c_werror_flag" ||
35274 test ! -s conftest.err
35275 } && test -s conftest.$ac_objext; then
35276 ac_cv_member_struct_utmp_ut_type=yes
35278 $as_echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35281 ac_cv_member_struct_utmp_ut_type=no
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35289 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
35290 $as_echo "$ac_cv_member_struct_utmp_ut_type" >&6; }
35291 if test $ac_cv_member_struct_utmp_ut_type = yes; then
35293 cat >>confdefs.h <<_ACEOF
35294 #define HAVE_STRUCT_UTMP_UT_TYPE 1
35300 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
35301 $as_echo_n "checking for struct utmpx.ut_pid... " >&6; }
35302 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
35303 $as_echo_n "(cached) " >&6
35305 cat >conftest.$ac_ext <<_ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h. */
35316 static struct utmpx ac_aggr;
35317 if (ac_aggr.ut_pid)
35323 rm -f conftest.$ac_objext
35324 if { (ac_try="$ac_compile"
35325 case "(($ac_try" in
35326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35327 *) ac_try_echo=$ac_try;;
35329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35330 $as_echo "$ac_try_echo") >&5
35331 (eval "$ac_compile") 2>conftest.er1
35333 grep -v '^ *+' conftest.er1 >conftest.err
35335 cat conftest.err >&5
35336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } && {
35338 test -z "$ac_c_werror_flag" ||
35339 test ! -s conftest.err
35340 } && test -s conftest.$ac_objext; then
35341 ac_cv_member_struct_utmpx_ut_pid=yes
35343 $as_echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35346 cat >conftest.$ac_ext <<_ACEOF
35349 cat confdefs.h >>conftest.$ac_ext
35350 cat >>conftest.$ac_ext <<_ACEOF
35351 /* end confdefs.h. */
35357 static struct utmpx ac_aggr;
35358 if (sizeof ac_aggr.ut_pid)
35364 rm -f conftest.$ac_objext
35365 if { (ac_try="$ac_compile"
35366 case "(($ac_try" in
35367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35368 *) ac_try_echo=$ac_try;;
35370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35371 $as_echo "$ac_try_echo") >&5
35372 (eval "$ac_compile") 2>conftest.er1
35374 grep -v '^ *+' conftest.er1 >conftest.err
35376 cat conftest.err >&5
35377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); } && {
35379 test -z "$ac_c_werror_flag" ||
35380 test ! -s conftest.err
35381 } && test -s conftest.$ac_objext; then
35382 ac_cv_member_struct_utmpx_ut_pid=yes
35384 $as_echo "$as_me: failed program was:" >&5
35385 sed 's/^/| /' conftest.$ac_ext >&5
35387 ac_cv_member_struct_utmpx_ut_pid=no
35390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35395 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
35396 $as_echo "$ac_cv_member_struct_utmpx_ut_pid" >&6; }
35397 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
35399 cat >>confdefs.h <<_ACEOF
35400 #define HAVE_STRUCT_UTMPX_UT_PID 1
35406 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
35407 $as_echo_n "checking for struct utmp.ut_pid... " >&6; }
35408 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
35409 $as_echo_n "(cached) " >&6
35411 cat >conftest.$ac_ext <<_ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h. */
35422 static struct utmp ac_aggr;
35423 if (ac_aggr.ut_pid)
35429 rm -f conftest.$ac_objext
35430 if { (ac_try="$ac_compile"
35431 case "(($ac_try" in
35432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433 *) ac_try_echo=$ac_try;;
35435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35436 $as_echo "$ac_try_echo") >&5
35437 (eval "$ac_compile") 2>conftest.er1
35439 grep -v '^ *+' conftest.er1 >conftest.err
35441 cat conftest.err >&5
35442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); } && {
35444 test -z "$ac_c_werror_flag" ||
35445 test ! -s conftest.err
35446 } && test -s conftest.$ac_objext; then
35447 ac_cv_member_struct_utmp_ut_pid=yes
35449 $as_echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35452 cat >conftest.$ac_ext <<_ACEOF
35455 cat confdefs.h >>conftest.$ac_ext
35456 cat >>conftest.$ac_ext <<_ACEOF
35457 /* end confdefs.h. */
35463 static struct utmp ac_aggr;
35464 if (sizeof ac_aggr.ut_pid)
35470 rm -f conftest.$ac_objext
35471 if { (ac_try="$ac_compile"
35472 case "(($ac_try" in
35473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35474 *) ac_try_echo=$ac_try;;
35476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35477 $as_echo "$ac_try_echo") >&5
35478 (eval "$ac_compile") 2>conftest.er1
35480 grep -v '^ *+' conftest.er1 >conftest.err
35482 cat conftest.err >&5
35483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } && {
35485 test -z "$ac_c_werror_flag" ||
35486 test ! -s conftest.err
35487 } && test -s conftest.$ac_objext; then
35488 ac_cv_member_struct_utmp_ut_pid=yes
35490 $as_echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35493 ac_cv_member_struct_utmp_ut_pid=no
35496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
35502 $as_echo "$ac_cv_member_struct_utmp_ut_pid" >&6; }
35503 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
35505 cat >>confdefs.h <<_ACEOF
35506 #define HAVE_STRUCT_UTMP_UT_PID 1
35512 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
35513 $as_echo_n "checking for struct utmpx.ut_id... " >&6; }
35514 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
35515 $as_echo_n "(cached) " >&6
35517 cat >conftest.$ac_ext <<_ACEOF
35520 cat confdefs.h >>conftest.$ac_ext
35521 cat >>conftest.$ac_ext <<_ACEOF
35522 /* end confdefs.h. */
35528 static struct utmpx ac_aggr;
35535 rm -f conftest.$ac_objext
35536 if { (ac_try="$ac_compile"
35537 case "(($ac_try" in
35538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35539 *) ac_try_echo=$ac_try;;
35541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35542 $as_echo "$ac_try_echo") >&5
35543 (eval "$ac_compile") 2>conftest.er1
35545 grep -v '^ *+' conftest.er1 >conftest.err
35547 cat conftest.err >&5
35548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); } && {
35550 test -z "$ac_c_werror_flag" ||
35551 test ! -s conftest.err
35552 } && test -s conftest.$ac_objext; then
35553 ac_cv_member_struct_utmpx_ut_id=yes
35555 $as_echo "$as_me: failed program was:" >&5
35556 sed 's/^/| /' conftest.$ac_ext >&5
35558 cat >conftest.$ac_ext <<_ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h. */
35569 static struct utmpx ac_aggr;
35570 if (sizeof ac_aggr.ut_id)
35576 rm -f conftest.$ac_objext
35577 if { (ac_try="$ac_compile"
35578 case "(($ac_try" in
35579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580 *) ac_try_echo=$ac_try;;
35582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35583 $as_echo "$ac_try_echo") >&5
35584 (eval "$ac_compile") 2>conftest.er1
35586 grep -v '^ *+' conftest.er1 >conftest.err
35588 cat conftest.err >&5
35589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); } && {
35591 test -z "$ac_c_werror_flag" ||
35592 test ! -s conftest.err
35593 } && test -s conftest.$ac_objext; then
35594 ac_cv_member_struct_utmpx_ut_id=yes
35596 $as_echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35599 ac_cv_member_struct_utmpx_ut_id=no
35602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
35608 $as_echo "$ac_cv_member_struct_utmpx_ut_id" >&6; }
35609 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
35611 cat >>confdefs.h <<_ACEOF
35612 #define HAVE_STRUCT_UTMPX_UT_ID 1
35618 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
35619 $as_echo_n "checking for struct utmp.ut_id... " >&6; }
35620 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
35621 $as_echo_n "(cached) " >&6
35623 cat >conftest.$ac_ext <<_ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h. */
35634 static struct utmp ac_aggr;
35641 rm -f conftest.$ac_objext
35642 if { (ac_try="$ac_compile"
35643 case "(($ac_try" in
35644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35645 *) ac_try_echo=$ac_try;;
35647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35648 $as_echo "$ac_try_echo") >&5
35649 (eval "$ac_compile") 2>conftest.er1
35651 grep -v '^ *+' conftest.er1 >conftest.err
35653 cat conftest.err >&5
35654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); } && {
35656 test -z "$ac_c_werror_flag" ||
35657 test ! -s conftest.err
35658 } && test -s conftest.$ac_objext; then
35659 ac_cv_member_struct_utmp_ut_id=yes
35661 $as_echo "$as_me: failed program was:" >&5
35662 sed 's/^/| /' conftest.$ac_ext >&5
35664 cat >conftest.$ac_ext <<_ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h. */
35675 static struct utmp ac_aggr;
35676 if (sizeof ac_aggr.ut_id)
35682 rm -f conftest.$ac_objext
35683 if { (ac_try="$ac_compile"
35684 case "(($ac_try" in
35685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35686 *) ac_try_echo=$ac_try;;
35688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35689 $as_echo "$ac_try_echo") >&5
35690 (eval "$ac_compile") 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } && {
35697 test -z "$ac_c_werror_flag" ||
35698 test ! -s conftest.err
35699 } && test -s conftest.$ac_objext; then
35700 ac_cv_member_struct_utmp_ut_id=yes
35702 $as_echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35705 ac_cv_member_struct_utmp_ut_id=no
35708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35713 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
35714 $as_echo "$ac_cv_member_struct_utmp_ut_id" >&6; }
35715 if test $ac_cv_member_struct_utmp_ut_id = yes; then
35717 cat >>confdefs.h <<_ACEOF
35718 #define HAVE_STRUCT_UTMP_UT_ID 1
35724 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
35725 $as_echo_n "checking for struct utmpx.ut_exit... " >&6; }
35726 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
35727 $as_echo_n "(cached) " >&6
35729 cat >conftest.$ac_ext <<_ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35740 static struct utmpx ac_aggr;
35741 if (ac_aggr.ut_exit)
35747 rm -f conftest.$ac_objext
35748 if { (ac_try="$ac_compile"
35749 case "(($ac_try" in
35750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751 *) ac_try_echo=$ac_try;;
35753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35754 $as_echo "$ac_try_echo") >&5
35755 (eval "$ac_compile") 2>conftest.er1
35757 grep -v '^ *+' conftest.er1 >conftest.err
35759 cat conftest.err >&5
35760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } && {
35762 test -z "$ac_c_werror_flag" ||
35763 test ! -s conftest.err
35764 } && test -s conftest.$ac_objext; then
35765 ac_cv_member_struct_utmpx_ut_exit=yes
35767 $as_echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35770 cat >conftest.$ac_ext <<_ACEOF
35773 cat confdefs.h >>conftest.$ac_ext
35774 cat >>conftest.$ac_ext <<_ACEOF
35775 /* end confdefs.h. */
35781 static struct utmpx ac_aggr;
35782 if (sizeof ac_aggr.ut_exit)
35788 rm -f conftest.$ac_objext
35789 if { (ac_try="$ac_compile"
35790 case "(($ac_try" in
35791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35792 *) ac_try_echo=$ac_try;;
35794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35795 $as_echo "$ac_try_echo") >&5
35796 (eval "$ac_compile") 2>conftest.er1
35798 grep -v '^ *+' conftest.er1 >conftest.err
35800 cat conftest.err >&5
35801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); } && {
35803 test -z "$ac_c_werror_flag" ||
35804 test ! -s conftest.err
35805 } && test -s conftest.$ac_objext; then
35806 ac_cv_member_struct_utmpx_ut_exit=yes
35808 $as_echo "$as_me: failed program was:" >&5
35809 sed 's/^/| /' conftest.$ac_ext >&5
35811 ac_cv_member_struct_utmpx_ut_exit=no
35814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35819 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
35820 $as_echo "$ac_cv_member_struct_utmpx_ut_exit" >&6; }
35821 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
35823 cat >>confdefs.h <<_ACEOF
35824 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
35830 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
35831 $as_echo_n "checking for struct utmp.ut_exit... " >&6; }
35832 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
35833 $as_echo_n "(cached) " >&6
35835 cat >conftest.$ac_ext <<_ACEOF
35838 cat confdefs.h >>conftest.$ac_ext
35839 cat >>conftest.$ac_ext <<_ACEOF
35840 /* end confdefs.h. */
35846 static struct utmp ac_aggr;
35847 if (ac_aggr.ut_exit)
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857 *) ac_try_echo=$ac_try;;
35859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35860 $as_echo "$ac_try_echo") >&5
35861 (eval "$ac_compile") 2>conftest.er1
35863 grep -v '^ *+' conftest.er1 >conftest.err
35865 cat conftest.err >&5
35866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); } && {
35868 test -z "$ac_c_werror_flag" ||
35869 test ! -s conftest.err
35870 } && test -s conftest.$ac_objext; then
35871 ac_cv_member_struct_utmp_ut_exit=yes
35873 $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35887 static struct utmp ac_aggr;
35888 if (sizeof ac_aggr.ut_exit)
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898 *) ac_try_echo=$ac_try;;
35900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35901 $as_echo "$ac_try_echo") >&5
35902 (eval "$ac_compile") 2>conftest.er1
35904 grep -v '^ *+' conftest.er1 >conftest.err
35906 cat conftest.err >&5
35907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } && {
35909 test -z "$ac_c_werror_flag" ||
35910 test ! -s conftest.err
35911 } && test -s conftest.$ac_objext; then
35912 ac_cv_member_struct_utmp_ut_exit=yes
35914 $as_echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35917 ac_cv_member_struct_utmp_ut_exit=no
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35925 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
35926 $as_echo "$ac_cv_member_struct_utmp_ut_exit" >&6; }
35927 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
35929 cat >>confdefs.h <<_ACEOF
35930 #define HAVE_STRUCT_UTMP_UT_EXIT 1
35937 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
35938 $as_echo_n "checking for struct utmpx.ut_exit.ut_exit... " >&6; }
35939 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
35940 $as_echo_n "(cached) " >&6
35942 cat >conftest.$ac_ext <<_ACEOF
35945 cat confdefs.h >>conftest.$ac_ext
35946 cat >>conftest.$ac_ext <<_ACEOF
35947 /* end confdefs.h. */
35953 static struct utmpx ac_aggr;
35954 if (ac_aggr.ut_exit.ut_exit)
35960 rm -f conftest.$ac_objext
35961 if { (ac_try="$ac_compile"
35962 case "(($ac_try" in
35963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35964 *) ac_try_echo=$ac_try;;
35966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35967 $as_echo "$ac_try_echo") >&5
35968 (eval "$ac_compile") 2>conftest.er1
35970 grep -v '^ *+' conftest.er1 >conftest.err
35972 cat conftest.err >&5
35973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } && {
35975 test -z "$ac_c_werror_flag" ||
35976 test ! -s conftest.err
35977 } && test -s conftest.$ac_objext; then
35978 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
35980 $as_echo "$as_me: failed program was:" >&5
35981 sed 's/^/| /' conftest.$ac_ext >&5
35983 cat >conftest.$ac_ext <<_ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h. */
35994 static struct utmpx ac_aggr;
35995 if (sizeof ac_aggr.ut_exit.ut_exit)
36001 rm -f conftest.$ac_objext
36002 if { (ac_try="$ac_compile"
36003 case "(($ac_try" in
36004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005 *) ac_try_echo=$ac_try;;
36007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36008 $as_echo "$ac_try_echo") >&5
36009 (eval "$ac_compile") 2>conftest.er1
36011 grep -v '^ *+' conftest.er1 >conftest.err
36013 cat conftest.err >&5
36014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); } && {
36016 test -z "$ac_c_werror_flag" ||
36017 test ! -s conftest.err
36018 } && test -s conftest.$ac_objext; then
36019 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
36021 $as_echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36024 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
36027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36032 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
36033 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
36034 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
36036 cat >>confdefs.h <<_ACEOF
36037 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
36043 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
36044 $as_echo_n "checking for struct utmp.ut_exit.ut_exit... " >&6; }
36045 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
36046 $as_echo_n "(cached) " >&6
36048 cat >conftest.$ac_ext <<_ACEOF
36051 cat confdefs.h >>conftest.$ac_ext
36052 cat >>conftest.$ac_ext <<_ACEOF
36053 /* end confdefs.h. */
36059 static struct utmp ac_aggr;
36060 if (ac_aggr.ut_exit.ut_exit)
36066 rm -f conftest.$ac_objext
36067 if { (ac_try="$ac_compile"
36068 case "(($ac_try" in
36069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070 *) ac_try_echo=$ac_try;;
36072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36073 $as_echo "$ac_try_echo") >&5
36074 (eval "$ac_compile") 2>conftest.er1
36076 grep -v '^ *+' conftest.er1 >conftest.err
36078 cat conftest.err >&5
36079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); } && {
36081 test -z "$ac_c_werror_flag" ||
36082 test ! -s conftest.err
36083 } && test -s conftest.$ac_objext; then
36084 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
36086 $as_echo "$as_me: failed program was:" >&5
36087 sed 's/^/| /' conftest.$ac_ext >&5
36089 cat >conftest.$ac_ext <<_ACEOF
36092 cat confdefs.h >>conftest.$ac_ext
36093 cat >>conftest.$ac_ext <<_ACEOF
36094 /* end confdefs.h. */
36100 static struct utmp ac_aggr;
36101 if (sizeof ac_aggr.ut_exit.ut_exit)
36107 rm -f conftest.$ac_objext
36108 if { (ac_try="$ac_compile"
36109 case "(($ac_try" in
36110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36111 *) ac_try_echo=$ac_try;;
36113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36114 $as_echo "$ac_try_echo") >&5
36115 (eval "$ac_compile") 2>conftest.er1
36117 grep -v '^ *+' conftest.er1 >conftest.err
36119 cat conftest.err >&5
36120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); } && {
36122 test -z "$ac_c_werror_flag" ||
36123 test ! -s conftest.err
36124 } && test -s conftest.$ac_objext; then
36125 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
36127 $as_echo "$as_me: failed program was:" >&5
36128 sed 's/^/| /' conftest.$ac_ext >&5
36130 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
36133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36138 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
36139 $as_echo "$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
36140 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
36142 cat >>confdefs.h <<_ACEOF
36143 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
36149 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
36150 $as_echo_n "checking for struct utmpx.ut_exit.e_exit... " >&6; }
36151 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
36152 $as_echo_n "(cached) " >&6
36154 cat >conftest.$ac_ext <<_ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h. */
36165 static struct utmpx ac_aggr;
36166 if (ac_aggr.ut_exit.e_exit)
36172 rm -f conftest.$ac_objext
36173 if { (ac_try="$ac_compile"
36174 case "(($ac_try" in
36175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176 *) ac_try_echo=$ac_try;;
36178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36179 $as_echo "$ac_try_echo") >&5
36180 (eval "$ac_compile") 2>conftest.er1
36182 grep -v '^ *+' conftest.er1 >conftest.err
36184 cat conftest.err >&5
36185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); } && {
36187 test -z "$ac_c_werror_flag" ||
36188 test ! -s conftest.err
36189 } && test -s conftest.$ac_objext; then
36190 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
36192 $as_echo "$as_me: failed program was:" >&5
36193 sed 's/^/| /' conftest.$ac_ext >&5
36195 cat >conftest.$ac_ext <<_ACEOF
36198 cat confdefs.h >>conftest.$ac_ext
36199 cat >>conftest.$ac_ext <<_ACEOF
36200 /* end confdefs.h. */
36206 static struct utmpx ac_aggr;
36207 if (sizeof ac_aggr.ut_exit.e_exit)
36213 rm -f conftest.$ac_objext
36214 if { (ac_try="$ac_compile"
36215 case "(($ac_try" in
36216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36217 *) ac_try_echo=$ac_try;;
36219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36220 $as_echo "$ac_try_echo") >&5
36221 (eval "$ac_compile") 2>conftest.er1
36223 grep -v '^ *+' conftest.er1 >conftest.err
36225 cat conftest.err >&5
36226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); } && {
36228 test -z "$ac_c_werror_flag" ||
36229 test ! -s conftest.err
36230 } && test -s conftest.$ac_objext; then
36231 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
36233 $as_echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36236 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
36239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36244 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
36245 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
36246 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
36248 cat >>confdefs.h <<_ACEOF
36249 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
36255 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
36256 $as_echo_n "checking for struct utmp.ut_exit.e_exit... " >&6; }
36257 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
36258 $as_echo_n "(cached) " >&6
36260 cat >conftest.$ac_ext <<_ACEOF
36263 cat confdefs.h >>conftest.$ac_ext
36264 cat >>conftest.$ac_ext <<_ACEOF
36265 /* end confdefs.h. */
36271 static struct utmp ac_aggr;
36272 if (ac_aggr.ut_exit.e_exit)
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282 *) ac_try_echo=$ac_try;;
36284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36285 $as_echo "$ac_try_echo") >&5
36286 (eval "$ac_compile") 2>conftest.er1
36288 grep -v '^ *+' conftest.er1 >conftest.err
36290 cat conftest.err >&5
36291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); } && {
36293 test -z "$ac_c_werror_flag" ||
36294 test ! -s conftest.err
36295 } && test -s conftest.$ac_objext; then
36296 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
36298 $as_echo "$as_me: failed program was:" >&5
36299 sed 's/^/| /' conftest.$ac_ext >&5
36301 cat >conftest.$ac_ext <<_ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h. */
36312 static struct utmp ac_aggr;
36313 if (sizeof ac_aggr.ut_exit.e_exit)
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323 *) ac_try_echo=$ac_try;;
36325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36326 $as_echo "$ac_try_echo") >&5
36327 (eval "$ac_compile") 2>conftest.er1
36329 grep -v '^ *+' conftest.er1 >conftest.err
36331 cat conftest.err >&5
36332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); } && {
36334 test -z "$ac_c_werror_flag" ||
36335 test ! -s conftest.err
36336 } && test -s conftest.$ac_objext; then
36337 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
36339 $as_echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36342 ac_cv_member_struct_utmp_ut_exit_e_exit=no
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
36351 $as_echo "$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
36352 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
36354 cat >>confdefs.h <<_ACEOF
36355 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
36362 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
36363 $as_echo_n "checking for struct utmpx.ut_exit.ut_termination... " >&6; }
36364 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
36365 $as_echo_n "(cached) " >&6
36367 cat >conftest.$ac_ext <<_ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h. */
36378 static struct utmpx ac_aggr;
36379 if (ac_aggr.ut_exit.ut_termination)
36385 rm -f conftest.$ac_objext
36386 if { (ac_try="$ac_compile"
36387 case "(($ac_try" in
36388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389 *) ac_try_echo=$ac_try;;
36391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36392 $as_echo "$ac_try_echo") >&5
36393 (eval "$ac_compile") 2>conftest.er1
36395 grep -v '^ *+' conftest.er1 >conftest.err
36397 cat conftest.err >&5
36398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); } && {
36400 test -z "$ac_c_werror_flag" ||
36401 test ! -s conftest.err
36402 } && test -s conftest.$ac_objext; then
36403 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
36405 $as_echo "$as_me: failed program was:" >&5
36406 sed 's/^/| /' conftest.$ac_ext >&5
36408 cat >conftest.$ac_ext <<_ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h. */
36419 static struct utmpx ac_aggr;
36420 if (sizeof ac_aggr.ut_exit.ut_termination)
36426 rm -f conftest.$ac_objext
36427 if { (ac_try="$ac_compile"
36428 case "(($ac_try" in
36429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36430 *) ac_try_echo=$ac_try;;
36432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36433 $as_echo "$ac_try_echo") >&5
36434 (eval "$ac_compile") 2>conftest.er1
36436 grep -v '^ *+' conftest.er1 >conftest.err
36438 cat conftest.err >&5
36439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); } && {
36441 test -z "$ac_c_werror_flag" ||
36442 test ! -s conftest.err
36443 } && test -s conftest.$ac_objext; then
36444 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
36446 $as_echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36449 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36457 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
36458 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
36459 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
36461 cat >>confdefs.h <<_ACEOF
36462 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
36468 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
36469 $as_echo_n "checking for struct utmp.ut_exit.ut_termination... " >&6; }
36470 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
36471 $as_echo_n "(cached) " >&6
36473 cat >conftest.$ac_ext <<_ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36484 static struct utmp ac_aggr;
36485 if (ac_aggr.ut_exit.ut_termination)
36491 rm -f conftest.$ac_objext
36492 if { (ac_try="$ac_compile"
36493 case "(($ac_try" in
36494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36495 *) ac_try_echo=$ac_try;;
36497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36498 $as_echo "$ac_try_echo") >&5
36499 (eval "$ac_compile") 2>conftest.er1
36501 grep -v '^ *+' conftest.er1 >conftest.err
36503 cat conftest.err >&5
36504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); } && {
36506 test -z "$ac_c_werror_flag" ||
36507 test ! -s conftest.err
36508 } && test -s conftest.$ac_objext; then
36509 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
36511 $as_echo "$as_me: failed program was:" >&5
36512 sed 's/^/| /' conftest.$ac_ext >&5
36514 cat >conftest.$ac_ext <<_ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h. */
36525 static struct utmp ac_aggr;
36526 if (sizeof ac_aggr.ut_exit.ut_termination)
36532 rm -f conftest.$ac_objext
36533 if { (ac_try="$ac_compile"
36534 case "(($ac_try" in
36535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536 *) ac_try_echo=$ac_try;;
36538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36539 $as_echo "$ac_try_echo") >&5
36540 (eval "$ac_compile") 2>conftest.er1
36542 grep -v '^ *+' conftest.er1 >conftest.err
36544 cat conftest.err >&5
36545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } && {
36547 test -z "$ac_c_werror_flag" ||
36548 test ! -s conftest.err
36549 } && test -s conftest.$ac_objext; then
36550 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
36552 $as_echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36555 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36563 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
36564 $as_echo "$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
36565 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
36567 cat >>confdefs.h <<_ACEOF
36568 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
36574 { $as_echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
36575 $as_echo_n "checking for struct utmpx.ut_exit.e_termination... " >&6; }
36576 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
36577 $as_echo_n "(cached) " >&6
36579 cat >conftest.$ac_ext <<_ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h. */
36590 static struct utmpx ac_aggr;
36591 if (ac_aggr.ut_exit.e_termination)
36597 rm -f conftest.$ac_objext
36598 if { (ac_try="$ac_compile"
36599 case "(($ac_try" in
36600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601 *) ac_try_echo=$ac_try;;
36603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36604 $as_echo "$ac_try_echo") >&5
36605 (eval "$ac_compile") 2>conftest.er1
36607 grep -v '^ *+' conftest.er1 >conftest.err
36609 cat conftest.err >&5
36610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); } && {
36612 test -z "$ac_c_werror_flag" ||
36613 test ! -s conftest.err
36614 } && test -s conftest.$ac_objext; then
36615 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
36617 $as_echo "$as_me: failed program was:" >&5
36618 sed 's/^/| /' conftest.$ac_ext >&5
36620 cat >conftest.$ac_ext <<_ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h. */
36631 static struct utmpx ac_aggr;
36632 if (sizeof ac_aggr.ut_exit.e_termination)
36638 rm -f conftest.$ac_objext
36639 if { (ac_try="$ac_compile"
36640 case "(($ac_try" in
36641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36642 *) ac_try_echo=$ac_try;;
36644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36645 $as_echo "$ac_try_echo") >&5
36646 (eval "$ac_compile") 2>conftest.er1
36648 grep -v '^ *+' conftest.er1 >conftest.err
36650 cat conftest.err >&5
36651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); } && {
36653 test -z "$ac_c_werror_flag" ||
36654 test ! -s conftest.err
36655 } && test -s conftest.$ac_objext; then
36656 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
36658 $as_echo "$as_me: failed program was:" >&5
36659 sed 's/^/| /' conftest.$ac_ext >&5
36661 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
36664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36669 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
36670 $as_echo "$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
36671 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
36673 cat >>confdefs.h <<_ACEOF
36674 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
36680 { $as_echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
36681 $as_echo_n "checking for struct utmp.ut_exit.e_termination... " >&6; }
36682 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
36683 $as_echo_n "(cached) " >&6
36685 cat >conftest.$ac_ext <<_ACEOF
36688 cat confdefs.h >>conftest.$ac_ext
36689 cat >>conftest.$ac_ext <<_ACEOF
36690 /* end confdefs.h. */
36696 static struct utmp ac_aggr;
36697 if (ac_aggr.ut_exit.e_termination)
36703 rm -f conftest.$ac_objext
36704 if { (ac_try="$ac_compile"
36705 case "(($ac_try" in
36706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36707 *) ac_try_echo=$ac_try;;
36709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36710 $as_echo "$ac_try_echo") >&5
36711 (eval "$ac_compile") 2>conftest.er1
36713 grep -v '^ *+' conftest.er1 >conftest.err
36715 cat conftest.err >&5
36716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); } && {
36718 test -z "$ac_c_werror_flag" ||
36719 test ! -s conftest.err
36720 } && test -s conftest.$ac_objext; then
36721 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
36723 $as_echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36726 cat >conftest.$ac_ext <<_ACEOF
36729 cat confdefs.h >>conftest.$ac_ext
36730 cat >>conftest.$ac_ext <<_ACEOF
36731 /* end confdefs.h. */
36737 static struct utmp ac_aggr;
36738 if (sizeof ac_aggr.ut_exit.e_termination)
36744 rm -f conftest.$ac_objext
36745 if { (ac_try="$ac_compile"
36746 case "(($ac_try" in
36747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36748 *) ac_try_echo=$ac_try;;
36750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36751 $as_echo "$ac_try_echo") >&5
36752 (eval "$ac_compile") 2>conftest.er1
36754 grep -v '^ *+' conftest.er1 >conftest.err
36756 cat conftest.err >&5
36757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); } && {
36759 test -z "$ac_c_werror_flag" ||
36760 test ! -s conftest.err
36761 } && test -s conftest.$ac_objext; then
36762 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
36764 $as_echo "$as_me: failed program was:" >&5
36765 sed 's/^/| /' conftest.$ac_ext >&5
36767 ac_cv_member_struct_utmp_ut_exit_e_termination=no
36770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36775 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
36776 $as_echo "$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
36777 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
36779 cat >>confdefs.h <<_ACEOF
36780 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
36789 for ac_header in stdlib.h
36791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36794 $as_echo_n "checking for $ac_header... " >&6; }
36795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36796 $as_echo_n "(cached) " >&6
36798 ac_res=`eval 'as_val=${'$as_ac_Header'}
36799 $as_echo "$as_val"'`
36800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36801 $as_echo "$ac_res" >&6; }
36803 # Is the header compilable?
36804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36805 $as_echo_n "checking $ac_header usability... " >&6; }
36806 cat >conftest.$ac_ext <<_ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h. */
36812 $ac_includes_default
36813 #include <$ac_header>
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36822 $as_echo "$ac_try_echo") >&5
36823 (eval "$ac_compile") 2>conftest.er1
36825 grep -v '^ *+' conftest.er1 >conftest.err
36827 cat conftest.err >&5
36828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } && {
36830 test -z "$ac_c_werror_flag" ||
36831 test ! -s conftest.err
36832 } && test -s conftest.$ac_objext; then
36833 ac_header_compiler=yes
36835 $as_echo "$as_me: failed program was:" >&5
36836 sed 's/^/| /' conftest.$ac_ext >&5
36838 ac_header_compiler=no
36841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36843 $as_echo "$ac_header_compiler" >&6; }
36845 # Is the header present?
36846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36847 $as_echo_n "checking $ac_header presence... " >&6; }
36848 cat >conftest.$ac_ext <<_ACEOF
36851 cat confdefs.h >>conftest.$ac_ext
36852 cat >>conftest.$ac_ext <<_ACEOF
36853 /* end confdefs.h. */
36854 #include <$ac_header>
36856 if { (ac_try="$ac_cpp conftest.$ac_ext"
36857 case "(($ac_try" in
36858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859 *) ac_try_echo=$ac_try;;
36861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36862 $as_echo "$ac_try_echo") >&5
36863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36865 grep -v '^ *+' conftest.er1 >conftest.err
36867 cat conftest.err >&5
36868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } >/dev/null && {
36870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36871 test ! -s conftest.err
36873 ac_header_preproc=yes
36875 $as_echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36878 ac_header_preproc=no
36881 rm -f conftest.err conftest.$ac_ext
36882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36883 $as_echo "$ac_header_preproc" >&6; }
36885 # So? What about this header?
36886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36892 ac_header_preproc=yes
36895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36898 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36902 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36908 ## ------------------------------------ ##
36909 ## Report this to bug-coreutils@gnu.org ##
36910 ## ------------------------------------ ##
36912 ) | sed "s/^/$as_me: WARNING: /" >&2
36915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36916 $as_echo_n "checking for $ac_header... " >&6; }
36917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36918 $as_echo_n "(cached) " >&6
36920 eval "$as_ac_Header=\$ac_header_preproc"
36922 ac_res=`eval 'as_val=${'$as_ac_Header'}
36923 $as_echo "$as_val"'`
36924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36925 $as_echo "$ac_res" >&6; }
36928 if test `eval 'as_val=${'$as_ac_Header'}
36929 $as_echo "$as_val"'` = yes; then
36930 cat >>confdefs.h <<_ACEOF
36931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36938 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
36939 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
36940 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
36941 $as_echo_n "(cached) " >&6
36943 if test "$cross_compiling" = yes; then
36944 ac_cv_func_realloc_0_nonnull=no
36946 cat >conftest.$ac_ext <<_ACEOF
36949 cat confdefs.h >>conftest.$ac_ext
36950 cat >>conftest.$ac_ext <<_ACEOF
36951 /* end confdefs.h. */
36952 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
36953 # include <stdlib.h>
36961 return ! realloc (0, 0);
36966 rm -f conftest$ac_exeext
36967 if { (ac_try="$ac_link"
36968 case "(($ac_try" in
36969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36970 *) ac_try_echo=$ac_try;;
36972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36973 $as_echo "$ac_try_echo") >&5
36974 (eval "$ac_link") 2>&5
36976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36978 { (case "(($ac_try" in
36979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36980 *) ac_try_echo=$ac_try;;
36982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36983 $as_echo "$ac_try_echo") >&5
36984 (eval "$ac_try") 2>&5
36986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; }; then
36988 ac_cv_func_realloc_0_nonnull=yes
36990 $as_echo "$as_me: program exited with status $ac_status" >&5
36991 $as_echo "$as_me: failed program was:" >&5
36992 sed 's/^/| /' conftest.$ac_ext >&5
36994 ( exit $ac_status )
36995 ac_cv_func_realloc_0_nonnull=no
36997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
37003 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
37004 if test $ac_cv_func_realloc_0_nonnull = yes; then
37006 cat >>confdefs.h <<\_ACEOF
37007 #define HAVE_REALLOC 1
37011 cat >>confdefs.h <<\_ACEOF
37012 #define HAVE_REALLOC 0
37015 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37017 cat >>confdefs.h <<\_ACEOF
37018 #define realloc rpl_realloc
37034 # Check whether --with-included-regex was given.
37035 if test "${with_included_regex+set}" = set; then
37036 withval=$with_included_regex;
37040 case $with_included_regex in #(
37041 yes|no) ac_use_included_regex=$with_included_regex
37044 # If the system regex support is good enough that it passes the
37045 # following run test, then default to *not* using the included regex.c.
37046 # If cross compiling, assume the test would fail and use the included
37048 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
37049 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37050 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
37051 $as_echo_n "(cached) " >&6
37053 if test "$cross_compiling" = yes; then
37054 gl_cv_func_re_compile_pattern_working=no
37056 cat >conftest.$ac_ext <<_ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h. */
37062 $ac_includes_default
37064 #include <locale.h>
37066 #include <limits.h>
37072 static struct re_pattern_buffer regex;
37073 unsigned char folded_chars[UCHAR_MAX + 1];
37076 struct re_registers regs;
37079 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37080 This test needs valgrind to catch the bug on Debian
37081 GNU/Linux 3.1 x86, but it might catch the bug better
37082 on other platforms and it shouldn't hurt to try the
37084 if (setlocale (LC_ALL, "en_US.UTF-8"))
37086 static char const pat[] = "insert into";
37087 static char const data[] =
37088 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37089 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37091 memset (®ex, 0, sizeof regex);
37092 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
37095 if (re_search (®ex, data, sizeof data - 1,
37096 0, sizeof data - 1, ®s)
37099 if (! setlocale (LC_ALL, "C"))
37104 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
37105 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37106 memset (®ex, 0, sizeof regex);
37107 s = re_compile_pattern ("a[^x]b", 6, ®ex);
37111 /* This should fail, but succeeds for glibc-2.5. */
37112 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
37115 /* This regular expression is from Spencer ere test number 75
37117 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37118 memset (®ex, 0, sizeof regex);
37119 for (i = 0; i <= UCHAR_MAX; i++)
37120 folded_chars[i] = i;
37121 regex.translate = folded_chars;
37122 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
37123 /* This should fail with _Invalid character class name_ error. */
37127 /* This should succeed, but does not for glibc-2.1.3. */
37128 memset (®ex, 0, sizeof regex);
37129 s = re_compile_pattern ("{1", 2, ®ex);
37134 /* The following example is derived from a problem report
37135 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
37136 memset (®ex, 0, sizeof regex);
37137 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
37141 /* This should match, but does not for glibc-2.2.1. */
37142 if (re_match (®ex, "an", 2, 0, ®s) != 2)
37145 memset (®ex, 0, sizeof regex);
37146 s = re_compile_pattern ("x", 1, ®ex);
37150 /* glibc-2.2.93 does not work with a negative RANGE argument. */
37151 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
37154 /* The version of regex.c in older versions of gnulib
37155 ignored RE_ICASE. Detect that problem too. */
37156 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37157 memset (®ex, 0, sizeof regex);
37158 s = re_compile_pattern ("x", 1, ®ex);
37162 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
37165 /* REG_STARTEND was added to glibc on 2004-01-15.
37166 Reject older versions. */
37167 if (! REG_STARTEND)
37170 /* Reject hosts whose regoff_t values are too narrow.
37171 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
37173 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37174 || sizeof (regoff_t) < sizeof (ssize_t))
37182 rm -f conftest$ac_exeext
37183 if { (ac_try="$ac_link"
37184 case "(($ac_try" in
37185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37186 *) ac_try_echo=$ac_try;;
37188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37189 $as_echo "$ac_try_echo") >&5
37190 (eval "$ac_link") 2>&5
37192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37194 { (case "(($ac_try" in
37195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37196 *) ac_try_echo=$ac_try;;
37198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37199 $as_echo "$ac_try_echo") >&5
37200 (eval "$ac_try") 2>&5
37202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; }; then
37204 gl_cv_func_re_compile_pattern_working=yes
37206 $as_echo "$as_me: program exited with status $ac_status" >&5
37207 $as_echo "$as_me: failed program was:" >&5
37208 sed 's/^/| /' conftest.$ac_ext >&5
37210 ( exit $ac_status )
37211 gl_cv_func_re_compile_pattern_working=no
37213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37218 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
37219 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37220 case $gl_cv_func_re_compile_pattern_working in #(
37221 yes) ac_use_included_regex=no;; #(
37222 no) ac_use_included_regex=yes;;
37225 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
37226 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
37227 { (exit 1); exit 1; }; }
37231 if test $ac_use_included_regex = yes; then
37233 cat >>confdefs.h <<\_ACEOF
37234 #define _REGEX_LARGE_OFFSETS 1
37238 cat >>confdefs.h <<\_ACEOF
37239 #define re_syntax_options rpl_re_syntax_options
37243 cat >>confdefs.h <<\_ACEOF
37244 #define re_set_syntax rpl_re_set_syntax
37248 cat >>confdefs.h <<\_ACEOF
37249 #define re_compile_pattern rpl_re_compile_pattern
37253 cat >>confdefs.h <<\_ACEOF
37254 #define re_compile_fastmap rpl_re_compile_fastmap
37258 cat >>confdefs.h <<\_ACEOF
37259 #define re_search rpl_re_search
37263 cat >>confdefs.h <<\_ACEOF
37264 #define re_search_2 rpl_re_search_2
37268 cat >>confdefs.h <<\_ACEOF
37269 #define re_match rpl_re_match
37273 cat >>confdefs.h <<\_ACEOF
37274 #define re_match_2 rpl_re_match_2
37278 cat >>confdefs.h <<\_ACEOF
37279 #define re_set_registers rpl_re_set_registers
37283 cat >>confdefs.h <<\_ACEOF
37284 #define re_comp rpl_re_comp
37288 cat >>confdefs.h <<\_ACEOF
37289 #define re_exec rpl_re_exec
37293 cat >>confdefs.h <<\_ACEOF
37294 #define regcomp rpl_regcomp
37298 cat >>confdefs.h <<\_ACEOF
37299 #define regexec rpl_regexec
37303 cat >>confdefs.h <<\_ACEOF
37304 #define regerror rpl_regerror
37308 cat >>confdefs.h <<\_ACEOF
37309 #define regfree rpl_regfree
37312 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37328 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
37329 $as_echo_n "checking whether isblank is declared... " >&6; }
37330 if test "${ac_cv_have_decl_isblank+set}" = set; then
37331 $as_echo_n "(cached) " >&6
37333 cat >conftest.$ac_ext <<_ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h. */
37352 rm -f conftest.$ac_objext
37353 if { (ac_try="$ac_compile"
37354 case "(($ac_try" in
37355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37356 *) ac_try_echo=$ac_try;;
37358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37359 $as_echo "$ac_try_echo") >&5
37360 (eval "$ac_compile") 2>conftest.er1
37362 grep -v '^ *+' conftest.er1 >conftest.err
37364 cat conftest.err >&5
37365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); } && {
37367 test -z "$ac_c_werror_flag" ||
37368 test ! -s conftest.err
37369 } && test -s conftest.$ac_objext; then
37370 ac_cv_have_decl_isblank=yes
37372 $as_echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37375 ac_cv_have_decl_isblank=no
37378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37380 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
37381 $as_echo "$ac_cv_have_decl_isblank" >&6; }
37382 if test $ac_cv_have_decl_isblank = yes; then
37384 cat >>confdefs.h <<_ACEOF
37385 #define HAVE_DECL_ISBLANK 1
37390 cat >>confdefs.h <<_ACEOF
37391 #define HAVE_DECL_ISBLANK 0
37402 { $as_echo "$as_me:$LINENO: checking whether rename is broken" >&5
37403 $as_echo_n "checking whether rename is broken... " >&6; }
37404 if test "${gl_cv_func_rename_trailing_slash_bug+set}" = set; then
37405 $as_echo_n "(cached) " >&6
37408 rm -rf conftest.d1 conftest.d2
37409 mkdir conftest.d1 ||
37410 { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37411 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
37412 { (exit 1); exit 1; }; }
37413 if test "$cross_compiling" = yes; then
37414 gl_cv_func_rename_trailing_slash_bug=yes
37416 cat >conftest.$ac_ext <<_ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h. */
37423 # include <stdio.h>
37424 # include <stdlib.h>
37428 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
37432 rm -f conftest$ac_exeext
37433 if { (ac_try="$ac_link"
37434 case "(($ac_try" in
37435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37436 *) ac_try_echo=$ac_try;;
37438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37439 $as_echo "$ac_try_echo") >&5
37440 (eval "$ac_link") 2>&5
37442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37444 { (case "(($ac_try" in
37445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37446 *) ac_try_echo=$ac_try;;
37448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37449 $as_echo "$ac_try_echo") >&5
37450 (eval "$ac_try") 2>&5
37452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; }; then
37454 gl_cv_func_rename_trailing_slash_bug=no
37456 $as_echo "$as_me: program exited with status $ac_status" >&5
37457 $as_echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37460 ( exit $ac_status )
37461 gl_cv_func_rename_trailing_slash_bug=yes
37463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37468 rm -rf conftest.d1 conftest.d2
37471 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_slash_bug" >&5
37472 $as_echo "$gl_cv_func_rename_trailing_slash_bug" >&6; }
37473 if test $gl_cv_func_rename_trailing_slash_bug = yes; then
37474 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
37476 cat >>confdefs.h <<\_ACEOF
37477 #define rename rpl_rename
37481 cat >>confdefs.h <<\_ACEOF
37482 #define RENAME_TRAILING_SLASH_BUG 1
37489 { $as_echo "$as_me:$LINENO: checking whether rename is broken with respect to destination slashes" >&5
37490 $as_echo_n "checking whether rename is broken with respect to destination slashes... " >&6; }
37491 if test "${gl_cv_func_rename_trailing_dest_slash_bug+set}" = set; then
37492 $as_echo_n "(cached) " >&6
37495 rm -rf conftest.d1 conftest.d2
37496 mkdir conftest.d1 ||
37497 { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37498 $as_echo "$as_me: error: cannot create temporary directory" >&2;}
37499 { (exit 1); exit 1; }; }
37500 if test "$cross_compiling" = yes; then
37501 gl_cv_func_rename_trailing_dest_slash_bug=yes
37503 cat >conftest.$ac_ext <<_ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h. */
37510 # include <stdio.h>
37514 return (rename ("conftest.d1", "conftest.d2/") ? 1 : 0);
37518 rm -f conftest$ac_exeext
37519 if { (ac_try="$ac_link"
37520 case "(($ac_try" in
37521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37522 *) ac_try_echo=$ac_try;;
37524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37525 $as_echo "$ac_try_echo") >&5
37526 (eval "$ac_link") 2>&5
37528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37530 { (case "(($ac_try" in
37531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37532 *) ac_try_echo=$ac_try;;
37534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37535 $as_echo "$ac_try_echo") >&5
37536 (eval "$ac_try") 2>&5
37538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539 (exit $ac_status); }; }; then
37540 gl_cv_func_rename_trailing_dest_slash_bug=no
37542 $as_echo "$as_me: program exited with status $ac_status" >&5
37543 $as_echo "$as_me: failed program was:" >&5
37544 sed 's/^/| /' conftest.$ac_ext >&5
37546 ( exit $ac_status )
37547 gl_cv_func_rename_trailing_dest_slash_bug=yes
37549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37554 rm -rf conftest.d1 conftest.d2
37557 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_dest_slash_bug" >&5
37558 $as_echo "$gl_cv_func_rename_trailing_dest_slash_bug" >&6; }
37559 if test $gl_cv_func_rename_trailing_dest_slash_bug = yes; then
37560 gl_LIBOBJS="$gl_LIBOBJS rename-dest-slash.$ac_objext"
37562 cat >>confdefs.h <<\_ACEOF
37563 #define rename rpl_rename_dest_slash
37570 for ac_func in rmdir
37572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37574 $as_echo_n "checking for $ac_func... " >&6; }
37575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37576 $as_echo_n "(cached) " >&6
37578 cat >conftest.$ac_ext <<_ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h. */
37584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37586 #define $ac_func innocuous_$ac_func
37588 /* System header to define __stub macros and hopefully few prototypes,
37589 which can conflict with char $ac_func (); below.
37590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37591 <limits.h> exists even on freestanding compilers. */
37594 # include <limits.h>
37596 # include <assert.h>
37601 /* Override any GCC internal prototype to avoid an error.
37602 Use char because int might match the return type of a GCC
37603 builtin and then its argument prototype would still apply. */
37608 /* The GNU C library defines this for functions which it implements
37609 to always fail with ENOSYS. Some functions are actually named
37610 something starting with __ and the normal name is an alias. */
37611 #if defined __stub_$ac_func || defined __stub___$ac_func
37618 return $ac_func ();
37623 rm -f conftest.$ac_objext conftest$ac_exeext
37624 if { (ac_try="$ac_link"
37625 case "(($ac_try" in
37626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37627 *) ac_try_echo=$ac_try;;
37629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37630 $as_echo "$ac_try_echo") >&5
37631 (eval "$ac_link") 2>conftest.er1
37633 grep -v '^ *+' conftest.er1 >conftest.err
37635 cat conftest.err >&5
37636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); } && {
37638 test -z "$ac_c_werror_flag" ||
37639 test ! -s conftest.err
37640 } && test -s conftest$ac_exeext &&
37641 $as_test_x conftest$ac_exeext; then
37642 eval "$as_ac_var=yes"
37644 $as_echo "$as_me: failed program was:" >&5
37645 sed 's/^/| /' conftest.$ac_ext >&5
37647 eval "$as_ac_var=no"
37650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37651 conftest$ac_exeext conftest.$ac_ext
37653 ac_res=`eval 'as_val=${'$as_ac_var'}
37654 $as_echo "$as_val"'`
37655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37656 $as_echo "$ac_res" >&6; }
37657 if test `eval 'as_val=${'$as_ac_var'}
37658 $as_echo "$as_val"'` = yes; then
37659 cat >>confdefs.h <<_ACEOF
37660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37664 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37675 { $as_echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
37676 $as_echo_n "checking for rmdir-not-empty errno value... " >&6; }
37677 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
37678 $as_echo_n "(cached) " >&6
37681 # Arrange for deletion of the temporary directory this test creates.
37682 ac_clean_files="$ac_clean_files confdir2"
37683 mkdir confdir2; : > confdir2/file
37684 if test "$cross_compiling" = yes; then
37685 gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
37688 cat >conftest.$ac_ext <<_ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h. */
37697 #ifdef HAVE_UNISTD_H
37698 # include <unistd.h>
37704 rmdir ("confdir2");
37706 s = fopen ("confdir2/errno", "w");
37707 fprintf (s, "%d\n", val);
37712 rm -f conftest$ac_exeext
37713 if { (ac_try="$ac_link"
37714 case "(($ac_try" in
37715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716 *) ac_try_echo=$ac_try;;
37718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37719 $as_echo "$ac_try_echo") >&5
37720 (eval "$ac_link") 2>&5
37722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37724 { (case "(($ac_try" in
37725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37726 *) ac_try_echo=$ac_try;;
37728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37729 $as_echo "$ac_try_echo") >&5
37730 (eval "$ac_try") 2>&5
37732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); }; }; then
37734 gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
37736 $as_echo "$as_me: program exited with status $ac_status" >&5
37737 $as_echo "$as_me: failed program was:" >&5
37738 sed 's/^/| /' conftest.$ac_ext >&5
37740 ( exit $ac_status )
37741 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
37743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37750 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
37751 $as_echo "$gl_cv_func_rmdir_errno_not_empty" >&6; }
37754 cat >>confdefs.h <<_ACEOF
37755 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
37760 gl_LIBOBJS="$gl_LIBOBJS root-dev-ino.$ac_objext"
37767 for ac_func in rpmatch
37769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37771 $as_echo_n "checking for $ac_func... " >&6; }
37772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37773 $as_echo_n "(cached) " >&6
37775 cat >conftest.$ac_ext <<_ACEOF
37778 cat confdefs.h >>conftest.$ac_ext
37779 cat >>conftest.$ac_ext <<_ACEOF
37780 /* end confdefs.h. */
37781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37783 #define $ac_func innocuous_$ac_func
37785 /* System header to define __stub macros and hopefully few prototypes,
37786 which can conflict with char $ac_func (); below.
37787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37788 <limits.h> exists even on freestanding compilers. */
37791 # include <limits.h>
37793 # include <assert.h>
37798 /* Override any GCC internal prototype to avoid an error.
37799 Use char because int might match the return type of a GCC
37800 builtin and then its argument prototype would still apply. */
37805 /* The GNU C library defines this for functions which it implements
37806 to always fail with ENOSYS. Some functions are actually named
37807 something starting with __ and the normal name is an alias. */
37808 #if defined __stub_$ac_func || defined __stub___$ac_func
37815 return $ac_func ();
37820 rm -f conftest.$ac_objext conftest$ac_exeext
37821 if { (ac_try="$ac_link"
37822 case "(($ac_try" in
37823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37824 *) ac_try_echo=$ac_try;;
37826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37827 $as_echo "$ac_try_echo") >&5
37828 (eval "$ac_link") 2>conftest.er1
37830 grep -v '^ *+' conftest.er1 >conftest.err
37832 cat conftest.err >&5
37833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); } && {
37835 test -z "$ac_c_werror_flag" ||
37836 test ! -s conftest.err
37837 } && test -s conftest$ac_exeext &&
37838 $as_test_x conftest$ac_exeext; then
37839 eval "$as_ac_var=yes"
37841 $as_echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37844 eval "$as_ac_var=no"
37847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37848 conftest$ac_exeext conftest.$ac_ext
37850 ac_res=`eval 'as_val=${'$as_ac_var'}
37851 $as_echo "$as_val"'`
37852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37853 $as_echo "$ac_res" >&6; }
37854 if test `eval 'as_val=${'$as_ac_var'}
37855 $as_echo "$as_val"'` = yes; then
37856 cat >>confdefs.h <<_ACEOF
37857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37861 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37865 if test $ac_cv_func_rpmatch = no; then
37870 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
37877 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
37886 gl_LIBOBJS="$gl_LIBOBJS same.$ac_objext"
37897 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
37906 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
37916 if test $ac_cv_func_setenv = no; then
37917 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
37927 for ac_header in search.h
37929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37932 $as_echo_n "checking for $ac_header... " >&6; }
37933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37934 $as_echo_n "(cached) " >&6
37936 ac_res=`eval 'as_val=${'$as_ac_Header'}
37937 $as_echo "$as_val"'`
37938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37939 $as_echo "$ac_res" >&6; }
37941 # Is the header compilable?
37942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37943 $as_echo_n "checking $ac_header usability... " >&6; }
37944 cat >conftest.$ac_ext <<_ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h. */
37950 $ac_includes_default
37951 #include <$ac_header>
37953 rm -f conftest.$ac_objext
37954 if { (ac_try="$ac_compile"
37955 case "(($ac_try" in
37956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37957 *) ac_try_echo=$ac_try;;
37959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37960 $as_echo "$ac_try_echo") >&5
37961 (eval "$ac_compile") 2>conftest.er1
37963 grep -v '^ *+' conftest.er1 >conftest.err
37965 cat conftest.err >&5
37966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } && {
37968 test -z "$ac_c_werror_flag" ||
37969 test ! -s conftest.err
37970 } && test -s conftest.$ac_objext; then
37971 ac_header_compiler=yes
37973 $as_echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37976 ac_header_compiler=no
37979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37981 $as_echo "$ac_header_compiler" >&6; }
37983 # Is the header present?
37984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37985 $as_echo_n "checking $ac_header presence... " >&6; }
37986 cat >conftest.$ac_ext <<_ACEOF
37989 cat confdefs.h >>conftest.$ac_ext
37990 cat >>conftest.$ac_ext <<_ACEOF
37991 /* end confdefs.h. */
37992 #include <$ac_header>
37994 if { (ac_try="$ac_cpp conftest.$ac_ext"
37995 case "(($ac_try" in
37996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997 *) ac_try_echo=$ac_try;;
37999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38000 $as_echo "$ac_try_echo") >&5
38001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38003 grep -v '^ *+' conftest.er1 >conftest.err
38005 cat conftest.err >&5
38006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } >/dev/null && {
38008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38009 test ! -s conftest.err
38011 ac_header_preproc=yes
38013 $as_echo "$as_me: failed program was:" >&5
38014 sed 's/^/| /' conftest.$ac_ext >&5
38016 ac_header_preproc=no
38019 rm -f conftest.err conftest.$ac_ext
38020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38021 $as_echo "$ac_header_preproc" >&6; }
38023 # So? What about this header?
38024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38030 ac_header_preproc=yes
38033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38036 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38040 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38046 ## ------------------------------------ ##
38047 ## Report this to bug-coreutils@gnu.org ##
38048 ## ------------------------------------ ##
38050 ) | sed "s/^/$as_me: WARNING: /" >&2
38053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38054 $as_echo_n "checking for $ac_header... " >&6; }
38055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38056 $as_echo_n "(cached) " >&6
38058 eval "$as_ac_Header=\$ac_header_preproc"
38060 ac_res=`eval 'as_val=${'$as_ac_Header'}
38061 $as_echo "$as_val"'`
38062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38063 $as_echo "$ac_res" >&6; }
38066 if test `eval 'as_val=${'$as_ac_Header'}
38067 $as_echo "$as_val"'` = yes; then
38068 cat >>confdefs.h <<_ACEOF
38069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38077 for ac_func in tsearch
38079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38081 $as_echo_n "checking for $ac_func... " >&6; }
38082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38083 $as_echo_n "(cached) " >&6
38085 cat >conftest.$ac_ext <<_ACEOF
38088 cat confdefs.h >>conftest.$ac_ext
38089 cat >>conftest.$ac_ext <<_ACEOF
38090 /* end confdefs.h. */
38091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38093 #define $ac_func innocuous_$ac_func
38095 /* System header to define __stub macros and hopefully few prototypes,
38096 which can conflict with char $ac_func (); below.
38097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38098 <limits.h> exists even on freestanding compilers. */
38101 # include <limits.h>
38103 # include <assert.h>
38108 /* Override any GCC internal prototype to avoid an error.
38109 Use char because int might match the return type of a GCC
38110 builtin and then its argument prototype would still apply. */
38115 /* The GNU C library defines this for functions which it implements
38116 to always fail with ENOSYS. Some functions are actually named
38117 something starting with __ and the normal name is an alias. */
38118 #if defined __stub_$ac_func || defined __stub___$ac_func
38125 return $ac_func ();
38130 rm -f conftest.$ac_objext conftest$ac_exeext
38131 if { (ac_try="$ac_link"
38132 case "(($ac_try" in
38133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38134 *) ac_try_echo=$ac_try;;
38136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38137 $as_echo "$ac_try_echo") >&5
38138 (eval "$ac_link") 2>conftest.er1
38140 grep -v '^ *+' conftest.er1 >conftest.err
38142 cat conftest.err >&5
38143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144 (exit $ac_status); } && {
38145 test -z "$ac_c_werror_flag" ||
38146 test ! -s conftest.err
38147 } && test -s conftest$ac_exeext &&
38148 $as_test_x conftest$ac_exeext; then
38149 eval "$as_ac_var=yes"
38151 $as_echo "$as_me: failed program was:" >&5
38152 sed 's/^/| /' conftest.$ac_ext >&5
38154 eval "$as_ac_var=no"
38157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38158 conftest$ac_exeext conftest.$ac_ext
38160 ac_res=`eval 'as_val=${'$as_ac_var'}
38161 $as_echo "$as_val"'`
38162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38163 $as_echo "$ac_res" >&6; }
38164 if test `eval 'as_val=${'$as_ac_var'}
38165 $as_echo "$as_val"'` = yes; then
38166 cat >>confdefs.h <<_ACEOF
38167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38175 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
38176 $as_echo_n "checking if environ is properly declared... " >&6; }
38177 if test "${gt_cv_var_environ_declaration+set}" = set; then
38178 $as_echo_n "(cached) " >&6
38181 cat >conftest.$ac_ext <<_ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h. */
38187 #include <unistd.h>
38188 extern struct { int foo; } environ;
38197 rm -f conftest.$ac_objext
38198 if { (ac_try="$ac_compile"
38199 case "(($ac_try" in
38200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38201 *) ac_try_echo=$ac_try;;
38203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38204 $as_echo "$ac_try_echo") >&5
38205 (eval "$ac_compile") 2>conftest.er1
38207 grep -v '^ *+' conftest.er1 >conftest.err
38209 cat conftest.err >&5
38210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } && {
38212 test -z "$ac_c_werror_flag" ||
38213 test ! -s conftest.err
38214 } && test -s conftest.$ac_objext; then
38215 gt_cv_var_environ_declaration=no
38217 $as_echo "$as_me: failed program was:" >&5
38218 sed 's/^/| /' conftest.$ac_ext >&5
38220 gt_cv_var_environ_declaration=yes
38223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38226 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38227 $as_echo "$gt_cv_var_environ_declaration" >&6; }
38228 if test $gt_cv_var_environ_declaration = yes; then
38230 cat >>confdefs.h <<\_ACEOF
38231 #define HAVE_ENVIRON_DECL 1
38241 for ac_func in unsetenv
38243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38244 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38245 $as_echo_n "checking for $ac_func... " >&6; }
38246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38247 $as_echo_n "(cached) " >&6
38249 cat >conftest.$ac_ext <<_ACEOF
38252 cat confdefs.h >>conftest.$ac_ext
38253 cat >>conftest.$ac_ext <<_ACEOF
38254 /* end confdefs.h. */
38255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38257 #define $ac_func innocuous_$ac_func
38259 /* System header to define __stub macros and hopefully few prototypes,
38260 which can conflict with char $ac_func (); below.
38261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38262 <limits.h> exists even on freestanding compilers. */
38265 # include <limits.h>
38267 # include <assert.h>
38272 /* Override any GCC internal prototype to avoid an error.
38273 Use char because int might match the return type of a GCC
38274 builtin and then its argument prototype would still apply. */
38279 /* The GNU C library defines this for functions which it implements
38280 to always fail with ENOSYS. Some functions are actually named
38281 something starting with __ and the normal name is an alias. */
38282 #if defined __stub_$ac_func || defined __stub___$ac_func
38289 return $ac_func ();
38294 rm -f conftest.$ac_objext conftest$ac_exeext
38295 if { (ac_try="$ac_link"
38296 case "(($ac_try" in
38297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38298 *) ac_try_echo=$ac_try;;
38300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38301 $as_echo "$ac_try_echo") >&5
38302 (eval "$ac_link") 2>conftest.er1
38304 grep -v '^ *+' conftest.er1 >conftest.err
38306 cat conftest.err >&5
38307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); } && {
38309 test -z "$ac_c_werror_flag" ||
38310 test ! -s conftest.err
38311 } && test -s conftest$ac_exeext &&
38312 $as_test_x conftest$ac_exeext; then
38313 eval "$as_ac_var=yes"
38315 $as_echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38318 eval "$as_ac_var=no"
38321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38322 conftest$ac_exeext conftest.$ac_ext
38324 ac_res=`eval 'as_val=${'$as_ac_var'}
38325 $as_echo "$as_val"'`
38326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38327 $as_echo "$ac_res" >&6; }
38328 if test `eval 'as_val=${'$as_ac_var'}
38329 $as_echo "$as_val"'` = yes; then
38330 cat >>confdefs.h <<_ACEOF
38331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38337 if test $ac_cv_func_unsetenv = no; then
38338 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
38348 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
38349 $as_echo_n "checking if environ is properly declared... " >&6; }
38350 if test "${gt_cv_var_environ_declaration+set}" = set; then
38351 $as_echo_n "(cached) " >&6
38354 cat >conftest.$ac_ext <<_ACEOF
38357 cat confdefs.h >>conftest.$ac_ext
38358 cat >>conftest.$ac_ext <<_ACEOF
38359 /* end confdefs.h. */
38360 #include <unistd.h>
38361 extern struct { int foo; } environ;
38370 rm -f conftest.$ac_objext
38371 if { (ac_try="$ac_compile"
38372 case "(($ac_try" in
38373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38374 *) ac_try_echo=$ac_try;;
38376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38377 $as_echo "$ac_try_echo") >&5
38378 (eval "$ac_compile") 2>conftest.er1
38380 grep -v '^ *+' conftest.er1 >conftest.err
38382 cat conftest.err >&5
38383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); } && {
38385 test -z "$ac_c_werror_flag" ||
38386 test ! -s conftest.err
38387 } && test -s conftest.$ac_objext; then
38388 gt_cv_var_environ_declaration=no
38390 $as_echo "$as_me: failed program was:" >&5
38391 sed 's/^/| /' conftest.$ac_ext >&5
38393 gt_cv_var_environ_declaration=yes
38396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38399 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38400 $as_echo "$gt_cv_var_environ_declaration" >&6; }
38401 if test $gt_cv_var_environ_declaration = yes; then
38403 cat >>confdefs.h <<\_ACEOF
38404 #define HAVE_ENVIRON_DECL 1
38411 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
38412 $as_echo_n "checking for unsetenv() return type... " >&6; }
38413 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
38414 $as_echo_n "(cached) " >&6
38416 cat >conftest.$ac_ext <<_ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h. */
38422 #include <stdlib.h>
38427 #if defined(__STDC__) || defined(__cplusplus)
38428 int unsetenv (const char *name);
38441 rm -f conftest.$ac_objext
38442 if { (ac_try="$ac_compile"
38443 case "(($ac_try" in
38444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38445 *) ac_try_echo=$ac_try;;
38447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38448 $as_echo "$ac_try_echo") >&5
38449 (eval "$ac_compile") 2>conftest.er1
38451 grep -v '^ *+' conftest.er1 >conftest.err
38453 cat conftest.err >&5
38454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); } && {
38456 test -z "$ac_c_werror_flag" ||
38457 test ! -s conftest.err
38458 } && test -s conftest.$ac_objext; then
38459 gt_cv_func_unsetenv_ret='int'
38461 $as_echo "$as_me: failed program was:" >&5
38462 sed 's/^/| /' conftest.$ac_ext >&5
38464 gt_cv_func_unsetenv_ret='void'
38467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38469 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
38470 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
38471 if test $gt_cv_func_unsetenv_ret = 'void'; then
38473 cat >>confdefs.h <<\_ACEOF
38474 #define VOID_UNSETENV 1
38481 gl_LIBOBJS="$gl_LIBOBJS settime.$ac_objext"
38495 gl_LIBOBJS="$gl_LIBOBJS sha1.$ac_objext"
38503 for ac_func in sig2str
38505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38507 $as_echo_n "checking for $ac_func... " >&6; }
38508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38509 $as_echo_n "(cached) " >&6
38511 cat >conftest.$ac_ext <<_ACEOF
38514 cat confdefs.h >>conftest.$ac_ext
38515 cat >>conftest.$ac_ext <<_ACEOF
38516 /* end confdefs.h. */
38517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38519 #define $ac_func innocuous_$ac_func
38521 /* System header to define __stub macros and hopefully few prototypes,
38522 which can conflict with char $ac_func (); below.
38523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38524 <limits.h> exists even on freestanding compilers. */
38527 # include <limits.h>
38529 # include <assert.h>
38534 /* Override any GCC internal prototype to avoid an error.
38535 Use char because int might match the return type of a GCC
38536 builtin and then its argument prototype would still apply. */
38541 /* The GNU C library defines this for functions which it implements
38542 to always fail with ENOSYS. Some functions are actually named
38543 something starting with __ and the normal name is an alias. */
38544 #if defined __stub_$ac_func || defined __stub___$ac_func
38551 return $ac_func ();
38556 rm -f conftest.$ac_objext conftest$ac_exeext
38557 if { (ac_try="$ac_link"
38558 case "(($ac_try" in
38559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38560 *) ac_try_echo=$ac_try;;
38562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38563 $as_echo "$ac_try_echo") >&5
38564 (eval "$ac_link") 2>conftest.er1
38566 grep -v '^ *+' conftest.er1 >conftest.err
38568 cat conftest.err >&5
38569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); } && {
38571 test -z "$ac_c_werror_flag" ||
38572 test ! -s conftest.err
38573 } && test -s conftest$ac_exeext &&
38574 $as_test_x conftest$ac_exeext; then
38575 eval "$as_ac_var=yes"
38577 $as_echo "$as_me: failed program was:" >&5
38578 sed 's/^/| /' conftest.$ac_ext >&5
38580 eval "$as_ac_var=no"
38583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38584 conftest$ac_exeext conftest.$ac_ext
38586 ac_res=`eval 'as_val=${'$as_ac_var'}
38587 $as_echo "$as_val"'`
38588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38589 $as_echo "$ac_res" >&6; }
38590 if test `eval 'as_val=${'$as_ac_var'}
38591 $as_echo "$as_val"'` = yes; then
38592 cat >>confdefs.h <<_ACEOF
38593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38597 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38601 if test $ac_cv_func_sig2str = no; then
38610 for ac_func in snprintf
38612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38614 $as_echo_n "checking for $ac_func... " >&6; }
38615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38616 $as_echo_n "(cached) " >&6
38618 cat >conftest.$ac_ext <<_ACEOF
38621 cat confdefs.h >>conftest.$ac_ext
38622 cat >>conftest.$ac_ext <<_ACEOF
38623 /* end confdefs.h. */
38624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38626 #define $ac_func innocuous_$ac_func
38628 /* System header to define __stub macros and hopefully few prototypes,
38629 which can conflict with char $ac_func (); below.
38630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38631 <limits.h> exists even on freestanding compilers. */
38634 # include <limits.h>
38636 # include <assert.h>
38641 /* Override any GCC internal prototype to avoid an error.
38642 Use char because int might match the return type of a GCC
38643 builtin and then its argument prototype would still apply. */
38648 /* The GNU C library defines this for functions which it implements
38649 to always fail with ENOSYS. Some functions are actually named
38650 something starting with __ and the normal name is an alias. */
38651 #if defined __stub_$ac_func || defined __stub___$ac_func
38658 return $ac_func ();
38663 rm -f conftest.$ac_objext conftest$ac_exeext
38664 if { (ac_try="$ac_link"
38665 case "(($ac_try" in
38666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38667 *) ac_try_echo=$ac_try;;
38669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38670 $as_echo "$ac_try_echo") >&5
38671 (eval "$ac_link") 2>conftest.er1
38673 grep -v '^ *+' conftest.er1 >conftest.err
38675 cat conftest.err >&5
38676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); } && {
38678 test -z "$ac_c_werror_flag" ||
38679 test ! -s conftest.err
38680 } && test -s conftest$ac_exeext &&
38681 $as_test_x conftest$ac_exeext; then
38682 eval "$as_ac_var=yes"
38684 $as_echo "$as_me: failed program was:" >&5
38685 sed 's/^/| /' conftest.$ac_ext >&5
38687 eval "$as_ac_var=no"
38690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38691 conftest$ac_exeext conftest.$ac_ext
38693 ac_res=`eval 'as_val=${'$as_ac_var'}
38694 $as_echo "$as_val"'`
38695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38696 $as_echo "$ac_res" >&6; }
38697 if test `eval 'as_val=${'$as_ac_var'}
38698 $as_echo "$as_val"'` = yes; then
38699 cat >>confdefs.h <<_ACEOF
38700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38706 if test $ac_cv_func_snprintf = no; then
38709 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
38710 if test $ac_cv_func_snprintf = yes; then
38720 if test $ac_cv_have_decl_snprintf = no; then
38721 HAVE_DECL_SNPRINTF=0
38728 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
38729 $as_echo_n "checking for socklen_t... " >&6; }
38730 if test "${ac_cv_type_socklen_t+set}" = set; then
38731 $as_echo_n "(cached) " >&6
38733 cat >conftest.$ac_ext <<_ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h. */
38739 #include <sys/types.h>
38740 #if HAVE_SYS_SOCKET_H
38741 # include <sys/socket.h>
38742 #elif HAVE_WS2TCPIP_H
38743 # include <ws2tcpip.h>
38746 typedef socklen_t ac__type_new_;
38750 if ((ac__type_new_ *) 0)
38752 if (sizeof (ac__type_new_))
38758 rm -f conftest.$ac_objext
38759 if { (ac_try="$ac_compile"
38760 case "(($ac_try" in
38761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762 *) ac_try_echo=$ac_try;;
38764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38765 $as_echo "$ac_try_echo") >&5
38766 (eval "$ac_compile") 2>conftest.er1
38768 grep -v '^ *+' conftest.er1 >conftest.err
38770 cat conftest.err >&5
38771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); } && {
38773 test -z "$ac_c_werror_flag" ||
38774 test ! -s conftest.err
38775 } && test -s conftest.$ac_objext; then
38776 ac_cv_type_socklen_t=yes
38778 $as_echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38781 ac_cv_type_socklen_t=no
38784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38786 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38787 $as_echo "$ac_cv_type_socklen_t" >&6; }
38788 if test $ac_cv_type_socklen_t = yes; then
38791 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
38792 $as_echo_n "checking for socklen_t equivalent... " >&6; }
38793 if test "${gl_cv_socklen_t_equiv+set}" = set; then
38794 $as_echo_n "(cached) " >&6
38796 # Systems have either "struct sockaddr *" or
38797 # "void *" as the second argument to getpeername
38798 gl_cv_socklen_t_equiv=
38799 for arg2 in "struct sockaddr" void; do
38800 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
38801 cat >conftest.$ac_ext <<_ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h. */
38807 #include <sys/types.h>
38808 #include <sys/socket.h>
38810 int getpeername (int, $arg2 *, $t *);
38815 getpeername (0, 0, &len);
38820 rm -f conftest.$ac_objext
38821 if { (ac_try="$ac_compile"
38822 case "(($ac_try" in
38823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38824 *) ac_try_echo=$ac_try;;
38826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38827 $as_echo "$ac_try_echo") >&5
38828 (eval "$ac_compile") 2>conftest.er1
38830 grep -v '^ *+' conftest.er1 >conftest.err
38832 cat conftest.err >&5
38833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); } && {
38835 test -z "$ac_c_werror_flag" ||
38836 test ! -s conftest.err
38837 } && test -s conftest.$ac_objext; then
38838 gl_cv_socklen_t_equiv="$t"
38840 $as_echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38847 test "$gl_cv_socklen_t_equiv" != "" && break
38849 test "$gl_cv_socklen_t_equiv" != "" && break
38854 if test "$gl_cv_socklen_t_equiv" = ""; then
38855 { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
38856 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
38857 { (exit 1); exit 1; }; }
38859 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
38860 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
38862 cat >>confdefs.h <<_ACEOF
38863 #define socklen_t $gl_cv_socklen_t_equiv
38869 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
38870 $as_echo_n "checking for ssize_t... " >&6; }
38871 if test "${gt_cv_ssize_t+set}" = set; then
38872 $as_echo_n "(cached) " >&6
38874 cat >conftest.$ac_ext <<_ACEOF
38877 cat confdefs.h >>conftest.$ac_ext
38878 cat >>conftest.$ac_ext <<_ACEOF
38879 /* end confdefs.h. */
38880 #include <sys/types.h>
38884 int x = sizeof (ssize_t *) + sizeof (ssize_t);
38890 rm -f conftest.$ac_objext
38891 if { (ac_try="$ac_compile"
38892 case "(($ac_try" in
38893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38894 *) ac_try_echo=$ac_try;;
38896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38897 $as_echo "$ac_try_echo") >&5
38898 (eval "$ac_compile") 2>conftest.er1
38900 grep -v '^ *+' conftest.er1 >conftest.err
38902 cat conftest.err >&5
38903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904 (exit $ac_status); } && {
38905 test -z "$ac_c_werror_flag" ||
38906 test ! -s conftest.err
38907 } && test -s conftest.$ac_objext; then
38910 $as_echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38918 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
38919 $as_echo "$gt_cv_ssize_t" >&6; }
38920 if test $gt_cv_ssize_t = no; then
38922 cat >>confdefs.h <<\_ACEOF
38923 #define ssize_t int
38938 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
38939 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
38940 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
38941 $as_echo_n "(cached) " >&6
38943 cat >conftest.$ac_ext <<_ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h. */
38949 #include <sys/types.h>
38950 #include <sys/stat.h>
38955 static struct stat ac_aggr;
38956 if (ac_aggr.st_atim.tv_nsec)
38962 rm -f conftest.$ac_objext
38963 if { (ac_try="$ac_compile"
38964 case "(($ac_try" in
38965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38966 *) ac_try_echo=$ac_try;;
38968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38969 $as_echo "$ac_try_echo") >&5
38970 (eval "$ac_compile") 2>conftest.er1
38972 grep -v '^ *+' conftest.er1 >conftest.err
38974 cat conftest.err >&5
38975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976 (exit $ac_status); } && {
38977 test -z "$ac_c_werror_flag" ||
38978 test ! -s conftest.err
38979 } && test -s conftest.$ac_objext; then
38980 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
38982 $as_echo "$as_me: failed program was:" >&5
38983 sed 's/^/| /' conftest.$ac_ext >&5
38985 cat >conftest.$ac_ext <<_ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h. */
38991 #include <sys/types.h>
38992 #include <sys/stat.h>
38997 static struct stat ac_aggr;
38998 if (sizeof ac_aggr.st_atim.tv_nsec)
39004 rm -f conftest.$ac_objext
39005 if { (ac_try="$ac_compile"
39006 case "(($ac_try" in
39007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39008 *) ac_try_echo=$ac_try;;
39010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39011 $as_echo "$ac_try_echo") >&5
39012 (eval "$ac_compile") 2>conftest.er1
39014 grep -v '^ *+' conftest.er1 >conftest.err
39016 cat conftest.err >&5
39017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); } && {
39019 test -z "$ac_c_werror_flag" ||
39020 test ! -s conftest.err
39021 } && test -s conftest.$ac_objext; then
39022 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39024 $as_echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39027 ac_cv_member_struct_stat_st_atim_tv_nsec=no
39030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39035 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
39036 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
39037 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
39039 cat >>confdefs.h <<_ACEOF
39040 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39043 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
39044 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
39045 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
39046 $as_echo_n "(cached) " >&6
39048 cat >conftest.$ac_ext <<_ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h. */
39055 #include <sys/types.h>
39056 #include <sys/stat.h>
39057 #if HAVE_SYS_TIME_H
39058 # include <sys/time.h>
39061 struct timespec ts;
39074 rm -f conftest.$ac_objext
39075 if { (ac_try="$ac_compile"
39076 case "(($ac_try" in
39077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39078 *) ac_try_echo=$ac_try;;
39080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39081 $as_echo "$ac_try_echo") >&5
39082 (eval "$ac_compile") 2>conftest.er1
39084 grep -v '^ *+' conftest.er1 >conftest.err
39086 cat conftest.err >&5
39087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); } && {
39089 test -z "$ac_c_werror_flag" ||
39090 test ! -s conftest.err
39091 } && test -s conftest.$ac_objext; then
39092 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39094 $as_echo "$as_me: failed program was:" >&5
39095 sed 's/^/| /' conftest.$ac_ext >&5
39097 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39102 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39103 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39104 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39106 cat >>confdefs.h <<\_ACEOF
39107 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
39112 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
39113 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
39114 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
39115 $as_echo_n "(cached) " >&6
39117 cat >conftest.$ac_ext <<_ACEOF
39120 cat confdefs.h >>conftest.$ac_ext
39121 cat >>conftest.$ac_ext <<_ACEOF
39122 /* end confdefs.h. */
39123 #include <sys/types.h>
39124 #include <sys/stat.h>
39129 static struct stat ac_aggr;
39130 if (ac_aggr.st_atimespec.tv_nsec)
39136 rm -f conftest.$ac_objext
39137 if { (ac_try="$ac_compile"
39138 case "(($ac_try" in
39139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39140 *) ac_try_echo=$ac_try;;
39142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39143 $as_echo "$ac_try_echo") >&5
39144 (eval "$ac_compile") 2>conftest.er1
39146 grep -v '^ *+' conftest.er1 >conftest.err
39148 cat conftest.err >&5
39149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); } && {
39151 test -z "$ac_c_werror_flag" ||
39152 test ! -s conftest.err
39153 } && test -s conftest.$ac_objext; then
39154 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39156 $as_echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39159 cat >conftest.$ac_ext <<_ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h. */
39165 #include <sys/types.h>
39166 #include <sys/stat.h>
39171 static struct stat ac_aggr;
39172 if (sizeof ac_aggr.st_atimespec.tv_nsec)
39178 rm -f conftest.$ac_objext
39179 if { (ac_try="$ac_compile"
39180 case "(($ac_try" in
39181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39182 *) ac_try_echo=$ac_try;;
39184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39185 $as_echo "$ac_try_echo") >&5
39186 (eval "$ac_compile") 2>conftest.er1
39188 grep -v '^ *+' conftest.er1 >conftest.err
39190 cat conftest.err >&5
39191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); } && {
39193 test -z "$ac_c_werror_flag" ||
39194 test ! -s conftest.err
39195 } && test -s conftest.$ac_objext; then
39196 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39198 $as_echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39201 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
39204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39209 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
39210 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
39211 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
39213 cat >>confdefs.h <<_ACEOF
39214 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39219 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
39220 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
39221 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
39222 $as_echo_n "(cached) " >&6
39224 cat >conftest.$ac_ext <<_ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h. */
39230 #include <sys/types.h>
39231 #include <sys/stat.h>
39236 static struct stat ac_aggr;
39237 if (ac_aggr.st_atimensec)
39243 rm -f conftest.$ac_objext
39244 if { (ac_try="$ac_compile"
39245 case "(($ac_try" in
39246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39247 *) ac_try_echo=$ac_try;;
39249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39250 $as_echo "$ac_try_echo") >&5
39251 (eval "$ac_compile") 2>conftest.er1
39253 grep -v '^ *+' conftest.er1 >conftest.err
39255 cat conftest.err >&5
39256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); } && {
39258 test -z "$ac_c_werror_flag" ||
39259 test ! -s conftest.err
39260 } && test -s conftest.$ac_objext; then
39261 ac_cv_member_struct_stat_st_atimensec=yes
39263 $as_echo "$as_me: failed program was:" >&5
39264 sed 's/^/| /' conftest.$ac_ext >&5
39266 cat >conftest.$ac_ext <<_ACEOF
39269 cat confdefs.h >>conftest.$ac_ext
39270 cat >>conftest.$ac_ext <<_ACEOF
39271 /* end confdefs.h. */
39272 #include <sys/types.h>
39273 #include <sys/stat.h>
39278 static struct stat ac_aggr;
39279 if (sizeof ac_aggr.st_atimensec)
39285 rm -f conftest.$ac_objext
39286 if { (ac_try="$ac_compile"
39287 case "(($ac_try" in
39288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39289 *) ac_try_echo=$ac_try;;
39291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39292 $as_echo "$ac_try_echo") >&5
39293 (eval "$ac_compile") 2>conftest.er1
39295 grep -v '^ *+' conftest.er1 >conftest.err
39297 cat conftest.err >&5
39298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); } && {
39300 test -z "$ac_c_werror_flag" ||
39301 test ! -s conftest.err
39302 } && test -s conftest.$ac_objext; then
39303 ac_cv_member_struct_stat_st_atimensec=yes
39305 $as_echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39308 ac_cv_member_struct_stat_st_atimensec=no
39311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39316 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
39317 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
39318 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
39320 cat >>confdefs.h <<_ACEOF
39321 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39326 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
39327 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
39328 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
39329 $as_echo_n "(cached) " >&6
39331 cat >conftest.$ac_ext <<_ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h. */
39337 #include <sys/types.h>
39338 #include <sys/stat.h>
39343 static struct stat ac_aggr;
39344 if (ac_aggr.st_atim.st__tim.tv_nsec)
39350 rm -f conftest.$ac_objext
39351 if { (ac_try="$ac_compile"
39352 case "(($ac_try" in
39353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39354 *) ac_try_echo=$ac_try;;
39356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39357 $as_echo "$ac_try_echo") >&5
39358 (eval "$ac_compile") 2>conftest.er1
39360 grep -v '^ *+' conftest.er1 >conftest.err
39362 cat conftest.err >&5
39363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); } && {
39365 test -z "$ac_c_werror_flag" ||
39366 test ! -s conftest.err
39367 } && test -s conftest.$ac_objext; then
39368 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39370 $as_echo "$as_me: failed program was:" >&5
39371 sed 's/^/| /' conftest.$ac_ext >&5
39373 cat >conftest.$ac_ext <<_ACEOF
39376 cat confdefs.h >>conftest.$ac_ext
39377 cat >>conftest.$ac_ext <<_ACEOF
39378 /* end confdefs.h. */
39379 #include <sys/types.h>
39380 #include <sys/stat.h>
39385 static struct stat ac_aggr;
39386 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
39392 rm -f conftest.$ac_objext
39393 if { (ac_try="$ac_compile"
39394 case "(($ac_try" in
39395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39396 *) ac_try_echo=$ac_try;;
39398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39399 $as_echo "$ac_try_echo") >&5
39400 (eval "$ac_compile") 2>conftest.er1
39402 grep -v '^ *+' conftest.er1 >conftest.err
39404 cat conftest.err >&5
39405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); } && {
39407 test -z "$ac_c_werror_flag" ||
39408 test ! -s conftest.err
39409 } && test -s conftest.$ac_objext; then
39410 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39412 $as_echo "$as_me: failed program was:" >&5
39413 sed 's/^/| /' conftest.$ac_ext >&5
39415 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
39418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39423 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
39424 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
39425 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
39427 cat >>confdefs.h <<_ACEOF
39428 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39433 { $as_echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
39434 $as_echo_n "checking for struct stat.st_spare1... " >&6; }
39435 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
39436 $as_echo_n "(cached) " >&6
39438 cat >conftest.$ac_ext <<_ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h. */
39444 #include <sys/types.h>
39445 #include <sys/stat.h>
39450 static struct stat ac_aggr;
39451 if (ac_aggr.st_spare1)
39457 rm -f conftest.$ac_objext
39458 if { (ac_try="$ac_compile"
39459 case "(($ac_try" in
39460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39461 *) ac_try_echo=$ac_try;;
39463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39464 $as_echo "$ac_try_echo") >&5
39465 (eval "$ac_compile") 2>conftest.er1
39467 grep -v '^ *+' conftest.er1 >conftest.err
39469 cat conftest.err >&5
39470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); } && {
39472 test -z "$ac_c_werror_flag" ||
39473 test ! -s conftest.err
39474 } && test -s conftest.$ac_objext; then
39475 ac_cv_member_struct_stat_st_spare1=yes
39477 $as_echo "$as_me: failed program was:" >&5
39478 sed 's/^/| /' conftest.$ac_ext >&5
39480 cat >conftest.$ac_ext <<_ACEOF
39483 cat confdefs.h >>conftest.$ac_ext
39484 cat >>conftest.$ac_ext <<_ACEOF
39485 /* end confdefs.h. */
39486 #include <sys/types.h>
39487 #include <sys/stat.h>
39492 static struct stat ac_aggr;
39493 if (sizeof ac_aggr.st_spare1)
39499 rm -f conftest.$ac_objext
39500 if { (ac_try="$ac_compile"
39501 case "(($ac_try" in
39502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39503 *) ac_try_echo=$ac_try;;
39505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39506 $as_echo "$ac_try_echo") >&5
39507 (eval "$ac_compile") 2>conftest.er1
39509 grep -v '^ *+' conftest.er1 >conftest.err
39511 cat conftest.err >&5
39512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513 (exit $ac_status); } && {
39514 test -z "$ac_c_werror_flag" ||
39515 test ! -s conftest.err
39516 } && test -s conftest.$ac_objext; then
39517 ac_cv_member_struct_stat_st_spare1=yes
39519 $as_echo "$as_me: failed program was:" >&5
39520 sed 's/^/| /' conftest.$ac_ext >&5
39522 ac_cv_member_struct_stat_st_spare1=no
39525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39530 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
39531 $as_echo "$ac_cv_member_struct_stat_st_spare1" >&6; }
39532 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
39534 cat >>confdefs.h <<_ACEOF
39535 #define HAVE_STRUCT_STAT_ST_SPARE1 1
39551 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
39552 $as_echo_n "checking for va_copy... " >&6; }
39553 if test "${gl_cv_func_va_copy+set}" = set; then
39554 $as_echo_n "(cached) " >&6
39557 cat >conftest.$ac_ext <<_ACEOF
39560 cat confdefs.h >>conftest.$ac_ext
39561 cat >>conftest.$ac_ext <<_ACEOF
39562 /* end confdefs.h. */
39563 #include <stdarg.h>
39569 void (*func) (va_list, va_list) = va_copy;
39576 rm -f conftest.$ac_objext
39577 if { (ac_try="$ac_compile"
39578 case "(($ac_try" in
39579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39580 *) ac_try_echo=$ac_try;;
39582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39583 $as_echo "$ac_try_echo") >&5
39584 (eval "$ac_compile") 2>conftest.er1
39586 grep -v '^ *+' conftest.er1 >conftest.err
39588 cat conftest.err >&5
39589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } && {
39591 test -z "$ac_c_werror_flag" ||
39592 test ! -s conftest.err
39593 } && test -s conftest.$ac_objext; then
39594 gl_cv_func_va_copy=yes
39596 $as_echo "$as_me: failed program was:" >&5
39597 sed 's/^/| /' conftest.$ac_ext >&5
39599 gl_cv_func_va_copy=no
39602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39605 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
39606 $as_echo "$gl_cv_func_va_copy" >&6; }
39607 if test $gl_cv_func_va_copy = no; then
39608 # Provide a substitute, either __va_copy or as a simple assignment.
39609 if test "${gl_cv_func___va_copy+set}" = set; then
39610 $as_echo_n "(cached) " >&6
39613 cat >conftest.$ac_ext <<_ACEOF
39616 cat confdefs.h >>conftest.$ac_ext
39617 cat >>conftest.$ac_ext <<_ACEOF
39618 /* end confdefs.h. */
39619 #include <stdarg.h>
39632 rm -f conftest.$ac_objext
39633 if { (ac_try="$ac_compile"
39634 case "(($ac_try" in
39635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39636 *) ac_try_echo=$ac_try;;
39638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39639 $as_echo "$ac_try_echo") >&5
39640 (eval "$ac_compile") 2>conftest.er1
39642 grep -v '^ *+' conftest.er1 >conftest.err
39644 cat conftest.err >&5
39645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646 (exit $ac_status); } && {
39647 test -z "$ac_c_werror_flag" ||
39648 test ! -s conftest.err
39649 } && test -s conftest.$ac_objext; then
39650 gl_cv_func___va_copy=yes
39652 $as_echo "$as_me: failed program was:" >&5
39653 sed 's/^/| /' conftest.$ac_ext >&5
39655 gl_cv_func___va_copy=no
39658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39661 if test $gl_cv_func___va_copy = yes; then
39663 cat >>confdefs.h <<\_ACEOF
39664 #define va_copy __va_copy
39671 cat >>confdefs.h <<\_ACEOF
39672 #define va_copy gl_va_copy
39681 # Define two additional variables used in the Makefile substitution.
39683 if test "$ac_cv_header_stdbool_h" = yes; then
39686 STDBOOL_H='stdbool.h'
39690 if test "$ac_cv_type__Bool" = yes; then
39700 if test $ac_cv_type_long_long_int = yes; then
39701 HAVE_LONG_LONG_INT=1
39703 HAVE_LONG_LONG_INT=0
39707 if test $ac_cv_type_unsigned_long_long_int = yes; then
39708 HAVE_UNSIGNED_LONG_LONG_INT=1
39710 HAVE_UNSIGNED_LONG_LONG_INT=0
39714 if test $ac_cv_header_inttypes_h = yes; then
39721 if test $ac_cv_header_sys_types_h = yes; then
39728 if test $ac_cv_header_stdint_h = yes; then
39729 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
39730 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
39731 if test "${gl_cv_absolute_stdint_h+set}" = set; then
39732 $as_echo_n "(cached) " >&6
39739 if test $ac_cv_header_stdint_h = yes; then
39740 cat >conftest.$ac_ext <<_ACEOF
39743 cat confdefs.h >>conftest.$ac_ext
39744 cat >>conftest.$ac_ext <<_ACEOF
39745 /* end confdefs.h. */
39746 #include <stdint.h>
39748 gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39749 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
39753 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
39754 $as_echo "$gl_cv_absolute_stdint_h" >&6; }
39755 cat >>confdefs.h <<_ACEOF
39756 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
39760 ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
39763 ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
39769 if test $ac_cv_header_stdint_h = yes; then
39770 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
39771 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
39772 if test "${gl_cv_header_working_stdint_h+set}" = set; then
39773 $as_echo_n "(cached) " >&6
39775 gl_cv_header_working_stdint_h=no
39776 cat >conftest.$ac_ext <<_ACEOF
39780 cat confdefs.h >>conftest.$ac_ext
39781 cat >>conftest.$ac_ext <<_ACEOF
39782 /* end confdefs.h. */
39784 #include <stddef.h>
39785 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39786 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39787 #include ABSOLUTE_STDINT_H
39789 int8_t a1 = INT8_MAX;
39790 int8_t a1min = INT8_MIN;
39793 int16_t a2 = INT16_MAX;
39794 int16_t a2min = INT16_MIN;
39797 int32_t a3 = INT32_MAX;
39798 int32_t a3min = INT32_MIN;
39801 int64_t a4 = INT64_MAX;
39802 int64_t a4min = INT64_MIN;
39805 uint8_t b1 = UINT8_MAX;
39807 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
39810 uint16_t b2 = UINT16_MAX;
39813 uint32_t b3 = UINT32_MAX;
39816 uint64_t b4 = UINT64_MAX;
39818 int_least8_t c1 = INT8_C (0x7f);
39819 int_least8_t c1max = INT_LEAST8_MAX;
39820 int_least8_t c1min = INT_LEAST8_MIN;
39821 int_least16_t c2 = INT16_C (0x7fff);
39822 int_least16_t c2max = INT_LEAST16_MAX;
39823 int_least16_t c2min = INT_LEAST16_MIN;
39824 int_least32_t c3 = INT32_C (0x7fffffff);
39825 int_least32_t c3max = INT_LEAST32_MAX;
39826 int_least32_t c3min = INT_LEAST32_MIN;
39827 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
39828 int_least64_t c4max = INT_LEAST64_MAX;
39829 int_least64_t c4min = INT_LEAST64_MIN;
39830 uint_least8_t d1 = UINT8_C (0xff);
39831 uint_least8_t d1max = UINT_LEAST8_MAX;
39832 uint_least16_t d2 = UINT16_C (0xffff);
39833 uint_least16_t d2max = UINT_LEAST16_MAX;
39834 uint_least32_t d3 = UINT32_C (0xffffffff);
39835 uint_least32_t d3max = UINT_LEAST32_MAX;
39836 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
39837 uint_least64_t d4max = UINT_LEAST64_MAX;
39838 int_fast8_t e1 = INT_FAST8_MAX;
39839 int_fast8_t e1min = INT_FAST8_MIN;
39840 int_fast16_t e2 = INT_FAST16_MAX;
39841 int_fast16_t e2min = INT_FAST16_MIN;
39842 int_fast32_t e3 = INT_FAST32_MAX;
39843 int_fast32_t e3min = INT_FAST32_MIN;
39844 int_fast64_t e4 = INT_FAST64_MAX;
39845 int_fast64_t e4min = INT_FAST64_MIN;
39846 uint_fast8_t f1 = UINT_FAST8_MAX;
39847 uint_fast16_t f2 = UINT_FAST16_MAX;
39848 uint_fast32_t f3 = UINT_FAST32_MAX;
39849 uint_fast64_t f4 = UINT_FAST64_MAX;
39851 intptr_t g = INTPTR_MAX;
39852 intptr_t gmin = INTPTR_MIN;
39855 uintptr_t h = UINTPTR_MAX;
39857 intmax_t i = INTMAX_MAX;
39858 uintmax_t j = UINTMAX_MAX;
39860 int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
39861 int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
39862 int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
39863 int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
39864 int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
39866 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
39868 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39869 int check_UINT16_C:
39870 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39872 /* Detect bugs in OpenBSD 3.9 stdint.h. */
39874 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39877 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39880 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39883 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39885 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39886 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39887 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39888 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39889 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39890 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39891 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39892 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39893 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39894 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39895 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39906 rm -f conftest.$ac_objext
39907 if { (ac_try="$ac_compile"
39908 case "(($ac_try" in
39909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39910 *) ac_try_echo=$ac_try;;
39912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39913 $as_echo "$ac_try_echo") >&5
39914 (eval "$ac_compile") 2>conftest.er1
39916 grep -v '^ *+' conftest.er1 >conftest.err
39918 cat conftest.err >&5
39919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); } && {
39921 test -z "$ac_c_werror_flag" ||
39922 test ! -s conftest.err
39923 } && test -s conftest.$ac_objext; then
39924 gl_cv_header_working_stdint_h=yes
39926 $as_echo "$as_me: failed program was:" >&5
39927 sed 's/^/| /' conftest.$ac_ext >&5
39932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39934 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
39935 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39937 if test "$gl_cv_header_working_stdint_h" = yes; then
39942 for ac_header in sys/inttypes.h sys/bitypes.h
39944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39947 $as_echo_n "checking for $ac_header... " >&6; }
39948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39949 $as_echo_n "(cached) " >&6
39951 ac_res=`eval 'as_val=${'$as_ac_Header'}
39952 $as_echo "$as_val"'`
39953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39954 $as_echo "$ac_res" >&6; }
39956 # Is the header compilable?
39957 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39958 $as_echo_n "checking $ac_header usability... " >&6; }
39959 cat >conftest.$ac_ext <<_ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h. */
39965 $ac_includes_default
39966 #include <$ac_header>
39968 rm -f conftest.$ac_objext
39969 if { (ac_try="$ac_compile"
39970 case "(($ac_try" in
39971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39972 *) ac_try_echo=$ac_try;;
39974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39975 $as_echo "$ac_try_echo") >&5
39976 (eval "$ac_compile") 2>conftest.er1
39978 grep -v '^ *+' conftest.er1 >conftest.err
39980 cat conftest.err >&5
39981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } && {
39983 test -z "$ac_c_werror_flag" ||
39984 test ! -s conftest.err
39985 } && test -s conftest.$ac_objext; then
39986 ac_header_compiler=yes
39988 $as_echo "$as_me: failed program was:" >&5
39989 sed 's/^/| /' conftest.$ac_ext >&5
39991 ac_header_compiler=no
39994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39995 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39996 $as_echo "$ac_header_compiler" >&6; }
39998 # Is the header present?
39999 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40000 $as_echo_n "checking $ac_header presence... " >&6; }
40001 cat >conftest.$ac_ext <<_ACEOF
40004 cat confdefs.h >>conftest.$ac_ext
40005 cat >>conftest.$ac_ext <<_ACEOF
40006 /* end confdefs.h. */
40007 #include <$ac_header>
40009 if { (ac_try="$ac_cpp conftest.$ac_ext"
40010 case "(($ac_try" in
40011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40012 *) ac_try_echo=$ac_try;;
40014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40015 $as_echo "$ac_try_echo") >&5
40016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40018 grep -v '^ *+' conftest.er1 >conftest.err
40020 cat conftest.err >&5
40021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022 (exit $ac_status); } >/dev/null && {
40023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40024 test ! -s conftest.err
40026 ac_header_preproc=yes
40028 $as_echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40031 ac_header_preproc=no
40034 rm -f conftest.err conftest.$ac_ext
40035 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40036 $as_echo "$ac_header_preproc" >&6; }
40038 # So? What about this header?
40039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40042 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40044 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40045 ac_header_preproc=yes
40048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40049 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40051 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40053 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40055 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40057 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40059 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40061 ## ------------------------------------ ##
40062 ## Report this to bug-coreutils@gnu.org ##
40063 ## ------------------------------------ ##
40065 ) | sed "s/^/$as_me: WARNING: /" >&2
40068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40069 $as_echo_n "checking for $ac_header... " >&6; }
40070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40071 $as_echo_n "(cached) " >&6
40073 eval "$as_ac_Header=\$ac_header_preproc"
40075 ac_res=`eval 'as_val=${'$as_ac_Header'}
40076 $as_echo "$as_val"'`
40077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40078 $as_echo "$ac_res" >&6; }
40081 if test `eval 'as_val=${'$as_ac_Header'}
40082 $as_echo "$as_val"'` = yes; then
40083 cat >>confdefs.h <<_ACEOF
40084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40091 if test $ac_cv_header_sys_inttypes_h = yes; then
40092 HAVE_SYS_INTTYPES_H=1
40094 HAVE_SYS_INTTYPES_H=0
40097 if test $ac_cv_header_sys_bitypes_h = yes; then
40098 HAVE_SYS_BITYPES_H=1
40100 HAVE_SYS_BITYPES_H=0
40112 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40113 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
40114 $as_echo_n "checking for bit size of $gltype... " >&6; }
40115 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
40116 $as_echo_n "(cached) " >&6
40118 if test "$cross_compiling" = yes; then
40119 # Depending upon the size, compute the lo and hi bounds.
40120 cat >conftest.$ac_ext <<_ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h. */
40127 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40128 included before <wchar.h>. */
40129 #include <stddef.h>
40130 #include <signal.h>
40135 #include <limits.h>
40139 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
40146 rm -f conftest.$ac_objext
40147 if { (ac_try="$ac_compile"
40148 case "(($ac_try" in
40149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40150 *) ac_try_echo=$ac_try;;
40152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40153 $as_echo "$ac_try_echo") >&5
40154 (eval "$ac_compile") 2>conftest.er1
40156 grep -v '^ *+' conftest.er1 >conftest.err
40158 cat conftest.err >&5
40159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); } && {
40161 test -z "$ac_c_werror_flag" ||
40162 test ! -s conftest.err
40163 } && test -s conftest.$ac_objext; then
40166 cat >conftest.$ac_ext <<_ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h. */
40173 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40174 included before <wchar.h>. */
40175 #include <stddef.h>
40176 #include <signal.h>
40181 #include <limits.h>
40185 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40192 rm -f conftest.$ac_objext
40193 if { (ac_try="$ac_compile"
40194 case "(($ac_try" in
40195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40196 *) ac_try_echo=$ac_try;;
40198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40199 $as_echo "$ac_try_echo") >&5
40200 (eval "$ac_compile") 2>conftest.er1
40202 grep -v '^ *+' conftest.er1 >conftest.err
40204 cat conftest.err >&5
40205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206 (exit $ac_status); } && {
40207 test -z "$ac_c_werror_flag" ||
40208 test ! -s conftest.err
40209 } && test -s conftest.$ac_objext; then
40210 ac_hi=$ac_mid; break
40212 $as_echo "$as_me: failed program was:" >&5
40213 sed 's/^/| /' conftest.$ac_ext >&5
40215 ac_lo=`expr $ac_mid + 1`
40216 if test $ac_lo -le $ac_mid; then
40220 ac_mid=`expr 2 '*' $ac_mid + 1`
40223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40226 $as_echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40229 cat >conftest.$ac_ext <<_ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40236 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40237 included before <wchar.h>. */
40238 #include <stddef.h>
40239 #include <signal.h>
40244 #include <limits.h>
40248 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
40255 rm -f conftest.$ac_objext
40256 if { (ac_try="$ac_compile"
40257 case "(($ac_try" in
40258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40259 *) ac_try_echo=$ac_try;;
40261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40262 $as_echo "$ac_try_echo") >&5
40263 (eval "$ac_compile") 2>conftest.er1
40265 grep -v '^ *+' conftest.er1 >conftest.err
40267 cat conftest.err >&5
40268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269 (exit $ac_status); } && {
40270 test -z "$ac_c_werror_flag" ||
40271 test ! -s conftest.err
40272 } && test -s conftest.$ac_objext; then
40275 cat >conftest.$ac_ext <<_ACEOF
40278 cat confdefs.h >>conftest.$ac_ext
40279 cat >>conftest.$ac_ext <<_ACEOF
40280 /* end confdefs.h. */
40282 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40283 included before <wchar.h>. */
40284 #include <stddef.h>
40285 #include <signal.h>
40290 #include <limits.h>
40294 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40301 rm -f conftest.$ac_objext
40302 if { (ac_try="$ac_compile"
40303 case "(($ac_try" in
40304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40305 *) ac_try_echo=$ac_try;;
40307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40308 $as_echo "$ac_try_echo") >&5
40309 (eval "$ac_compile") 2>conftest.er1
40311 grep -v '^ *+' conftest.er1 >conftest.err
40313 cat conftest.err >&5
40314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315 (exit $ac_status); } && {
40316 test -z "$ac_c_werror_flag" ||
40317 test ! -s conftest.err
40318 } && test -s conftest.$ac_objext; then
40319 ac_lo=$ac_mid; break
40321 $as_echo "$as_me: failed program was:" >&5
40322 sed 's/^/| /' conftest.$ac_ext >&5
40324 ac_hi=`expr '(' $ac_mid ')' - 1`
40325 if test $ac_mid -le $ac_hi; then
40329 ac_mid=`expr 2 '*' $ac_mid`
40332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40335 $as_echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40345 # Binary search between lo and hi bounds.
40346 while test "x$ac_lo" != "x$ac_hi"; do
40347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40348 cat >conftest.$ac_ext <<_ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h. */
40355 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40356 included before <wchar.h>. */
40357 #include <stddef.h>
40358 #include <signal.h>
40363 #include <limits.h>
40367 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40374 rm -f conftest.$ac_objext
40375 if { (ac_try="$ac_compile"
40376 case "(($ac_try" in
40377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40378 *) ac_try_echo=$ac_try;;
40380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40381 $as_echo "$ac_try_echo") >&5
40382 (eval "$ac_compile") 2>conftest.er1
40384 grep -v '^ *+' conftest.er1 >conftest.err
40386 cat conftest.err >&5
40387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40388 (exit $ac_status); } && {
40389 test -z "$ac_c_werror_flag" ||
40390 test ! -s conftest.err
40391 } && test -s conftest.$ac_objext; then
40394 $as_echo "$as_me: failed program was:" >&5
40395 sed 's/^/| /' conftest.$ac_ext >&5
40397 ac_lo=`expr '(' $ac_mid ')' + 1`
40400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40403 ?*) result=$ac_lo;;
40404 '') result=unknown ;;
40407 cat >conftest.$ac_ext <<_ACEOF
40410 cat confdefs.h >>conftest.$ac_ext
40411 cat >>conftest.$ac_ext <<_ACEOF
40412 /* end confdefs.h. */
40414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40415 included before <wchar.h>. */
40416 #include <stddef.h>
40417 #include <signal.h>
40422 #include <limits.h>
40423 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40424 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40426 #include <stdlib.h>
40431 FILE *f = fopen ("conftest.val", "w");
40434 if ((sizeof ($gltype) * CHAR_BIT) < 0)
40436 long int i = longval ();
40437 if (i != (sizeof ($gltype) * CHAR_BIT))
40439 fprintf (f, "%ld", i);
40443 unsigned long int i = ulongval ();
40444 if (i != (sizeof ($gltype) * CHAR_BIT))
40446 fprintf (f, "%lu", i);
40448 /* Do not output a trailing newline, as this causes \r\n confusion
40449 on some platforms. */
40450 return ferror (f) || fclose (f) != 0;
40456 rm -f conftest$ac_exeext
40457 if { (ac_try="$ac_link"
40458 case "(($ac_try" in
40459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40460 *) ac_try_echo=$ac_try;;
40462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40463 $as_echo "$ac_try_echo") >&5
40464 (eval "$ac_link") 2>&5
40466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40468 { (case "(($ac_try" in
40469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40470 *) ac_try_echo=$ac_try;;
40472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40473 $as_echo "$ac_try_echo") >&5
40474 (eval "$ac_try") 2>&5
40476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); }; }; then
40478 result=`cat conftest.val`
40480 $as_echo "$as_me: program exited with status $ac_status" >&5
40481 $as_echo "$as_me: failed program was:" >&5
40482 sed 's/^/| /' conftest.$ac_ext >&5
40484 ( exit $ac_status )
40487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40490 eval gl_cv_bitsizeof_${gltype}=\$result
40493 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
40494 $as_echo "$as_val"'`
40495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40496 $as_echo "$ac_res" >&6; }
40497 eval result=\$gl_cv_bitsizeof_${gltype}
40498 if test $result = unknown; then
40501 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40502 cat >>confdefs.h <<_ACEOF
40503 #define BITSIZEOF_${GLTYPE} $result
40506 eval BITSIZEOF_${GLTYPE}=\$result
40515 for gltype in sig_atomic_t wchar_t wint_t ; do
40516 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40517 $as_echo_n "checking whether $gltype is signed... " >&6; }
40518 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40519 $as_echo_n "(cached) " >&6
40521 cat >conftest.$ac_ext <<_ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h. */
40528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40529 included before <wchar.h>. */
40530 #include <stddef.h>
40531 #include <signal.h>
40536 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40545 rm -f conftest.$ac_objext
40546 if { (ac_try="$ac_compile"
40547 case "(($ac_try" in
40548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549 *) ac_try_echo=$ac_try;;
40551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40552 $as_echo "$ac_try_echo") >&5
40553 (eval "$ac_compile") 2>conftest.er1
40555 grep -v '^ *+' conftest.er1 >conftest.err
40557 cat conftest.err >&5
40558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); } && {
40560 test -z "$ac_c_werror_flag" ||
40561 test ! -s conftest.err
40562 } && test -s conftest.$ac_objext; then
40565 $as_echo "$as_me: failed program was:" >&5
40566 sed 's/^/| /' conftest.$ac_ext >&5
40571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40572 eval gl_cv_type_${gltype}_signed=\$result
40575 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
40576 $as_echo "$as_val"'`
40577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40578 $as_echo "$ac_res" >&6; }
40579 eval result=\$gl_cv_type_${gltype}_signed
40580 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40581 if test "$result" = yes; then
40582 cat >>confdefs.h <<_ACEOF
40583 #define HAVE_SIGNED_${GLTYPE} 1
40586 eval HAVE_SIGNED_${GLTYPE}=1
40588 eval HAVE_SIGNED_${GLTYPE}=0
40593 gl_cv_type_ptrdiff_t_signed=yes
40594 gl_cv_type_size_t_signed=no
40602 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40603 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40604 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40605 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40606 $as_echo_n "(cached) " >&6
40608 eval gl_cv_type_${gltype}_suffix=no
40609 eval result=\$gl_cv_type_${gltype}_signed
40610 if test "$result" = yes; then
40615 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40617 '') gltype1='int';;
40618 l) gltype1='long int';;
40619 ll) gltype1='long long int';;
40620 i64) gltype1='__int64';;
40621 u) gltype1='unsigned int';;
40622 ul) gltype1='unsigned long int';;
40623 ull) gltype1='unsigned long long int';;
40624 ui64)gltype1='unsigned __int64';;
40626 cat >conftest.$ac_ext <<_ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h. */
40633 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40634 included before <wchar.h>. */
40635 #include <stddef.h>
40636 #include <signal.h>
40641 extern $gltype foo;
40642 extern $gltype1 foo;
40651 rm -f conftest.$ac_objext
40652 if { (ac_try="$ac_compile"
40653 case "(($ac_try" in
40654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40655 *) ac_try_echo=$ac_try;;
40657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40658 $as_echo "$ac_try_echo") >&5
40659 (eval "$ac_compile") 2>conftest.er1
40661 grep -v '^ *+' conftest.er1 >conftest.err
40663 cat conftest.err >&5
40664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); } && {
40666 test -z "$ac_c_werror_flag" ||
40667 test ! -s conftest.err
40668 } && test -s conftest.$ac_objext; then
40669 eval gl_cv_type_${gltype}_suffix=\$glsuf
40671 $as_echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40678 eval result=\$gl_cv_type_${gltype}_suffix
40679 test "$result" != no && break
40682 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40683 $as_echo "$as_val"'`
40684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40685 $as_echo "$ac_res" >&6; }
40686 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40687 eval result=\$gl_cv_type_${gltype}_suffix
40688 test "$result" = no && result=
40689 eval ${GLTYPE}_SUFFIX=\$result
40690 cat >>confdefs.h <<_ACEOF
40691 #define ${GLTYPE}_SUFFIX $result
40704 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
40705 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40706 if test "${gl_cv_absolute_stdio_h+set}" = set; then
40707 $as_echo_n "(cached) " >&6
40714 if test $ac_cv_header_stdio_h = yes; then
40715 cat >conftest.$ac_ext <<_ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h. */
40723 gl_cv_absolute_stdio_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40724 sed -n '\#/stdio.h#{s#.*"\(.*/stdio.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40728 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdio_h" >&5
40729 $as_echo "$gl_cv_absolute_stdio_h" >&6; }
40730 cat >>confdefs.h <<_ACEOF
40731 #define ABSOLUTE_STDIO_H "$gl_cv_absolute_stdio_h"
40735 ABSOLUTE_STDIO_H=\"$gl_cv_absolute_stdio_h\"
40740 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
40741 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40742 if test "${gl_cv_absolute_stdlib_h+set}" = set; then
40743 $as_echo_n "(cached) " >&6
40750 if test $ac_cv_header_stdlib_h = yes; then
40751 cat >conftest.$ac_ext <<_ACEOF
40754 cat confdefs.h >>conftest.$ac_ext
40755 cat >>conftest.$ac_ext <<_ACEOF
40756 /* end confdefs.h. */
40757 #include <stdlib.h>
40759 gl_cv_absolute_stdlib_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40760 sed -n '\#/stdlib.h#{s#.*"\(.*/stdlib.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40764 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_stdlib_h" >&5
40765 $as_echo "$gl_cv_absolute_stdlib_h" >&6; }
40766 cat >>confdefs.h <<_ACEOF
40767 #define ABSOLUTE_STDLIB_H "$gl_cv_absolute_stdlib_h"
40771 ABSOLUTE_STDLIB_H=\"$gl_cv_absolute_stdlib_h\"
40775 gl_LIBOBJS="$gl_LIBOBJS mkstemp-safer.$ac_objext"
40782 for ac_func in stpcpy
40784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40786 $as_echo_n "checking for $ac_func... " >&6; }
40787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40788 $as_echo_n "(cached) " >&6
40790 cat >conftest.$ac_ext <<_ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h. */
40796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40798 #define $ac_func innocuous_$ac_func
40800 /* System header to define __stub macros and hopefully few prototypes,
40801 which can conflict with char $ac_func (); below.
40802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40803 <limits.h> exists even on freestanding compilers. */
40806 # include <limits.h>
40808 # include <assert.h>
40813 /* Override any GCC internal prototype to avoid an error.
40814 Use char because int might match the return type of a GCC
40815 builtin and then its argument prototype would still apply. */
40820 /* The GNU C library defines this for functions which it implements
40821 to always fail with ENOSYS. Some functions are actually named
40822 something starting with __ and the normal name is an alias. */
40823 #if defined __stub_$ac_func || defined __stub___$ac_func
40830 return $ac_func ();
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (ac_try="$ac_link"
40837 case "(($ac_try" in
40838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839 *) ac_try_echo=$ac_try;;
40841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40842 $as_echo "$ac_try_echo") >&5
40843 (eval "$ac_link") 2>conftest.er1
40845 grep -v '^ *+' conftest.er1 >conftest.err
40847 cat conftest.err >&5
40848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849 (exit $ac_status); } && {
40850 test -z "$ac_c_werror_flag" ||
40851 test ! -s conftest.err
40852 } && test -s conftest$ac_exeext &&
40853 $as_test_x conftest$ac_exeext; then
40854 eval "$as_ac_var=yes"
40856 $as_echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40859 eval "$as_ac_var=no"
40862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40863 conftest$ac_exeext conftest.$ac_ext
40865 ac_res=`eval 'as_val=${'$as_ac_var'}
40866 $as_echo "$as_val"'`
40867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40868 $as_echo "$ac_res" >&6; }
40869 if test `eval 'as_val=${'$as_ac_var'}
40870 $as_echo "$as_val"'` = yes; then
40871 cat >>confdefs.h <<_ACEOF
40872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40876 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40880 if test $ac_cv_func_stpcpy = no; then
40893 for ac_func in strcspn
40895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40897 $as_echo_n "checking for $ac_func... " >&6; }
40898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40899 $as_echo_n "(cached) " >&6
40901 cat >conftest.$ac_ext <<_ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h. */
40907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40909 #define $ac_func innocuous_$ac_func
40911 /* System header to define __stub macros and hopefully few prototypes,
40912 which can conflict with char $ac_func (); below.
40913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40914 <limits.h> exists even on freestanding compilers. */
40917 # include <limits.h>
40919 # include <assert.h>
40924 /* Override any GCC internal prototype to avoid an error.
40925 Use char because int might match the return type of a GCC
40926 builtin and then its argument prototype would still apply. */
40931 /* The GNU C library defines this for functions which it implements
40932 to always fail with ENOSYS. Some functions are actually named
40933 something starting with __ and the normal name is an alias. */
40934 #if defined __stub_$ac_func || defined __stub___$ac_func
40941 return $ac_func ();
40946 rm -f conftest.$ac_objext conftest$ac_exeext
40947 if { (ac_try="$ac_link"
40948 case "(($ac_try" in
40949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40950 *) ac_try_echo=$ac_try;;
40952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40953 $as_echo "$ac_try_echo") >&5
40954 (eval "$ac_link") 2>conftest.er1
40956 grep -v '^ *+' conftest.er1 >conftest.err
40958 cat conftest.err >&5
40959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 (exit $ac_status); } && {
40961 test -z "$ac_c_werror_flag" ||
40962 test ! -s conftest.err
40963 } && test -s conftest$ac_exeext &&
40964 $as_test_x conftest$ac_exeext; then
40965 eval "$as_ac_var=yes"
40967 $as_echo "$as_me: failed program was:" >&5
40968 sed 's/^/| /' conftest.$ac_ext >&5
40970 eval "$as_ac_var=no"
40973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40974 conftest$ac_exeext conftest.$ac_ext
40976 ac_res=`eval 'as_val=${'$as_ac_var'}
40977 $as_echo "$as_val"'`
40978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40979 $as_echo "$ac_res" >&6; }
40980 if test `eval 'as_val=${'$as_ac_var'}
40981 $as_echo "$as_val"'` = yes; then
40982 cat >>confdefs.h <<_ACEOF
40983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40987 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40991 if test $ac_cv_func_strcspn = no; then
40998 for ac_func in strdup
41000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41001 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41002 $as_echo_n "checking for $ac_func... " >&6; }
41003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41004 $as_echo_n "(cached) " >&6
41006 cat >conftest.$ac_ext <<_ACEOF
41009 cat confdefs.h >>conftest.$ac_ext
41010 cat >>conftest.$ac_ext <<_ACEOF
41011 /* end confdefs.h. */
41012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41014 #define $ac_func innocuous_$ac_func
41016 /* System header to define __stub macros and hopefully few prototypes,
41017 which can conflict with char $ac_func (); below.
41018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41019 <limits.h> exists even on freestanding compilers. */
41022 # include <limits.h>
41024 # include <assert.h>
41029 /* Override any GCC internal prototype to avoid an error.
41030 Use char because int might match the return type of a GCC
41031 builtin and then its argument prototype would still apply. */
41036 /* The GNU C library defines this for functions which it implements
41037 to always fail with ENOSYS. Some functions are actually named
41038 something starting with __ and the normal name is an alias. */
41039 #if defined __stub_$ac_func || defined __stub___$ac_func
41046 return $ac_func ();
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (ac_try="$ac_link"
41053 case "(($ac_try" in
41054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41055 *) ac_try_echo=$ac_try;;
41057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41058 $as_echo "$ac_try_echo") >&5
41059 (eval "$ac_link") 2>conftest.er1
41061 grep -v '^ *+' conftest.er1 >conftest.err
41063 cat conftest.err >&5
41064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065 (exit $ac_status); } && {
41066 test -z "$ac_c_werror_flag" ||
41067 test ! -s conftest.err
41068 } && test -s conftest$ac_exeext &&
41069 $as_test_x conftest$ac_exeext; then
41070 eval "$as_ac_var=yes"
41072 $as_echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41075 eval "$as_ac_var=no"
41078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41079 conftest$ac_exeext conftest.$ac_ext
41081 ac_res=`eval 'as_val=${'$as_ac_var'}
41082 $as_echo "$as_val"'`
41083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41084 $as_echo "$ac_res" >&6; }
41085 if test `eval 'as_val=${'$as_ac_var'}
41086 $as_echo "$as_val"'` = yes; then
41087 cat >>confdefs.h <<_ACEOF
41088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41092 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41100 if test $ac_cv_have_decl_strdup = no; then
41111 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
41113 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
41139 cat >>confdefs.h <<\_ACEOF
41140 #define my_strftime nstrftime
41156 if test $ac_cv_have_decl_strndup = no; then
41157 HAVE_DECL_STRNDUP=0
41160 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
41161 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
41162 $as_echo_n "checking for working strndup... " >&6; }
41163 if test "${gl_cv_func_strndup+set}" = set; then
41164 $as_echo_n "(cached) " >&6
41166 if test "$cross_compiling" = yes; then
41167 { $as_echo "$as_me:$LINENO: checking for strndup" >&5
41168 $as_echo_n "checking for strndup... " >&6; }
41169 if test "${ac_cv_func_strndup+set}" = set; then
41170 $as_echo_n "(cached) " >&6
41172 cat >conftest.$ac_ext <<_ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h. */
41178 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
41179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41180 #define strndup innocuous_strndup
41182 /* System header to define __stub macros and hopefully few prototypes,
41183 which can conflict with char strndup (); below.
41184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41185 <limits.h> exists even on freestanding compilers. */
41188 # include <limits.h>
41190 # include <assert.h>
41195 /* Override any GCC internal prototype to avoid an error.
41196 Use char because int might match the return type of a GCC
41197 builtin and then its argument prototype would still apply. */
41202 /* The GNU C library defines this for functions which it implements
41203 to always fail with ENOSYS. Some functions are actually named
41204 something starting with __ and the normal name is an alias. */
41205 #if defined __stub_strndup || defined __stub___strndup
41217 rm -f conftest.$ac_objext conftest$ac_exeext
41218 if { (ac_try="$ac_link"
41219 case "(($ac_try" in
41220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41221 *) ac_try_echo=$ac_try;;
41223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41224 $as_echo "$ac_try_echo") >&5
41225 (eval "$ac_link") 2>conftest.er1
41227 grep -v '^ *+' conftest.er1 >conftest.err
41229 cat conftest.err >&5
41230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41231 (exit $ac_status); } && {
41232 test -z "$ac_c_werror_flag" ||
41233 test ! -s conftest.err
41234 } && test -s conftest$ac_exeext &&
41235 $as_test_x conftest$ac_exeext; then
41236 ac_cv_func_strndup=yes
41238 $as_echo "$as_me: failed program was:" >&5
41239 sed 's/^/| /' conftest.$ac_ext >&5
41241 ac_cv_func_strndup=no
41244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41245 conftest$ac_exeext conftest.$ac_ext
41247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
41248 $as_echo "$ac_cv_func_strndup" >&6; }
41249 if test $ac_cv_func_strndup = yes; then
41250 cat >conftest.$ac_ext <<_ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h. */
41262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41263 $EGREP "too risky" >/dev/null 2>&1; then
41264 gl_cv_func_strndup=no
41266 gl_cv_func_strndup=yes
41271 gl_cv_func_strndup=no
41275 cat >conftest.$ac_ext <<_ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h. */
41282 #include <string.h>
41283 #include <stdlib.h>
41288 #ifndef HAVE_DECL_STRNDUP
41289 extern char *strndup (const char *, size_t);
41292 s = strndup ("some longer string", 15);
41294 s = strndup ("shorter string", 13);
41295 return s[13] != '\0';
41300 rm -f conftest$ac_exeext
41301 if { (ac_try="$ac_link"
41302 case "(($ac_try" in
41303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41304 *) ac_try_echo=$ac_try;;
41306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41307 $as_echo "$ac_try_echo") >&5
41308 (eval "$ac_link") 2>&5
41310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41312 { (case "(($ac_try" in
41313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41314 *) ac_try_echo=$ac_try;;
41316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41317 $as_echo "$ac_try_echo") >&5
41318 (eval "$ac_try") 2>&5
41320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321 (exit $ac_status); }; }; then
41322 gl_cv_func_strndup=yes
41324 $as_echo "$as_me: program exited with status $ac_status" >&5
41325 $as_echo "$as_me: failed program was:" >&5
41326 sed 's/^/| /' conftest.$ac_ext >&5
41328 ( exit $ac_status )
41329 gl_cv_func_strndup=no
41331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41336 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
41337 $as_echo "$gl_cv_func_strndup" >&6; }
41338 if test $gl_cv_func_strndup = yes; then
41340 cat >>confdefs.h <<\_ACEOF
41341 #define HAVE_STRNDUP 1
41346 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41362 if test $ac_cv_have_decl_strnlen = no; then
41363 HAVE_DECL_STRNLEN=0
41366 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
41367 $as_echo_n "checking for working strnlen... " >&6; }
41368 if test "${ac_cv_func_strnlen_working+set}" = set; then
41369 $as_echo_n "(cached) " >&6
41371 if test "$cross_compiling" = yes; then
41372 ac_cv_func_strnlen_working=no
41374 cat >conftest.$ac_ext <<_ACEOF
41377 cat confdefs.h >>conftest.$ac_ext
41378 cat >>conftest.$ac_ext <<_ACEOF
41379 /* end confdefs.h. */
41380 $ac_includes_default
41386 #define S_LEN (sizeof S - 1)
41388 /* At least one implementation is buggy: that of AIX 4.3 would
41389 give strnlen (S, 1) == 3. */
41392 for (i = 0; i < S_LEN + 1; ++i)
41394 int expected = i <= S_LEN ? i : S_LEN;
41395 if (strnlen (S, i) != expected)
41404 rm -f conftest$ac_exeext
41405 if { (ac_try="$ac_link"
41406 case "(($ac_try" in
41407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41408 *) ac_try_echo=$ac_try;;
41410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41411 $as_echo "$ac_try_echo") >&5
41412 (eval "$ac_link") 2>&5
41414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41416 { (case "(($ac_try" in
41417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41418 *) ac_try_echo=$ac_try;;
41420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41421 $as_echo "$ac_try_echo") >&5
41422 (eval "$ac_try") 2>&5
41424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425 (exit $ac_status); }; }; then
41426 ac_cv_func_strnlen_working=yes
41428 $as_echo "$as_me: program exited with status $ac_status" >&5
41429 $as_echo "$as_me: failed program was:" >&5
41430 sed 's/^/| /' conftest.$ac_ext >&5
41432 ( exit $ac_status )
41433 ac_cv_func_strnlen_working=no
41435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
41441 $as_echo "$ac_cv_func_strnlen_working" >&6; }
41442 test $ac_cv_func_strnlen_working = no && gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
41444 if test $ac_cv_func_strnlen_working = no; then
41445 # This is necessary because automake-1.6.1 doens't understand
41446 # that the above use of AC_FUNC_STRNLEN means we may have to use
41448 #AC_LIBOBJ(strnlen)
41450 cat >>confdefs.h <<\_ACEOF
41451 #define strnlen rpl_strnlen
41464 for ac_func in strpbrk
41466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41468 $as_echo_n "checking for $ac_func... " >&6; }
41469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41470 $as_echo_n "(cached) " >&6
41472 cat >conftest.$ac_ext <<_ACEOF
41475 cat confdefs.h >>conftest.$ac_ext
41476 cat >>conftest.$ac_ext <<_ACEOF
41477 /* end confdefs.h. */
41478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41480 #define $ac_func innocuous_$ac_func
41482 /* System header to define __stub macros and hopefully few prototypes,
41483 which can conflict with char $ac_func (); below.
41484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41485 <limits.h> exists even on freestanding compilers. */
41488 # include <limits.h>
41490 # include <assert.h>
41495 /* Override any GCC internal prototype to avoid an error.
41496 Use char because int might match the return type of a GCC
41497 builtin and then its argument prototype would still apply. */
41502 /* The GNU C library defines this for functions which it implements
41503 to always fail with ENOSYS. Some functions are actually named
41504 something starting with __ and the normal name is an alias. */
41505 #if defined __stub_$ac_func || defined __stub___$ac_func
41512 return $ac_func ();
41517 rm -f conftest.$ac_objext conftest$ac_exeext
41518 if { (ac_try="$ac_link"
41519 case "(($ac_try" in
41520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41521 *) ac_try_echo=$ac_try;;
41523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41524 $as_echo "$ac_try_echo") >&5
41525 (eval "$ac_link") 2>conftest.er1
41527 grep -v '^ *+' conftest.er1 >conftest.err
41529 cat conftest.err >&5
41530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531 (exit $ac_status); } && {
41532 test -z "$ac_c_werror_flag" ||
41533 test ! -s conftest.err
41534 } && test -s conftest$ac_exeext &&
41535 $as_test_x conftest$ac_exeext; then
41536 eval "$as_ac_var=yes"
41538 $as_echo "$as_me: failed program was:" >&5
41539 sed 's/^/| /' conftest.$ac_ext >&5
41541 eval "$as_ac_var=no"
41544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41545 conftest$ac_exeext conftest.$ac_ext
41547 ac_res=`eval 'as_val=${'$as_ac_var'}
41548 $as_echo "$as_val"'`
41549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41550 $as_echo "$ac_res" >&6; }
41551 if test `eval 'as_val=${'$as_ac_var'}
41552 $as_echo "$as_val"'` = yes; then
41553 cat >>confdefs.h <<_ACEOF
41554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41558 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41562 if test $ac_cv_func_strpbrk = no; then
41572 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
41573 $as_echo_n "checking for working strtod... " >&6; }
41574 if test "${ac_cv_func_strtod+set}" = set; then
41575 $as_echo_n "(cached) " >&6
41577 if test "$cross_compiling" = yes; then
41578 ac_cv_func_strtod=no
41580 cat >conftest.$ac_ext <<_ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h. */
41587 $ac_includes_default
41595 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
41596 char *string = " +69";
41599 value = strtod (string, &term);
41600 if (value != 69 || term != (string + 4))
41605 /* Under Solaris 2.4, strtod returns the wrong value for the
41606 terminating character under some conditions. */
41607 char *string = "NaN";
41609 strtod (string, &term);
41610 if (term != string && *(term - 1) == 0)
41617 rm -f conftest$ac_exeext
41618 if { (ac_try="$ac_link"
41619 case "(($ac_try" in
41620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41621 *) ac_try_echo=$ac_try;;
41623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41624 $as_echo "$ac_try_echo") >&5
41625 (eval "$ac_link") 2>&5
41627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41629 { (case "(($ac_try" in
41630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41631 *) ac_try_echo=$ac_try;;
41633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41634 $as_echo "$ac_try_echo") >&5
41635 (eval "$ac_try") 2>&5
41637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); }; }; then
41639 ac_cv_func_strtod=yes
41641 $as_echo "$as_me: program exited with status $ac_status" >&5
41642 $as_echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41645 ( exit $ac_status )
41646 ac_cv_func_strtod=no
41648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
41654 $as_echo "$ac_cv_func_strtod" >&6; }
41655 if test $ac_cv_func_strtod = no; then
41656 gl_LIBOBJS="$gl_LIBOBJS strtod.$ac_objext"
41657 { $as_echo "$as_me:$LINENO: checking for pow" >&5
41658 $as_echo_n "checking for pow... " >&6; }
41659 if test "${ac_cv_func_pow+set}" = set; then
41660 $as_echo_n "(cached) " >&6
41662 cat >conftest.$ac_ext <<_ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h. */
41668 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
41669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41670 #define pow innocuous_pow
41672 /* System header to define __stub macros and hopefully few prototypes,
41673 which can conflict with char pow (); below.
41674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41675 <limits.h> exists even on freestanding compilers. */
41678 # include <limits.h>
41680 # include <assert.h>
41685 /* Override any GCC internal prototype to avoid an error.
41686 Use char because int might match the return type of a GCC
41687 builtin and then its argument prototype would still apply. */
41692 /* The GNU C library defines this for functions which it implements
41693 to always fail with ENOSYS. Some functions are actually named
41694 something starting with __ and the normal name is an alias. */
41695 #if defined __stub_pow || defined __stub___pow
41707 rm -f conftest.$ac_objext conftest$ac_exeext
41708 if { (ac_try="$ac_link"
41709 case "(($ac_try" in
41710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41711 *) ac_try_echo=$ac_try;;
41713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41714 $as_echo "$ac_try_echo") >&5
41715 (eval "$ac_link") 2>conftest.er1
41717 grep -v '^ *+' conftest.er1 >conftest.err
41719 cat conftest.err >&5
41720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41721 (exit $ac_status); } && {
41722 test -z "$ac_c_werror_flag" ||
41723 test ! -s conftest.err
41724 } && test -s conftest$ac_exeext &&
41725 $as_test_x conftest$ac_exeext; then
41728 $as_echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41735 conftest$ac_exeext conftest.$ac_ext
41737 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
41738 $as_echo "$ac_cv_func_pow" >&6; }
41740 if test $ac_cv_func_pow = no; then
41741 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
41742 $as_echo_n "checking for pow in -lm... " >&6; }
41743 if test "${ac_cv_lib_m_pow+set}" = set; then
41744 $as_echo_n "(cached) " >&6
41746 ac_check_lib_save_LIBS=$LIBS
41748 cat >conftest.$ac_ext <<_ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h. */
41755 /* Override any GCC internal prototype to avoid an error.
41756 Use char because int might match the return type of a GCC
41757 builtin and then its argument prototype would still apply. */
41770 rm -f conftest.$ac_objext conftest$ac_exeext
41771 if { (ac_try="$ac_link"
41772 case "(($ac_try" in
41773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774 *) ac_try_echo=$ac_try;;
41776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41777 $as_echo "$ac_try_echo") >&5
41778 (eval "$ac_link") 2>conftest.er1
41780 grep -v '^ *+' conftest.er1 >conftest.err
41782 cat conftest.err >&5
41783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); } && {
41785 test -z "$ac_c_werror_flag" ||
41786 test ! -s conftest.err
41787 } && test -s conftest$ac_exeext &&
41788 $as_test_x conftest$ac_exeext; then
41789 ac_cv_lib_m_pow=yes
41791 $as_echo "$as_me: failed program was:" >&5
41792 sed 's/^/| /' conftest.$ac_ext >&5
41797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41798 conftest$ac_exeext conftest.$ac_ext
41799 LIBS=$ac_check_lib_save_LIBS
41801 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
41802 $as_echo "$ac_cv_lib_m_pow" >&6; }
41803 if test $ac_cv_lib_m_pow = yes; then
41806 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
41807 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
41814 if test $ac_cv_func_strtod = no; then
41816 cat >>confdefs.h <<\_ACEOF
41817 #define strtod rpl_strtod
41827 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
41828 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
41829 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
41830 $as_echo_n "(cached) " >&6
41832 cat >conftest.$ac_ext <<_ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41838 #include <inttypes.h>
41840 inttypes_h_defines_strtoimax
41843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41844 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
41845 jm_cv_func_strtoimax_macro=yes
41847 jm_cv_func_strtoimax_macro=no
41852 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
41853 $as_echo "$jm_cv_func_strtoimax_macro" >&6; }
41855 if test "$jm_cv_func_strtoimax_macro" != yes; then
41857 for ac_func in strtoimax
41859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41861 $as_echo_n "checking for $ac_func... " >&6; }
41862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41863 $as_echo_n "(cached) " >&6
41865 cat >conftest.$ac_ext <<_ACEOF
41868 cat confdefs.h >>conftest.$ac_ext
41869 cat >>conftest.$ac_ext <<_ACEOF
41870 /* end confdefs.h. */
41871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41873 #define $ac_func innocuous_$ac_func
41875 /* System header to define __stub macros and hopefully few prototypes,
41876 which can conflict with char $ac_func (); below.
41877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41878 <limits.h> exists even on freestanding compilers. */
41881 # include <limits.h>
41883 # include <assert.h>
41888 /* Override any GCC internal prototype to avoid an error.
41889 Use char because int might match the return type of a GCC
41890 builtin and then its argument prototype would still apply. */
41895 /* The GNU C library defines this for functions which it implements
41896 to always fail with ENOSYS. Some functions are actually named
41897 something starting with __ and the normal name is an alias. */
41898 #if defined __stub_$ac_func || defined __stub___$ac_func
41905 return $ac_func ();
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (ac_try="$ac_link"
41912 case "(($ac_try" in
41913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41914 *) ac_try_echo=$ac_try;;
41916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41917 $as_echo "$ac_try_echo") >&5
41918 (eval "$ac_link") 2>conftest.er1
41920 grep -v '^ *+' conftest.er1 >conftest.err
41922 cat conftest.err >&5
41923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); } && {
41925 test -z "$ac_c_werror_flag" ||
41926 test ! -s conftest.err
41927 } && test -s conftest$ac_exeext &&
41928 $as_test_x conftest$ac_exeext; then
41929 eval "$as_ac_var=yes"
41931 $as_echo "$as_me: failed program was:" >&5
41932 sed 's/^/| /' conftest.$ac_ext >&5
41934 eval "$as_ac_var=no"
41937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41938 conftest$ac_exeext conftest.$ac_ext
41940 ac_res=`eval 'as_val=${'$as_ac_var'}
41941 $as_echo "$as_val"'`
41942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41943 $as_echo "$ac_res" >&6; }
41944 if test `eval 'as_val=${'$as_ac_var'}
41945 $as_echo "$as_val"'` = yes; then
41946 cat >>confdefs.h <<_ACEOF
41947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41951 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41955 if test $ac_cv_func_strtoimax = no; then
41957 { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
41958 $as_echo_n "checking whether strtoll is declared... " >&6; }
41959 if test "${ac_cv_have_decl_strtoll+set}" = set; then
41960 $as_echo_n "(cached) " >&6
41962 cat >conftest.$ac_ext <<_ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h. */
41968 $ac_includes_default
41980 rm -f conftest.$ac_objext
41981 if { (ac_try="$ac_compile"
41982 case "(($ac_try" in
41983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41984 *) ac_try_echo=$ac_try;;
41986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41987 $as_echo "$ac_try_echo") >&5
41988 (eval "$ac_compile") 2>conftest.er1
41990 grep -v '^ *+' conftest.er1 >conftest.err
41992 cat conftest.err >&5
41993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); } && {
41995 test -z "$ac_c_werror_flag" ||
41996 test ! -s conftest.err
41997 } && test -s conftest.$ac_objext; then
41998 ac_cv_have_decl_strtoll=yes
42000 $as_echo "$as_me: failed program was:" >&5
42001 sed 's/^/| /' conftest.$ac_ext >&5
42003 ac_cv_have_decl_strtoll=no
42006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
42009 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
42010 if test $ac_cv_have_decl_strtoll = yes; then
42012 cat >>confdefs.h <<_ACEOF
42013 #define HAVE_DECL_STRTOLL 1
42018 cat >>confdefs.h <<_ACEOF
42019 #define HAVE_DECL_STRTOLL 0
42037 for ac_func in strtol
42039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42040 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42041 $as_echo_n "checking for $ac_func... " >&6; }
42042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42043 $as_echo_n "(cached) " >&6
42045 cat >conftest.$ac_ext <<_ACEOF
42048 cat confdefs.h >>conftest.$ac_ext
42049 cat >>conftest.$ac_ext <<_ACEOF
42050 /* end confdefs.h. */
42051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42053 #define $ac_func innocuous_$ac_func
42055 /* System header to define __stub macros and hopefully few prototypes,
42056 which can conflict with char $ac_func (); below.
42057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42058 <limits.h> exists even on freestanding compilers. */
42061 # include <limits.h>
42063 # include <assert.h>
42068 /* Override any GCC internal prototype to avoid an error.
42069 Use char because int might match the return type of a GCC
42070 builtin and then its argument prototype would still apply. */
42075 /* The GNU C library defines this for functions which it implements
42076 to always fail with ENOSYS. Some functions are actually named
42077 something starting with __ and the normal name is an alias. */
42078 #if defined __stub_$ac_func || defined __stub___$ac_func
42085 return $ac_func ();
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (ac_try="$ac_link"
42092 case "(($ac_try" in
42093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42094 *) ac_try_echo=$ac_try;;
42096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42097 $as_echo "$ac_try_echo") >&5
42098 (eval "$ac_link") 2>conftest.er1
42100 grep -v '^ *+' conftest.er1 >conftest.err
42102 cat conftest.err >&5
42103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104 (exit $ac_status); } && {
42105 test -z "$ac_c_werror_flag" ||
42106 test ! -s conftest.err
42107 } && test -s conftest$ac_exeext &&
42108 $as_test_x conftest$ac_exeext; then
42109 eval "$as_ac_var=yes"
42111 $as_echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42114 eval "$as_ac_var=no"
42117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42118 conftest$ac_exeext conftest.$ac_ext
42120 ac_res=`eval 'as_val=${'$as_ac_var'}
42121 $as_echo "$as_val"'`
42122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42123 $as_echo "$ac_res" >&6; }
42124 if test `eval 'as_val=${'$as_ac_var'}
42125 $as_echo "$as_val"'` = yes; then
42126 cat >>confdefs.h <<_ACEOF
42127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42131 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42138 if test "$ac_cv_type_long_long_int" = yes; then
42140 for ac_func in strtoll
42142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42144 $as_echo_n "checking for $ac_func... " >&6; }
42145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42146 $as_echo_n "(cached) " >&6
42148 cat >conftest.$ac_ext <<_ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h. */
42154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42156 #define $ac_func innocuous_$ac_func
42158 /* System header to define __stub macros and hopefully few prototypes,
42159 which can conflict with char $ac_func (); below.
42160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42161 <limits.h> exists even on freestanding compilers. */
42164 # include <limits.h>
42166 # include <assert.h>
42171 /* Override any GCC internal prototype to avoid an error.
42172 Use char because int might match the return type of a GCC
42173 builtin and then its argument prototype would still apply. */
42178 /* The GNU C library defines this for functions which it implements
42179 to always fail with ENOSYS. Some functions are actually named
42180 something starting with __ and the normal name is an alias. */
42181 #if defined __stub_$ac_func || defined __stub___$ac_func
42188 return $ac_func ();
42193 rm -f conftest.$ac_objext conftest$ac_exeext
42194 if { (ac_try="$ac_link"
42195 case "(($ac_try" in
42196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42197 *) ac_try_echo=$ac_try;;
42199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42200 $as_echo "$ac_try_echo") >&5
42201 (eval "$ac_link") 2>conftest.er1
42203 grep -v '^ *+' conftest.er1 >conftest.err
42205 cat conftest.err >&5
42206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42207 (exit $ac_status); } && {
42208 test -z "$ac_c_werror_flag" ||
42209 test ! -s conftest.err
42210 } && test -s conftest$ac_exeext &&
42211 $as_test_x conftest$ac_exeext; then
42212 eval "$as_ac_var=yes"
42214 $as_echo "$as_me: failed program was:" >&5
42215 sed 's/^/| /' conftest.$ac_ext >&5
42217 eval "$as_ac_var=no"
42220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42221 conftest$ac_exeext conftest.$ac_ext
42223 ac_res=`eval 'as_val=${'$as_ac_var'}
42224 $as_echo "$as_val"'`
42225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42226 $as_echo "$ac_res" >&6; }
42227 if test `eval 'as_val=${'$as_ac_var'}
42228 $as_echo "$as_val"'` = yes; then
42229 cat >>confdefs.h <<_ACEOF
42230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42234 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42238 if test $ac_cv_func_strtoll = no; then
42247 for ac_func in strtoul
42249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42250 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42251 $as_echo_n "checking for $ac_func... " >&6; }
42252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42253 $as_echo_n "(cached) " >&6
42255 cat >conftest.$ac_ext <<_ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h. */
42261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42263 #define $ac_func innocuous_$ac_func
42265 /* System header to define __stub macros and hopefully few prototypes,
42266 which can conflict with char $ac_func (); below.
42267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42268 <limits.h> exists even on freestanding compilers. */
42271 # include <limits.h>
42273 # include <assert.h>
42278 /* Override any GCC internal prototype to avoid an error.
42279 Use char because int might match the return type of a GCC
42280 builtin and then its argument prototype would still apply. */
42285 /* The GNU C library defines this for functions which it implements
42286 to always fail with ENOSYS. Some functions are actually named
42287 something starting with __ and the normal name is an alias. */
42288 #if defined __stub_$ac_func || defined __stub___$ac_func
42295 return $ac_func ();
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (ac_try="$ac_link"
42302 case "(($ac_try" in
42303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42304 *) ac_try_echo=$ac_try;;
42306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42307 $as_echo "$ac_try_echo") >&5
42308 (eval "$ac_link") 2>conftest.er1
42310 grep -v '^ *+' conftest.er1 >conftest.err
42312 cat conftest.err >&5
42313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42314 (exit $ac_status); } && {
42315 test -z "$ac_c_werror_flag" ||
42316 test ! -s conftest.err
42317 } && test -s conftest$ac_exeext &&
42318 $as_test_x conftest$ac_exeext; then
42319 eval "$as_ac_var=yes"
42321 $as_echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42324 eval "$as_ac_var=no"
42327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42328 conftest$ac_exeext conftest.$ac_ext
42330 ac_res=`eval 'as_val=${'$as_ac_var'}
42331 $as_echo "$as_val"'`
42332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42333 $as_echo "$ac_res" >&6; }
42334 if test `eval 'as_val=${'$as_ac_var'}
42335 $as_echo "$as_val"'` = yes; then
42336 cat >>confdefs.h <<_ACEOF
42337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42341 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42348 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
42350 for ac_func in strtoull
42352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42354 $as_echo_n "checking for $ac_func... " >&6; }
42355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42356 $as_echo_n "(cached) " >&6
42358 cat >conftest.$ac_ext <<_ACEOF
42361 cat confdefs.h >>conftest.$ac_ext
42362 cat >>conftest.$ac_ext <<_ACEOF
42363 /* end confdefs.h. */
42364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42366 #define $ac_func innocuous_$ac_func
42368 /* System header to define __stub macros and hopefully few prototypes,
42369 which can conflict with char $ac_func (); below.
42370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42371 <limits.h> exists even on freestanding compilers. */
42374 # include <limits.h>
42376 # include <assert.h>
42381 /* Override any GCC internal prototype to avoid an error.
42382 Use char because int might match the return type of a GCC
42383 builtin and then its argument prototype would still apply. */
42388 /* The GNU C library defines this for functions which it implements
42389 to always fail with ENOSYS. Some functions are actually named
42390 something starting with __ and the normal name is an alias. */
42391 #if defined __stub_$ac_func || defined __stub___$ac_func
42398 return $ac_func ();
42403 rm -f conftest.$ac_objext conftest$ac_exeext
42404 if { (ac_try="$ac_link"
42405 case "(($ac_try" in
42406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42407 *) ac_try_echo=$ac_try;;
42409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42410 $as_echo "$ac_try_echo") >&5
42411 (eval "$ac_link") 2>conftest.er1
42413 grep -v '^ *+' conftest.er1 >conftest.err
42415 cat conftest.err >&5
42416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417 (exit $ac_status); } && {
42418 test -z "$ac_c_werror_flag" ||
42419 test ! -s conftest.err
42420 } && test -s conftest$ac_exeext &&
42421 $as_test_x conftest$ac_exeext; then
42422 eval "$as_ac_var=yes"
42424 $as_echo "$as_me: failed program was:" >&5
42425 sed 's/^/| /' conftest.$ac_ext >&5
42427 eval "$as_ac_var=no"
42430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42431 conftest$ac_exeext conftest.$ac_ext
42433 ac_res=`eval 'as_val=${'$as_ac_var'}
42434 $as_echo "$as_val"'`
42435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42436 $as_echo "$ac_res" >&6; }
42437 if test `eval 'as_val=${'$as_ac_var'}
42438 $as_echo "$as_val"'` = yes; then
42439 cat >>confdefs.h <<_ACEOF
42440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42444 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42448 if test $ac_cv_func_strtoull = no; then
42459 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
42460 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
42461 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
42462 $as_echo_n "(cached) " >&6
42464 cat >conftest.$ac_ext <<_ACEOF
42467 cat confdefs.h >>conftest.$ac_ext
42468 cat >>conftest.$ac_ext <<_ACEOF
42469 /* end confdefs.h. */
42470 #include <inttypes.h>
42472 inttypes_h_defines_strtoumax
42475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42476 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
42477 jm_cv_func_strtoumax_macro=yes
42479 jm_cv_func_strtoumax_macro=no
42484 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
42485 $as_echo "$jm_cv_func_strtoumax_macro" >&6; }
42487 if test "$jm_cv_func_strtoumax_macro" != yes; then
42489 for ac_func in strtoumax
42491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42493 $as_echo_n "checking for $ac_func... " >&6; }
42494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42495 $as_echo_n "(cached) " >&6
42497 cat >conftest.$ac_ext <<_ACEOF
42500 cat confdefs.h >>conftest.$ac_ext
42501 cat >>conftest.$ac_ext <<_ACEOF
42502 /* end confdefs.h. */
42503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42505 #define $ac_func innocuous_$ac_func
42507 /* System header to define __stub macros and hopefully few prototypes,
42508 which can conflict with char $ac_func (); below.
42509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42510 <limits.h> exists even on freestanding compilers. */
42513 # include <limits.h>
42515 # include <assert.h>
42520 /* Override any GCC internal prototype to avoid an error.
42521 Use char because int might match the return type of a GCC
42522 builtin and then its argument prototype would still apply. */
42527 /* The GNU C library defines this for functions which it implements
42528 to always fail with ENOSYS. Some functions are actually named
42529 something starting with __ and the normal name is an alias. */
42530 #if defined __stub_$ac_func || defined __stub___$ac_func
42537 return $ac_func ();
42542 rm -f conftest.$ac_objext conftest$ac_exeext
42543 if { (ac_try="$ac_link"
42544 case "(($ac_try" in
42545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42546 *) ac_try_echo=$ac_try;;
42548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42549 $as_echo "$ac_try_echo") >&5
42550 (eval "$ac_link") 2>conftest.er1
42552 grep -v '^ *+' conftest.er1 >conftest.err
42554 cat conftest.err >&5
42555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); } && {
42557 test -z "$ac_c_werror_flag" ||
42558 test ! -s conftest.err
42559 } && test -s conftest$ac_exeext &&
42560 $as_test_x conftest$ac_exeext; then
42561 eval "$as_ac_var=yes"
42563 $as_echo "$as_me: failed program was:" >&5
42564 sed 's/^/| /' conftest.$ac_ext >&5
42566 eval "$as_ac_var=no"
42569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42570 conftest$ac_exeext conftest.$ac_ext
42572 ac_res=`eval 'as_val=${'$as_ac_var'}
42573 $as_echo "$as_val"'`
42574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42575 $as_echo "$ac_res" >&6; }
42576 if test `eval 'as_val=${'$as_ac_var'}
42577 $as_echo "$as_val"'` = yes; then
42578 cat >>confdefs.h <<_ACEOF
42579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42583 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42587 if test $ac_cv_func_strtoumax = no; then
42589 { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
42590 $as_echo_n "checking whether strtoull is declared... " >&6; }
42591 if test "${ac_cv_have_decl_strtoull+set}" = set; then
42592 $as_echo_n "(cached) " >&6
42594 cat >conftest.$ac_ext <<_ACEOF
42597 cat confdefs.h >>conftest.$ac_ext
42598 cat >>conftest.$ac_ext <<_ACEOF
42599 /* end confdefs.h. */
42600 $ac_includes_default
42612 rm -f conftest.$ac_objext
42613 if { (ac_try="$ac_compile"
42614 case "(($ac_try" in
42615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42616 *) ac_try_echo=$ac_try;;
42618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42619 $as_echo "$ac_try_echo") >&5
42620 (eval "$ac_compile") 2>conftest.er1
42622 grep -v '^ *+' conftest.er1 >conftest.err
42624 cat conftest.err >&5
42625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42626 (exit $ac_status); } && {
42627 test -z "$ac_c_werror_flag" ||
42628 test ! -s conftest.err
42629 } && test -s conftest.$ac_objext; then
42630 ac_cv_have_decl_strtoull=yes
42632 $as_echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42635 ac_cv_have_decl_strtoull=no
42638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42640 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
42641 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
42642 if test $ac_cv_have_decl_strtoull = yes; then
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_DECL_STRTOULL 1
42650 cat >>confdefs.h <<_ACEOF
42651 #define HAVE_DECL_STRTOULL 0
42671 for ac_func in strverscmp
42673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42674 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42675 $as_echo_n "checking for $ac_func... " >&6; }
42676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42677 $as_echo_n "(cached) " >&6
42679 cat >conftest.$ac_ext <<_ACEOF
42682 cat confdefs.h >>conftest.$ac_ext
42683 cat >>conftest.$ac_ext <<_ACEOF
42684 /* end confdefs.h. */
42685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42687 #define $ac_func innocuous_$ac_func
42689 /* System header to define __stub macros and hopefully few prototypes,
42690 which can conflict with char $ac_func (); below.
42691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42692 <limits.h> exists even on freestanding compilers. */
42695 # include <limits.h>
42697 # include <assert.h>
42702 /* Override any GCC internal prototype to avoid an error.
42703 Use char because int might match the return type of a GCC
42704 builtin and then its argument prototype would still apply. */
42709 /* The GNU C library defines this for functions which it implements
42710 to always fail with ENOSYS. Some functions are actually named
42711 something starting with __ and the normal name is an alias. */
42712 #if defined __stub_$ac_func || defined __stub___$ac_func
42719 return $ac_func ();
42724 rm -f conftest.$ac_objext conftest$ac_exeext
42725 if { (ac_try="$ac_link"
42726 case "(($ac_try" in
42727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42728 *) ac_try_echo=$ac_try;;
42730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42731 $as_echo "$ac_try_echo") >&5
42732 (eval "$ac_link") 2>conftest.er1
42734 grep -v '^ *+' conftest.er1 >conftest.err
42736 cat conftest.err >&5
42737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738 (exit $ac_status); } && {
42739 test -z "$ac_c_werror_flag" ||
42740 test ! -s conftest.err
42741 } && test -s conftest$ac_exeext &&
42742 $as_test_x conftest$ac_exeext; then
42743 eval "$as_ac_var=yes"
42745 $as_echo "$as_me: failed program was:" >&5
42746 sed 's/^/| /' conftest.$ac_ext >&5
42748 eval "$as_ac_var=no"
42751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42752 conftest$ac_exeext conftest.$ac_ext
42754 ac_res=`eval 'as_val=${'$as_ac_var'}
42755 $as_echo "$as_val"'`
42756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42757 $as_echo "$ac_res" >&6; }
42758 if test `eval 'as_val=${'$as_ac_var'}
42759 $as_echo "$as_val"'` = yes; then
42760 cat >>confdefs.h <<_ACEOF
42761 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42765 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42769 if test $ac_cv_func_strverscmp = no; then
42776 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
42777 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
42778 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
42779 $as_echo_n "(cached) " >&6
42782 cat >conftest.$ac_ext <<_ACEOF
42785 cat confdefs.h >>conftest.$ac_ext
42786 cat >>conftest.$ac_ext <<_ACEOF
42787 /* end confdefs.h. */
42788 #include <sys/socket.h>
42797 rm -f conftest.$ac_objext
42798 if { (ac_try="$ac_compile"
42799 case "(($ac_try" in
42800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42801 *) ac_try_echo=$ac_try;;
42803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42804 $as_echo "$ac_try_echo") >&5
42805 (eval "$ac_compile") 2>conftest.er1
42807 grep -v '^ *+' conftest.er1 >conftest.err
42809 cat conftest.err >&5
42810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811 (exit $ac_status); } && {
42812 test -z "$ac_c_werror_flag" ||
42813 test ! -s conftest.err
42814 } && test -s conftest.$ac_objext; then
42815 gl_cv_header_sys_socket_h_selfcontained=yes
42817 $as_echo "$as_me: failed program was:" >&5
42818 sed 's/^/| /' conftest.$ac_ext >&5
42820 gl_cv_header_sys_socket_h_selfcontained=no
42823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42826 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
42827 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
42828 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
42831 SYS_SOCKET_H='sys/socket.h'
42834 for ac_header in sys/socket.h
42836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42839 $as_echo_n "checking for $ac_header... " >&6; }
42840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42841 $as_echo_n "(cached) " >&6
42843 ac_res=`eval 'as_val=${'$as_ac_Header'}
42844 $as_echo "$as_val"'`
42845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42846 $as_echo "$ac_res" >&6; }
42848 # Is the header compilable?
42849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42850 $as_echo_n "checking $ac_header usability... " >&6; }
42851 cat >conftest.$ac_ext <<_ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h. */
42857 $ac_includes_default
42858 #include <$ac_header>
42860 rm -f conftest.$ac_objext
42861 if { (ac_try="$ac_compile"
42862 case "(($ac_try" in
42863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42864 *) ac_try_echo=$ac_try;;
42866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42867 $as_echo "$ac_try_echo") >&5
42868 (eval "$ac_compile") 2>conftest.er1
42870 grep -v '^ *+' conftest.er1 >conftest.err
42872 cat conftest.err >&5
42873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42874 (exit $ac_status); } && {
42875 test -z "$ac_c_werror_flag" ||
42876 test ! -s conftest.err
42877 } && test -s conftest.$ac_objext; then
42878 ac_header_compiler=yes
42880 $as_echo "$as_me: failed program was:" >&5
42881 sed 's/^/| /' conftest.$ac_ext >&5
42883 ac_header_compiler=no
42886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42888 $as_echo "$ac_header_compiler" >&6; }
42890 # Is the header present?
42891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42892 $as_echo_n "checking $ac_header presence... " >&6; }
42893 cat >conftest.$ac_ext <<_ACEOF
42896 cat confdefs.h >>conftest.$ac_ext
42897 cat >>conftest.$ac_ext <<_ACEOF
42898 /* end confdefs.h. */
42899 #include <$ac_header>
42901 if { (ac_try="$ac_cpp conftest.$ac_ext"
42902 case "(($ac_try" in
42903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42904 *) ac_try_echo=$ac_try;;
42906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42907 $as_echo "$ac_try_echo") >&5
42908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42910 grep -v '^ *+' conftest.er1 >conftest.err
42912 cat conftest.err >&5
42913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); } >/dev/null && {
42915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42916 test ! -s conftest.err
42918 ac_header_preproc=yes
42920 $as_echo "$as_me: failed program was:" >&5
42921 sed 's/^/| /' conftest.$ac_ext >&5
42923 ac_header_preproc=no
42926 rm -f conftest.err conftest.$ac_ext
42927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42928 $as_echo "$ac_header_preproc" >&6; }
42930 # So? What about this header?
42931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42937 ac_header_preproc=yes
42940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42953 ## ------------------------------------ ##
42954 ## Report this to bug-coreutils@gnu.org ##
42955 ## ------------------------------------ ##
42957 ) | sed "s/^/$as_me: WARNING: /" >&2
42960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42961 $as_echo_n "checking for $ac_header... " >&6; }
42962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42963 $as_echo_n "(cached) " >&6
42965 eval "$as_ac_Header=\$ac_header_preproc"
42967 ac_res=`eval 'as_val=${'$as_ac_Header'}
42968 $as_echo "$as_val"'`
42969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42970 $as_echo "$ac_res" >&6; }
42973 if test `eval 'as_val=${'$as_ac_Header'}
42974 $as_echo "$as_val"'` = yes; then
42975 cat >>confdefs.h <<_ACEOF
42976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42983 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
42984 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
42985 if test "${gl_cv_absolute_sys_socket_h+set}" = set; then
42986 $as_echo_n "(cached) " >&6
42993 if test $ac_cv_header_sys_socket_h = yes; then
42994 cat >conftest.$ac_ext <<_ACEOF
42997 cat confdefs.h >>conftest.$ac_ext
42998 cat >>conftest.$ac_ext <<_ACEOF
42999 /* end confdefs.h. */
43000 #include <sys/socket.h>
43002 gl_cv_absolute_sys_socket_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43003 sed -n '\#/sys/socket.h#{s#.*"\(.*/sys/socket.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
43007 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_socket_h" >&5
43008 $as_echo "$gl_cv_absolute_sys_socket_h" >&6; }
43009 cat >>confdefs.h <<_ACEOF
43010 #define ABSOLUTE_SYS_SOCKET_H "$gl_cv_absolute_sys_socket_h"
43014 ABSOLUTE_SYS_SOCKET_H=\"$gl_cv_absolute_sys_socket_h\"
43016 if test $ac_cv_header_sys_socket_h = yes; then
43017 HAVE_SYS_SOCKET_H=1
43021 HAVE_SYS_SOCKET_H=0
43024 for ac_header in winsock2.h ws2tcpip.h
43026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43029 $as_echo_n "checking for $ac_header... " >&6; }
43030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43031 $as_echo_n "(cached) " >&6
43033 ac_res=`eval 'as_val=${'$as_ac_Header'}
43034 $as_echo "$as_val"'`
43035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43036 $as_echo "$ac_res" >&6; }
43038 # Is the header compilable?
43039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43040 $as_echo_n "checking $ac_header usability... " >&6; }
43041 cat >conftest.$ac_ext <<_ACEOF
43044 cat confdefs.h >>conftest.$ac_ext
43045 cat >>conftest.$ac_ext <<_ACEOF
43046 /* end confdefs.h. */
43047 $ac_includes_default
43048 #include <$ac_header>
43050 rm -f conftest.$ac_objext
43051 if { (ac_try="$ac_compile"
43052 case "(($ac_try" in
43053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43054 *) ac_try_echo=$ac_try;;
43056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43057 $as_echo "$ac_try_echo") >&5
43058 (eval "$ac_compile") 2>conftest.er1
43060 grep -v '^ *+' conftest.er1 >conftest.err
43062 cat conftest.err >&5
43063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064 (exit $ac_status); } && {
43065 test -z "$ac_c_werror_flag" ||
43066 test ! -s conftest.err
43067 } && test -s conftest.$ac_objext; then
43068 ac_header_compiler=yes
43070 $as_echo "$as_me: failed program was:" >&5
43071 sed 's/^/| /' conftest.$ac_ext >&5
43073 ac_header_compiler=no
43076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43078 $as_echo "$ac_header_compiler" >&6; }
43080 # Is the header present?
43081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43082 $as_echo_n "checking $ac_header presence... " >&6; }
43083 cat >conftest.$ac_ext <<_ACEOF
43086 cat confdefs.h >>conftest.$ac_ext
43087 cat >>conftest.$ac_ext <<_ACEOF
43088 /* end confdefs.h. */
43089 #include <$ac_header>
43091 if { (ac_try="$ac_cpp conftest.$ac_ext"
43092 case "(($ac_try" in
43093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43094 *) ac_try_echo=$ac_try;;
43096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43097 $as_echo "$ac_try_echo") >&5
43098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43100 grep -v '^ *+' conftest.er1 >conftest.err
43102 cat conftest.err >&5
43103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43104 (exit $ac_status); } >/dev/null && {
43105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43106 test ! -s conftest.err
43108 ac_header_preproc=yes
43110 $as_echo "$as_me: failed program was:" >&5
43111 sed 's/^/| /' conftest.$ac_ext >&5
43113 ac_header_preproc=no
43116 rm -f conftest.err conftest.$ac_ext
43117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43118 $as_echo "$ac_header_preproc" >&6; }
43120 # So? What about this header?
43121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43127 ac_header_preproc=yes
43130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43143 ## ------------------------------------ ##
43144 ## Report this to bug-coreutils@gnu.org ##
43145 ## ------------------------------------ ##
43147 ) | sed "s/^/$as_me: WARNING: /" >&2
43150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43151 $as_echo_n "checking for $ac_header... " >&6; }
43152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43153 $as_echo_n "(cached) " >&6
43155 eval "$as_ac_Header=\$ac_header_preproc"
43157 ac_res=`eval 'as_val=${'$as_ac_Header'}
43158 $as_echo "$as_val"'`
43159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43160 $as_echo "$ac_res" >&6; }
43163 if test `eval 'as_val=${'$as_ac_Header'}
43164 $as_echo "$as_val"'` = yes; then
43165 cat >>confdefs.h <<_ACEOF
43166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43173 if test $ac_cv_header_winsock2_h = yes; then
43178 if test $ac_cv_header_ws2tcpip_h = yes; then
43190 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43191 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43192 if test -z "$MKDIR_P"; then
43193 if test "${ac_cv_path_mkdir+set}" = set; then
43194 $as_echo_n "(cached) " >&6
43196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43197 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43200 test -z "$as_dir" && as_dir=.
43201 for ac_prog in mkdir gmkdir; do
43202 for ac_exec_ext in '' $ac_executable_extensions; do
43203 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43204 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43205 'mkdir (GNU coreutils) '* | \
43206 'mkdir (coreutils) '* | \
43207 'mkdir (fileutils) '4.1*)
43208 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43218 if test "${ac_cv_path_mkdir+set}" = set; then
43219 MKDIR_P="$ac_cv_path_mkdir -p"
43221 # As a last resort, use the slow shell script. Don't cache a
43222 # value for MKDIR_P within a source directory, because that will
43223 # break other packages using the cache if that directory is
43224 # removed, or if the value is a relative name.
43225 test -d ./--version && rmdir ./--version
43226 MKDIR_P="$ac_install_sh -d"
43229 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43230 $as_echo "$MKDIR_P" >&6; }
43240 { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
43241 $as_echo_n "checking whether mkdir is declared... " >&6; }
43242 if test "${ac_cv_have_decl_mkdir+set}" = set; then
43243 $as_echo_n "(cached) " >&6
43245 cat >conftest.$ac_ext <<_ACEOF
43248 cat confdefs.h >>conftest.$ac_ext
43249 cat >>conftest.$ac_ext <<_ACEOF
43250 /* end confdefs.h. */
43251 #include <sys/stat.h>
43264 rm -f conftest.$ac_objext
43265 if { (ac_try="$ac_compile"
43266 case "(($ac_try" in
43267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43268 *) ac_try_echo=$ac_try;;
43270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43271 $as_echo "$ac_try_echo") >&5
43272 (eval "$ac_compile") 2>conftest.er1
43274 grep -v '^ *+' conftest.er1 >conftest.err
43276 cat conftest.err >&5
43277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278 (exit $ac_status); } && {
43279 test -z "$ac_c_werror_flag" ||
43280 test ! -s conftest.err
43281 } && test -s conftest.$ac_objext; then
43282 ac_cv_have_decl_mkdir=yes
43284 $as_echo "$as_me: failed program was:" >&5
43285 sed 's/^/| /' conftest.$ac_ext >&5
43287 ac_cv_have_decl_mkdir=no
43290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
43293 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
43294 if test $ac_cv_have_decl_mkdir = yes; then
43296 cat >>confdefs.h <<_ACEOF
43297 #define HAVE_DECL_MKDIR 1
43302 cat >>confdefs.h <<_ACEOF
43303 #define HAVE_DECL_MKDIR 0
43307 for ac_header in io.h
43309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43312 $as_echo_n "checking for $ac_header... " >&6; }
43313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43314 $as_echo_n "(cached) " >&6
43316 ac_res=`eval 'as_val=${'$as_ac_Header'}
43317 $as_echo "$as_val"'`
43318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43319 $as_echo "$ac_res" >&6; }
43321 # Is the header compilable?
43322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43323 $as_echo_n "checking $ac_header usability... " >&6; }
43324 cat >conftest.$ac_ext <<_ACEOF
43327 cat confdefs.h >>conftest.$ac_ext
43328 cat >>conftest.$ac_ext <<_ACEOF
43329 /* end confdefs.h. */
43330 $ac_includes_default
43331 #include <$ac_header>
43333 rm -f conftest.$ac_objext
43334 if { (ac_try="$ac_compile"
43335 case "(($ac_try" in
43336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43337 *) ac_try_echo=$ac_try;;
43339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43340 $as_echo "$ac_try_echo") >&5
43341 (eval "$ac_compile") 2>conftest.er1
43343 grep -v '^ *+' conftest.er1 >conftest.err
43345 cat conftest.err >&5
43346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43347 (exit $ac_status); } && {
43348 test -z "$ac_c_werror_flag" ||
43349 test ! -s conftest.err
43350 } && test -s conftest.$ac_objext; then
43351 ac_header_compiler=yes
43353 $as_echo "$as_me: failed program was:" >&5
43354 sed 's/^/| /' conftest.$ac_ext >&5
43356 ac_header_compiler=no
43359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43361 $as_echo "$ac_header_compiler" >&6; }
43363 # Is the header present?
43364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43365 $as_echo_n "checking $ac_header presence... " >&6; }
43366 cat >conftest.$ac_ext <<_ACEOF
43369 cat confdefs.h >>conftest.$ac_ext
43370 cat >>conftest.$ac_ext <<_ACEOF
43371 /* end confdefs.h. */
43372 #include <$ac_header>
43374 if { (ac_try="$ac_cpp conftest.$ac_ext"
43375 case "(($ac_try" in
43376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43377 *) ac_try_echo=$ac_try;;
43379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43380 $as_echo "$ac_try_echo") >&5
43381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43383 grep -v '^ *+' conftest.er1 >conftest.err
43385 cat conftest.err >&5
43386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387 (exit $ac_status); } >/dev/null && {
43388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43389 test ! -s conftest.err
43391 ac_header_preproc=yes
43393 $as_echo "$as_me: failed program was:" >&5
43394 sed 's/^/| /' conftest.$ac_ext >&5
43396 ac_header_preproc=no
43399 rm -f conftest.err conftest.$ac_ext
43400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43401 $as_echo "$ac_header_preproc" >&6; }
43403 # So? What about this header?
43404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43410 ac_header_preproc=yes
43413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43416 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43420 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43426 ## ------------------------------------ ##
43427 ## Report this to bug-coreutils@gnu.org ##
43428 ## ------------------------------------ ##
43430 ) | sed "s/^/$as_me: WARNING: /" >&2
43433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43434 $as_echo_n "checking for $ac_header... " >&6; }
43435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43436 $as_echo_n "(cached) " >&6
43438 eval "$as_ac_Header=\$ac_header_preproc"
43440 ac_res=`eval 'as_val=${'$as_ac_Header'}
43441 $as_echo "$as_val"'`
43442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43443 $as_echo "$ac_res" >&6; }
43446 if test `eval 'as_val=${'$as_ac_Header'}
43447 $as_echo "$as_val"'` = yes; then
43448 cat >>confdefs.h <<_ACEOF
43449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43463 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
43464 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
43465 if test "${gl_cv_absolute_sys_stat_h+set}" = set; then
43466 $as_echo_n "(cached) " >&6
43473 if test $ac_cv_header_sys_stat_h = yes; then
43474 cat >conftest.$ac_ext <<_ACEOF
43477 cat confdefs.h >>conftest.$ac_ext
43478 cat >>conftest.$ac_ext <<_ACEOF
43479 /* end confdefs.h. */
43480 #include <sys/stat.h>
43482 gl_cv_absolute_sys_stat_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43483 sed -n '\#/sys/stat.h#{s#.*"\(.*/sys/stat.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
43487 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_sys_stat_h" >&5
43488 $as_echo "$gl_cv_absolute_sys_stat_h" >&6; }
43489 cat >>confdefs.h <<_ACEOF
43490 #define ABSOLUTE_SYS_STAT_H "$gl_cv_absolute_sys_stat_h"
43494 ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\"
43496 SYS_STAT_H='sys/stat.h'
43499 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43500 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43501 if test -z "$MKDIR_P"; then
43502 if test "${ac_cv_path_mkdir+set}" = set; then
43503 $as_echo_n "(cached) " >&6
43505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43506 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43509 test -z "$as_dir" && as_dir=.
43510 for ac_prog in mkdir gmkdir; do
43511 for ac_exec_ext in '' $ac_executable_extensions; do
43512 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43513 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43514 'mkdir (GNU coreutils) '* | \
43515 'mkdir (coreutils) '* | \
43516 'mkdir (fileutils) '4.1*)
43517 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43527 if test "${ac_cv_path_mkdir+set}" = set; then
43528 MKDIR_P="$ac_cv_path_mkdir -p"
43530 # As a last resort, use the slow shell script. Don't cache a
43531 # value for MKDIR_P within a source directory, because that will
43532 # break other packages using the cache if that directory is
43533 # removed, or if the value is a relative name.
43534 test -d ./--version && rmdir ./--version
43535 MKDIR_P="$ac_install_sh -d"
43538 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43539 $as_echo "$MKDIR_P" >&6; }
43544 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43546 if test -z "$MKDIR_P"; then
43547 if test "${ac_cv_path_mkdir+set}" = set; then
43548 $as_echo_n "(cached) " >&6
43550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43554 test -z "$as_dir" && as_dir=.
43555 for ac_prog in mkdir gmkdir; do
43556 for ac_exec_ext in '' $ac_executable_extensions; do
43557 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43559 'mkdir (GNU coreutils) '* | \
43560 'mkdir (coreutils) '* | \
43561 'mkdir (fileutils) '4.1*)
43562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43572 if test "${ac_cv_path_mkdir+set}" = set; then
43573 MKDIR_P="$ac_cv_path_mkdir -p"
43575 # As a last resort, use the slow shell script. Don't cache a
43576 # value for MKDIR_P within a source directory, because that will
43577 # break other packages using the cache if that directory is
43578 # removed, or if the value is a relative name.
43579 test -d ./--version && rmdir ./--version
43580 MKDIR_P="$ac_install_sh -d"
43583 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43584 $as_echo "$MKDIR_P" >&6; }
43589 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
43603 { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
43604 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
43605 if test "${gl_cv_time_r_posix+set}" = set; then
43606 $as_echo_n "(cached) " >&6
43608 cat >conftest.$ac_ext <<_ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h. */
43618 /* We don't need to append 'restrict's to the argument types,
43619 even though the POSIX signature has the 'restrict's,
43620 since C99 says they can't affect type compatibility. */
43621 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
43627 rm -f conftest.$ac_objext
43628 if { (ac_try="$ac_compile"
43629 case "(($ac_try" in
43630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43631 *) ac_try_echo=$ac_try;;
43633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43634 $as_echo "$ac_try_echo") >&5
43635 (eval "$ac_compile") 2>conftest.er1
43637 grep -v '^ *+' conftest.er1 >conftest.err
43639 cat conftest.err >&5
43640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641 (exit $ac_status); } && {
43642 test -z "$ac_c_werror_flag" ||
43643 test ! -s conftest.err
43644 } && test -s conftest.$ac_objext; then
43645 gl_cv_time_r_posix=yes
43647 $as_echo "$as_me: failed program was:" >&5
43648 sed 's/^/| /' conftest.$ac_ext >&5
43650 gl_cv_time_r_posix=no
43653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43655 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
43656 $as_echo "$gl_cv_time_r_posix" >&6; }
43657 if test $gl_cv_time_r_posix = yes; then
43658 REPLACE_LOCALTIME_R=0
43660 REPLACE_LOCALTIME_R=1
43661 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
43672 { $as_echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
43673 $as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; }
43674 if test "${gl_cv_func_tzset_clobber+set}" = set; then
43675 $as_echo_n "(cached) " >&6
43678 if test "$cross_compiling" = yes; then
43679 gl_cv_func_tzset_clobber=yes
43681 cat >conftest.$ac_ext <<_ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h. */
43689 #include <stdlib.h>
43694 time_t t1 = 853958121;
43696 putenv ("TZ=GMT0");
43697 p = localtime (&t1);
43699 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
43701 return (p->tm_year != s.tm_year
43702 || p->tm_mon != s.tm_mon
43703 || p->tm_mday != s.tm_mday
43704 || p->tm_hour != s.tm_hour
43705 || p->tm_min != s.tm_min
43706 || p->tm_sec != s.tm_sec);
43710 rm -f conftest$ac_exeext
43711 if { (ac_try="$ac_link"
43712 case "(($ac_try" in
43713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43714 *) ac_try_echo=$ac_try;;
43716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43717 $as_echo "$ac_try_echo") >&5
43718 (eval "$ac_link") 2>&5
43720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43722 { (case "(($ac_try" in
43723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43724 *) ac_try_echo=$ac_try;;
43726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43727 $as_echo "$ac_try_echo") >&5
43728 (eval "$ac_try") 2>&5
43730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731 (exit $ac_status); }; }; then
43732 gl_cv_func_tzset_clobber=no
43734 $as_echo "$as_me: program exited with status $ac_status" >&5
43735 $as_echo "$as_me: failed program was:" >&5
43736 sed 's/^/| /' conftest.$ac_ext >&5
43738 ( exit $ac_status )
43739 gl_cv_func_tzset_clobber=yes
43741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43746 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
43747 $as_echo "$gl_cv_func_tzset_clobber" >&6; }
43750 cat >>confdefs.h <<\_ACEOF
43751 #define HAVE_RUN_TZSET_TEST 1
43755 if test $gl_cv_func_tzset_clobber = yes; then
43757 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
43760 for ac_header in sys/timeb.h
43762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43765 $as_echo_n "checking for $ac_header... " >&6; }
43766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43767 $as_echo_n "(cached) " >&6
43769 ac_res=`eval 'as_val=${'$as_ac_Header'}
43770 $as_echo "$as_val"'`
43771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43772 $as_echo "$ac_res" >&6; }
43774 # Is the header compilable?
43775 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43776 $as_echo_n "checking $ac_header usability... " >&6; }
43777 cat >conftest.$ac_ext <<_ACEOF
43780 cat confdefs.h >>conftest.$ac_ext
43781 cat >>conftest.$ac_ext <<_ACEOF
43782 /* end confdefs.h. */
43783 $ac_includes_default
43784 #include <$ac_header>
43786 rm -f conftest.$ac_objext
43787 if { (ac_try="$ac_compile"
43788 case "(($ac_try" in
43789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43790 *) ac_try_echo=$ac_try;;
43792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43793 $as_echo "$ac_try_echo") >&5
43794 (eval "$ac_compile") 2>conftest.er1
43796 grep -v '^ *+' conftest.er1 >conftest.err
43798 cat conftest.err >&5
43799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800 (exit $ac_status); } && {
43801 test -z "$ac_c_werror_flag" ||
43802 test ! -s conftest.err
43803 } && test -s conftest.$ac_objext; then
43804 ac_header_compiler=yes
43806 $as_echo "$as_me: failed program was:" >&5
43807 sed 's/^/| /' conftest.$ac_ext >&5
43809 ac_header_compiler=no
43812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43814 $as_echo "$ac_header_compiler" >&6; }
43816 # Is the header present?
43817 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43818 $as_echo_n "checking $ac_header presence... " >&6; }
43819 cat >conftest.$ac_ext <<_ACEOF
43822 cat confdefs.h >>conftest.$ac_ext
43823 cat >>conftest.$ac_ext <<_ACEOF
43824 /* end confdefs.h. */
43825 #include <$ac_header>
43827 if { (ac_try="$ac_cpp conftest.$ac_ext"
43828 case "(($ac_try" in
43829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43830 *) ac_try_echo=$ac_try;;
43832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43833 $as_echo "$ac_try_echo") >&5
43834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43836 grep -v '^ *+' conftest.er1 >conftest.err
43838 cat conftest.err >&5
43839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840 (exit $ac_status); } >/dev/null && {
43841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43842 test ! -s conftest.err
43844 ac_header_preproc=yes
43846 $as_echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43849 ac_header_preproc=no
43852 rm -f conftest.err conftest.$ac_ext
43853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43854 $as_echo "$ac_header_preproc" >&6; }
43856 # So? What about this header?
43857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43860 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43863 ac_header_preproc=yes
43866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43867 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43869 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43871 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43873 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43875 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43877 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43879 ## ------------------------------------ ##
43880 ## Report this to bug-coreutils@gnu.org ##
43881 ## ------------------------------------ ##
43883 ) | sed "s/^/$as_me: WARNING: /" >&2
43886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43887 $as_echo_n "checking for $ac_header... " >&6; }
43888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43889 $as_echo_n "(cached) " >&6
43891 eval "$as_ac_Header=\$ac_header_preproc"
43893 ac_res=`eval 'as_val=${'$as_ac_Header'}
43894 $as_echo "$as_val"'`
43895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43896 $as_echo "$ac_res" >&6; }
43899 if test `eval 'as_val=${'$as_ac_Header'}
43900 $as_echo "$as_val"'` = yes; then
43901 cat >>confdefs.h <<_ACEOF
43902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43910 for ac_func in _ftime
43912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43914 $as_echo_n "checking for $ac_func... " >&6; }
43915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43916 $as_echo_n "(cached) " >&6
43918 cat >conftest.$ac_ext <<_ACEOF
43921 cat confdefs.h >>conftest.$ac_ext
43922 cat >>conftest.$ac_ext <<_ACEOF
43923 /* end confdefs.h. */
43924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43926 #define $ac_func innocuous_$ac_func
43928 /* System header to define __stub macros and hopefully few prototypes,
43929 which can conflict with char $ac_func (); below.
43930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43931 <limits.h> exists even on freestanding compilers. */
43934 # include <limits.h>
43936 # include <assert.h>
43941 /* Override any GCC internal prototype to avoid an error.
43942 Use char because int might match the return type of a GCC
43943 builtin and then its argument prototype would still apply. */
43948 /* The GNU C library defines this for functions which it implements
43949 to always fail with ENOSYS. Some functions are actually named
43950 something starting with __ and the normal name is an alias. */
43951 #if defined __stub_$ac_func || defined __stub___$ac_func
43958 return $ac_func ();
43963 rm -f conftest.$ac_objext conftest$ac_exeext
43964 if { (ac_try="$ac_link"
43965 case "(($ac_try" in
43966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43967 *) ac_try_echo=$ac_try;;
43969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43970 $as_echo "$ac_try_echo") >&5
43971 (eval "$ac_link") 2>conftest.er1
43973 grep -v '^ *+' conftest.er1 >conftest.err
43975 cat conftest.err >&5
43976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977 (exit $ac_status); } && {
43978 test -z "$ac_c_werror_flag" ||
43979 test ! -s conftest.err
43980 } && test -s conftest$ac_exeext &&
43981 $as_test_x conftest$ac_exeext; then
43982 eval "$as_ac_var=yes"
43984 $as_echo "$as_me: failed program was:" >&5
43985 sed 's/^/| /' conftest.$ac_ext >&5
43987 eval "$as_ac_var=no"
43990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43991 conftest$ac_exeext conftest.$ac_ext
43993 ac_res=`eval 'as_val=${'$as_ac_var'}
43994 $as_echo "$as_val"'`
43995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43996 $as_echo "$ac_res" >&6; }
43997 if test `eval 'as_val=${'$as_ac_var'}
43998 $as_echo "$as_val"'` = yes; then
43999 cat >>confdefs.h <<_ACEOF
44000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44008 cat >>confdefs.h <<\_ACEOF
44009 #define gmtime rpl_gmtime
44013 cat >>confdefs.h <<\_ACEOF
44014 #define localtime rpl_localtime
44020 cat >>confdefs.h <<\_ACEOF
44021 #define tzset rpl_tzset
44025 cat >>confdefs.h <<\_ACEOF
44026 #define TZSET_CLOBBERS_LOCALTIME 1
44043 if test $ac_cv_header_unistd_h = yes; then
44045 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
44046 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
44047 if test "${gl_cv_absolute_unistd_h+set}" = set; then
44048 $as_echo_n "(cached) " >&6
44055 if test $ac_cv_header_unistd_h = yes; then
44056 cat >conftest.$ac_ext <<_ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h. */
44062 #include <unistd.h>
44064 gl_cv_absolute_unistd_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44065 sed -n '\#/unistd.h#{s#.*"\(.*/unistd.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44069 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_unistd_h" >&5
44070 $as_echo "$gl_cv_absolute_unistd_h" >&6; }
44071 cat >>confdefs.h <<_ACEOF
44072 #define ABSOLUTE_UNISTD_H "$gl_cv_absolute_unistd_h"
44076 ABSOLUTE_UNISTD_H=\"$gl_cv_absolute_unistd_h\"
44090 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
44091 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
44092 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
44094 { $as_echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
44095 $as_echo_n "checking whether a running program can be unlinked... " >&6; }
44096 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
44097 $as_echo_n "(cached) " >&6
44100 if test "$cross_compiling" = yes; then
44101 jm_cv_func_unlink_busy_text=no
44104 cat >conftest.$ac_ext <<_ACEOF
44107 cat confdefs.h >>conftest.$ac_ext
44108 cat >>conftest.$ac_ext <<_ACEOF
44109 /* end confdefs.h. */
44110 $ac_includes_default
44112 main (int argc, char **argv)
44114 return !argc || unlink (argv[0]) != 0;
44117 rm -f conftest$ac_exeext
44118 if { (ac_try="$ac_link"
44119 case "(($ac_try" in
44120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44121 *) ac_try_echo=$ac_try;;
44123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44124 $as_echo "$ac_try_echo") >&5
44125 (eval "$ac_link") 2>&5
44127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44129 { (case "(($ac_try" in
44130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44131 *) ac_try_echo=$ac_try;;
44133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44134 $as_echo "$ac_try_echo") >&5
44135 (eval "$ac_try") 2>&5
44137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138 (exit $ac_status); }; }; then
44139 jm_cv_func_unlink_busy_text=yes
44141 $as_echo "$as_me: program exited with status $ac_status" >&5
44142 $as_echo "$as_me: failed program was:" >&5
44143 sed 's/^/| /' conftest.$ac_ext >&5
44145 ( exit $ac_status )
44146 jm_cv_func_unlink_busy_text=no
44148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44155 { $as_echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
44156 $as_echo "$jm_cv_func_unlink_busy_text" >&6; }
44158 if test $jm_cv_func_unlink_busy_text = no; then
44159 INSTALL=$ac_install_sh
44171 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
44173 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
44174 # and Cygwin never let anyone (even root) unlink directories.
44175 # If anyone knows of another system for which unlink can never
44176 # remove a directory, please report it to <bug-coreutils@gnu.org>.
44177 # Unfortunately this is difficult to test for, since it requires root access
44178 # and might create garbage in the file system,
44179 # so the code below simply relies on the kernel name and version number.
44182 *-*-linux-* | *-*-linux | \
44183 *-*-freebsd2.2* | *-*-freebsd[3-9]* | *-*-freebsd[1-9][0-9]* | \
44186 cat >>confdefs.h <<\_ACEOF
44187 #define UNLINK_CANNOT_UNLINK_DIR 1
44194 cat >>confdefs.h <<\_ACEOF
44195 #define USE_UNLOCKED_IO 1
44255 { $as_echo "$as_me:$LINENO: checking for /proc/uptime" >&5
44256 $as_echo_n "checking for /proc/uptime... " >&6; }
44257 if test "${jm_cv_have_proc_uptime+set}" = set; then
44258 $as_echo_n "(cached) " >&6
44260 jm_cv_have_proc_uptime=no
44261 test -f /proc/uptime \
44262 && test "$cross_compiling" = no \
44263 && cat < /proc/uptime >/dev/null 2>/dev/null \
44264 && jm_cv_have_proc_uptime=yes
44266 { $as_echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
44267 $as_echo "$jm_cv_have_proc_uptime" >&6; }
44268 if test $jm_cv_have_proc_uptime = yes; then
44270 cat >>confdefs.h <<\_ACEOF
44271 #define HAVE_PROC_UPTIME 1
44277 gl_LIBOBJS="$gl_LIBOBJS userspec.$ac_objext"
44288 if test $ac_cv_func_utime_null = no; then
44289 gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
44291 cat >>confdefs.h <<\_ACEOF
44292 #define utime rpl_utime
44303 { $as_echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
44304 $as_echo_n "checking whether utimes accepts a null argument... " >&6; }
44305 if test "${ac_cv_func_utimes_null+set}" = set; then
44306 $as_echo_n "(cached) " >&6
44308 rm -f conftest.data; > conftest.data
44309 if test "$cross_compiling" = yes; then
44310 ac_cv_func_utimes_null=no
44312 cat >conftest.$ac_ext <<_ACEOF
44315 cat confdefs.h >>conftest.$ac_ext
44316 cat >>conftest.$ac_ext <<_ACEOF
44317 /* end confdefs.h. */
44319 /* In case stat has been defined to rpl_stat, undef it here. */
44321 #include <sys/types.h>
44322 #include <sys/stat.h>
44323 #include <sys/time.h>
44327 return ! (stat ("conftest.data", &s) == 0
44328 && utimes ("conftest.data", 0) == 0
44329 && stat ("conftest.data", &t) == 0
44330 && t.st_mtime >= s.st_mtime
44331 && t.st_mtime - s.st_mtime < 120));
44334 rm -f conftest$ac_exeext
44335 if { (ac_try="$ac_link"
44336 case "(($ac_try" in
44337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44338 *) ac_try_echo=$ac_try;;
44340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44341 $as_echo "$ac_try_echo") >&5
44342 (eval "$ac_link") 2>&5
44344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44346 { (case "(($ac_try" in
44347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44348 *) ac_try_echo=$ac_try;;
44350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44351 $as_echo "$ac_try_echo") >&5
44352 (eval "$ac_try") 2>&5
44354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44355 (exit $ac_status); }; }; then
44356 ac_cv_func_utimes_null=yes
44358 $as_echo "$as_me: program exited with status $ac_status" >&5
44359 $as_echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44362 ( exit $ac_status )
44363 ac_cv_func_utimes_null=no
44365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44369 rm -f core core.* *.core
44371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
44372 $as_echo "$ac_cv_func_utimes_null" >&6; }
44374 if test $ac_cv_func_utimes_null = yes; then
44376 cat >>confdefs.h <<\_ACEOF
44377 #define HAVE_UTIMES_NULL 1
44387 gl_LIBOBJS="$gl_LIBOBJS utimecmp.$ac_objext"
44393 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
44415 if test $ac_cv_func_vasnprintf = no; then
44423 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
44424 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
44425 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
44426 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
44427 if test $ac_cv_func_vasnprintf = yes; then
44429 cat >>confdefs.h <<\_ACEOF
44430 #define REPLACE_VASNPRINTF 1
44446 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
44447 $as_echo_n "checking for ptrdiff_t... " >&6; }
44448 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
44449 $as_echo_n "(cached) " >&6
44451 cat >conftest.$ac_ext <<_ACEOF
44454 cat confdefs.h >>conftest.$ac_ext
44455 cat >>conftest.$ac_ext <<_ACEOF
44456 /* end confdefs.h. */
44457 $ac_includes_default
44458 typedef ptrdiff_t ac__type_new_;
44462 if ((ac__type_new_ *) 0)
44464 if (sizeof (ac__type_new_))
44470 rm -f conftest.$ac_objext
44471 if { (ac_try="$ac_compile"
44472 case "(($ac_try" in
44473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44474 *) ac_try_echo=$ac_try;;
44476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44477 $as_echo "$ac_try_echo") >&5
44478 (eval "$ac_compile") 2>conftest.er1
44480 grep -v '^ *+' conftest.er1 >conftest.err
44482 cat conftest.err >&5
44483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); } && {
44485 test -z "$ac_c_werror_flag" ||
44486 test ! -s conftest.err
44487 } && test -s conftest.$ac_objext; then
44488 ac_cv_type_ptrdiff_t=yes
44490 $as_echo "$as_me: failed program was:" >&5
44491 sed 's/^/| /' conftest.$ac_ext >&5
44493 ac_cv_type_ptrdiff_t=no
44496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44498 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
44499 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
44500 if test $ac_cv_type_ptrdiff_t = yes; then
44502 cat >>confdefs.h <<_ACEOF
44503 #define HAVE_PTRDIFF_T 1
44519 for ac_func in snprintf wcslen
44521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44523 $as_echo_n "checking for $ac_func... " >&6; }
44524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44525 $as_echo_n "(cached) " >&6
44527 cat >conftest.$ac_ext <<_ACEOF
44530 cat confdefs.h >>conftest.$ac_ext
44531 cat >>conftest.$ac_ext <<_ACEOF
44532 /* end confdefs.h. */
44533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44535 #define $ac_func innocuous_$ac_func
44537 /* System header to define __stub macros and hopefully few prototypes,
44538 which can conflict with char $ac_func (); below.
44539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44540 <limits.h> exists even on freestanding compilers. */
44543 # include <limits.h>
44545 # include <assert.h>
44550 /* Override any GCC internal prototype to avoid an error.
44551 Use char because int might match the return type of a GCC
44552 builtin and then its argument prototype would still apply. */
44557 /* The GNU C library defines this for functions which it implements
44558 to always fail with ENOSYS. Some functions are actually named
44559 something starting with __ and the normal name is an alias. */
44560 #if defined __stub_$ac_func || defined __stub___$ac_func
44567 return $ac_func ();
44572 rm -f conftest.$ac_objext conftest$ac_exeext
44573 if { (ac_try="$ac_link"
44574 case "(($ac_try" in
44575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44576 *) ac_try_echo=$ac_try;;
44578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44579 $as_echo "$ac_try_echo") >&5
44580 (eval "$ac_link") 2>conftest.er1
44582 grep -v '^ *+' conftest.er1 >conftest.err
44584 cat conftest.err >&5
44585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44586 (exit $ac_status); } && {
44587 test -z "$ac_c_werror_flag" ||
44588 test ! -s conftest.err
44589 } && test -s conftest$ac_exeext &&
44590 $as_test_x conftest$ac_exeext; then
44591 eval "$as_ac_var=yes"
44593 $as_echo "$as_me: failed program was:" >&5
44594 sed 's/^/| /' conftest.$ac_ext >&5
44596 eval "$as_ac_var=no"
44599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44600 conftest$ac_exeext conftest.$ac_ext
44602 ac_res=`eval 'as_val=${'$as_ac_var'}
44603 $as_echo "$as_val"'`
44604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44605 $as_echo "$ac_res" >&6; }
44606 if test `eval 'as_val=${'$as_ac_var'}
44607 $as_echo "$as_val"'` = yes; then
44608 cat >>confdefs.h <<_ACEOF
44609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44623 for ac_func in vasprintf
44625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44626 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44627 $as_echo_n "checking for $ac_func... " >&6; }
44628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44629 $as_echo_n "(cached) " >&6
44631 cat >conftest.$ac_ext <<_ACEOF
44634 cat confdefs.h >>conftest.$ac_ext
44635 cat >>conftest.$ac_ext <<_ACEOF
44636 /* end confdefs.h. */
44637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44639 #define $ac_func innocuous_$ac_func
44641 /* System header to define __stub macros and hopefully few prototypes,
44642 which can conflict with char $ac_func (); below.
44643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44644 <limits.h> exists even on freestanding compilers. */
44647 # include <limits.h>
44649 # include <assert.h>
44654 /* Override any GCC internal prototype to avoid an error.
44655 Use char because int might match the return type of a GCC
44656 builtin and then its argument prototype would still apply. */
44661 /* The GNU C library defines this for functions which it implements
44662 to always fail with ENOSYS. Some functions are actually named
44663 something starting with __ and the normal name is an alias. */
44664 #if defined __stub_$ac_func || defined __stub___$ac_func
44671 return $ac_func ();
44676 rm -f conftest.$ac_objext conftest$ac_exeext
44677 if { (ac_try="$ac_link"
44678 case "(($ac_try" in
44679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44680 *) ac_try_echo=$ac_try;;
44682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44683 $as_echo "$ac_try_echo") >&5
44684 (eval "$ac_link") 2>conftest.er1
44686 grep -v '^ *+' conftest.er1 >conftest.err
44688 cat conftest.err >&5
44689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690 (exit $ac_status); } && {
44691 test -z "$ac_c_werror_flag" ||
44692 test ! -s conftest.err
44693 } && test -s conftest$ac_exeext &&
44694 $as_test_x conftest$ac_exeext; then
44695 eval "$as_ac_var=yes"
44697 $as_echo "$as_me: failed program was:" >&5
44698 sed 's/^/| /' conftest.$ac_ext >&5
44700 eval "$as_ac_var=no"
44703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44704 conftest$ac_exeext conftest.$ac_ext
44706 ac_res=`eval 'as_val=${'$as_ac_var'}
44707 $as_echo "$as_val"'`
44708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44709 $as_echo "$ac_res" >&6; }
44710 if test `eval 'as_val=${'$as_ac_var'}
44711 $as_echo "$as_val"'` = yes; then
44712 cat >>confdefs.h <<_ACEOF
44713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44719 if test $ac_cv_func_vasprintf = no; then
44721 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
44722 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
44723 if test $ac_cv_func_vasprintf = yes; then
44725 cat >>confdefs.h <<\_ACEOF
44726 #define REPLACE_VASPRINTF 1
44741 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
44742 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
44743 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
44744 $as_echo_n "(cached) " >&6
44746 cat >conftest.$ac_ext <<_ACEOF
44750 rm -f conftest.$ac_objext
44751 if { (ac_try="$ac_compile"
44752 case "(($ac_try" in
44753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44754 *) ac_try_echo=$ac_try;;
44756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44757 $as_echo "$ac_try_echo") >&5
44758 (eval "$ac_compile") 2>conftest.er1
44760 grep -v '^ *+' conftest.er1 >conftest.err
44762 cat conftest.err >&5
44763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44764 (exit $ac_status); } && {
44765 test -z "$ac_c_werror_flag" ||
44766 test ! -s conftest.err
44767 } && test -s conftest.$ac_objext; then
44768 gl_cv_header_wchar_h_standalone=yes
44770 $as_echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44773 gl_cv_header_wchar_h_standalone=no
44776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44778 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
44779 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
44780 if test $gl_cv_header_wchar_h_standalone = yes; then
44783 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
44784 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
44785 if test "${gl_cv_absolute_wchar_h+set}" = set; then
44786 $as_echo_n "(cached) " >&6
44793 if test $ac_cv_header_wchar_h = yes; then
44794 cat >conftest.$ac_ext <<_ACEOF
44797 cat confdefs.h >>conftest.$ac_ext
44798 cat >>conftest.$ac_ext <<_ACEOF
44799 /* end confdefs.h. */
44802 gl_cv_absolute_wchar_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44803 sed -n '\#/wchar.h#{s#.*"\(.*/wchar.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44807 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_wchar_h" >&5
44808 $as_echo "$gl_cv_absolute_wchar_h" >&6; }
44809 cat >>confdefs.h <<_ACEOF
44810 #define ABSOLUTE_WCHAR_H "$gl_cv_absolute_wchar_h"
44814 ABSOLUTE_WCHAR_H=\"$gl_cv_absolute_wchar_h\"
44836 if test $gt_cv_c_wint_t = yes; then
44844 if test $ac_cv_header_wctype_h = yes; then
44845 if test "$ac_cv_func_iswcntrl" = yes; then
44848 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
44849 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
44850 if test "${gl_cv_absolute_wctype_h+set}" = set; then
44851 $as_echo_n "(cached) " >&6
44858 if test $ac_cv_header_wctype_h = yes; then
44859 cat >conftest.$ac_ext <<_ACEOF
44862 cat confdefs.h >>conftest.$ac_ext
44863 cat >>conftest.$ac_ext <<_ACEOF
44864 /* end confdefs.h. */
44865 #include <wctype.h>
44867 gl_cv_absolute_wctype_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44868 sed -n '\#/wctype.h#{s#.*"\(.*/wctype.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
44872 { $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_wctype_h" >&5
44873 $as_echo "$gl_cv_absolute_wctype_h" >&6; }
44874 cat >>confdefs.h <<_ACEOF
44875 #define ABSOLUTE_WCTYPE_H "$gl_cv_absolute_wctype_h"
44879 ABSOLUTE_WCTYPE_H=\"$gl_cv_absolute_wctype_h\"
44882 ABSOLUTE_WCTYPE_H=\"no/such/file/wctype.h\"
44909 { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
44910 $as_echo_n "checking whether wcwidth is declared... " >&6; }
44911 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
44912 $as_echo_n "(cached) " >&6
44914 cat >conftest.$ac_ext <<_ACEOF
44917 cat confdefs.h >>conftest.$ac_ext
44918 cat >>conftest.$ac_ext <<_ACEOF
44919 /* end confdefs.h. */
44921 /* AIX 3.2.5 declares wcwidth in <string.h>. */
44922 #include <string.h>
44923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
44926 before <wchar.h>. */
44927 #include <stddef.h>
44944 rm -f conftest.$ac_objext
44945 if { (ac_try="$ac_compile"
44946 case "(($ac_try" in
44947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44948 *) ac_try_echo=$ac_try;;
44950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44951 $as_echo "$ac_try_echo") >&5
44952 (eval "$ac_compile") 2>conftest.er1
44954 grep -v '^ *+' conftest.er1 >conftest.err
44956 cat conftest.err >&5
44957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958 (exit $ac_status); } && {
44959 test -z "$ac_c_werror_flag" ||
44960 test ! -s conftest.err
44961 } && test -s conftest.$ac_objext; then
44962 ac_cv_have_decl_wcwidth=yes
44964 $as_echo "$as_me: failed program was:" >&5
44965 sed 's/^/| /' conftest.$ac_ext >&5
44967 ac_cv_have_decl_wcwidth=no
44970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44972 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
44973 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
44974 if test $ac_cv_have_decl_wcwidth = yes; then
44976 cat >>confdefs.h <<_ACEOF
44977 #define HAVE_DECL_WCWIDTH 1
44982 cat >>confdefs.h <<_ACEOF
44983 #define HAVE_DECL_WCWIDTH 0
44991 { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
44992 $as_echo_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h... " >&6; }
44993 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
44994 $as_echo_n "(cached) " >&6
44996 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
44998 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
44999 cat >conftest.$ac_ext <<_ACEOF
45002 cat confdefs.h >>conftest.$ac_ext
45003 cat >>conftest.$ac_ext <<_ACEOF
45004 /* end confdefs.h. */
45005 #include <sys/types.h>
45006 # include <sys/ioctl.h>
45012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45013 $EGREP "yes" >/dev/null 2>&1; then
45014 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
45021 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
45022 $as_echo "$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
45023 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
45025 cat >>confdefs.h <<\_ACEOF
45026 #define GWINSZ_IN_SYS_IOCTL 1
45032 { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
45033 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
45034 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
45035 $as_echo_n "(cached) " >&6
45037 jm_cv_sys_tiocgwinsz_needs_termios_h=no
45039 if test $ac_cv_sys_posix_termios = yes; then
45040 cat >conftest.$ac_ext <<_ACEOF
45043 cat confdefs.h >>conftest.$ac_ext
45044 cat >>conftest.$ac_ext <<_ACEOF
45045 /* end confdefs.h. */
45046 #include <sys/types.h>
45047 # include <termios.h>
45053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45054 $EGREP "yes" >/dev/null 2>&1; then
45055 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
45062 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
45063 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
45066 { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
45067 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
45068 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
45069 $as_echo_n "(cached) " >&6
45071 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
45072 if test $ac_cv_sys_posix_termios = yes; then
45073 cat >conftest.$ac_ext <<_ACEOF
45076 cat confdefs.h >>conftest.$ac_ext
45077 cat >>conftest.$ac_ext <<_ACEOF
45078 /* end confdefs.h. */
45079 #include <termios.h>
45084 if (sizeof x > 0) return 0;
45089 rm -f conftest.$ac_objext
45090 if { (ac_try="$ac_compile"
45091 case "(($ac_try" in
45092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45093 *) ac_try_echo=$ac_try;;
45095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45096 $as_echo "$ac_try_echo") >&5
45097 (eval "$ac_compile") 2>conftest.er1
45099 grep -v '^ *+' conftest.er1 >conftest.err
45101 cat conftest.err >&5
45102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45103 (exit $ac_status); } && {
45104 test -z "$ac_c_werror_flag" ||
45105 test ! -s conftest.err
45106 } && test -s conftest.$ac_objext; then
45107 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
45109 $as_echo "$as_me: failed program was:" >&5
45110 sed 's/^/| /' conftest.$ac_ext >&5
45115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45117 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
45118 cat >conftest.$ac_ext <<_ACEOF
45121 cat confdefs.h >>conftest.$ac_ext
45122 cat >>conftest.$ac_ext <<_ACEOF
45123 /* end confdefs.h. */
45124 #include <sys/ptem.h>
45129 if (sizeof x > 0) return 0;
45134 rm -f conftest.$ac_objext
45135 if { (ac_try="$ac_compile"
45136 case "(($ac_try" in
45137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45138 *) ac_try_echo=$ac_try;;
45140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45141 $as_echo "$ac_try_echo") >&5
45142 (eval "$ac_compile") 2>conftest.er1
45144 grep -v '^ *+' conftest.er1 >conftest.err
45146 cat conftest.err >&5
45147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45148 (exit $ac_status); } && {
45149 test -z "$ac_c_werror_flag" ||
45150 test ! -s conftest.err
45151 } && test -s conftest.$ac_objext; then
45154 $as_echo "$as_me: failed program was:" >&5
45155 sed 's/^/| /' conftest.$ac_ext >&5
45157 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
45160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45163 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
45164 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
45165 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
45167 cat >>confdefs.h <<\_ACEOF
45168 #define WINSIZE_IN_PTEM 1
45173 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
45184 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
45189 gl_LIBOBJS="$gl_LIBOBJS xnanosleep.$ac_objext"
45197 gl_LIBOBJS="$gl_LIBOBJS xstrtod.$ac_objext"
45200 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
45201 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
45204 gl_LIBOBJS="$gl_LIBOBJS xstrtold.$ac_objext"
45207 gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
45211 LIBCOREUTILS_LIBDEPS="$gl_libdeps"
45213 LIBCOREUTILS_LTLIBDEPS="$gl_ltlibdeps"
45220 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
45221 $as_echo_n "checking for library containing strerror... " >&6; }
45222 if test "${ac_cv_search_strerror+set}" = set; then
45223 $as_echo_n "(cached) " >&6
45225 ac_func_search_save_LIBS=$LIBS
45226 cat >conftest.$ac_ext <<_ACEOF
45229 cat confdefs.h >>conftest.$ac_ext
45230 cat >>conftest.$ac_ext <<_ACEOF
45231 /* end confdefs.h. */
45233 /* Override any GCC internal prototype to avoid an error.
45234 Use char because int might match the return type of a GCC
45235 builtin and then its argument prototype would still apply. */
45243 return strerror ();
45248 for ac_lib in '' cposix; do
45249 if test -z "$ac_lib"; then
45250 ac_res="none required"
45253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
45255 rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (ac_try="$ac_link"
45257 case "(($ac_try" in
45258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45259 *) ac_try_echo=$ac_try;;
45261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45262 $as_echo "$ac_try_echo") >&5
45263 (eval "$ac_link") 2>conftest.er1
45265 grep -v '^ *+' conftest.er1 >conftest.err
45267 cat conftest.err >&5
45268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45269 (exit $ac_status); } && {
45270 test -z "$ac_c_werror_flag" ||
45271 test ! -s conftest.err
45272 } && test -s conftest$ac_exeext &&
45273 $as_test_x conftest$ac_exeext; then
45274 ac_cv_search_strerror=$ac_res
45276 $as_echo "$as_me: failed program was:" >&5
45277 sed 's/^/| /' conftest.$ac_ext >&5
45282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45284 if test "${ac_cv_search_strerror+set}" = set; then
45288 if test "${ac_cv_search_strerror+set}" = set; then
45291 ac_cv_search_strerror=no
45293 rm conftest.$ac_ext
45294 LIBS=$ac_func_search_save_LIBS
45296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
45297 $as_echo "$ac_cv_search_strerror" >&6; }
45298 ac_res=$ac_cv_search_strerror
45299 if test "$ac_res" != no; then
45300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45304 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
45305 $as_echo_n "checking for function prototypes... " >&6; }
45306 if test "$ac_cv_prog_cc_c89" != no; then
45307 { $as_echo "$as_me:$LINENO: result: yes" >&5
45308 $as_echo "yes" >&6; }
45310 cat >>confdefs.h <<\_ACEOF
45311 #define PROTOTYPES 1
45315 cat >>confdefs.h <<\_ACEOF
45316 #define __PROTOTYPES 1
45320 { $as_echo "$as_me:$LINENO: result: no" >&5
45321 $as_echo "no" >&6; }
45325 if test "$ac_cv_prog_cc_stdc" != no; then
45328 U=_ ANSI2KNR=./ansi2knr
45330 # Ensure some checks needed by ansi2knr itself.
45333 for ac_header in string.h
45335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45338 $as_echo_n "checking for $ac_header... " >&6; }
45339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45340 $as_echo_n "(cached) " >&6
45342 ac_res=`eval 'as_val=${'$as_ac_Header'}
45343 $as_echo "$as_val"'`
45344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45345 $as_echo "$ac_res" >&6; }
45347 # Is the header compilable?
45348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45349 $as_echo_n "checking $ac_header usability... " >&6; }
45350 cat >conftest.$ac_ext <<_ACEOF
45353 cat confdefs.h >>conftest.$ac_ext
45354 cat >>conftest.$ac_ext <<_ACEOF
45355 /* end confdefs.h. */
45356 $ac_includes_default
45357 #include <$ac_header>
45359 rm -f conftest.$ac_objext
45360 if { (ac_try="$ac_compile"
45361 case "(($ac_try" in
45362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45363 *) ac_try_echo=$ac_try;;
45365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45366 $as_echo "$ac_try_echo") >&5
45367 (eval "$ac_compile") 2>conftest.er1
45369 grep -v '^ *+' conftest.er1 >conftest.err
45371 cat conftest.err >&5
45372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45373 (exit $ac_status); } && {
45374 test -z "$ac_c_werror_flag" ||
45375 test ! -s conftest.err
45376 } && test -s conftest.$ac_objext; then
45377 ac_header_compiler=yes
45379 $as_echo "$as_me: failed program was:" >&5
45380 sed 's/^/| /' conftest.$ac_ext >&5
45382 ac_header_compiler=no
45385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45387 $as_echo "$ac_header_compiler" >&6; }
45389 # Is the header present?
45390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45391 $as_echo_n "checking $ac_header presence... " >&6; }
45392 cat >conftest.$ac_ext <<_ACEOF
45395 cat confdefs.h >>conftest.$ac_ext
45396 cat >>conftest.$ac_ext <<_ACEOF
45397 /* end confdefs.h. */
45398 #include <$ac_header>
45400 if { (ac_try="$ac_cpp conftest.$ac_ext"
45401 case "(($ac_try" in
45402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45403 *) ac_try_echo=$ac_try;;
45405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45406 $as_echo "$ac_try_echo") >&5
45407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45409 grep -v '^ *+' conftest.er1 >conftest.err
45411 cat conftest.err >&5
45412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413 (exit $ac_status); } >/dev/null && {
45414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45415 test ! -s conftest.err
45417 ac_header_preproc=yes
45419 $as_echo "$as_me: failed program was:" >&5
45420 sed 's/^/| /' conftest.$ac_ext >&5
45422 ac_header_preproc=no
45425 rm -f conftest.err conftest.$ac_ext
45426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45427 $as_echo "$ac_header_preproc" >&6; }
45429 # So? What about this header?
45430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45436 ac_header_preproc=yes
45439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45442 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45446 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45452 ## ------------------------------------ ##
45453 ## Report this to bug-coreutils@gnu.org ##
45454 ## ------------------------------------ ##
45456 ) | sed "s/^/$as_me: WARNING: /" >&2
45459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45460 $as_echo_n "checking for $ac_header... " >&6; }
45461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45462 $as_echo_n "(cached) " >&6
45464 eval "$as_ac_Header=\$ac_header_preproc"
45466 ac_res=`eval 'as_val=${'$as_ac_Header'}
45467 $as_echo "$as_val"'`
45468 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45469 $as_echo "$ac_res" >&6; }
45472 if test `eval 'as_val=${'$as_ac_Header'}
45473 $as_echo "$as_val"'` = yes; then
45474 cat >>confdefs.h <<_ACEOF
45475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45483 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
45484 $as_echo_n "checking for working volatile... " >&6; }
45485 if test "${ac_cv_c_volatile+set}" = set; then
45486 $as_echo_n "(cached) " >&6
45488 cat >conftest.$ac_ext <<_ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h. */
45500 int * volatile y = (int *) 0;
45506 rm -f conftest.$ac_objext
45507 if { (ac_try="$ac_compile"
45508 case "(($ac_try" in
45509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45510 *) ac_try_echo=$ac_try;;
45512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45513 $as_echo "$ac_try_echo") >&5
45514 (eval "$ac_compile") 2>conftest.er1
45516 grep -v '^ *+' conftest.er1 >conftest.err
45518 cat conftest.err >&5
45519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520 (exit $ac_status); } && {
45521 test -z "$ac_c_werror_flag" ||
45522 test ! -s conftest.err
45523 } && test -s conftest.$ac_objext; then
45524 ac_cv_c_volatile=yes
45526 $as_echo "$as_me: failed program was:" >&5
45527 sed 's/^/| /' conftest.$ac_ext >&5
45529 ac_cv_c_volatile=no
45532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45534 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
45535 $as_echo "$ac_cv_c_volatile" >&6; }
45536 if test $ac_cv_c_volatile = no; then
45538 cat >>confdefs.h <<\_ACEOF
45546 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
45547 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
45548 if test "${ac_cv_type_long_double_wider+set}" = set; then
45549 $as_echo_n "(cached) " >&6
45551 cat >conftest.$ac_ext <<_ACEOF
45554 cat confdefs.h >>conftest.$ac_ext
45555 cat >>conftest.$ac_ext <<_ACEOF
45556 /* end confdefs.h. */
45558 long double const a[] =
45560 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
45561 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
45566 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
45567 + (x ? f (x) : 'c'));
45573 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
45574 + (DBL_MANT_DIG < LDBL_MANT_DIG)
45575 - (LDBL_MAX_EXP < DBL_MAX_EXP)
45576 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
45577 && (int) LDBL_EPSILON == 0
45585 rm -f conftest.$ac_objext
45586 if { (ac_try="$ac_compile"
45587 case "(($ac_try" in
45588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45589 *) ac_try_echo=$ac_try;;
45591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45592 $as_echo "$ac_try_echo") >&5
45593 (eval "$ac_compile") 2>conftest.er1
45595 grep -v '^ *+' conftest.er1 >conftest.err
45597 cat conftest.err >&5
45598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45599 (exit $ac_status); } && {
45600 test -z "$ac_c_werror_flag" ||
45601 test ! -s conftest.err
45602 } && test -s conftest.$ac_objext; then
45603 ac_cv_type_long_double_wider=yes
45605 $as_echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45608 ac_cv_type_long_double_wider=no
45611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
45614 $as_echo "$ac_cv_type_long_double_wider" >&6; }
45615 if test $ac_cv_type_long_double_wider = yes; then
45617 cat >>confdefs.h <<\_ACEOF
45618 #define HAVE_LONG_DOUBLE_WIDER 1
45623 ac_cv_c_long_double=$ac_cv_type_long_double_wider
45624 if test $ac_cv_c_long_double = yes; then
45626 cat >>confdefs.h <<\_ACEOF
45627 #define HAVE_LONG_DOUBLE 1
45678 for ac_header in sys/sysctl.h
45680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45682 $as_echo_n "checking for $ac_header... " >&6; }
45683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45684 $as_echo_n "(cached) " >&6
45686 cat >conftest.$ac_ext <<_ACEOF
45689 cat confdefs.h >>conftest.$ac_ext
45690 cat >>conftest.$ac_ext <<_ACEOF
45691 /* end confdefs.h. */
45692 $ac_includes_default
45693 #if HAVE_SYS_PARAM_H
45694 #include <sys/param.h>
45697 #include <$ac_header>
45699 rm -f conftest.$ac_objext
45700 if { (ac_try="$ac_compile"
45701 case "(($ac_try" in
45702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45703 *) ac_try_echo=$ac_try;;
45705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45706 $as_echo "$ac_try_echo") >&5
45707 (eval "$ac_compile") 2>conftest.er1
45709 grep -v '^ *+' conftest.er1 >conftest.err
45711 cat conftest.err >&5
45712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45713 (exit $ac_status); } && {
45714 test -z "$ac_c_werror_flag" ||
45715 test ! -s conftest.err
45716 } && test -s conftest.$ac_objext; then
45717 eval "$as_ac_Header=yes"
45719 $as_echo "$as_me: failed program was:" >&5
45720 sed 's/^/| /' conftest.$ac_ext >&5
45722 eval "$as_ac_Header=no"
45725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45727 ac_res=`eval 'as_val=${'$as_ac_Header'}
45728 $as_echo "$as_val"'`
45729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45730 $as_echo "$ac_res" >&6; }
45731 if test `eval 'as_val=${'$as_ac_Header'}
45732 $as_echo "$as_val"'` = yes; then
45733 cat >>confdefs.h <<_ACEOF
45734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45742 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
45743 $as_echo_n "checking for mode_t... " >&6; }
45744 if test "${ac_cv_type_mode_t+set}" = set; then
45745 $as_echo_n "(cached) " >&6
45747 cat >conftest.$ac_ext <<_ACEOF
45750 cat confdefs.h >>conftest.$ac_ext
45751 cat >>conftest.$ac_ext <<_ACEOF
45752 /* end confdefs.h. */
45753 $ac_includes_default
45754 typedef mode_t ac__type_new_;
45758 if ((ac__type_new_ *) 0)
45760 if (sizeof (ac__type_new_))
45766 rm -f conftest.$ac_objext
45767 if { (ac_try="$ac_compile"
45768 case "(($ac_try" in
45769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45770 *) ac_try_echo=$ac_try;;
45772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45773 $as_echo "$ac_try_echo") >&5
45774 (eval "$ac_compile") 2>conftest.er1
45776 grep -v '^ *+' conftest.er1 >conftest.err
45778 cat conftest.err >&5
45779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780 (exit $ac_status); } && {
45781 test -z "$ac_c_werror_flag" ||
45782 test ! -s conftest.err
45783 } && test -s conftest.$ac_objext; then
45784 ac_cv_type_mode_t=yes
45786 $as_echo "$as_me: failed program was:" >&5
45787 sed 's/^/| /' conftest.$ac_ext >&5
45789 ac_cv_type_mode_t=no
45792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
45795 $as_echo "$ac_cv_type_mode_t" >&6; }
45796 if test $ac_cv_type_mode_t = yes; then
45800 cat >>confdefs.h <<_ACEOF
45806 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
45807 $as_echo_n "checking for pid_t... " >&6; }
45808 if test "${ac_cv_type_pid_t+set}" = set; then
45809 $as_echo_n "(cached) " >&6
45811 cat >conftest.$ac_ext <<_ACEOF
45814 cat confdefs.h >>conftest.$ac_ext
45815 cat >>conftest.$ac_ext <<_ACEOF
45816 /* end confdefs.h. */
45817 $ac_includes_default
45818 typedef pid_t ac__type_new_;
45822 if ((ac__type_new_ *) 0)
45824 if (sizeof (ac__type_new_))
45830 rm -f conftest.$ac_objext
45831 if { (ac_try="$ac_compile"
45832 case "(($ac_try" in
45833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45834 *) ac_try_echo=$ac_try;;
45836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45837 $as_echo "$ac_try_echo") >&5
45838 (eval "$ac_compile") 2>conftest.er1
45840 grep -v '^ *+' conftest.er1 >conftest.err
45842 cat conftest.err >&5
45843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45844 (exit $ac_status); } && {
45845 test -z "$ac_c_werror_flag" ||
45846 test ! -s conftest.err
45847 } && test -s conftest.$ac_objext; then
45848 ac_cv_type_pid_t=yes
45850 $as_echo "$as_me: failed program was:" >&5
45851 sed 's/^/| /' conftest.$ac_ext >&5
45853 ac_cv_type_pid_t=no
45856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45858 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
45859 $as_echo "$ac_cv_type_pid_t" >&6; }
45860 if test $ac_cv_type_pid_t = yes; then
45864 cat >>confdefs.h <<_ACEOF
45870 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
45871 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
45872 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
45873 $as_echo_n "(cached) " >&6
45875 cat >conftest.$ac_ext <<_ACEOF
45878 cat confdefs.h >>conftest.$ac_ext
45879 cat >>conftest.$ac_ext <<_ACEOF
45880 /* end confdefs.h. */
45881 #include <sys/types.h>
45885 return makedev(0, 0);
45890 rm -f conftest.$ac_objext conftest$ac_exeext
45891 if { (ac_try="$ac_link"
45892 case "(($ac_try" in
45893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45894 *) ac_try_echo=$ac_try;;
45896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45897 $as_echo "$ac_try_echo") >&5
45898 (eval "$ac_link") 2>conftest.er1
45900 grep -v '^ *+' conftest.er1 >conftest.err
45902 cat conftest.err >&5
45903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904 (exit $ac_status); } && {
45905 test -z "$ac_c_werror_flag" ||
45906 test ! -s conftest.err
45907 } && test -s conftest$ac_exeext &&
45908 $as_test_x conftest$ac_exeext; then
45909 ac_cv_header_sys_types_h_makedev=yes
45911 $as_echo "$as_me: failed program was:" >&5
45912 sed 's/^/| /' conftest.$ac_ext >&5
45914 ac_cv_header_sys_types_h_makedev=no
45917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45918 conftest$ac_exeext conftest.$ac_ext
45921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
45922 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
45924 if test $ac_cv_header_sys_types_h_makedev = no; then
45925 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
45926 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
45927 $as_echo_n "checking for sys/mkdev.h... " >&6; }
45928 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
45929 $as_echo_n "(cached) " >&6
45931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
45932 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
45934 # Is the header compilable?
45935 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
45936 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
45937 cat >conftest.$ac_ext <<_ACEOF
45940 cat confdefs.h >>conftest.$ac_ext
45941 cat >>conftest.$ac_ext <<_ACEOF
45942 /* end confdefs.h. */
45943 $ac_includes_default
45944 #include <sys/mkdev.h>
45946 rm -f conftest.$ac_objext
45947 if { (ac_try="$ac_compile"
45948 case "(($ac_try" in
45949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45950 *) ac_try_echo=$ac_try;;
45952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45953 $as_echo "$ac_try_echo") >&5
45954 (eval "$ac_compile") 2>conftest.er1
45956 grep -v '^ *+' conftest.er1 >conftest.err
45958 cat conftest.err >&5
45959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45960 (exit $ac_status); } && {
45961 test -z "$ac_c_werror_flag" ||
45962 test ! -s conftest.err
45963 } && test -s conftest.$ac_objext; then
45964 ac_header_compiler=yes
45966 $as_echo "$as_me: failed program was:" >&5
45967 sed 's/^/| /' conftest.$ac_ext >&5
45969 ac_header_compiler=no
45972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45974 $as_echo "$ac_header_compiler" >&6; }
45976 # Is the header present?
45977 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
45978 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
45979 cat >conftest.$ac_ext <<_ACEOF
45982 cat confdefs.h >>conftest.$ac_ext
45983 cat >>conftest.$ac_ext <<_ACEOF
45984 /* end confdefs.h. */
45985 #include <sys/mkdev.h>
45987 if { (ac_try="$ac_cpp conftest.$ac_ext"
45988 case "(($ac_try" in
45989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45990 *) ac_try_echo=$ac_try;;
45992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45993 $as_echo "$ac_try_echo") >&5
45994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45996 grep -v '^ *+' conftest.er1 >conftest.err
45998 cat conftest.err >&5
45999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000 (exit $ac_status); } >/dev/null && {
46001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46002 test ! -s conftest.err
46004 ac_header_preproc=yes
46006 $as_echo "$as_me: failed program was:" >&5
46007 sed 's/^/| /' conftest.$ac_ext >&5
46009 ac_header_preproc=no
46012 rm -f conftest.err conftest.$ac_ext
46013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46014 $as_echo "$ac_header_preproc" >&6; }
46016 # So? What about this header?
46017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46019 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
46020 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46021 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
46022 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
46023 ac_header_preproc=yes
46026 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
46027 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
46028 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
46029 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
46030 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
46031 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
46032 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
46033 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
46034 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
46035 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
46036 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
46037 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
46039 ## ------------------------------------ ##
46040 ## Report this to bug-coreutils@gnu.org ##
46041 ## ------------------------------------ ##
46043 ) | sed "s/^/$as_me: WARNING: /" >&2
46046 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
46047 $as_echo_n "checking for sys/mkdev.h... " >&6; }
46048 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
46049 $as_echo_n "(cached) " >&6
46051 ac_cv_header_sys_mkdev_h=$ac_header_preproc
46053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
46054 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
46057 if test $ac_cv_header_sys_mkdev_h = yes; then
46059 cat >>confdefs.h <<\_ACEOF
46060 #define MAJOR_IN_MKDEV 1
46067 if test $ac_cv_header_sys_mkdev_h = no; then
46068 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46069 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
46070 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
46071 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46072 $as_echo_n "(cached) " >&6
46074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
46075 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
46077 # Is the header compilable?
46078 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
46079 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
46080 cat >conftest.$ac_ext <<_ACEOF
46083 cat confdefs.h >>conftest.$ac_ext
46084 cat >>conftest.$ac_ext <<_ACEOF
46085 /* end confdefs.h. */
46086 $ac_includes_default
46087 #include <sys/sysmacros.h>
46089 rm -f conftest.$ac_objext
46090 if { (ac_try="$ac_compile"
46091 case "(($ac_try" in
46092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46093 *) ac_try_echo=$ac_try;;
46095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46096 $as_echo "$ac_try_echo") >&5
46097 (eval "$ac_compile") 2>conftest.er1
46099 grep -v '^ *+' conftest.er1 >conftest.err
46101 cat conftest.err >&5
46102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46103 (exit $ac_status); } && {
46104 test -z "$ac_c_werror_flag" ||
46105 test ! -s conftest.err
46106 } && test -s conftest.$ac_objext; then
46107 ac_header_compiler=yes
46109 $as_echo "$as_me: failed program was:" >&5
46110 sed 's/^/| /' conftest.$ac_ext >&5
46112 ac_header_compiler=no
46115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46117 $as_echo "$ac_header_compiler" >&6; }
46119 # Is the header present?
46120 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
46121 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
46122 cat >conftest.$ac_ext <<_ACEOF
46125 cat confdefs.h >>conftest.$ac_ext
46126 cat >>conftest.$ac_ext <<_ACEOF
46127 /* end confdefs.h. */
46128 #include <sys/sysmacros.h>
46130 if { (ac_try="$ac_cpp conftest.$ac_ext"
46131 case "(($ac_try" in
46132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46133 *) ac_try_echo=$ac_try;;
46135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46136 $as_echo "$ac_try_echo") >&5
46137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46139 grep -v '^ *+' conftest.er1 >conftest.err
46141 cat conftest.err >&5
46142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143 (exit $ac_status); } >/dev/null && {
46144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46145 test ! -s conftest.err
46147 ac_header_preproc=yes
46149 $as_echo "$as_me: failed program was:" >&5
46150 sed 's/^/| /' conftest.$ac_ext >&5
46152 ac_header_preproc=no
46155 rm -f conftest.err conftest.$ac_ext
46156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46157 $as_echo "$ac_header_preproc" >&6; }
46159 # So? What about this header?
46160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46162 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
46163 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46164 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
46165 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
46166 ac_header_preproc=yes
46169 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
46170 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
46171 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
46172 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
46173 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
46174 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
46175 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
46176 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
46177 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
46178 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
46179 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
46180 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
46182 ## ------------------------------------ ##
46183 ## Report this to bug-coreutils@gnu.org ##
46184 ## ------------------------------------ ##
46186 ) | sed "s/^/$as_me: WARNING: /" >&2
46189 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
46190 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
46191 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
46192 $as_echo_n "(cached) " >&6
46194 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
46196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
46197 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
46200 if test $ac_cv_header_sys_sysmacros_h = yes; then
46202 cat >>confdefs.h <<\_ACEOF
46203 #define MAJOR_IN_SYSMACROS 1
46212 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46213 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
46214 if test "${ac_cv_header_time+set}" = set; then
46215 $as_echo_n "(cached) " >&6
46217 cat >conftest.$ac_ext <<_ACEOF
46220 cat confdefs.h >>conftest.$ac_ext
46221 cat >>conftest.$ac_ext <<_ACEOF
46222 /* end confdefs.h. */
46223 #include <sys/types.h>
46224 #include <sys/time.h>
46230 if ((struct tm *) 0)
46236 rm -f conftest.$ac_objext
46237 if { (ac_try="$ac_compile"
46238 case "(($ac_try" in
46239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46240 *) ac_try_echo=$ac_try;;
46242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46243 $as_echo "$ac_try_echo") >&5
46244 (eval "$ac_compile") 2>conftest.er1
46246 grep -v '^ *+' conftest.er1 >conftest.err
46248 cat conftest.err >&5
46249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250 (exit $ac_status); } && {
46251 test -z "$ac_c_werror_flag" ||
46252 test ! -s conftest.err
46253 } && test -s conftest.$ac_objext; then
46254 ac_cv_header_time=yes
46256 $as_echo "$as_me: failed program was:" >&5
46257 sed 's/^/| /' conftest.$ac_ext >&5
46259 ac_cv_header_time=no
46262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46265 $as_echo "$ac_cv_header_time" >&6; }
46266 if test $ac_cv_header_time = yes; then
46268 cat >>confdefs.h <<\_ACEOF
46269 #define TIME_WITH_SYS_TIME 1
46278 { $as_echo "$as_me:$LINENO: checking whether free is declared" >&5
46279 $as_echo_n "checking whether free is declared... " >&6; }
46280 if test "${ac_cv_have_decl_free+set}" = set; then
46281 $as_echo_n "(cached) " >&6
46283 cat >conftest.$ac_ext <<_ACEOF
46286 cat confdefs.h >>conftest.$ac_ext
46287 cat >>conftest.$ac_ext <<_ACEOF
46288 /* end confdefs.h. */
46289 $ac_includes_default
46301 rm -f conftest.$ac_objext
46302 if { (ac_try="$ac_compile"
46303 case "(($ac_try" in
46304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46305 *) ac_try_echo=$ac_try;;
46307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46308 $as_echo "$ac_try_echo") >&5
46309 (eval "$ac_compile") 2>conftest.er1
46311 grep -v '^ *+' conftest.er1 >conftest.err
46313 cat conftest.err >&5
46314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46315 (exit $ac_status); } && {
46316 test -z "$ac_c_werror_flag" ||
46317 test ! -s conftest.err
46318 } && test -s conftest.$ac_objext; then
46319 ac_cv_have_decl_free=yes
46321 $as_echo "$as_me: failed program was:" >&5
46322 sed 's/^/| /' conftest.$ac_ext >&5
46324 ac_cv_have_decl_free=no
46327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46329 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
46330 $as_echo "$ac_cv_have_decl_free" >&6; }
46331 if test $ac_cv_have_decl_free = yes; then
46333 cat >>confdefs.h <<_ACEOF
46334 #define HAVE_DECL_FREE 1
46339 cat >>confdefs.h <<_ACEOF
46340 #define HAVE_DECL_FREE 0
46347 { $as_echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
46348 $as_echo_n "checking whether geteuid is declared... " >&6; }
46349 if test "${ac_cv_have_decl_geteuid+set}" = set; then
46350 $as_echo_n "(cached) " >&6
46352 cat >conftest.$ac_ext <<_ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h. */
46358 $ac_includes_default
46370 rm -f conftest.$ac_objext
46371 if { (ac_try="$ac_compile"
46372 case "(($ac_try" in
46373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46374 *) ac_try_echo=$ac_try;;
46376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46377 $as_echo "$ac_try_echo") >&5
46378 (eval "$ac_compile") 2>conftest.er1
46380 grep -v '^ *+' conftest.er1 >conftest.err
46382 cat conftest.err >&5
46383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46384 (exit $ac_status); } && {
46385 test -z "$ac_c_werror_flag" ||
46386 test ! -s conftest.err
46387 } && test -s conftest.$ac_objext; then
46388 ac_cv_have_decl_geteuid=yes
46390 $as_echo "$as_me: failed program was:" >&5
46391 sed 's/^/| /' conftest.$ac_ext >&5
46393 ac_cv_have_decl_geteuid=no
46396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46398 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
46399 $as_echo "$ac_cv_have_decl_geteuid" >&6; }
46400 if test $ac_cv_have_decl_geteuid = yes; then
46402 cat >>confdefs.h <<_ACEOF
46403 #define HAVE_DECL_GETEUID 1
46408 cat >>confdefs.h <<_ACEOF
46409 #define HAVE_DECL_GETEUID 0
46416 { $as_echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
46417 $as_echo_n "checking whether getlogin is declared... " >&6; }
46418 if test "${ac_cv_have_decl_getlogin+set}" = set; then
46419 $as_echo_n "(cached) " >&6
46421 cat >conftest.$ac_ext <<_ACEOF
46424 cat confdefs.h >>conftest.$ac_ext
46425 cat >>conftest.$ac_ext <<_ACEOF
46426 /* end confdefs.h. */
46427 $ac_includes_default
46439 rm -f conftest.$ac_objext
46440 if { (ac_try="$ac_compile"
46441 case "(($ac_try" in
46442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46443 *) ac_try_echo=$ac_try;;
46445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46446 $as_echo "$ac_try_echo") >&5
46447 (eval "$ac_compile") 2>conftest.er1
46449 grep -v '^ *+' conftest.er1 >conftest.err
46451 cat conftest.err >&5
46452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46453 (exit $ac_status); } && {
46454 test -z "$ac_c_werror_flag" ||
46455 test ! -s conftest.err
46456 } && test -s conftest.$ac_objext; then
46457 ac_cv_have_decl_getlogin=yes
46459 $as_echo "$as_me: failed program was:" >&5
46460 sed 's/^/| /' conftest.$ac_ext >&5
46462 ac_cv_have_decl_getlogin=no
46465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46467 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
46468 $as_echo "$ac_cv_have_decl_getlogin" >&6; }
46469 if test $ac_cv_have_decl_getlogin = yes; then
46471 cat >>confdefs.h <<_ACEOF
46472 #define HAVE_DECL_GETLOGIN 1
46477 cat >>confdefs.h <<_ACEOF
46478 #define HAVE_DECL_GETLOGIN 0
46485 { $as_echo "$as_me:$LINENO: checking whether getuid is declared" >&5
46486 $as_echo_n "checking whether getuid is declared... " >&6; }
46487 if test "${ac_cv_have_decl_getuid+set}" = set; then
46488 $as_echo_n "(cached) " >&6
46490 cat >conftest.$ac_ext <<_ACEOF
46493 cat confdefs.h >>conftest.$ac_ext
46494 cat >>conftest.$ac_ext <<_ACEOF
46495 /* end confdefs.h. */
46496 $ac_includes_default
46508 rm -f conftest.$ac_objext
46509 if { (ac_try="$ac_compile"
46510 case "(($ac_try" in
46511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46512 *) ac_try_echo=$ac_try;;
46514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46515 $as_echo "$ac_try_echo") >&5
46516 (eval "$ac_compile") 2>conftest.er1
46518 grep -v '^ *+' conftest.er1 >conftest.err
46520 cat conftest.err >&5
46521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46522 (exit $ac_status); } && {
46523 test -z "$ac_c_werror_flag" ||
46524 test ! -s conftest.err
46525 } && test -s conftest.$ac_objext; then
46526 ac_cv_have_decl_getuid=yes
46528 $as_echo "$as_me: failed program was:" >&5
46529 sed 's/^/| /' conftest.$ac_ext >&5
46531 ac_cv_have_decl_getuid=no
46534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46536 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
46537 $as_echo "$ac_cv_have_decl_getuid" >&6; }
46538 if test $ac_cv_have_decl_getuid = yes; then
46540 cat >>confdefs.h <<_ACEOF
46541 #define HAVE_DECL_GETUID 1
46546 cat >>confdefs.h <<_ACEOF
46547 #define HAVE_DECL_GETUID 0
46554 { $as_echo "$as_me:$LINENO: checking whether lseek is declared" >&5
46555 $as_echo_n "checking whether lseek is declared... " >&6; }
46556 if test "${ac_cv_have_decl_lseek+set}" = set; then
46557 $as_echo_n "(cached) " >&6
46559 cat >conftest.$ac_ext <<_ACEOF
46562 cat confdefs.h >>conftest.$ac_ext
46563 cat >>conftest.$ac_ext <<_ACEOF
46564 /* end confdefs.h. */
46565 $ac_includes_default
46577 rm -f conftest.$ac_objext
46578 if { (ac_try="$ac_compile"
46579 case "(($ac_try" in
46580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46581 *) ac_try_echo=$ac_try;;
46583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46584 $as_echo "$ac_try_echo") >&5
46585 (eval "$ac_compile") 2>conftest.er1
46587 grep -v '^ *+' conftest.er1 >conftest.err
46589 cat conftest.err >&5
46590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591 (exit $ac_status); } && {
46592 test -z "$ac_c_werror_flag" ||
46593 test ! -s conftest.err
46594 } && test -s conftest.$ac_objext; then
46595 ac_cv_have_decl_lseek=yes
46597 $as_echo "$as_me: failed program was:" >&5
46598 sed 's/^/| /' conftest.$ac_ext >&5
46600 ac_cv_have_decl_lseek=no
46603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46605 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
46606 $as_echo "$ac_cv_have_decl_lseek" >&6; }
46607 if test $ac_cv_have_decl_lseek = yes; then
46609 cat >>confdefs.h <<_ACEOF
46610 #define HAVE_DECL_LSEEK 1
46615 cat >>confdefs.h <<_ACEOF
46616 #define HAVE_DECL_LSEEK 0
46623 { $as_echo "$as_me:$LINENO: checking whether malloc is declared" >&5
46624 $as_echo_n "checking whether malloc is declared... " >&6; }
46625 if test "${ac_cv_have_decl_malloc+set}" = set; then
46626 $as_echo_n "(cached) " >&6
46628 cat >conftest.$ac_ext <<_ACEOF
46631 cat confdefs.h >>conftest.$ac_ext
46632 cat >>conftest.$ac_ext <<_ACEOF
46633 /* end confdefs.h. */
46634 $ac_includes_default
46646 rm -f conftest.$ac_objext
46647 if { (ac_try="$ac_compile"
46648 case "(($ac_try" in
46649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46650 *) ac_try_echo=$ac_try;;
46652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46653 $as_echo "$ac_try_echo") >&5
46654 (eval "$ac_compile") 2>conftest.er1
46656 grep -v '^ *+' conftest.er1 >conftest.err
46658 cat conftest.err >&5
46659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660 (exit $ac_status); } && {
46661 test -z "$ac_c_werror_flag" ||
46662 test ! -s conftest.err
46663 } && test -s conftest.$ac_objext; then
46664 ac_cv_have_decl_malloc=yes
46666 $as_echo "$as_me: failed program was:" >&5
46667 sed 's/^/| /' conftest.$ac_ext >&5
46669 ac_cv_have_decl_malloc=no
46672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46674 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
46675 $as_echo "$ac_cv_have_decl_malloc" >&6; }
46676 if test $ac_cv_have_decl_malloc = yes; then
46678 cat >>confdefs.h <<_ACEOF
46679 #define HAVE_DECL_MALLOC 1
46684 cat >>confdefs.h <<_ACEOF
46685 #define HAVE_DECL_MALLOC 0
46692 { $as_echo "$as_me:$LINENO: checking whether memchr is declared" >&5
46693 $as_echo_n "checking whether memchr is declared... " >&6; }
46694 if test "${ac_cv_have_decl_memchr+set}" = set; then
46695 $as_echo_n "(cached) " >&6
46697 cat >conftest.$ac_ext <<_ACEOF
46700 cat confdefs.h >>conftest.$ac_ext
46701 cat >>conftest.$ac_ext <<_ACEOF
46702 /* end confdefs.h. */
46703 $ac_includes_default
46715 rm -f conftest.$ac_objext
46716 if { (ac_try="$ac_compile"
46717 case "(($ac_try" in
46718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46719 *) ac_try_echo=$ac_try;;
46721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46722 $as_echo "$ac_try_echo") >&5
46723 (eval "$ac_compile") 2>conftest.er1
46725 grep -v '^ *+' conftest.er1 >conftest.err
46727 cat conftest.err >&5
46728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729 (exit $ac_status); } && {
46730 test -z "$ac_c_werror_flag" ||
46731 test ! -s conftest.err
46732 } && test -s conftest.$ac_objext; then
46733 ac_cv_have_decl_memchr=yes
46735 $as_echo "$as_me: failed program was:" >&5
46736 sed 's/^/| /' conftest.$ac_ext >&5
46738 ac_cv_have_decl_memchr=no
46741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
46744 $as_echo "$ac_cv_have_decl_memchr" >&6; }
46745 if test $ac_cv_have_decl_memchr = yes; then
46747 cat >>confdefs.h <<_ACEOF
46748 #define HAVE_DECL_MEMCHR 1
46753 cat >>confdefs.h <<_ACEOF
46754 #define HAVE_DECL_MEMCHR 0
46761 { $as_echo "$as_me:$LINENO: checking whether realloc is declared" >&5
46762 $as_echo_n "checking whether realloc is declared... " >&6; }
46763 if test "${ac_cv_have_decl_realloc+set}" = set; then
46764 $as_echo_n "(cached) " >&6
46766 cat >conftest.$ac_ext <<_ACEOF
46769 cat confdefs.h >>conftest.$ac_ext
46770 cat >>conftest.$ac_ext <<_ACEOF
46771 /* end confdefs.h. */
46772 $ac_includes_default
46784 rm -f conftest.$ac_objext
46785 if { (ac_try="$ac_compile"
46786 case "(($ac_try" in
46787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46788 *) ac_try_echo=$ac_try;;
46790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46791 $as_echo "$ac_try_echo") >&5
46792 (eval "$ac_compile") 2>conftest.er1
46794 grep -v '^ *+' conftest.er1 >conftest.err
46796 cat conftest.err >&5
46797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798 (exit $ac_status); } && {
46799 test -z "$ac_c_werror_flag" ||
46800 test ! -s conftest.err
46801 } && test -s conftest.$ac_objext; then
46802 ac_cv_have_decl_realloc=yes
46804 $as_echo "$as_me: failed program was:" >&5
46805 sed 's/^/| /' conftest.$ac_ext >&5
46807 ac_cv_have_decl_realloc=no
46810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46812 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
46813 $as_echo "$ac_cv_have_decl_realloc" >&6; }
46814 if test $ac_cv_have_decl_realloc = yes; then
46816 cat >>confdefs.h <<_ACEOF
46817 #define HAVE_DECL_REALLOC 1
46822 cat >>confdefs.h <<_ACEOF
46823 #define HAVE_DECL_REALLOC 0
46842 #include <sys/types.h>
46844 #include <unistd.h>
46854 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
46855 $as_echo_n "checking whether getgrgid is declared... " >&6; }
46856 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
46857 $as_echo_n "(cached) " >&6
46859 cat >conftest.$ac_ext <<_ACEOF
46862 cat confdefs.h >>conftest.$ac_ext
46863 cat >>conftest.$ac_ext <<_ACEOF
46864 /* end confdefs.h. */
46878 rm -f conftest.$ac_objext
46879 if { (ac_try="$ac_compile"
46880 case "(($ac_try" in
46881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46882 *) ac_try_echo=$ac_try;;
46884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46885 $as_echo "$ac_try_echo") >&5
46886 (eval "$ac_compile") 2>conftest.er1
46888 grep -v '^ *+' conftest.er1 >conftest.err
46890 cat conftest.err >&5
46891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46892 (exit $ac_status); } && {
46893 test -z "$ac_c_werror_flag" ||
46894 test ! -s conftest.err
46895 } && test -s conftest.$ac_objext; then
46896 ac_cv_have_decl_getgrgid=yes
46898 $as_echo "$as_me: failed program was:" >&5
46899 sed 's/^/| /' conftest.$ac_ext >&5
46901 ac_cv_have_decl_getgrgid=no
46904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46906 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
46907 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
46908 if test $ac_cv_have_decl_getgrgid = yes; then
46910 cat >>confdefs.h <<_ACEOF
46911 #define HAVE_DECL_GETGRGID 1
46916 cat >>confdefs.h <<_ACEOF
46917 #define HAVE_DECL_GETGRGID 0
46922 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
46923 $as_echo_n "checking whether getpwuid is declared... " >&6; }
46924 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
46925 $as_echo_n "(cached) " >&6
46927 cat >conftest.$ac_ext <<_ACEOF
46930 cat confdefs.h >>conftest.$ac_ext
46931 cat >>conftest.$ac_ext <<_ACEOF
46932 /* end confdefs.h. */
46946 rm -f conftest.$ac_objext
46947 if { (ac_try="$ac_compile"
46948 case "(($ac_try" in
46949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46950 *) ac_try_echo=$ac_try;;
46952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46953 $as_echo "$ac_try_echo") >&5
46954 (eval "$ac_compile") 2>conftest.er1
46956 grep -v '^ *+' conftest.er1 >conftest.err
46958 cat conftest.err >&5
46959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46960 (exit $ac_status); } && {
46961 test -z "$ac_c_werror_flag" ||
46962 test ! -s conftest.err
46963 } && test -s conftest.$ac_objext; then
46964 ac_cv_have_decl_getpwuid=yes
46966 $as_echo "$as_me: failed program was:" >&5
46967 sed 's/^/| /' conftest.$ac_ext >&5
46969 ac_cv_have_decl_getpwuid=no
46972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
46975 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
46976 if test $ac_cv_have_decl_getpwuid = yes; then
46978 cat >>confdefs.h <<_ACEOF
46979 #define HAVE_DECL_GETPWUID 1
46984 cat >>confdefs.h <<_ACEOF
46985 #define HAVE_DECL_GETPWUID 0
46990 { $as_echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
46991 $as_echo_n "checking whether ttyname is declared... " >&6; }
46992 if test "${ac_cv_have_decl_ttyname+set}" = set; then
46993 $as_echo_n "(cached) " >&6
46995 cat >conftest.$ac_ext <<_ACEOF
46998 cat confdefs.h >>conftest.$ac_ext
46999 cat >>conftest.$ac_ext <<_ACEOF
47000 /* end confdefs.h. */
47014 rm -f conftest.$ac_objext
47015 if { (ac_try="$ac_compile"
47016 case "(($ac_try" in
47017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47018 *) ac_try_echo=$ac_try;;
47020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47021 $as_echo "$ac_try_echo") >&5
47022 (eval "$ac_compile") 2>conftest.er1
47024 grep -v '^ *+' conftest.er1 >conftest.err
47026 cat conftest.err >&5
47027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47028 (exit $ac_status); } && {
47029 test -z "$ac_c_werror_flag" ||
47030 test ! -s conftest.err
47031 } && test -s conftest.$ac_objext; then
47032 ac_cv_have_decl_ttyname=yes
47034 $as_echo "$as_me: failed program was:" >&5
47035 sed 's/^/| /' conftest.$ac_ext >&5
47037 ac_cv_have_decl_ttyname=no
47040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47042 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
47043 $as_echo "$ac_cv_have_decl_ttyname" >&6; }
47044 if test $ac_cv_have_decl_ttyname = yes; then
47046 cat >>confdefs.h <<_ACEOF
47047 #define HAVE_DECL_TTYNAME 1
47052 cat >>confdefs.h <<_ACEOF
47053 #define HAVE_DECL_TTYNAME 0
47061 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
47062 $as_echo_n "checking whether isblank is declared... " >&6; }
47063 if test "${ac_cv_have_decl_isblank+set}" = set; then
47064 $as_echo_n "(cached) " >&6
47066 cat >conftest.$ac_ext <<_ACEOF
47069 cat confdefs.h >>conftest.$ac_ext
47070 cat >>conftest.$ac_ext <<_ACEOF
47071 /* end confdefs.h. */
47085 rm -f conftest.$ac_objext
47086 if { (ac_try="$ac_compile"
47087 case "(($ac_try" in
47088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47089 *) ac_try_echo=$ac_try;;
47091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47092 $as_echo "$ac_try_echo") >&5
47093 (eval "$ac_compile") 2>conftest.er1
47095 grep -v '^ *+' conftest.er1 >conftest.err
47097 cat conftest.err >&5
47098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099 (exit $ac_status); } && {
47100 test -z "$ac_c_werror_flag" ||
47101 test ! -s conftest.err
47102 } && test -s conftest.$ac_objext; then
47103 ac_cv_have_decl_isblank=yes
47105 $as_echo "$as_me: failed program was:" >&5
47106 sed 's/^/| /' conftest.$ac_ext >&5
47108 ac_cv_have_decl_isblank=no
47111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47113 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
47114 $as_echo "$ac_cv_have_decl_isblank" >&6; }
47115 if test $ac_cv_have_decl_isblank = yes; then
47117 cat >>confdefs.h <<_ACEOF
47118 #define HAVE_DECL_ISBLANK 1
47123 cat >>confdefs.h <<_ACEOF
47124 #define HAVE_DECL_ISBLANK 0
47172 cat >>confdefs.h <<\_ACEOF
47173 #define PREFER_NONREENTRANT_EUIDACCESS 1
47179 case " $LIBOBJS " in
47180 *" euidaccess-stat.$ac_objext "* ) ;;
47181 *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
47188 case " $LIBOBJS " in
47189 *" fd-reopen.$ac_objext "* ) ;;
47190 *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
47197 case " $LIBOBJS " in
47198 *" xfts.$ac_objext "* ) ;;
47199 *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
47210 case " $LIBOBJS " in
47211 *" memxfrm.$ac_objext "* ) ;;
47212 *) LIBOBJS="$LIBOBJS memxfrm.$ac_objext"
47228 case " $LIBOBJS " in
47229 *" randint.$ac_objext "* ) ;;
47230 *) LIBOBJS="$LIBOBJS randint.$ac_objext"
47239 case " $LIBOBJS " in
47240 *" randperm.$ac_objext "* ) ;;
47241 *) LIBOBJS="$LIBOBJS randperm.$ac_objext"
47248 case " $LIBOBJS " in
47249 *" randread.$ac_objext "* ) ;;
47250 *) LIBOBJS="$LIBOBJS randread.$ac_objext"
47254 case " $LIBOBJS " in
47255 *" rand-isaac.$ac_objext "* ) ;;
47256 *) LIBOBJS="$LIBOBJS rand-isaac.$ac_objext"
47263 case " $LIBOBJS " in
47264 *" sha256.$ac_objext "* ) ;;
47265 *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
47275 case " $LIBOBJS " in
47276 *" sha512.$ac_objext "* ) ;;
47277 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
47285 { $as_echo "$as_me:$LINENO: checking for inline" >&5
47286 $as_echo_n "checking for inline... " >&6; }
47287 if test "${ac_cv_c_inline+set}" = set; then
47288 $as_echo_n "(cached) " >&6
47291 for ac_kw in inline __inline__ __inline; do
47292 cat >conftest.$ac_ext <<_ACEOF
47295 cat confdefs.h >>conftest.$ac_ext
47296 cat >>conftest.$ac_ext <<_ACEOF
47297 /* end confdefs.h. */
47298 #ifndef __cplusplus
47300 static $ac_kw foo_t static_foo () {return 0; }
47301 $ac_kw foo_t foo () {return 0; }
47305 rm -f conftest.$ac_objext
47306 if { (ac_try="$ac_compile"
47307 case "(($ac_try" in
47308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47309 *) ac_try_echo=$ac_try;;
47311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47312 $as_echo "$ac_try_echo") >&5
47313 (eval "$ac_compile") 2>conftest.er1
47315 grep -v '^ *+' conftest.er1 >conftest.err
47317 cat conftest.err >&5
47318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47319 (exit $ac_status); } && {
47320 test -z "$ac_c_werror_flag" ||
47321 test ! -s conftest.err
47322 } && test -s conftest.$ac_objext; then
47323 ac_cv_c_inline=$ac_kw
47325 $as_echo "$as_me: failed program was:" >&5
47326 sed 's/^/| /' conftest.$ac_ext >&5
47331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47332 test "$ac_cv_c_inline" != no && break
47336 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
47337 $as_echo "$ac_cv_c_inline" >&6; }
47340 case $ac_cv_c_inline in
47343 case $ac_cv_c_inline in
47345 *) ac_val=$ac_cv_c_inline;;
47347 cat >>confdefs.h <<_ACEOF
47348 #ifndef __cplusplus
47349 #define inline $ac_val
47357 case " $LIBOBJS " in
47358 *" strintcmp.$ac_objext "* ) ;;
47359 *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
47368 case " $LIBOBJS " in
47369 *" strnumcmp.$ac_objext "* ) ;;
47370 *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
47381 # We don't use c-stack.c.
47382 # AC_REQUIRE([gl_C_STACK])
47384 # Invoke macros of modules that may migrate into gnulib.
47385 # There's no need to list gnulib modules here, since gnulib-tool
47386 # handles that; see ../bootstrap.conf.
47400 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
47401 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
47402 if test "${ac_cv_sys_largefile_source+set}" = set; then
47403 $as_echo_n "(cached) " >&6
47406 cat >conftest.$ac_ext <<_ACEOF
47409 cat confdefs.h >>conftest.$ac_ext
47410 cat >>conftest.$ac_ext <<_ACEOF
47411 /* end confdefs.h. */
47412 #include <sys/types.h> /* for off_t */
47417 int (*fp) (FILE *, off_t, int) = fseeko;
47418 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
47423 rm -f conftest.$ac_objext conftest$ac_exeext
47424 if { (ac_try="$ac_link"
47425 case "(($ac_try" in
47426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47427 *) ac_try_echo=$ac_try;;
47429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47430 $as_echo "$ac_try_echo") >&5
47431 (eval "$ac_link") 2>conftest.er1
47433 grep -v '^ *+' conftest.er1 >conftest.err
47435 cat conftest.err >&5
47436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437 (exit $ac_status); } && {
47438 test -z "$ac_c_werror_flag" ||
47439 test ! -s conftest.err
47440 } && test -s conftest$ac_exeext &&
47441 $as_test_x conftest$ac_exeext; then
47442 ac_cv_sys_largefile_source=no; break
47444 $as_echo "$as_me: failed program was:" >&5
47445 sed 's/^/| /' conftest.$ac_ext >&5
47450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47451 conftest$ac_exeext conftest.$ac_ext
47452 cat >conftest.$ac_ext <<_ACEOF
47455 cat confdefs.h >>conftest.$ac_ext
47456 cat >>conftest.$ac_ext <<_ACEOF
47457 /* end confdefs.h. */
47458 #define _LARGEFILE_SOURCE 1
47459 #include <sys/types.h> /* for off_t */
47464 int (*fp) (FILE *, off_t, int) = fseeko;
47465 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
47470 rm -f conftest.$ac_objext conftest$ac_exeext
47471 if { (ac_try="$ac_link"
47472 case "(($ac_try" in
47473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47474 *) ac_try_echo=$ac_try;;
47476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47477 $as_echo "$ac_try_echo") >&5
47478 (eval "$ac_link") 2>conftest.er1
47480 grep -v '^ *+' conftest.er1 >conftest.err
47482 cat conftest.err >&5
47483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47484 (exit $ac_status); } && {
47485 test -z "$ac_c_werror_flag" ||
47486 test ! -s conftest.err
47487 } && test -s conftest$ac_exeext &&
47488 $as_test_x conftest$ac_exeext; then
47489 ac_cv_sys_largefile_source=1; break
47491 $as_echo "$as_me: failed program was:" >&5
47492 sed 's/^/| /' conftest.$ac_ext >&5
47497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47498 conftest$ac_exeext conftest.$ac_ext
47499 ac_cv_sys_largefile_source=unknown
47503 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
47504 $as_echo "$ac_cv_sys_largefile_source" >&6; }
47505 case $ac_cv_sys_largefile_source in #(
47508 cat >>confdefs.h <<_ACEOF
47509 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
47515 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
47516 # in glibc 2.1.3, but that breaks too many other things.
47517 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47518 if test $ac_cv_sys_largefile_source != unknown; then
47520 cat >>confdefs.h <<\_ACEOF
47521 #define HAVE_FSEEKO 1
47553 GNU_PACKAGE="GNU $PACKAGE"
47555 cat >>confdefs.h <<_ACEOF
47556 #define GNU_PACKAGE "$GNU_PACKAGE"
47562 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
47581 { $as_echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
47582 $as_echo_n "checking for struct stat.st_author... " >&6; }
47583 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
47584 $as_echo_n "(cached) " >&6
47586 cat >conftest.$ac_ext <<_ACEOF
47589 cat confdefs.h >>conftest.$ac_ext
47590 cat >>conftest.$ac_ext <<_ACEOF
47591 /* end confdefs.h. */
47592 $ac_includes_default
47593 #include <sys/stat.h>
47599 static struct stat ac_aggr;
47600 if (ac_aggr.st_author)
47606 rm -f conftest.$ac_objext
47607 if { (ac_try="$ac_compile"
47608 case "(($ac_try" in
47609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47610 *) ac_try_echo=$ac_try;;
47612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47613 $as_echo "$ac_try_echo") >&5
47614 (eval "$ac_compile") 2>conftest.er1
47616 grep -v '^ *+' conftest.er1 >conftest.err
47618 cat conftest.err >&5
47619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47620 (exit $ac_status); } && {
47621 test -z "$ac_c_werror_flag" ||
47622 test ! -s conftest.err
47623 } && test -s conftest.$ac_objext; then
47624 ac_cv_member_struct_stat_st_author=yes
47626 $as_echo "$as_me: failed program was:" >&5
47627 sed 's/^/| /' conftest.$ac_ext >&5
47629 cat >conftest.$ac_ext <<_ACEOF
47632 cat confdefs.h >>conftest.$ac_ext
47633 cat >>conftest.$ac_ext <<_ACEOF
47634 /* end confdefs.h. */
47635 $ac_includes_default
47636 #include <sys/stat.h>
47642 static struct stat ac_aggr;
47643 if (sizeof ac_aggr.st_author)
47649 rm -f conftest.$ac_objext
47650 if { (ac_try="$ac_compile"
47651 case "(($ac_try" in
47652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47653 *) ac_try_echo=$ac_try;;
47655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47656 $as_echo "$ac_try_echo") >&5
47657 (eval "$ac_compile") 2>conftest.er1
47659 grep -v '^ *+' conftest.er1 >conftest.err
47661 cat conftest.err >&5
47662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663 (exit $ac_status); } && {
47664 test -z "$ac_c_werror_flag" ||
47665 test ! -s conftest.err
47666 } && test -s conftest.$ac_objext; then
47667 ac_cv_member_struct_stat_st_author=yes
47669 $as_echo "$as_me: failed program was:" >&5
47670 sed 's/^/| /' conftest.$ac_ext >&5
47672 ac_cv_member_struct_stat_st_author=no
47675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
47681 $as_echo "$ac_cv_member_struct_stat_st_author" >&6; }
47682 if test $ac_cv_member_struct_stat_st_author = yes; then
47684 cat >>confdefs.h <<_ACEOF
47685 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
47700 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
47701 $as_echo_n "checking for ino_t... " >&6; }
47702 if test "${ac_cv_type_ino_t+set}" = set; then
47703 $as_echo_n "(cached) " >&6
47705 cat >conftest.$ac_ext <<_ACEOF
47708 cat confdefs.h >>conftest.$ac_ext
47709 cat >>conftest.$ac_ext <<_ACEOF
47710 /* end confdefs.h. */
47711 $ac_includes_default
47712 typedef ino_t ac__type_new_;
47716 if ((ac__type_new_ *) 0)
47718 if (sizeof (ac__type_new_))
47724 rm -f conftest.$ac_objext
47725 if { (ac_try="$ac_compile"
47726 case "(($ac_try" in
47727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47728 *) ac_try_echo=$ac_try;;
47730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47731 $as_echo "$ac_try_echo") >&5
47732 (eval "$ac_compile") 2>conftest.er1
47734 grep -v '^ *+' conftest.er1 >conftest.err
47736 cat conftest.err >&5
47737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47738 (exit $ac_status); } && {
47739 test -z "$ac_c_werror_flag" ||
47740 test ! -s conftest.err
47741 } && test -s conftest.$ac_objext; then
47742 ac_cv_type_ino_t=yes
47744 $as_echo "$as_me: failed program was:" >&5
47745 sed 's/^/| /' conftest.$ac_ext >&5
47747 ac_cv_type_ino_t=no
47750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47752 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
47753 $as_echo "$ac_cv_type_ino_t" >&6; }
47754 if test $ac_cv_type_ino_t = yes; then
47758 cat >>confdefs.h <<_ACEOF
47759 #define ino_t unsigned long int
47765 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
47766 $as_echo_n "checking for major_t... " >&6; }
47767 if test "${ac_cv_type_major_t+set}" = set; then
47768 $as_echo_n "(cached) " >&6
47770 cat >conftest.$ac_ext <<_ACEOF
47773 cat confdefs.h >>conftest.$ac_ext
47774 cat >>conftest.$ac_ext <<_ACEOF
47775 /* end confdefs.h. */
47776 $ac_includes_default
47777 typedef major_t ac__type_new_;
47781 if ((ac__type_new_ *) 0)
47783 if (sizeof (ac__type_new_))
47789 rm -f conftest.$ac_objext
47790 if { (ac_try="$ac_compile"
47791 case "(($ac_try" in
47792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47793 *) ac_try_echo=$ac_try;;
47795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47796 $as_echo "$ac_try_echo") >&5
47797 (eval "$ac_compile") 2>conftest.er1
47799 grep -v '^ *+' conftest.er1 >conftest.err
47801 cat conftest.err >&5
47802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47803 (exit $ac_status); } && {
47804 test -z "$ac_c_werror_flag" ||
47805 test ! -s conftest.err
47806 } && test -s conftest.$ac_objext; then
47807 ac_cv_type_major_t=yes
47809 $as_echo "$as_me: failed program was:" >&5
47810 sed 's/^/| /' conftest.$ac_ext >&5
47812 ac_cv_type_major_t=no
47815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
47818 $as_echo "$ac_cv_type_major_t" >&6; }
47819 if test $ac_cv_type_major_t = yes; then
47823 cat >>confdefs.h <<_ACEOF
47824 #define major_t unsigned int
47829 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
47830 $as_echo_n "checking for minor_t... " >&6; }
47831 if test "${ac_cv_type_minor_t+set}" = set; then
47832 $as_echo_n "(cached) " >&6
47834 cat >conftest.$ac_ext <<_ACEOF
47837 cat confdefs.h >>conftest.$ac_ext
47838 cat >>conftest.$ac_ext <<_ACEOF
47839 /* end confdefs.h. */
47840 $ac_includes_default
47841 typedef minor_t ac__type_new_;
47845 if ((ac__type_new_ *) 0)
47847 if (sizeof (ac__type_new_))
47853 rm -f conftest.$ac_objext
47854 if { (ac_try="$ac_compile"
47855 case "(($ac_try" in
47856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47857 *) ac_try_echo=$ac_try;;
47859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47860 $as_echo "$ac_try_echo") >&5
47861 (eval "$ac_compile") 2>conftest.er1
47863 grep -v '^ *+' conftest.er1 >conftest.err
47865 cat conftest.err >&5
47866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47867 (exit $ac_status); } && {
47868 test -z "$ac_c_werror_flag" ||
47869 test ! -s conftest.err
47870 } && test -s conftest.$ac_objext; then
47871 ac_cv_type_minor_t=yes
47873 $as_echo "$as_me: failed program was:" >&5
47874 sed 's/^/| /' conftest.$ac_ext >&5
47876 ac_cv_type_minor_t=no
47879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
47882 $as_echo "$ac_cv_type_minor_t" >&6; }
47883 if test $ac_cv_type_minor_t = yes; then
47887 cat >>confdefs.h <<_ACEOF
47888 #define minor_t unsigned int
47903 # By default, argmatch should fail calling usage (1).
47905 cat >>confdefs.h <<\_ACEOF
47906 #define ARGMATCH_DIE usage (1)
47910 cat >>confdefs.h <<\_ACEOF
47911 #define ARGMATCH_DIE_DECL extern void usage ()
47976 test $ac_cv_header_sys_param_h = yes &&
47977 test $ac_cv_header_sys_mount_h = yes &&
47979 for ac_header in nfs/vfs.h
47981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47984 $as_echo_n "checking for $ac_header... " >&6; }
47985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47986 $as_echo_n "(cached) " >&6
47988 ac_res=`eval 'as_val=${'$as_ac_Header'}
47989 $as_echo "$as_val"'`
47990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47991 $as_echo "$ac_res" >&6; }
47993 # Is the header compilable?
47994 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47995 $as_echo_n "checking $ac_header usability... " >&6; }
47996 cat >conftest.$ac_ext <<_ACEOF
47999 cat confdefs.h >>conftest.$ac_ext
48000 cat >>conftest.$ac_ext <<_ACEOF
48001 /* end confdefs.h. */
48002 $ac_includes_default
48003 #include <$ac_header>
48005 rm -f conftest.$ac_objext
48006 if { (ac_try="$ac_compile"
48007 case "(($ac_try" in
48008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48009 *) ac_try_echo=$ac_try;;
48011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48012 $as_echo "$ac_try_echo") >&5
48013 (eval "$ac_compile") 2>conftest.er1
48015 grep -v '^ *+' conftest.er1 >conftest.err
48017 cat conftest.err >&5
48018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48019 (exit $ac_status); } && {
48020 test -z "$ac_c_werror_flag" ||
48021 test ! -s conftest.err
48022 } && test -s conftest.$ac_objext; then
48023 ac_header_compiler=yes
48025 $as_echo "$as_me: failed program was:" >&5
48026 sed 's/^/| /' conftest.$ac_ext >&5
48028 ac_header_compiler=no
48031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48033 $as_echo "$ac_header_compiler" >&6; }
48035 # Is the header present?
48036 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
48037 $as_echo_n "checking $ac_header presence... " >&6; }
48038 cat >conftest.$ac_ext <<_ACEOF
48041 cat confdefs.h >>conftest.$ac_ext
48042 cat >>conftest.$ac_ext <<_ACEOF
48043 /* end confdefs.h. */
48044 #include <$ac_header>
48046 if { (ac_try="$ac_cpp conftest.$ac_ext"
48047 case "(($ac_try" in
48048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48049 *) ac_try_echo=$ac_try;;
48051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48052 $as_echo "$ac_try_echo") >&5
48053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48055 grep -v '^ *+' conftest.er1 >conftest.err
48057 cat conftest.err >&5
48058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48059 (exit $ac_status); } >/dev/null && {
48060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48061 test ! -s conftest.err
48063 ac_header_preproc=yes
48065 $as_echo "$as_me: failed program was:" >&5
48066 sed 's/^/| /' conftest.$ac_ext >&5
48068 ac_header_preproc=no
48071 rm -f conftest.err conftest.$ac_ext
48072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48073 $as_echo "$ac_header_preproc" >&6; }
48075 # So? What about this header?
48076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48079 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48082 ac_header_preproc=yes
48085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48086 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48088 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48090 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48092 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48096 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48098 ## ------------------------------------ ##
48099 ## Report this to bug-coreutils@gnu.org ##
48100 ## ------------------------------------ ##
48102 ) | sed "s/^/$as_me: WARNING: /" >&2
48105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48106 $as_echo_n "checking for $ac_header... " >&6; }
48107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48108 $as_echo_n "(cached) " >&6
48110 eval "$as_ac_Header=\$ac_header_preproc"
48112 ac_res=`eval 'as_val=${'$as_ac_Header'}
48113 $as_echo "$as_val"'`
48114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48115 $as_echo "$ac_res" >&6; }
48118 if test `eval 'as_val=${'$as_ac_Header'}
48119 $as_echo "$as_val"'` = yes; then
48120 cat >>confdefs.h <<_ACEOF
48121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48124 for ac_header in nfs/nfs_client.h
48126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48129 $as_echo_n "checking for $ac_header... " >&6; }
48130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48131 $as_echo_n "(cached) " >&6
48133 ac_res=`eval 'as_val=${'$as_ac_Header'}
48134 $as_echo "$as_val"'`
48135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48136 $as_echo "$ac_res" >&6; }
48138 # Is the header compilable?
48139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
48140 $as_echo_n "checking $ac_header usability... " >&6; }
48141 cat >conftest.$ac_ext <<_ACEOF
48144 cat confdefs.h >>conftest.$ac_ext
48145 cat >>conftest.$ac_ext <<_ACEOF
48146 /* end confdefs.h. */
48147 $ac_includes_default
48148 #include <$ac_header>
48150 rm -f conftest.$ac_objext
48151 if { (ac_try="$ac_compile"
48152 case "(($ac_try" in
48153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48154 *) ac_try_echo=$ac_try;;
48156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48157 $as_echo "$ac_try_echo") >&5
48158 (eval "$ac_compile") 2>conftest.er1
48160 grep -v '^ *+' conftest.er1 >conftest.err
48162 cat conftest.err >&5
48163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48164 (exit $ac_status); } && {
48165 test -z "$ac_c_werror_flag" ||
48166 test ! -s conftest.err
48167 } && test -s conftest.$ac_objext; then
48168 ac_header_compiler=yes
48170 $as_echo "$as_me: failed program was:" >&5
48171 sed 's/^/| /' conftest.$ac_ext >&5
48173 ac_header_compiler=no
48176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48178 $as_echo "$ac_header_compiler" >&6; }
48180 # Is the header present?
48181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
48182 $as_echo_n "checking $ac_header presence... " >&6; }
48183 cat >conftest.$ac_ext <<_ACEOF
48186 cat confdefs.h >>conftest.$ac_ext
48187 cat >>conftest.$ac_ext <<_ACEOF
48188 /* end confdefs.h. */
48189 #include <$ac_header>
48191 if { (ac_try="$ac_cpp conftest.$ac_ext"
48192 case "(($ac_try" in
48193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48194 *) ac_try_echo=$ac_try;;
48196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48197 $as_echo "$ac_try_echo") >&5
48198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48200 grep -v '^ *+' conftest.er1 >conftest.err
48202 cat conftest.err >&5
48203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48204 (exit $ac_status); } >/dev/null && {
48205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48206 test ! -s conftest.err
48208 ac_header_preproc=yes
48210 $as_echo "$as_me: failed program was:" >&5
48211 sed 's/^/| /' conftest.$ac_ext >&5
48213 ac_header_preproc=no
48216 rm -f conftest.err conftest.$ac_ext
48217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48218 $as_echo "$ac_header_preproc" >&6; }
48220 # So? What about this header?
48221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48227 ac_header_preproc=yes
48230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48243 ## ------------------------------------ ##
48244 ## Report this to bug-coreutils@gnu.org ##
48245 ## ------------------------------------ ##
48247 ) | sed "s/^/$as_me: WARNING: /" >&2
48250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48251 $as_echo_n "checking for $ac_header... " >&6; }
48252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48253 $as_echo_n "(cached) " >&6
48255 eval "$as_ac_Header=\$ac_header_preproc"
48257 ac_res=`eval 'as_val=${'$as_ac_Header'}
48258 $as_echo "$as_val"'`
48259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48260 $as_echo "$ac_res" >&6; }
48263 if test `eval 'as_val=${'$as_ac_Header'}
48264 $as_echo "$as_val"'` = yes; then
48265 cat >>confdefs.h <<_ACEOF
48266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48278 statvfs_includes="\
48279 $ac_includes_default
48280 #include <sys/statvfs.h>
48283 $ac_includes_default
48285 # include <sys/vfs.h>
48286 #elif HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
48287 # include <sys/param.h>
48288 # include <sys/mount.h>
48289 # if HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
48290 # include <netinet/in.h>
48291 # include <nfs/nfs_clnt.h>
48292 # include <nfs/vfs.h>
48295 # include <fs_info.h>
48298 if test "$fu_cv_sys_stat_statvfs" = yes &&
48299 { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
48300 $as_echo_n "checking for struct statvfs.f_basetype... " >&6; }
48301 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
48302 $as_echo_n "(cached) " >&6
48304 cat >conftest.$ac_ext <<_ACEOF
48307 cat confdefs.h >>conftest.$ac_ext
48308 cat >>conftest.$ac_ext <<_ACEOF
48309 /* end confdefs.h. */
48315 static struct statvfs ac_aggr;
48316 if (ac_aggr.f_basetype)
48322 rm -f conftest.$ac_objext
48323 if { (ac_try="$ac_compile"
48324 case "(($ac_try" in
48325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48326 *) ac_try_echo=$ac_try;;
48328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48329 $as_echo "$ac_try_echo") >&5
48330 (eval "$ac_compile") 2>conftest.er1
48332 grep -v '^ *+' conftest.er1 >conftest.err
48334 cat conftest.err >&5
48335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48336 (exit $ac_status); } && {
48337 test -z "$ac_c_werror_flag" ||
48338 test ! -s conftest.err
48339 } && test -s conftest.$ac_objext; then
48340 ac_cv_member_struct_statvfs_f_basetype=yes
48342 $as_echo "$as_me: failed program was:" >&5
48343 sed 's/^/| /' conftest.$ac_ext >&5
48345 cat >conftest.$ac_ext <<_ACEOF
48348 cat confdefs.h >>conftest.$ac_ext
48349 cat >>conftest.$ac_ext <<_ACEOF
48350 /* end confdefs.h. */
48356 static struct statvfs ac_aggr;
48357 if (sizeof ac_aggr.f_basetype)
48363 rm -f conftest.$ac_objext
48364 if { (ac_try="$ac_compile"
48365 case "(($ac_try" in
48366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48367 *) ac_try_echo=$ac_try;;
48369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48370 $as_echo "$ac_try_echo") >&5
48371 (eval "$ac_compile") 2>conftest.er1
48373 grep -v '^ *+' conftest.er1 >conftest.err
48375 cat conftest.err >&5
48376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377 (exit $ac_status); } && {
48378 test -z "$ac_c_werror_flag" ||
48379 test ! -s conftest.err
48380 } && test -s conftest.$ac_objext; then
48381 ac_cv_member_struct_statvfs_f_basetype=yes
48383 $as_echo "$as_me: failed program was:" >&5
48384 sed 's/^/| /' conftest.$ac_ext >&5
48386 ac_cv_member_struct_statvfs_f_basetype=no
48389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48394 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
48395 $as_echo "$ac_cv_member_struct_statvfs_f_basetype" >&6; }
48396 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
48398 cat >>confdefs.h <<_ACEOF
48399 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
48405 test $ac_cv_member_struct_statvfs_f_basetype = yes ||
48406 { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_fstypename" >&5
48407 $as_echo_n "checking for struct statvfs.f_fstypename... " >&6; }
48408 if test "${ac_cv_member_struct_statvfs_f_fstypename+set}" = set; then
48409 $as_echo_n "(cached) " >&6
48411 cat >conftest.$ac_ext <<_ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h. */
48422 static struct statvfs ac_aggr;
48423 if (ac_aggr.f_fstypename)
48429 rm -f conftest.$ac_objext
48430 if { (ac_try="$ac_compile"
48431 case "(($ac_try" in
48432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48433 *) ac_try_echo=$ac_try;;
48435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48436 $as_echo "$ac_try_echo") >&5
48437 (eval "$ac_compile") 2>conftest.er1
48439 grep -v '^ *+' conftest.er1 >conftest.err
48441 cat conftest.err >&5
48442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48443 (exit $ac_status); } && {
48444 test -z "$ac_c_werror_flag" ||
48445 test ! -s conftest.err
48446 } && test -s conftest.$ac_objext; then
48447 ac_cv_member_struct_statvfs_f_fstypename=yes
48449 $as_echo "$as_me: failed program was:" >&5
48450 sed 's/^/| /' conftest.$ac_ext >&5
48452 cat >conftest.$ac_ext <<_ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h. */
48463 static struct statvfs ac_aggr;
48464 if (sizeof ac_aggr.f_fstypename)
48470 rm -f conftest.$ac_objext
48471 if { (ac_try="$ac_compile"
48472 case "(($ac_try" in
48473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48474 *) ac_try_echo=$ac_try;;
48476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48477 $as_echo "$ac_try_echo") >&5
48478 (eval "$ac_compile") 2>conftest.er1
48480 grep -v '^ *+' conftest.er1 >conftest.err
48482 cat conftest.err >&5
48483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48484 (exit $ac_status); } && {
48485 test -z "$ac_c_werror_flag" ||
48486 test ! -s conftest.err
48487 } && test -s conftest.$ac_objext; then
48488 ac_cv_member_struct_statvfs_f_fstypename=yes
48490 $as_echo "$as_me: failed program was:" >&5
48491 sed 's/^/| /' conftest.$ac_ext >&5
48493 ac_cv_member_struct_statvfs_f_fstypename=no
48496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fstypename" >&5
48502 $as_echo "$ac_cv_member_struct_statvfs_f_fstypename" >&6; }
48503 if test $ac_cv_member_struct_statvfs_f_fstypename = yes; then
48505 cat >>confdefs.h <<_ACEOF
48506 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
48512 test $ac_cv_member_struct_statvfs_f_fstypename = yes ||
48513 { test $ac_cv_member_struct_statfs_f_fstypename != yes &&
48514 { { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
48515 $as_echo_n "checking for struct statvfs.f_type... " >&6; }
48516 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
48517 $as_echo_n "(cached) " >&6
48519 cat >conftest.$ac_ext <<_ACEOF
48522 cat confdefs.h >>conftest.$ac_ext
48523 cat >>conftest.$ac_ext <<_ACEOF
48524 /* end confdefs.h. */
48530 static struct statvfs ac_aggr;
48531 if (ac_aggr.f_type)
48537 rm -f conftest.$ac_objext
48538 if { (ac_try="$ac_compile"
48539 case "(($ac_try" in
48540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48541 *) ac_try_echo=$ac_try;;
48543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48544 $as_echo "$ac_try_echo") >&5
48545 (eval "$ac_compile") 2>conftest.er1
48547 grep -v '^ *+' conftest.er1 >conftest.err
48549 cat conftest.err >&5
48550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48551 (exit $ac_status); } && {
48552 test -z "$ac_c_werror_flag" ||
48553 test ! -s conftest.err
48554 } && test -s conftest.$ac_objext; then
48555 ac_cv_member_struct_statvfs_f_type=yes
48557 $as_echo "$as_me: failed program was:" >&5
48558 sed 's/^/| /' conftest.$ac_ext >&5
48560 cat >conftest.$ac_ext <<_ACEOF
48563 cat confdefs.h >>conftest.$ac_ext
48564 cat >>conftest.$ac_ext <<_ACEOF
48565 /* end confdefs.h. */
48571 static struct statvfs ac_aggr;
48572 if (sizeof ac_aggr.f_type)
48578 rm -f conftest.$ac_objext
48579 if { (ac_try="$ac_compile"
48580 case "(($ac_try" in
48581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48582 *) ac_try_echo=$ac_try;;
48584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48585 $as_echo "$ac_try_echo") >&5
48586 (eval "$ac_compile") 2>conftest.er1
48588 grep -v '^ *+' conftest.er1 >conftest.err
48590 cat conftest.err >&5
48591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592 (exit $ac_status); } && {
48593 test -z "$ac_c_werror_flag" ||
48594 test ! -s conftest.err
48595 } && test -s conftest.$ac_objext; then
48596 ac_cv_member_struct_statvfs_f_type=yes
48598 $as_echo "$as_me: failed program was:" >&5
48599 sed 's/^/| /' conftest.$ac_ext >&5
48601 ac_cv_member_struct_statvfs_f_type=no
48604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48609 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
48610 $as_echo "$ac_cv_member_struct_statvfs_f_type" >&6; }
48611 if test $ac_cv_member_struct_statvfs_f_type = yes; then
48613 cat >>confdefs.h <<_ACEOF
48614 #define HAVE_STRUCT_STATVFS_F_TYPE 1
48620 test $ac_cv_member_struct_statvfs_f_type = yes; }; }; }; }
48622 { $as_echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
48623 $as_echo_n "checking for struct statvfs.f_namemax... " >&6; }
48624 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
48625 $as_echo_n "(cached) " >&6
48627 cat >conftest.$ac_ext <<_ACEOF
48630 cat confdefs.h >>conftest.$ac_ext
48631 cat >>conftest.$ac_ext <<_ACEOF
48632 /* end confdefs.h. */
48638 static struct statvfs ac_aggr;
48639 if (ac_aggr.f_namemax)
48645 rm -f conftest.$ac_objext
48646 if { (ac_try="$ac_compile"
48647 case "(($ac_try" in
48648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48649 *) ac_try_echo=$ac_try;;
48651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48652 $as_echo "$ac_try_echo") >&5
48653 (eval "$ac_compile") 2>conftest.er1
48655 grep -v '^ *+' conftest.er1 >conftest.err
48657 cat conftest.err >&5
48658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48659 (exit $ac_status); } && {
48660 test -z "$ac_c_werror_flag" ||
48661 test ! -s conftest.err
48662 } && test -s conftest.$ac_objext; then
48663 ac_cv_member_struct_statvfs_f_namemax=yes
48665 $as_echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48668 cat >conftest.$ac_ext <<_ACEOF
48671 cat confdefs.h >>conftest.$ac_ext
48672 cat >>conftest.$ac_ext <<_ACEOF
48673 /* end confdefs.h. */
48679 static struct statvfs ac_aggr;
48680 if (sizeof ac_aggr.f_namemax)
48686 rm -f conftest.$ac_objext
48687 if { (ac_try="$ac_compile"
48688 case "(($ac_try" in
48689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48690 *) ac_try_echo=$ac_try;;
48692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48693 $as_echo "$ac_try_echo") >&5
48694 (eval "$ac_compile") 2>conftest.er1
48696 grep -v '^ *+' conftest.er1 >conftest.err
48698 cat conftest.err >&5
48699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700 (exit $ac_status); } && {
48701 test -z "$ac_c_werror_flag" ||
48702 test ! -s conftest.err
48703 } && test -s conftest.$ac_objext; then
48704 ac_cv_member_struct_statvfs_f_namemax=yes
48706 $as_echo "$as_me: failed program was:" >&5
48707 sed 's/^/| /' conftest.$ac_ext >&5
48709 ac_cv_member_struct_statvfs_f_namemax=no
48712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48717 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
48718 $as_echo "$ac_cv_member_struct_statvfs_f_namemax" >&6; }
48719 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
48721 cat >>confdefs.h <<_ACEOF
48722 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
48728 cat >conftest.$ac_ext <<_ACEOF
48731 cat confdefs.h >>conftest.$ac_ext
48732 cat >>conftest.$ac_ext <<_ACEOF
48733 /* end confdefs.h. */
48739 return (s.s_fsid ^ 0) == 0;
48744 rm -f conftest.$ac_objext
48745 if { (ac_try="$ac_compile"
48746 case "(($ac_try" in
48747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48748 *) ac_try_echo=$ac_try;;
48750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48751 $as_echo "$ac_try_echo") >&5
48752 (eval "$ac_compile") 2>conftest.er1
48754 grep -v '^ *+' conftest.er1 >conftest.err
48756 cat conftest.err >&5
48757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758 (exit $ac_status); } && {
48759 test -z "$ac_c_werror_flag" ||
48760 test ! -s conftest.err
48761 } && test -s conftest.$ac_objext; then
48763 cat >>confdefs.h <<\_ACEOF
48764 #define STRUCT_STATVFS_F_FSID_IS_INTEGER 1
48768 $as_echo "$as_me: failed program was:" >&5
48769 sed 's/^/| /' conftest.$ac_ext >&5
48774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48776 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
48777 $as_echo_n "checking for struct statfs.f_namelen... " >&6; }
48778 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
48779 $as_echo_n "(cached) " >&6
48781 cat >conftest.$ac_ext <<_ACEOF
48784 cat confdefs.h >>conftest.$ac_ext
48785 cat >>conftest.$ac_ext <<_ACEOF
48786 /* end confdefs.h. */
48792 static struct statfs ac_aggr;
48793 if (ac_aggr.f_namelen)
48799 rm -f conftest.$ac_objext
48800 if { (ac_try="$ac_compile"
48801 case "(($ac_try" in
48802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48803 *) ac_try_echo=$ac_try;;
48805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48806 $as_echo "$ac_try_echo") >&5
48807 (eval "$ac_compile") 2>conftest.er1
48809 grep -v '^ *+' conftest.er1 >conftest.err
48811 cat conftest.err >&5
48812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813 (exit $ac_status); } && {
48814 test -z "$ac_c_werror_flag" ||
48815 test ! -s conftest.err
48816 } && test -s conftest.$ac_objext; then
48817 ac_cv_member_struct_statfs_f_namelen=yes
48819 $as_echo "$as_me: failed program was:" >&5
48820 sed 's/^/| /' conftest.$ac_ext >&5
48822 cat >conftest.$ac_ext <<_ACEOF
48825 cat confdefs.h >>conftest.$ac_ext
48826 cat >>conftest.$ac_ext <<_ACEOF
48827 /* end confdefs.h. */
48833 static struct statfs ac_aggr;
48834 if (sizeof ac_aggr.f_namelen)
48840 rm -f conftest.$ac_objext
48841 if { (ac_try="$ac_compile"
48842 case "(($ac_try" in
48843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48844 *) ac_try_echo=$ac_try;;
48846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48847 $as_echo "$ac_try_echo") >&5
48848 (eval "$ac_compile") 2>conftest.er1
48850 grep -v '^ *+' conftest.er1 >conftest.err
48852 cat conftest.err >&5
48853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854 (exit $ac_status); } && {
48855 test -z "$ac_c_werror_flag" ||
48856 test ! -s conftest.err
48857 } && test -s conftest.$ac_objext; then
48858 ac_cv_member_struct_statfs_f_namelen=yes
48860 $as_echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48863 ac_cv_member_struct_statfs_f_namelen=no
48866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48871 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
48872 $as_echo "$ac_cv_member_struct_statfs_f_namelen" >&6; }
48873 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
48875 cat >>confdefs.h <<_ACEOF
48876 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
48881 { $as_echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
48882 $as_echo_n "checking for struct statfs.f_type... " >&6; }
48883 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
48884 $as_echo_n "(cached) " >&6
48886 cat >conftest.$ac_ext <<_ACEOF
48889 cat confdefs.h >>conftest.$ac_ext
48890 cat >>conftest.$ac_ext <<_ACEOF
48891 /* end confdefs.h. */
48897 static struct statfs ac_aggr;
48898 if (ac_aggr.f_type)
48904 rm -f conftest.$ac_objext
48905 if { (ac_try="$ac_compile"
48906 case "(($ac_try" in
48907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48908 *) ac_try_echo=$ac_try;;
48910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48911 $as_echo "$ac_try_echo") >&5
48912 (eval "$ac_compile") 2>conftest.er1
48914 grep -v '^ *+' conftest.er1 >conftest.err
48916 cat conftest.err >&5
48917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48918 (exit $ac_status); } && {
48919 test -z "$ac_c_werror_flag" ||
48920 test ! -s conftest.err
48921 } && test -s conftest.$ac_objext; then
48922 ac_cv_member_struct_statfs_f_type=yes
48924 $as_echo "$as_me: failed program was:" >&5
48925 sed 's/^/| /' conftest.$ac_ext >&5
48927 cat >conftest.$ac_ext <<_ACEOF
48930 cat confdefs.h >>conftest.$ac_ext
48931 cat >>conftest.$ac_ext <<_ACEOF
48932 /* end confdefs.h. */
48938 static struct statfs ac_aggr;
48939 if (sizeof ac_aggr.f_type)
48945 rm -f conftest.$ac_objext
48946 if { (ac_try="$ac_compile"
48947 case "(($ac_try" in
48948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48949 *) ac_try_echo=$ac_try;;
48951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48952 $as_echo "$ac_try_echo") >&5
48953 (eval "$ac_compile") 2>conftest.er1
48955 grep -v '^ *+' conftest.er1 >conftest.err
48957 cat conftest.err >&5
48958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48959 (exit $ac_status); } && {
48960 test -z "$ac_c_werror_flag" ||
48961 test ! -s conftest.err
48962 } && test -s conftest.$ac_objext; then
48963 ac_cv_member_struct_statfs_f_type=yes
48965 $as_echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48968 ac_cv_member_struct_statfs_f_type=no
48971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48976 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
48977 $as_echo "$ac_cv_member_struct_statfs_f_type" >&6; }
48978 if test $ac_cv_member_struct_statfs_f_type = yes; then
48980 cat >>confdefs.h <<_ACEOF
48981 #define HAVE_STRUCT_STATFS_F_TYPE 1
48987 if test $ac_cv_header_OS_h != yes; then
48988 cat >conftest.$ac_ext <<_ACEOF
48991 cat confdefs.h >>conftest.$ac_ext
48992 cat >>conftest.$ac_ext <<_ACEOF
48993 /* end confdefs.h. */
48999 return (s.s_fsid ^ 0) == 0;
49004 rm -f conftest.$ac_objext
49005 if { (ac_try="$ac_compile"
49006 case "(($ac_try" in
49007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49008 *) ac_try_echo=$ac_try;;
49010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49011 $as_echo "$ac_try_echo") >&5
49012 (eval "$ac_compile") 2>conftest.er1
49014 grep -v '^ *+' conftest.er1 >conftest.err
49016 cat conftest.err >&5
49017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49018 (exit $ac_status); } && {
49019 test -z "$ac_c_werror_flag" ||
49020 test ! -s conftest.err
49021 } && test -s conftest.$ac_objext; then
49023 cat >>confdefs.h <<\_ACEOF
49024 #define STRUCT_STATFS_F_FSID_IS_INTEGER 1
49028 $as_echo "$as_me: failed program was:" >&5
49029 sed 's/^/| /' conftest.$ac_ext >&5
49034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49039 # for dd.c and shred.c
49040 coreutils_saved_libs=$LIBS
49041 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
49042 $as_echo_n "checking for library containing fdatasync... " >&6; }
49043 if test "${ac_cv_search_fdatasync+set}" = set; then
49044 $as_echo_n "(cached) " >&6
49046 ac_func_search_save_LIBS=$LIBS
49047 cat >conftest.$ac_ext <<_ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h. */
49054 /* Override any GCC internal prototype to avoid an error.
49055 Use char because int might match the return type of a GCC
49056 builtin and then its argument prototype would still apply. */
49064 return fdatasync ();
49069 for ac_lib in '' rt posix4; do
49070 if test -z "$ac_lib"; then
49071 ac_res="none required"
49074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49076 rm -f conftest.$ac_objext conftest$ac_exeext
49077 if { (ac_try="$ac_link"
49078 case "(($ac_try" in
49079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49080 *) ac_try_echo=$ac_try;;
49082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49083 $as_echo "$ac_try_echo") >&5
49084 (eval "$ac_link") 2>conftest.er1
49086 grep -v '^ *+' conftest.er1 >conftest.err
49088 cat conftest.err >&5
49089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49090 (exit $ac_status); } && {
49091 test -z "$ac_c_werror_flag" ||
49092 test ! -s conftest.err
49093 } && test -s conftest$ac_exeext &&
49094 $as_test_x conftest$ac_exeext; then
49095 ac_cv_search_fdatasync=$ac_res
49097 $as_echo "$as_me: failed program was:" >&5
49098 sed 's/^/| /' conftest.$ac_ext >&5
49103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49105 if test "${ac_cv_search_fdatasync+set}" = set; then
49109 if test "${ac_cv_search_fdatasync+set}" = set; then
49112 ac_cv_search_fdatasync=no
49114 rm conftest.$ac_ext
49115 LIBS=$ac_func_search_save_LIBS
49117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
49118 $as_echo "$ac_cv_search_fdatasync" >&6; }
49119 ac_res=$ac_cv_search_fdatasync
49120 if test "$ac_res" != no; then
49121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49122 test "$ac_cv_search_fdatasync" = "none required" ||
49123 LIB_FDATASYNC=$ac_cv_search_fdatasync
49128 for ac_func in fdatasync
49130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49132 $as_echo_n "checking for $ac_func... " >&6; }
49133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49134 $as_echo_n "(cached) " >&6
49136 cat >conftest.$ac_ext <<_ACEOF
49139 cat confdefs.h >>conftest.$ac_ext
49140 cat >>conftest.$ac_ext <<_ACEOF
49141 /* end confdefs.h. */
49142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49144 #define $ac_func innocuous_$ac_func
49146 /* System header to define __stub macros and hopefully few prototypes,
49147 which can conflict with char $ac_func (); below.
49148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49149 <limits.h> exists even on freestanding compilers. */
49152 # include <limits.h>
49154 # include <assert.h>
49159 /* Override any GCC internal prototype to avoid an error.
49160 Use char because int might match the return type of a GCC
49161 builtin and then its argument prototype would still apply. */
49166 /* The GNU C library defines this for functions which it implements
49167 to always fail with ENOSYS. Some functions are actually named
49168 something starting with __ and the normal name is an alias. */
49169 #if defined __stub_$ac_func || defined __stub___$ac_func
49176 return $ac_func ();
49181 rm -f conftest.$ac_objext conftest$ac_exeext
49182 if { (ac_try="$ac_link"
49183 case "(($ac_try" in
49184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49185 *) ac_try_echo=$ac_try;;
49187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49188 $as_echo "$ac_try_echo") >&5
49189 (eval "$ac_link") 2>conftest.er1
49191 grep -v '^ *+' conftest.er1 >conftest.err
49193 cat conftest.err >&5
49194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49195 (exit $ac_status); } && {
49196 test -z "$ac_c_werror_flag" ||
49197 test ! -s conftest.err
49198 } && test -s conftest$ac_exeext &&
49199 $as_test_x conftest$ac_exeext; then
49200 eval "$as_ac_var=yes"
49202 $as_echo "$as_me: failed program was:" >&5
49203 sed 's/^/| /' conftest.$ac_ext >&5
49205 eval "$as_ac_var=no"
49208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49209 conftest$ac_exeext conftest.$ac_ext
49211 ac_res=`eval 'as_val=${'$as_ac_var'}
49212 $as_echo "$as_val"'`
49213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49214 $as_echo "$ac_res" >&6; }
49215 if test `eval 'as_val=${'$as_ac_var'}
49216 $as_echo "$as_val"'` = yes; then
49217 cat >>confdefs.h <<_ACEOF
49218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49224 LIBS=$coreutils_saved_libs
49226 # See if linking `seq' requires -lm.
49227 # It does on nearly every system. The single exception (so far) is
49228 # BeOS which has all the math functions in the normal runtime library
49229 # and doesn't have a separate math library.
49233 static double x, y;
49237 cat >conftest.$ac_ext <<_ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h. */
49252 rm -f conftest.$ac_objext conftest$ac_exeext
49253 if { (ac_try="$ac_link"
49254 case "(($ac_try" in
49255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49256 *) ac_try_echo=$ac_try;;
49258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49259 $as_echo "$ac_try_echo") >&5
49260 (eval "$ac_link") 2>conftest.er1
49262 grep -v '^ *+' conftest.er1 >conftest.err
49264 cat conftest.err >&5
49265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49266 (exit $ac_status); } && {
49267 test -z "$ac_c_werror_flag" ||
49268 test ! -s conftest.err
49269 } && test -s conftest$ac_exeext &&
49270 $as_test_x conftest$ac_exeext; then
49273 $as_echo "$as_me: failed program was:" >&5
49274 sed 's/^/| /' conftest.$ac_ext >&5
49276 ac_seq_save_LIBS="$LIBS"
49278 cat >conftest.$ac_ext <<_ACEOF
49281 cat confdefs.h >>conftest.$ac_ext
49282 cat >>conftest.$ac_ext <<_ACEOF
49283 /* end confdefs.h. */
49293 rm -f conftest.$ac_objext conftest$ac_exeext
49294 if { (ac_try="$ac_link"
49295 case "(($ac_try" in
49296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49297 *) ac_try_echo=$ac_try;;
49299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49300 $as_echo "$ac_try_echo") >&5
49301 (eval "$ac_link") 2>conftest.er1
49303 grep -v '^ *+' conftest.er1 >conftest.err
49305 cat conftest.err >&5
49306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49307 (exit $ac_status); } && {
49308 test -z "$ac_c_werror_flag" ||
49309 test ! -s conftest.err
49310 } && test -s conftest$ac_exeext &&
49311 $as_test_x conftest$ac_exeext; then
49314 $as_echo "$as_me: failed program was:" >&5
49315 sed 's/^/| /' conftest.$ac_ext >&5
49320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49321 conftest$ac_exeext conftest.$ac_ext
49322 LIBS="$ac_seq_save_LIBS"
49326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49327 conftest$ac_exeext conftest.$ac_ext
49331 # Build df only if there's a point to it.
49332 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
49333 DF_PROG='df$(EXEEXT)'
49338 for ac_header in vfork.h
49340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49343 $as_echo_n "checking for $ac_header... " >&6; }
49344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49345 $as_echo_n "(cached) " >&6
49347 ac_res=`eval 'as_val=${'$as_ac_Header'}
49348 $as_echo "$as_val"'`
49349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49350 $as_echo "$ac_res" >&6; }
49352 # Is the header compilable?
49353 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49354 $as_echo_n "checking $ac_header usability... " >&6; }
49355 cat >conftest.$ac_ext <<_ACEOF
49358 cat confdefs.h >>conftest.$ac_ext
49359 cat >>conftest.$ac_ext <<_ACEOF
49360 /* end confdefs.h. */
49361 $ac_includes_default
49362 #include <$ac_header>
49364 rm -f conftest.$ac_objext
49365 if { (ac_try="$ac_compile"
49366 case "(($ac_try" in
49367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49368 *) ac_try_echo=$ac_try;;
49370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49371 $as_echo "$ac_try_echo") >&5
49372 (eval "$ac_compile") 2>conftest.er1
49374 grep -v '^ *+' conftest.er1 >conftest.err
49376 cat conftest.err >&5
49377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378 (exit $ac_status); } && {
49379 test -z "$ac_c_werror_flag" ||
49380 test ! -s conftest.err
49381 } && test -s conftest.$ac_objext; then
49382 ac_header_compiler=yes
49384 $as_echo "$as_me: failed program was:" >&5
49385 sed 's/^/| /' conftest.$ac_ext >&5
49387 ac_header_compiler=no
49390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49391 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49392 $as_echo "$ac_header_compiler" >&6; }
49394 # Is the header present?
49395 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49396 $as_echo_n "checking $ac_header presence... " >&6; }
49397 cat >conftest.$ac_ext <<_ACEOF
49400 cat confdefs.h >>conftest.$ac_ext
49401 cat >>conftest.$ac_ext <<_ACEOF
49402 /* end confdefs.h. */
49403 #include <$ac_header>
49405 if { (ac_try="$ac_cpp conftest.$ac_ext"
49406 case "(($ac_try" in
49407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49408 *) ac_try_echo=$ac_try;;
49410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49411 $as_echo "$ac_try_echo") >&5
49412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49414 grep -v '^ *+' conftest.er1 >conftest.err
49416 cat conftest.err >&5
49417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49418 (exit $ac_status); } >/dev/null && {
49419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49420 test ! -s conftest.err
49422 ac_header_preproc=yes
49424 $as_echo "$as_me: failed program was:" >&5
49425 sed 's/^/| /' conftest.$ac_ext >&5
49427 ac_header_preproc=no
49430 rm -f conftest.err conftest.$ac_ext
49431 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49432 $as_echo "$ac_header_preproc" >&6; }
49434 # So? What about this header?
49435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49438 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49441 ac_header_preproc=yes
49444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49445 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49447 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49449 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49451 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49455 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49457 ## ------------------------------------ ##
49458 ## Report this to bug-coreutils@gnu.org ##
49459 ## ------------------------------------ ##
49461 ) | sed "s/^/$as_me: WARNING: /" >&2
49464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49465 $as_echo_n "checking for $ac_header... " >&6; }
49466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49467 $as_echo_n "(cached) " >&6
49469 eval "$as_ac_Header=\$ac_header_preproc"
49471 ac_res=`eval 'as_val=${'$as_ac_Header'}
49472 $as_echo "$as_val"'`
49473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49474 $as_echo "$ac_res" >&6; }
49477 if test `eval 'as_val=${'$as_ac_Header'}
49478 $as_echo "$as_val"'` = yes; then
49479 cat >>confdefs.h <<_ACEOF
49480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49489 for ac_func in fork vfork
49491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49493 $as_echo_n "checking for $ac_func... " >&6; }
49494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49495 $as_echo_n "(cached) " >&6
49497 cat >conftest.$ac_ext <<_ACEOF
49500 cat confdefs.h >>conftest.$ac_ext
49501 cat >>conftest.$ac_ext <<_ACEOF
49502 /* end confdefs.h. */
49503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49505 #define $ac_func innocuous_$ac_func
49507 /* System header to define __stub macros and hopefully few prototypes,
49508 which can conflict with char $ac_func (); below.
49509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49510 <limits.h> exists even on freestanding compilers. */
49513 # include <limits.h>
49515 # include <assert.h>
49520 /* Override any GCC internal prototype to avoid an error.
49521 Use char because int might match the return type of a GCC
49522 builtin and then its argument prototype would still apply. */
49527 /* The GNU C library defines this for functions which it implements
49528 to always fail with ENOSYS. Some functions are actually named
49529 something starting with __ and the normal name is an alias. */
49530 #if defined __stub_$ac_func || defined __stub___$ac_func
49537 return $ac_func ();
49542 rm -f conftest.$ac_objext conftest$ac_exeext
49543 if { (ac_try="$ac_link"
49544 case "(($ac_try" in
49545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49546 *) ac_try_echo=$ac_try;;
49548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49549 $as_echo "$ac_try_echo") >&5
49550 (eval "$ac_link") 2>conftest.er1
49552 grep -v '^ *+' conftest.er1 >conftest.err
49554 cat conftest.err >&5
49555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49556 (exit $ac_status); } && {
49557 test -z "$ac_c_werror_flag" ||
49558 test ! -s conftest.err
49559 } && test -s conftest$ac_exeext &&
49560 $as_test_x conftest$ac_exeext; then
49561 eval "$as_ac_var=yes"
49563 $as_echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49566 eval "$as_ac_var=no"
49569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49570 conftest$ac_exeext conftest.$ac_ext
49572 ac_res=`eval 'as_val=${'$as_ac_var'}
49573 $as_echo "$as_val"'`
49574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49575 $as_echo "$ac_res" >&6; }
49576 if test `eval 'as_val=${'$as_ac_var'}
49577 $as_echo "$as_val"'` = yes; then
49578 cat >>confdefs.h <<_ACEOF
49579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49585 if test "x$ac_cv_func_fork" = xyes; then
49586 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
49587 $as_echo_n "checking for working fork... " >&6; }
49588 if test "${ac_cv_func_fork_works+set}" = set; then
49589 $as_echo_n "(cached) " >&6
49591 if test "$cross_compiling" = yes; then
49592 ac_cv_func_fork_works=cross
49594 cat >conftest.$ac_ext <<_ACEOF
49597 cat confdefs.h >>conftest.$ac_ext
49598 cat >>conftest.$ac_ext <<_ACEOF
49599 /* end confdefs.h. */
49600 $ac_includes_default
49605 /* By Ruediger Kuhlmann. */
49606 return fork () < 0;
49612 rm -f conftest$ac_exeext
49613 if { (ac_try="$ac_link"
49614 case "(($ac_try" in
49615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49616 *) ac_try_echo=$ac_try;;
49618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49619 $as_echo "$ac_try_echo") >&5
49620 (eval "$ac_link") 2>&5
49622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49624 { (case "(($ac_try" in
49625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49626 *) ac_try_echo=$ac_try;;
49628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49629 $as_echo "$ac_try_echo") >&5
49630 (eval "$ac_try") 2>&5
49632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49633 (exit $ac_status); }; }; then
49634 ac_cv_func_fork_works=yes
49636 $as_echo "$as_me: program exited with status $ac_status" >&5
49637 $as_echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49640 ( exit $ac_status )
49641 ac_cv_func_fork_works=no
49643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
49649 $as_echo "$ac_cv_func_fork_works" >&6; }
49652 ac_cv_func_fork_works=$ac_cv_func_fork
49654 if test "x$ac_cv_func_fork_works" = xcross; then
49656 *-*-amigaos* | *-*-msdosdjgpp*)
49657 # Override, as these systems have only a dummy fork() stub
49658 ac_cv_func_fork_works=no
49661 ac_cv_func_fork_works=yes
49664 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
49665 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
49667 ac_cv_func_vfork_works=$ac_cv_func_vfork
49668 if test "x$ac_cv_func_vfork" = xyes; then
49669 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
49670 $as_echo_n "checking for working vfork... " >&6; }
49671 if test "${ac_cv_func_vfork_works+set}" = set; then
49672 $as_echo_n "(cached) " >&6
49674 if test "$cross_compiling" = yes; then
49675 ac_cv_func_vfork_works=cross
49677 cat >conftest.$ac_ext <<_ACEOF
49680 cat confdefs.h >>conftest.$ac_ext
49681 cat >>conftest.$ac_ext <<_ACEOF
49682 /* end confdefs.h. */
49683 /* Thanks to Paul Eggert for this test. */
49684 $ac_includes_default
49685 #include <sys/wait.h>
49686 #ifdef HAVE_VFORK_H
49687 # include <vfork.h>
49689 /* On some sparc systems, changes by the child to local and incoming
49690 argument registers are propagated back to the parent. The compiler
49691 is told about this with #include <vfork.h>, but some compilers
49692 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
49693 static variable whose address is put into a register that is
49694 clobbered by the vfork. */
49697 sparc_address_test (int arg)
49699 sparc_address_test (arg) int arg;
49702 static pid_t child;
49720 pid_t parent = getpid ();
49723 sparc_address_test (0);
49728 /* Here is another test for sparc vfork register problems. This
49729 test uses lots of local variables, at least as many local
49730 variables as main has allocated so far including compiler
49731 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
49732 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
49733 reuse the register of parent for one of the local variables,
49734 since it will think that parent can't possibly be used any more
49735 in this routine. Assigning to the local variable will thus
49736 munge parent in the parent process. */
49738 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
49739 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
49740 /* Convince the compiler that p..p7 are live; otherwise, it might
49741 use the same hardware register for all 8 local variables. */
49742 if (p != p1 || p != p2 || p != p3 || p != p4
49743 || p != p5 || p != p6 || p != p7)
49746 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
49747 from child file descriptors. If the child closes a descriptor
49748 before it execs or exits, this munges the parent's descriptor
49749 as well. Test for this by closing stdout in the child. */
49750 _exit(close(fileno(stdout)) != 0);
49755 while (wait(&status) != child)
49758 /* Was there some problem with vforking? */
49761 /* Did the child fail? (This shouldn't happen.) */
49764 /* Did the vfork/compiler bug occur? */
49765 || parent != getpid()
49767 /* Did the file descriptor bug occur? */
49768 || fstat(fileno(stdout), &st) != 0
49773 rm -f conftest$ac_exeext
49774 if { (ac_try="$ac_link"
49775 case "(($ac_try" in
49776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49777 *) ac_try_echo=$ac_try;;
49779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49780 $as_echo "$ac_try_echo") >&5
49781 (eval "$ac_link") 2>&5
49783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49785 { (case "(($ac_try" in
49786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49787 *) ac_try_echo=$ac_try;;
49789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49790 $as_echo "$ac_try_echo") >&5
49791 (eval "$ac_try") 2>&5
49793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49794 (exit $ac_status); }; }; then
49795 ac_cv_func_vfork_works=yes
49797 $as_echo "$as_me: program exited with status $ac_status" >&5
49798 $as_echo "$as_me: failed program was:" >&5
49799 sed 's/^/| /' conftest.$ac_ext >&5
49801 ( exit $ac_status )
49802 ac_cv_func_vfork_works=no
49804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49809 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
49810 $as_echo "$ac_cv_func_vfork_works" >&6; }
49813 if test "x$ac_cv_func_fork_works" = xcross; then
49814 ac_cv_func_vfork_works=$ac_cv_func_vfork
49815 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
49816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
49819 if test "x$ac_cv_func_vfork_works" = xyes; then
49821 cat >>confdefs.h <<\_ACEOF
49822 #define HAVE_WORKING_VFORK 1
49827 cat >>confdefs.h <<\_ACEOF
49832 if test "x$ac_cv_func_fork_works" = xyes; then
49834 cat >>confdefs.h <<\_ACEOF
49835 #define HAVE_WORKING_FORK 1
49842 for ac_func in uname
49844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49846 $as_echo_n "checking for $ac_func... " >&6; }
49847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49848 $as_echo_n "(cached) " >&6
49850 cat >conftest.$ac_ext <<_ACEOF
49853 cat confdefs.h >>conftest.$ac_ext
49854 cat >>conftest.$ac_ext <<_ACEOF
49855 /* end confdefs.h. */
49856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49858 #define $ac_func innocuous_$ac_func
49860 /* System header to define __stub macros and hopefully few prototypes,
49861 which can conflict with char $ac_func (); below.
49862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49863 <limits.h> exists even on freestanding compilers. */
49866 # include <limits.h>
49868 # include <assert.h>
49873 /* Override any GCC internal prototype to avoid an error.
49874 Use char because int might match the return type of a GCC
49875 builtin and then its argument prototype would still apply. */
49880 /* The GNU C library defines this for functions which it implements
49881 to always fail with ENOSYS. Some functions are actually named
49882 something starting with __ and the normal name is an alias. */
49883 #if defined __stub_$ac_func || defined __stub___$ac_func
49890 return $ac_func ();
49895 rm -f conftest.$ac_objext conftest$ac_exeext
49896 if { (ac_try="$ac_link"
49897 case "(($ac_try" in
49898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49899 *) ac_try_echo=$ac_try;;
49901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49902 $as_echo "$ac_try_echo") >&5
49903 (eval "$ac_link") 2>conftest.er1
49905 grep -v '^ *+' conftest.er1 >conftest.err
49907 cat conftest.err >&5
49908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909 (exit $ac_status); } && {
49910 test -z "$ac_c_werror_flag" ||
49911 test ! -s conftest.err
49912 } && test -s conftest$ac_exeext &&
49913 $as_test_x conftest$ac_exeext; then
49914 eval "$as_ac_var=yes"
49916 $as_echo "$as_me: failed program was:" >&5
49917 sed 's/^/| /' conftest.$ac_ext >&5
49919 eval "$as_ac_var=no"
49922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49923 conftest$ac_exeext conftest.$ac_ext
49925 ac_res=`eval 'as_val=${'$as_ac_var'}
49926 $as_echo "$as_val"'`
49927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49928 $as_echo "$ac_res" >&6; }
49929 if test `eval 'as_val=${'$as_ac_var'}
49930 $as_echo "$as_val"'` = yes; then
49931 cat >>confdefs.h <<_ACEOF
49932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49934 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
49940 for ac_func in chroot
49942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49943 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49944 $as_echo_n "checking for $ac_func... " >&6; }
49945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49946 $as_echo_n "(cached) " >&6
49948 cat >conftest.$ac_ext <<_ACEOF
49951 cat confdefs.h >>conftest.$ac_ext
49952 cat >>conftest.$ac_ext <<_ACEOF
49953 /* end confdefs.h. */
49954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49956 #define $ac_func innocuous_$ac_func
49958 /* System header to define __stub macros and hopefully few prototypes,
49959 which can conflict with char $ac_func (); below.
49960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49961 <limits.h> exists even on freestanding compilers. */
49964 # include <limits.h>
49966 # include <assert.h>
49971 /* Override any GCC internal prototype to avoid an error.
49972 Use char because int might match the return type of a GCC
49973 builtin and then its argument prototype would still apply. */
49978 /* The GNU C library defines this for functions which it implements
49979 to always fail with ENOSYS. Some functions are actually named
49980 something starting with __ and the normal name is an alias. */
49981 #if defined __stub_$ac_func || defined __stub___$ac_func
49988 return $ac_func ();
49993 rm -f conftest.$ac_objext conftest$ac_exeext
49994 if { (ac_try="$ac_link"
49995 case "(($ac_try" in
49996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49997 *) ac_try_echo=$ac_try;;
49999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50000 $as_echo "$ac_try_echo") >&5
50001 (eval "$ac_link") 2>conftest.er1
50003 grep -v '^ *+' conftest.er1 >conftest.err
50005 cat conftest.err >&5
50006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50007 (exit $ac_status); } && {
50008 test -z "$ac_c_werror_flag" ||
50009 test ! -s conftest.err
50010 } && test -s conftest$ac_exeext &&
50011 $as_test_x conftest$ac_exeext; then
50012 eval "$as_ac_var=yes"
50014 $as_echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50017 eval "$as_ac_var=no"
50020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50021 conftest$ac_exeext conftest.$ac_ext
50023 ac_res=`eval 'as_val=${'$as_ac_var'}
50024 $as_echo "$as_val"'`
50025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50026 $as_echo "$ac_res" >&6; }
50027 if test `eval 'as_val=${'$as_ac_var'}
50028 $as_echo "$as_val"'` = yes; then
50029 cat >>confdefs.h <<_ACEOF
50030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50032 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
50033 MAN="$MAN chroot.1"
50038 for ac_func in gethostid
50040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50042 $as_echo_n "checking for $ac_func... " >&6; }
50043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50044 $as_echo_n "(cached) " >&6
50046 cat >conftest.$ac_ext <<_ACEOF
50049 cat confdefs.h >>conftest.$ac_ext
50050 cat >>conftest.$ac_ext <<_ACEOF
50051 /* end confdefs.h. */
50052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50054 #define $ac_func innocuous_$ac_func
50056 /* System header to define __stub macros and hopefully few prototypes,
50057 which can conflict with char $ac_func (); below.
50058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50059 <limits.h> exists even on freestanding compilers. */
50062 # include <limits.h>
50064 # include <assert.h>
50069 /* Override any GCC internal prototype to avoid an error.
50070 Use char because int might match the return type of a GCC
50071 builtin and then its argument prototype would still apply. */
50076 /* The GNU C library defines this for functions which it implements
50077 to always fail with ENOSYS. Some functions are actually named
50078 something starting with __ and the normal name is an alias. */
50079 #if defined __stub_$ac_func || defined __stub___$ac_func
50086 return $ac_func ();
50091 rm -f conftest.$ac_objext conftest$ac_exeext
50092 if { (ac_try="$ac_link"
50093 case "(($ac_try" in
50094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50095 *) ac_try_echo=$ac_try;;
50097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50098 $as_echo "$ac_try_echo") >&5
50099 (eval "$ac_link") 2>conftest.er1
50101 grep -v '^ *+' conftest.er1 >conftest.err
50103 cat conftest.err >&5
50104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50105 (exit $ac_status); } && {
50106 test -z "$ac_c_werror_flag" ||
50107 test ! -s conftest.err
50108 } && test -s conftest$ac_exeext &&
50109 $as_test_x conftest$ac_exeext; then
50110 eval "$as_ac_var=yes"
50112 $as_echo "$as_me: failed program was:" >&5
50113 sed 's/^/| /' conftest.$ac_ext >&5
50115 eval "$as_ac_var=no"
50118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50119 conftest$ac_exeext conftest.$ac_ext
50121 ac_res=`eval 'as_val=${'$as_ac_var'}
50122 $as_echo "$as_val"'`
50123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50124 $as_echo "$ac_res" >&6; }
50125 if test `eval 'as_val=${'$as_ac_var'}
50126 $as_echo "$as_val"'` = yes; then
50127 cat >>confdefs.h <<_ACEOF
50128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50130 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
50131 MAN="$MAN hostid.1"
50137 { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
50138 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
50139 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
50140 $as_echo_n "(cached) " >&6
50142 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
50143 if test $ac_cv_sys_posix_termios = yes; then
50144 cat >conftest.$ac_ext <<_ACEOF
50147 cat confdefs.h >>conftest.$ac_ext
50148 cat >>conftest.$ac_ext <<_ACEOF
50149 /* end confdefs.h. */
50150 #include <termios.h>
50155 if (sizeof x > 0) return 0;
50160 rm -f conftest.$ac_objext
50161 if { (ac_try="$ac_compile"
50162 case "(($ac_try" in
50163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50164 *) ac_try_echo=$ac_try;;
50166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50167 $as_echo "$ac_try_echo") >&5
50168 (eval "$ac_compile") 2>conftest.er1
50170 grep -v '^ *+' conftest.er1 >conftest.err
50172 cat conftest.err >&5
50173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174 (exit $ac_status); } && {
50175 test -z "$ac_c_werror_flag" ||
50176 test ! -s conftest.err
50177 } && test -s conftest.$ac_objext; then
50178 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50180 $as_echo "$as_me: failed program was:" >&5
50181 sed 's/^/| /' conftest.$ac_ext >&5
50186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50188 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50189 cat >conftest.$ac_ext <<_ACEOF
50192 cat confdefs.h >>conftest.$ac_ext
50193 cat >>conftest.$ac_ext <<_ACEOF
50194 /* end confdefs.h. */
50195 #include <sys/ptem.h>
50200 if (sizeof x > 0) return 0;
50205 rm -f conftest.$ac_objext
50206 if { (ac_try="$ac_compile"
50207 case "(($ac_try" in
50208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50209 *) ac_try_echo=$ac_try;;
50211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50212 $as_echo "$ac_try_echo") >&5
50213 (eval "$ac_compile") 2>conftest.er1
50215 grep -v '^ *+' conftest.er1 >conftest.err
50217 cat conftest.err >&5
50218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50219 (exit $ac_status); } && {
50220 test -z "$ac_c_werror_flag" ||
50221 test ! -s conftest.err
50222 } && test -s conftest.$ac_objext; then
50225 $as_echo "$as_me: failed program was:" >&5
50226 sed 's/^/| /' conftest.$ac_ext >&5
50228 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50234 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
50235 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
50236 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50238 cat >>confdefs.h <<\_ACEOF
50239 #define WINSIZE_IN_PTEM 1
50244 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
50245 $as_echo_n "checking whether localtime caches TZ... " >&6; }
50246 if test "${utils_cv_localtime_cache+set}" = set; then
50247 $as_echo_n "(cached) " >&6
50249 if test x$ac_cv_func_tzset = xyes; then
50250 if test "$cross_compiling" = yes; then
50251 # If we have tzset, assume the worst when cross-compiling.
50252 utils_cv_localtime_cache=yes
50254 cat >conftest.$ac_ext <<_ACEOF
50257 cat confdefs.h >>conftest.$ac_ext
50258 cat >>conftest.$ac_ext <<_ACEOF
50259 /* end confdefs.h. */
50262 # include <stdlib.h>
50264 extern char **environ;
50265 void unset_TZ (void)
50268 for (to = from = environ; (*to = *from); from++)
50269 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
50274 time_t now = time ((time_t *) 0);
50275 int hour_GMT0, hour_unset;
50276 if (putenv ("TZ=GMT0") != 0)
50278 hour_GMT0 = localtime (&now)->tm_hour;
50280 hour_unset = localtime (&now)->tm_hour;
50281 if (putenv ("TZ=PST8") != 0)
50283 if (localtime (&now)->tm_hour == hour_GMT0)
50286 if (localtime (&now)->tm_hour != hour_unset)
50291 rm -f conftest$ac_exeext
50292 if { (ac_try="$ac_link"
50293 case "(($ac_try" in
50294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50295 *) ac_try_echo=$ac_try;;
50297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50298 $as_echo "$ac_try_echo") >&5
50299 (eval "$ac_link") 2>&5
50301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50303 { (case "(($ac_try" in
50304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50305 *) ac_try_echo=$ac_try;;
50307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50308 $as_echo "$ac_try_echo") >&5
50309 (eval "$ac_try") 2>&5
50311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312 (exit $ac_status); }; }; then
50313 utils_cv_localtime_cache=no
50315 $as_echo "$as_me: program exited with status $ac_status" >&5
50316 $as_echo "$as_me: failed program was:" >&5
50317 sed 's/^/| /' conftest.$ac_ext >&5
50319 ( exit $ac_status )
50320 utils_cv_localtime_cache=yes
50322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50327 # If we lack tzset, report that localtime does not cache TZ,
50328 # since we can't invalidate the cache if we don't have tzset.
50329 utils_cv_localtime_cache=no
50332 { $as_echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
50333 $as_echo "$utils_cv_localtime_cache" >&6; }
50334 if test $utils_cv_localtime_cache = yes; then
50336 cat >>confdefs.h <<\_ACEOF
50337 #define LOCALTIME_CACHE 1
50342 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
50344 for ac_func in initgroups
50346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50347 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50348 $as_echo_n "checking for $ac_func... " >&6; }
50349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50350 $as_echo_n "(cached) " >&6
50352 cat >conftest.$ac_ext <<_ACEOF
50355 cat confdefs.h >>conftest.$ac_ext
50356 cat >>conftest.$ac_ext <<_ACEOF
50357 /* end confdefs.h. */
50358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50360 #define $ac_func innocuous_$ac_func
50362 /* System header to define __stub macros and hopefully few prototypes,
50363 which can conflict with char $ac_func (); below.
50364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50365 <limits.h> exists even on freestanding compilers. */
50368 # include <limits.h>
50370 # include <assert.h>
50375 /* Override any GCC internal prototype to avoid an error.
50376 Use char because int might match the return type of a GCC
50377 builtin and then its argument prototype would still apply. */
50382 /* The GNU C library defines this for functions which it implements
50383 to always fail with ENOSYS. Some functions are actually named
50384 something starting with __ and the normal name is an alias. */
50385 #if defined __stub_$ac_func || defined __stub___$ac_func
50392 return $ac_func ();
50397 rm -f conftest.$ac_objext conftest$ac_exeext
50398 if { (ac_try="$ac_link"
50399 case "(($ac_try" in
50400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50401 *) ac_try_echo=$ac_try;;
50403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50404 $as_echo "$ac_try_echo") >&5
50405 (eval "$ac_link") 2>conftest.er1
50407 grep -v '^ *+' conftest.er1 >conftest.err
50409 cat conftest.err >&5
50410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50411 (exit $ac_status); } && {
50412 test -z "$ac_c_werror_flag" ||
50413 test ! -s conftest.err
50414 } && test -s conftest$ac_exeext &&
50415 $as_test_x conftest$ac_exeext; then
50416 eval "$as_ac_var=yes"
50418 $as_echo "$as_me: failed program was:" >&5
50419 sed 's/^/| /' conftest.$ac_ext >&5
50421 eval "$as_ac_var=no"
50424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50425 conftest$ac_exeext conftest.$ac_ext
50427 ac_res=`eval 'as_val=${'$as_ac_var'}
50428 $as_echo "$as_val"'`
50429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50430 $as_echo "$ac_res" >&6; }
50431 if test `eval 'as_val=${'$as_ac_var'}
50432 $as_echo "$as_val"'` = yes; then
50433 cat >>confdefs.h <<_ACEOF
50434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50440 if test $ac_cv_func_initgroups = no; then
50442 { $as_echo "$as_me:$LINENO: checking for initgroups in -los" >&5
50443 $as_echo_n "checking for initgroups in -los... " >&6; }
50444 if test "${ac_cv_lib_os_initgroups+set}" = set; then
50445 $as_echo_n "(cached) " >&6
50447 ac_check_lib_save_LIBS=$LIBS
50449 cat >conftest.$ac_ext <<_ACEOF
50452 cat confdefs.h >>conftest.$ac_ext
50453 cat >>conftest.$ac_ext <<_ACEOF
50454 /* end confdefs.h. */
50456 /* Override any GCC internal prototype to avoid an error.
50457 Use char because int might match the return type of a GCC
50458 builtin and then its argument prototype would still apply. */
50462 char initgroups ();
50466 return initgroups ();
50471 rm -f conftest.$ac_objext conftest$ac_exeext
50472 if { (ac_try="$ac_link"
50473 case "(($ac_try" in
50474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50475 *) ac_try_echo=$ac_try;;
50477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50478 $as_echo "$ac_try_echo") >&5
50479 (eval "$ac_link") 2>conftest.er1
50481 grep -v '^ *+' conftest.er1 >conftest.err
50483 cat conftest.err >&5
50484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50485 (exit $ac_status); } && {
50486 test -z "$ac_c_werror_flag" ||
50487 test ! -s conftest.err
50488 } && test -s conftest$ac_exeext &&
50489 $as_test_x conftest$ac_exeext; then
50490 ac_cv_lib_os_initgroups=yes
50492 $as_echo "$as_me: failed program was:" >&5
50493 sed 's/^/| /' conftest.$ac_ext >&5
50495 ac_cv_lib_os_initgroups=no
50498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50499 conftest$ac_exeext conftest.$ac_ext
50500 LIBS=$ac_check_lib_save_LIBS
50502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
50503 $as_echo "$ac_cv_lib_os_initgroups" >&6; }
50504 if test $ac_cv_lib_os_initgroups = yes; then
50505 cat >>confdefs.h <<_ACEOF
50506 #define HAVE_LIBOS 1
50516 for ac_func in syslog
50518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50520 $as_echo_n "checking for $ac_func... " >&6; }
50521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50522 $as_echo_n "(cached) " >&6
50524 cat >conftest.$ac_ext <<_ACEOF
50527 cat confdefs.h >>conftest.$ac_ext
50528 cat >>conftest.$ac_ext <<_ACEOF
50529 /* end confdefs.h. */
50530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50532 #define $ac_func innocuous_$ac_func
50534 /* System header to define __stub macros and hopefully few prototypes,
50535 which can conflict with char $ac_func (); below.
50536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50537 <limits.h> exists even on freestanding compilers. */
50540 # include <limits.h>
50542 # include <assert.h>
50547 /* Override any GCC internal prototype to avoid an error.
50548 Use char because int might match the return type of a GCC
50549 builtin and then its argument prototype would still apply. */
50554 /* The GNU C library defines this for functions which it implements
50555 to always fail with ENOSYS. Some functions are actually named
50556 something starting with __ and the normal name is an alias. */
50557 #if defined __stub_$ac_func || defined __stub___$ac_func
50564 return $ac_func ();
50569 rm -f conftest.$ac_objext conftest$ac_exeext
50570 if { (ac_try="$ac_link"
50571 case "(($ac_try" in
50572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50573 *) ac_try_echo=$ac_try;;
50575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50576 $as_echo "$ac_try_echo") >&5
50577 (eval "$ac_link") 2>conftest.er1
50579 grep -v '^ *+' conftest.er1 >conftest.err
50581 cat conftest.err >&5
50582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50583 (exit $ac_status); } && {
50584 test -z "$ac_c_werror_flag" ||
50585 test ! -s conftest.err
50586 } && test -s conftest$ac_exeext &&
50587 $as_test_x conftest$ac_exeext; then
50588 eval "$as_ac_var=yes"
50590 $as_echo "$as_me: failed program was:" >&5
50591 sed 's/^/| /' conftest.$ac_ext >&5
50593 eval "$as_ac_var=no"
50596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50597 conftest$ac_exeext conftest.$ac_ext
50599 ac_res=`eval 'as_val=${'$as_ac_var'}
50600 $as_echo "$as_val"'`
50601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50602 $as_echo "$ac_res" >&6; }
50603 if test `eval 'as_val=${'$as_ac_var'}
50604 $as_echo "$as_val"'` = yes; then
50605 cat >>confdefs.h <<_ACEOF
50606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50612 if test $ac_cv_func_syslog = no; then
50613 # syslog is not in the default libraries. See if it's in some other.
50614 for lib in bsd socket inet; do
50615 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
50616 { $as_echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
50617 $as_echo_n "checking for syslog in -l$lib... " >&6; }
50618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50619 $as_echo_n "(cached) " >&6
50621 ac_check_lib_save_LIBS=$LIBS
50622 LIBS="-l$lib $LIBS"
50623 cat >conftest.$ac_ext <<_ACEOF
50626 cat confdefs.h >>conftest.$ac_ext
50627 cat >>conftest.$ac_ext <<_ACEOF
50628 /* end confdefs.h. */
50630 /* Override any GCC internal prototype to avoid an error.
50631 Use char because int might match the return type of a GCC
50632 builtin and then its argument prototype would still apply. */
50645 rm -f conftest.$ac_objext conftest$ac_exeext
50646 if { (ac_try="$ac_link"
50647 case "(($ac_try" in
50648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50649 *) ac_try_echo=$ac_try;;
50651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50652 $as_echo "$ac_try_echo") >&5
50653 (eval "$ac_link") 2>conftest.er1
50655 grep -v '^ *+' conftest.er1 >conftest.err
50657 cat conftest.err >&5
50658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50659 (exit $ac_status); } && {
50660 test -z "$ac_c_werror_flag" ||
50661 test ! -s conftest.err
50662 } && test -s conftest$ac_exeext &&
50663 $as_test_x conftest$ac_exeext; then
50664 eval "$as_ac_Lib=yes"
50666 $as_echo "$as_me: failed program was:" >&5
50667 sed 's/^/| /' conftest.$ac_ext >&5
50669 eval "$as_ac_Lib=no"
50672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50673 conftest$ac_exeext conftest.$ac_ext
50674 LIBS=$ac_check_lib_save_LIBS
50676 ac_res=`eval 'as_val=${'$as_ac_Lib'}
50677 $as_echo "$as_val"'`
50678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50679 $as_echo "$ac_res" >&6; }
50680 if test `eval 'as_val=${'$as_ac_Lib'}
50681 $as_echo "$as_val"'` = yes; then
50683 cat >>confdefs.h <<\_ACEOF
50684 #define HAVE_SYSLOG 1
50687 LIBS="$LIBS -l$lib"; break
50693 { $as_echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
50694 $as_echo_n "checking for 3-argument setpriority function... " >&6; }
50695 if test "${utils_cv_func_setpriority+set}" = set; then
50696 $as_echo_n "(cached) " >&6
50698 cat >conftest.$ac_ext <<_ACEOF
50701 cat confdefs.h >>conftest.$ac_ext
50702 cat >>conftest.$ac_ext <<_ACEOF
50703 /* end confdefs.h. */
50704 #include <sys/time.h>
50705 #include <sys/resource.h>
50710 setpriority (0, 0, 0);
50715 rm -f conftest.$ac_objext conftest$ac_exeext
50716 if { (ac_try="$ac_link"
50717 case "(($ac_try" in
50718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50719 *) ac_try_echo=$ac_try;;
50721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50722 $as_echo "$ac_try_echo") >&5
50723 (eval "$ac_link") 2>conftest.er1
50725 grep -v '^ *+' conftest.er1 >conftest.err
50727 cat conftest.err >&5
50728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50729 (exit $ac_status); } && {
50730 test -z "$ac_c_werror_flag" ||
50731 test ! -s conftest.err
50732 } && test -s conftest$ac_exeext &&
50733 $as_test_x conftest$ac_exeext; then
50734 utils_cv_func_setpriority=yes
50736 $as_echo "$as_me: failed program was:" >&5
50737 sed 's/^/| /' conftest.$ac_ext >&5
50739 utils_cv_func_setpriority=no
50742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50743 conftest$ac_exeext conftest.$ac_ext
50745 { $as_echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
50746 $as_echo "$utils_cv_func_setpriority" >&6; }
50747 if test $utils_cv_func_setpriority = no; then
50749 for ac_func in nice
50751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50753 $as_echo_n "checking for $ac_func... " >&6; }
50754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50755 $as_echo_n "(cached) " >&6
50757 cat >conftest.$ac_ext <<_ACEOF
50760 cat confdefs.h >>conftest.$ac_ext
50761 cat >>conftest.$ac_ext <<_ACEOF
50762 /* end confdefs.h. */
50763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50765 #define $ac_func innocuous_$ac_func
50767 /* System header to define __stub macros and hopefully few prototypes,
50768 which can conflict with char $ac_func (); below.
50769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50770 <limits.h> exists even on freestanding compilers. */
50773 # include <limits.h>
50775 # include <assert.h>
50780 /* Override any GCC internal prototype to avoid an error.
50781 Use char because int might match the return type of a GCC
50782 builtin and then its argument prototype would still apply. */
50787 /* The GNU C library defines this for functions which it implements
50788 to always fail with ENOSYS. Some functions are actually named
50789 something starting with __ and the normal name is an alias. */
50790 #if defined __stub_$ac_func || defined __stub___$ac_func
50797 return $ac_func ();
50802 rm -f conftest.$ac_objext conftest$ac_exeext
50803 if { (ac_try="$ac_link"
50804 case "(($ac_try" in
50805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50806 *) ac_try_echo=$ac_try;;
50808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50809 $as_echo "$ac_try_echo") >&5
50810 (eval "$ac_link") 2>conftest.er1
50812 grep -v '^ *+' conftest.er1 >conftest.err
50814 cat conftest.err >&5
50815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50816 (exit $ac_status); } && {
50817 test -z "$ac_c_werror_flag" ||
50818 test ! -s conftest.err
50819 } && test -s conftest$ac_exeext &&
50820 $as_test_x conftest$ac_exeext; then
50821 eval "$as_ac_var=yes"
50823 $as_echo "$as_me: failed program was:" >&5
50824 sed 's/^/| /' conftest.$ac_ext >&5
50826 eval "$as_ac_var=no"
50829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50830 conftest$ac_exeext conftest.$ac_ext
50832 ac_res=`eval 'as_val=${'$as_ac_var'}
50833 $as_echo "$as_val"'`
50834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50835 $as_echo "$ac_res" >&6; }
50836 if test `eval 'as_val=${'$as_ac_var'}
50837 $as_echo "$as_val"'` = yes; then
50838 cat >>confdefs.h <<_ACEOF
50839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50846 case $utils_cv_func_setpriority,$ac_cv_func_nice in
50848 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
50849 MAN="$MAN nice.1";;
50855 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
50856 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
50857 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
50858 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
50859 MAN="$MAN pinky.1 users.1 who.1"
50863 { $as_echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
50864 $as_echo_n "checking ut_host in struct utmp... " >&6; }
50865 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
50866 $as_echo_n "(cached) " >&6
50868 cat >conftest.$ac_ext <<_ACEOF
50871 cat confdefs.h >>conftest.$ac_ext
50872 cat >>conftest.$ac_ext <<_ACEOF
50873 /* end confdefs.h. */
50874 #include <sys/types.h>
50879 struct utmp ut; return !sizeof ut.ut_host;
50884 rm -f conftest.$ac_objext conftest$ac_exeext
50885 if { (ac_try="$ac_link"
50886 case "(($ac_try" in
50887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50888 *) ac_try_echo=$ac_try;;
50890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50891 $as_echo "$ac_try_echo") >&5
50892 (eval "$ac_link") 2>conftest.er1
50894 grep -v '^ *+' conftest.er1 >conftest.err
50896 cat conftest.err >&5
50897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898 (exit $ac_status); } && {
50899 test -z "$ac_c_werror_flag" ||
50900 test ! -s conftest.err
50901 } && test -s conftest$ac_exeext &&
50902 $as_test_x conftest$ac_exeext; then
50903 su_cv_func_ut_host_in_utmp=yes
50905 $as_echo "$as_me: failed program was:" >&5
50906 sed 's/^/| /' conftest.$ac_ext >&5
50908 su_cv_func_ut_host_in_utmp=no
50911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50912 conftest$ac_exeext conftest.$ac_ext
50915 { $as_echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
50916 $as_echo "$su_cv_func_ut_host_in_utmp" >&6; }
50917 if test $su_cv_func_ut_host_in_utmp = yes; then
50920 cat >>confdefs.h <<\_ACEOF
50921 #define HAVE_UT_HOST 1
50926 if test -z "$have_ut_host"; then
50927 { $as_echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
50928 $as_echo_n "checking ut_host in struct utmpx... " >&6; }
50929 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
50930 $as_echo_n "(cached) " >&6
50932 cat >conftest.$ac_ext <<_ACEOF
50935 cat confdefs.h >>conftest.$ac_ext
50936 cat >>conftest.$ac_ext <<_ACEOF
50937 /* end confdefs.h. */
50938 #include <sys/types.h>
50943 struct utmpx ut; return !sizeof ut.ut_host;
50948 rm -f conftest.$ac_objext conftest$ac_exeext
50949 if { (ac_try="$ac_link"
50950 case "(($ac_try" in
50951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50952 *) ac_try_echo=$ac_try;;
50954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50955 $as_echo "$ac_try_echo") >&5
50956 (eval "$ac_link") 2>conftest.er1
50958 grep -v '^ *+' conftest.er1 >conftest.err
50960 cat conftest.err >&5
50961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50962 (exit $ac_status); } && {
50963 test -z "$ac_c_werror_flag" ||
50964 test ! -s conftest.err
50965 } && test -s conftest$ac_exeext &&
50966 $as_test_x conftest$ac_exeext; then
50967 su_cv_func_ut_host_in_utmpx=yes
50969 $as_echo "$as_me: failed program was:" >&5
50970 sed 's/^/| /' conftest.$ac_ext >&5
50972 su_cv_func_ut_host_in_utmpx=no
50975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50976 conftest$ac_exeext conftest.$ac_ext
50979 { $as_echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
50980 $as_echo "$su_cv_func_ut_host_in_utmpx" >&6; }
50981 if test $su_cv_func_ut_host_in_utmpx = yes; then
50983 cat >>confdefs.h <<\_ACEOF
50984 #define HAVE_UTMPX_H 1
50988 cat >>confdefs.h <<\_ACEOF
50989 #define HAVE_UT_HOST 1
50997 for ac_func in sysctl
50999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51001 $as_echo_n "checking for $ac_func... " >&6; }
51002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51003 $as_echo_n "(cached) " >&6
51005 cat >conftest.$ac_ext <<_ACEOF
51008 cat confdefs.h >>conftest.$ac_ext
51009 cat >>conftest.$ac_ext <<_ACEOF
51010 /* end confdefs.h. */
51011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51013 #define $ac_func innocuous_$ac_func
51015 /* System header to define __stub macros and hopefully few prototypes,
51016 which can conflict with char $ac_func (); below.
51017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51018 <limits.h> exists even on freestanding compilers. */
51021 # include <limits.h>
51023 # include <assert.h>
51028 /* Override any GCC internal prototype to avoid an error.
51029 Use char because int might match the return type of a GCC
51030 builtin and then its argument prototype would still apply. */
51035 /* The GNU C library defines this for functions which it implements
51036 to always fail with ENOSYS. Some functions are actually named
51037 something starting with __ and the normal name is an alias. */
51038 #if defined __stub_$ac_func || defined __stub___$ac_func
51045 return $ac_func ();
51050 rm -f conftest.$ac_objext conftest$ac_exeext
51051 if { (ac_try="$ac_link"
51052 case "(($ac_try" in
51053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51054 *) ac_try_echo=$ac_try;;
51056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51057 $as_echo "$ac_try_echo") >&5
51058 (eval "$ac_link") 2>conftest.er1
51060 grep -v '^ *+' conftest.er1 >conftest.err
51062 cat conftest.err >&5
51063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51064 (exit $ac_status); } && {
51065 test -z "$ac_c_werror_flag" ||
51066 test ! -s conftest.err
51067 } && test -s conftest$ac_exeext &&
51068 $as_test_x conftest$ac_exeext; then
51069 eval "$as_ac_var=yes"
51071 $as_echo "$as_me: failed program was:" >&5
51072 sed 's/^/| /' conftest.$ac_ext >&5
51074 eval "$as_ac_var=no"
51077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51078 conftest$ac_exeext conftest.$ac_ext
51080 ac_res=`eval 'as_val=${'$as_ac_var'}
51081 $as_echo "$as_val"'`
51082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51083 $as_echo "$ac_res" >&6; }
51084 if test `eval 'as_val=${'$as_ac_var'}
51085 $as_echo "$as_val"'` = yes; then
51086 cat >>confdefs.h <<_ACEOF
51087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51100 for ac_header in sys/sysctl.h
51102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51104 $as_echo_n "checking for $ac_header... " >&6; }
51105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51106 $as_echo_n "(cached) " >&6
51108 cat >conftest.$ac_ext <<_ACEOF
51111 cat confdefs.h >>conftest.$ac_ext
51112 cat >>conftest.$ac_ext <<_ACEOF
51113 /* end confdefs.h. */
51114 $ac_includes_default
51115 #if HAVE_SYS_PARAM_H
51116 #include <sys/param.h>
51119 #include <$ac_header>
51121 rm -f conftest.$ac_objext
51122 if { (ac_try="$ac_compile"
51123 case "(($ac_try" in
51124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51125 *) ac_try_echo=$ac_try;;
51127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51128 $as_echo "$ac_try_echo") >&5
51129 (eval "$ac_compile") 2>conftest.er1
51131 grep -v '^ *+' conftest.er1 >conftest.err
51133 cat conftest.err >&5
51134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51135 (exit $ac_status); } && {
51136 test -z "$ac_c_werror_flag" ||
51137 test ! -s conftest.err
51138 } && test -s conftest.$ac_objext; then
51139 eval "$as_ac_Header=yes"
51141 $as_echo "$as_me: failed program was:" >&5
51142 sed 's/^/| /' conftest.$ac_ext >&5
51144 eval "$as_ac_Header=no"
51147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51149 ac_res=`eval 'as_val=${'$as_ac_Header'}
51150 $as_echo "$as_val"'`
51151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51152 $as_echo "$ac_res" >&6; }
51153 if test `eval 'as_val=${'$as_ac_Header'}
51154 $as_echo "$as_val"'` = yes; then
51155 cat >>confdefs.h <<_ACEOF
51156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51173 { $as_echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
51174 $as_echo_n "checking whether we can get the system boot time... " >&6; }
51175 if test "${gnulib_cv_have_boot_time+set}" = set; then
51176 $as_echo_n "(cached) " >&6
51179 cat >conftest.$ac_ext <<_ACEOF
51182 cat confdefs.h >>conftest.$ac_ext
51183 cat >>conftest.$ac_ext <<_ACEOF
51184 /* end confdefs.h. */
51185 $ac_includes_default
51186 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
51187 # if HAVE_SYS_PARAM_H
51188 # include <sys/param.h> /* needed for OpenBSD 3.0 */
51190 # include <sys/sysctl.h>
51193 # include <utmpx.h>
51205 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME) || HAVE_OS_H
51206 /* your system *does* have the infrastructure to determine boot time */
51208 please_tell_us_how_to_determine_boot_time_on_your_system
51215 rm -f conftest.$ac_objext
51216 if { (ac_try="$ac_compile"
51217 case "(($ac_try" in
51218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51219 *) ac_try_echo=$ac_try;;
51221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51222 $as_echo "$ac_try_echo") >&5
51223 (eval "$ac_compile") 2>conftest.er1
51225 grep -v '^ *+' conftest.er1 >conftest.err
51227 cat conftest.err >&5
51228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51229 (exit $ac_status); } && {
51230 test -z "$ac_c_werror_flag" ||
51231 test ! -s conftest.err
51232 } && test -s conftest.$ac_objext; then
51233 gnulib_cv_have_boot_time=yes
51235 $as_echo "$as_me: failed program was:" >&5
51236 sed 's/^/| /' conftest.$ac_ext >&5
51238 gnulib_cv_have_boot_time=no
51241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51244 { $as_echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
51245 $as_echo "$gnulib_cv_have_boot_time" >&6; }
51246 if test $gnulib_cv_have_boot_time = yes; then
51247 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
51248 MAN="$MAN uptime.1"
51253 { $as_echo "$as_me:$LINENO: checking POSIX termios" >&5
51254 $as_echo_n "checking POSIX termios... " >&6; }
51255 if test "${ac_cv_sys_posix_termios+set}" = set; then
51256 $as_echo_n "(cached) " >&6
51258 cat >conftest.$ac_ext <<_ACEOF
51261 cat confdefs.h >>conftest.$ac_ext
51262 cat >>conftest.$ac_ext <<_ACEOF
51263 /* end confdefs.h. */
51264 #include <sys/types.h>
51265 #include <unistd.h>
51266 #include <termios.h>
51271 /* SunOS 4.0.3 has termios.h but not the library calls. */
51277 rm -f conftest.$ac_objext conftest$ac_exeext
51278 if { (ac_try="$ac_link"
51279 case "(($ac_try" in
51280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51281 *) ac_try_echo=$ac_try;;
51283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51284 $as_echo "$ac_try_echo") >&5
51285 (eval "$ac_link") 2>conftest.er1
51287 grep -v '^ *+' conftest.er1 >conftest.err
51289 cat conftest.err >&5
51290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51291 (exit $ac_status); } && {
51292 test -z "$ac_c_werror_flag" ||
51293 test ! -s conftest.err
51294 } && test -s conftest$ac_exeext &&
51295 $as_test_x conftest$ac_exeext; then
51296 ac_cv_sys_posix_termios=yes
51298 $as_echo "$as_me: failed program was:" >&5
51299 sed 's/^/| /' conftest.$ac_ext >&5
51301 ac_cv_sys_posix_termios=no
51304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51305 conftest$ac_exeext conftest.$ac_ext
51307 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
51308 $as_echo "$ac_cv_sys_posix_termios" >&6; }
51311 { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
51312 $as_echo_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h... " >&6; }
51313 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
51314 $as_echo_n "(cached) " >&6
51316 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
51318 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
51319 cat >conftest.$ac_ext <<_ACEOF
51322 cat confdefs.h >>conftest.$ac_ext
51323 cat >>conftest.$ac_ext <<_ACEOF
51324 /* end confdefs.h. */
51325 #include <sys/types.h>
51326 # include <sys/ioctl.h>
51332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51333 $EGREP "yes" >/dev/null 2>&1; then
51334 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
51341 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
51342 $as_echo "$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
51343 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
51345 cat >>confdefs.h <<\_ACEOF
51346 #define GWINSZ_IN_SYS_IOCTL 1
51352 if test $ac_cv_sys_posix_termios = yes; then
51353 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
51355 { $as_echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
51356 $as_echo_n "checking whether termios.h needs _XOPEN_SOURCE... " >&6; }
51357 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
51358 $as_echo_n "(cached) " >&6
51360 cat >conftest.$ac_ext <<_ACEOF
51363 cat confdefs.h >>conftest.$ac_ext
51364 cat >>conftest.$ac_ext <<_ACEOF
51365 /* end confdefs.h. */
51366 #include <termios.h>
51371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51372 $EGREP "yes" >/dev/null 2>&1; then
51373 su_cv_sys_termios_needs_xopen_source=no
51375 cat >conftest.$ac_ext <<_ACEOF
51378 cat confdefs.h >>conftest.$ac_ext
51379 cat >>conftest.$ac_ext <<_ACEOF
51380 /* end confdefs.h. */
51381 #define _XOPEN_SOURCE
51382 #include <termios.h>
51387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51388 $EGREP "yes" >/dev/null 2>&1; then
51389 su_cv_sys_termios_needs_xopen_source=yes
51391 su_cv_sys_termios_needs_xopen_source=no
51400 { $as_echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
51401 $as_echo "$su_cv_sys_termios_needs_xopen_source" >&6; }
51402 test $su_cv_sys_termios_needs_xopen_source = yes &&
51404 cat >>confdefs.h <<\_ACEOF
51405 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
51409 { $as_echo "$as_me:$LINENO: checking c_line in struct termios" >&5
51410 $as_echo_n "checking c_line in struct termios... " >&6; }
51411 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
51412 $as_echo_n "(cached) " >&6
51414 cat >conftest.$ac_ext <<_ACEOF
51417 cat confdefs.h >>conftest.$ac_ext
51418 cat >>conftest.$ac_ext <<_ACEOF
51419 /* end confdefs.h. */
51420 #if TERMIOS_NEEDS_XOPEN_SOURCE
51421 #define _XOPEN_SOURCE
51423 #include <sys/types.h>
51424 #include <termios.h>
51428 struct termios t; return !sizeof t.c_line;
51433 rm -f conftest.$ac_objext conftest$ac_exeext
51434 if { (ac_try="$ac_link"
51435 case "(($ac_try" in
51436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51437 *) ac_try_echo=$ac_try;;
51439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51440 $as_echo "$ac_try_echo") >&5
51441 (eval "$ac_link") 2>conftest.er1
51443 grep -v '^ *+' conftest.er1 >conftest.err
51445 cat conftest.err >&5
51446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51447 (exit $ac_status); } && {
51448 test -z "$ac_c_werror_flag" ||
51449 test ! -s conftest.err
51450 } && test -s conftest$ac_exeext &&
51451 $as_test_x conftest$ac_exeext; then
51452 su_cv_sys_c_line_in_termios=yes
51454 $as_echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51457 su_cv_sys_c_line_in_termios=no
51460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51461 conftest$ac_exeext conftest.$ac_ext
51464 { $as_echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
51465 $as_echo "$su_cv_sys_c_line_in_termios" >&6; }
51466 test $su_cv_sys_c_line_in_termios = yes \
51468 cat >>confdefs.h <<\_ACEOF
51469 #define HAVE_C_LINE 1
51474 # FIXME: note that this macro appears above, too.
51475 # I'm leaving it here for now. This whole thing needs to be modernized...
51477 { $as_echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
51478 $as_echo_n "checking whether use of struct winsize requires sys/ptem.h... " >&6; }
51479 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
51480 $as_echo_n "(cached) " >&6
51482 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
51483 if test $ac_cv_sys_posix_termios = yes; then
51484 cat >conftest.$ac_ext <<_ACEOF
51487 cat confdefs.h >>conftest.$ac_ext
51488 cat >>conftest.$ac_ext <<_ACEOF
51489 /* end confdefs.h. */
51490 #include <termios.h>
51495 if (sizeof x > 0) return 0;
51500 rm -f conftest.$ac_objext
51501 if { (ac_try="$ac_compile"
51502 case "(($ac_try" in
51503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51504 *) ac_try_echo=$ac_try;;
51506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51507 $as_echo "$ac_try_echo") >&5
51508 (eval "$ac_compile") 2>conftest.er1
51510 grep -v '^ *+' conftest.er1 >conftest.err
51512 cat conftest.err >&5
51513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51514 (exit $ac_status); } && {
51515 test -z "$ac_c_werror_flag" ||
51516 test ! -s conftest.err
51517 } && test -s conftest.$ac_objext; then
51518 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51520 $as_echo "$as_me: failed program was:" >&5
51521 sed 's/^/| /' conftest.$ac_ext >&5
51526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51528 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51529 cat >conftest.$ac_ext <<_ACEOF
51532 cat confdefs.h >>conftest.$ac_ext
51533 cat >>conftest.$ac_ext <<_ACEOF
51534 /* end confdefs.h. */
51535 #include <sys/ptem.h>
51540 if (sizeof x > 0) return 0;
51545 rm -f conftest.$ac_objext
51546 if { (ac_try="$ac_compile"
51547 case "(($ac_try" in
51548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51549 *) ac_try_echo=$ac_try;;
51551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51552 $as_echo "$ac_try_echo") >&5
51553 (eval "$ac_compile") 2>conftest.er1
51555 grep -v '^ *+' conftest.er1 >conftest.err
51557 cat conftest.err >&5
51558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51559 (exit $ac_status); } && {
51560 test -z "$ac_c_werror_flag" ||
51561 test ! -s conftest.err
51562 } && test -s conftest.$ac_objext; then
51565 $as_echo "$as_me: failed program was:" >&5
51566 sed 's/^/| /' conftest.$ac_ext >&5
51568 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51574 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
51575 $as_echo "$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
51576 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51578 cat >>confdefs.h <<\_ACEOF
51579 #define WINSIZE_IN_PTEM 1
51585 { $as_echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51586 $as_echo_n "checking whether use of TIOCGWINSZ requires termios.h... " >&6; }
51587 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51588 $as_echo_n "(cached) " >&6
51590 jm_cv_sys_tiocgwinsz_needs_termios_h=no
51592 if test $ac_cv_sys_posix_termios = yes; then
51593 cat >conftest.$ac_ext <<_ACEOF
51596 cat confdefs.h >>conftest.$ac_ext
51597 cat >>conftest.$ac_ext <<_ACEOF
51598 /* end confdefs.h. */
51599 #include <sys/types.h>
51600 # include <termios.h>
51606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51607 $EGREP "yes" >/dev/null 2>&1; then
51608 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51615 { $as_echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51616 $as_echo "$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51619 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
51620 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
51621 { $as_echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
51622 $as_echo_n "checking TIOCGWINSZ in sys/pty.h... " >&6; }
51623 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
51624 $as_echo_n "(cached) " >&6
51626 cat >conftest.$ac_ext <<_ACEOF
51629 cat confdefs.h >>conftest.$ac_ext
51630 cat >>conftest.$ac_ext <<_ACEOF
51631 /* end confdefs.h. */
51632 #include <sys/types.h>
51633 #ifdef WINSIZE_IN_PTEM
51634 # include <sys/stream.h>
51635 # include <sys/ptem.h>
51637 #include <sys/ioctl.h>
51638 #include <sys/tty.h>
51639 #include <sys/pty.h>
51643 int x = TIOCGWINSZ;
51648 rm -f conftest.$ac_objext conftest$ac_exeext
51649 if { (ac_try="$ac_link"
51650 case "(($ac_try" in
51651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51652 *) ac_try_echo=$ac_try;;
51654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51655 $as_echo "$ac_try_echo") >&5
51656 (eval "$ac_link") 2>conftest.er1
51658 grep -v '^ *+' conftest.er1 >conftest.err
51660 cat conftest.err >&5
51661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51662 (exit $ac_status); } && {
51663 test -z "$ac_c_werror_flag" ||
51664 test ! -s conftest.err
51665 } && test -s conftest$ac_exeext &&
51666 $as_test_x conftest$ac_exeext; then
51667 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
51669 $as_echo "$as_me: failed program was:" >&5
51670 sed 's/^/| /' conftest.$ac_ext >&5
51672 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
51675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51676 conftest$ac_exeext conftest.$ac_ext
51679 { $as_echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
51680 $as_echo "$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
51682 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
51684 cat >>confdefs.h <<\_ACEOF
51685 #define GWINSZ_IN_SYS_PTY 1
51691 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
51692 $as_echo_n "checking whether strsignal is declared... " >&6; }
51693 if test "${ac_cv_have_decl_strsignal+set}" = set; then
51694 $as_echo_n "(cached) " >&6
51696 cat >conftest.$ac_ext <<_ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h. */
51702 $ac_includes_default
51703 #include <signal.h>
51716 rm -f conftest.$ac_objext
51717 if { (ac_try="$ac_compile"
51718 case "(($ac_try" in
51719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51720 *) ac_try_echo=$ac_try;;
51722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51723 $as_echo "$ac_try_echo") >&5
51724 (eval "$ac_compile") 2>conftest.er1
51726 grep -v '^ *+' conftest.er1 >conftest.err
51728 cat conftest.err >&5
51729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51730 (exit $ac_status); } && {
51731 test -z "$ac_c_werror_flag" ||
51732 test ! -s conftest.err
51733 } && test -s conftest.$ac_objext; then
51734 ac_cv_have_decl_strsignal=yes
51736 $as_echo "$as_me: failed program was:" >&5
51737 sed 's/^/| /' conftest.$ac_ext >&5
51739 ac_cv_have_decl_strsignal=no
51742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51744 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
51745 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
51746 if test $ac_cv_have_decl_strsignal = yes; then
51748 cat >>confdefs.h <<_ACEOF
51749 #define HAVE_DECL_STRSIGNAL 1
51754 cat >>confdefs.h <<_ACEOF
51755 #define HAVE_DECL_STRSIGNAL 0
51760 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
51761 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
51762 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
51763 $as_echo_n "(cached) " >&6
51765 cat >conftest.$ac_ext <<_ACEOF
51768 cat confdefs.h >>conftest.$ac_ext
51769 cat >>conftest.$ac_ext <<_ACEOF
51770 /* end confdefs.h. */
51771 $ac_includes_default
51772 #include <signal.h>
51777 #ifndef sys_siglist
51778 (void) sys_siglist;
51785 rm -f conftest.$ac_objext
51786 if { (ac_try="$ac_compile"
51787 case "(($ac_try" in
51788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51789 *) ac_try_echo=$ac_try;;
51791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51792 $as_echo "$ac_try_echo") >&5
51793 (eval "$ac_compile") 2>conftest.er1
51795 grep -v '^ *+' conftest.er1 >conftest.err
51797 cat conftest.err >&5
51798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51799 (exit $ac_status); } && {
51800 test -z "$ac_c_werror_flag" ||
51801 test ! -s conftest.err
51802 } && test -s conftest.$ac_objext; then
51803 ac_cv_have_decl_sys_siglist=yes
51805 $as_echo "$as_me: failed program was:" >&5
51806 sed 's/^/| /' conftest.$ac_ext >&5
51808 ac_cv_have_decl_sys_siglist=no
51811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51813 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
51814 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
51815 if test $ac_cv_have_decl_sys_siglist = yes; then
51817 cat >>confdefs.h <<_ACEOF
51818 #define HAVE_DECL_SYS_SIGLIST 1
51823 cat >>confdefs.h <<_ACEOF
51824 #define HAVE_DECL_SYS_SIGLIST 0
51829 { $as_echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
51830 $as_echo_n "checking whether _sys_siglist is declared... " >&6; }
51831 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
51832 $as_echo_n "(cached) " >&6
51834 cat >conftest.$ac_ext <<_ACEOF
51837 cat confdefs.h >>conftest.$ac_ext
51838 cat >>conftest.$ac_ext <<_ACEOF
51839 /* end confdefs.h. */
51840 $ac_includes_default
51841 #include <signal.h>
51846 #ifndef _sys_siglist
51847 (void) _sys_siglist;
51854 rm -f conftest.$ac_objext
51855 if { (ac_try="$ac_compile"
51856 case "(($ac_try" in
51857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51858 *) ac_try_echo=$ac_try;;
51860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51861 $as_echo "$ac_try_echo") >&5
51862 (eval "$ac_compile") 2>conftest.er1
51864 grep -v '^ *+' conftest.er1 >conftest.err
51866 cat conftest.err >&5
51867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51868 (exit $ac_status); } && {
51869 test -z "$ac_c_werror_flag" ||
51870 test ! -s conftest.err
51871 } && test -s conftest.$ac_objext; then
51872 ac_cv_have_decl__sys_siglist=yes
51874 $as_echo "$as_me: failed program was:" >&5
51875 sed 's/^/| /' conftest.$ac_ext >&5
51877 ac_cv_have_decl__sys_siglist=no
51880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51882 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
51883 $as_echo "$ac_cv_have_decl__sys_siglist" >&6; }
51884 if test $ac_cv_have_decl__sys_siglist = yes; then
51886 cat >>confdefs.h <<_ACEOF
51887 #define HAVE_DECL__SYS_SIGLIST 1
51892 cat >>confdefs.h <<_ACEOF
51893 #define HAVE_DECL__SYS_SIGLIST 0
51898 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
51899 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
51900 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
51901 $as_echo_n "(cached) " >&6
51903 cat >conftest.$ac_ext <<_ACEOF
51906 cat confdefs.h >>conftest.$ac_ext
51907 cat >>conftest.$ac_ext <<_ACEOF
51908 /* end confdefs.h. */
51909 $ac_includes_default
51910 #include <signal.h>
51915 #ifndef __sys_siglist
51916 (void) __sys_siglist;
51923 rm -f conftest.$ac_objext
51924 if { (ac_try="$ac_compile"
51925 case "(($ac_try" in
51926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51927 *) ac_try_echo=$ac_try;;
51929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51930 $as_echo "$ac_try_echo") >&5
51931 (eval "$ac_compile") 2>conftest.er1
51933 grep -v '^ *+' conftest.er1 >conftest.err
51935 cat conftest.err >&5
51936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51937 (exit $ac_status); } && {
51938 test -z "$ac_c_werror_flag" ||
51939 test ! -s conftest.err
51940 } && test -s conftest.$ac_objext; then
51941 ac_cv_have_decl___sys_siglist=yes
51943 $as_echo "$as_me: failed program was:" >&5
51944 sed 's/^/| /' conftest.$ac_ext >&5
51946 ac_cv_have_decl___sys_siglist=no
51949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51951 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
51952 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
51953 if test $ac_cv_have_decl___sys_siglist = yes; then
51955 cat >>confdefs.h <<_ACEOF
51956 #define HAVE_DECL___SYS_SIGLIST 1
51961 cat >>confdefs.h <<_ACEOF
51962 #define HAVE_DECL___SYS_SIGLIST 0
51970 # For src/kill.c and src/printf.c.
51971 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
51972 $as_echo_n "checking whether strtoimax is declared... " >&6; }
51973 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
51974 $as_echo_n "(cached) " >&6
51976 cat >conftest.$ac_ext <<_ACEOF
51979 cat confdefs.h >>conftest.$ac_ext
51980 cat >>conftest.$ac_ext <<_ACEOF
51981 /* end confdefs.h. */
51982 $ac_includes_default
51994 rm -f conftest.$ac_objext
51995 if { (ac_try="$ac_compile"
51996 case "(($ac_try" in
51997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51998 *) ac_try_echo=$ac_try;;
52000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52001 $as_echo "$ac_try_echo") >&5
52002 (eval "$ac_compile") 2>conftest.er1
52004 grep -v '^ *+' conftest.er1 >conftest.err
52006 cat conftest.err >&5
52007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52008 (exit $ac_status); } && {
52009 test -z "$ac_c_werror_flag" ||
52010 test ! -s conftest.err
52011 } && test -s conftest.$ac_objext; then
52012 ac_cv_have_decl_strtoimax=yes
52014 $as_echo "$as_me: failed program was:" >&5
52015 sed 's/^/| /' conftest.$ac_ext >&5
52017 ac_cv_have_decl_strtoimax=no
52020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
52023 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
52024 if test $ac_cv_have_decl_strtoimax = yes; then
52026 cat >>confdefs.h <<_ACEOF
52027 #define HAVE_DECL_STRTOIMAX 1
52032 cat >>confdefs.h <<_ACEOF
52033 #define HAVE_DECL_STRTOIMAX 0
52038 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
52039 $as_echo_n "checking whether strtoumax is declared... " >&6; }
52040 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
52041 $as_echo_n "(cached) " >&6
52043 cat >conftest.$ac_ext <<_ACEOF
52046 cat confdefs.h >>conftest.$ac_ext
52047 cat >>conftest.$ac_ext <<_ACEOF
52048 /* end confdefs.h. */
52049 $ac_includes_default
52061 rm -f conftest.$ac_objext
52062 if { (ac_try="$ac_compile"
52063 case "(($ac_try" in
52064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52065 *) ac_try_echo=$ac_try;;
52067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52068 $as_echo "$ac_try_echo") >&5
52069 (eval "$ac_compile") 2>conftest.er1
52071 grep -v '^ *+' conftest.er1 >conftest.err
52073 cat conftest.err >&5
52074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52075 (exit $ac_status); } && {
52076 test -z "$ac_c_werror_flag" ||
52077 test ! -s conftest.err
52078 } && test -s conftest.$ac_objext; then
52079 ac_cv_have_decl_strtoumax=yes
52081 $as_echo "$as_me: failed program was:" >&5
52082 sed 's/^/| /' conftest.$ac_ext >&5
52084 ac_cv_have_decl_strtoumax=no
52087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
52090 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
52091 if test $ac_cv_have_decl_strtoumax = yes; then
52093 cat >>confdefs.h <<_ACEOF
52094 #define HAVE_DECL_STRTOUMAX 1
52099 cat >>confdefs.h <<_ACEOF
52100 #define HAVE_DECL_STRTOUMAX 0
52110 # Check for libypsec.a on Dolphin M88K machines.
52112 { $as_echo "$as_me:$LINENO: checking for main in -lypsec" >&5
52113 $as_echo_n "checking for main in -lypsec... " >&6; }
52114 if test "${ac_cv_lib_ypsec_main+set}" = set; then
52115 $as_echo_n "(cached) " >&6
52117 ac_check_lib_save_LIBS=$LIBS
52118 LIBS="-lypsec $LIBS"
52119 cat >conftest.$ac_ext <<_ACEOF
52122 cat confdefs.h >>conftest.$ac_ext
52123 cat >>conftest.$ac_ext <<_ACEOF
52124 /* end confdefs.h. */
52135 rm -f conftest.$ac_objext conftest$ac_exeext
52136 if { (ac_try="$ac_link"
52137 case "(($ac_try" in
52138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52139 *) ac_try_echo=$ac_try;;
52141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52142 $as_echo "$ac_try_echo") >&5
52143 (eval "$ac_link") 2>conftest.er1
52145 grep -v '^ *+' conftest.er1 >conftest.err
52147 cat conftest.err >&5
52148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149 (exit $ac_status); } && {
52150 test -z "$ac_c_werror_flag" ||
52151 test ! -s conftest.err
52152 } && test -s conftest$ac_exeext &&
52153 $as_test_x conftest$ac_exeext; then
52154 ac_cv_lib_ypsec_main=yes
52156 $as_echo "$as_me: failed program was:" >&5
52157 sed 's/^/| /' conftest.$ac_ext >&5
52159 ac_cv_lib_ypsec_main=no
52162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52163 conftest$ac_exeext conftest.$ac_ext
52164 LIBS=$ac_check_lib_save_LIBS
52166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
52167 $as_echo "$ac_cv_lib_ypsec_main" >&6; }
52168 if test $ac_cv_lib_ypsec_main = yes; then
52169 cat >>confdefs.h <<_ACEOF
52170 #define HAVE_LIBYPSEC 1
52173 LIBS="-lypsec $LIBS"
52178 # m88k running dgux 5.4 needs this
52180 { $as_echo "$as_me:$LINENO: checking for main in -lldgc" >&5
52181 $as_echo_n "checking for main in -lldgc... " >&6; }
52182 if test "${ac_cv_lib_ldgc_main+set}" = set; then
52183 $as_echo_n "(cached) " >&6
52185 ac_check_lib_save_LIBS=$LIBS
52186 LIBS="-lldgc $LIBS"
52187 cat >conftest.$ac_ext <<_ACEOF
52190 cat confdefs.h >>conftest.$ac_ext
52191 cat >>conftest.$ac_ext <<_ACEOF
52192 /* end confdefs.h. */
52203 rm -f conftest.$ac_objext conftest$ac_exeext
52204 if { (ac_try="$ac_link"
52205 case "(($ac_try" in
52206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52207 *) ac_try_echo=$ac_try;;
52209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52210 $as_echo "$ac_try_echo") >&5
52211 (eval "$ac_link") 2>conftest.er1
52213 grep -v '^ *+' conftest.er1 >conftest.err
52215 cat conftest.err >&5
52216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52217 (exit $ac_status); } && {
52218 test -z "$ac_c_werror_flag" ||
52219 test ! -s conftest.err
52220 } && test -s conftest$ac_exeext &&
52221 $as_test_x conftest$ac_exeext; then
52222 ac_cv_lib_ldgc_main=yes
52224 $as_echo "$as_me: failed program was:" >&5
52225 sed 's/^/| /' conftest.$ac_ext >&5
52227 ac_cv_lib_ldgc_main=no
52230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52231 conftest$ac_exeext conftest.$ac_ext
52232 LIBS=$ac_check_lib_save_LIBS
52234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
52235 $as_echo "$ac_cv_lib_ldgc_main" >&6; }
52236 if test $ac_cv_lib_ldgc_main = yes; then
52237 cat >>confdefs.h <<_ACEOF
52238 #define HAVE_LIBLDGC 1
52241 LIBS="-lldgc $LIBS"
52246 # The -lsun library is required for YP support on Irix-4.0.5 systems.
52247 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
52248 { $as_echo "$as_me:$LINENO: checking for library containing yp_match" >&5
52249 $as_echo_n "checking for library containing yp_match... " >&6; }
52250 if test "${ac_cv_search_yp_match+set}" = set; then
52251 $as_echo_n "(cached) " >&6
52253 ac_func_search_save_LIBS=$LIBS
52254 cat >conftest.$ac_ext <<_ACEOF
52257 cat confdefs.h >>conftest.$ac_ext
52258 cat >>conftest.$ac_ext <<_ACEOF
52259 /* end confdefs.h. */
52261 /* Override any GCC internal prototype to avoid an error.
52262 Use char because int might match the return type of a GCC
52263 builtin and then its argument prototype would still apply. */
52271 return yp_match ();
52276 for ac_lib in '' sun ypsec; do
52277 if test -z "$ac_lib"; then
52278 ac_res="none required"
52281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52283 rm -f conftest.$ac_objext conftest$ac_exeext
52284 if { (ac_try="$ac_link"
52285 case "(($ac_try" in
52286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52287 *) ac_try_echo=$ac_try;;
52289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52290 $as_echo "$ac_try_echo") >&5
52291 (eval "$ac_link") 2>conftest.er1
52293 grep -v '^ *+' conftest.er1 >conftest.err
52295 cat conftest.err >&5
52296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52297 (exit $ac_status); } && {
52298 test -z "$ac_c_werror_flag" ||
52299 test ! -s conftest.err
52300 } && test -s conftest$ac_exeext &&
52301 $as_test_x conftest$ac_exeext; then
52302 ac_cv_search_yp_match=$ac_res
52304 $as_echo "$as_me: failed program was:" >&5
52305 sed 's/^/| /' conftest.$ac_ext >&5
52310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52312 if test "${ac_cv_search_yp_match+set}" = set; then
52316 if test "${ac_cv_search_yp_match+set}" = set; then
52319 ac_cv_search_yp_match=no
52321 rm conftest.$ac_ext
52322 LIBS=$ac_func_search_save_LIBS
52324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
52325 $as_echo "$ac_cv_search_yp_match" >&6; }
52326 ac_res=$ac_cv_search_yp_match
52327 if test "$ac_res" != no; then
52328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52333 # SysV needs -lsec, older versions of Linux need -lshadow for
52334 # shadow passwords. UnixWare 7 needs -lgen.
52335 { $as_echo "$as_me:$LINENO: checking for library containing getspnam" >&5
52336 $as_echo_n "checking for library containing getspnam... " >&6; }
52337 if test "${ac_cv_search_getspnam+set}" = set; then
52338 $as_echo_n "(cached) " >&6
52340 ac_func_search_save_LIBS=$LIBS
52341 cat >conftest.$ac_ext <<_ACEOF
52344 cat confdefs.h >>conftest.$ac_ext
52345 cat >>conftest.$ac_ext <<_ACEOF
52346 /* end confdefs.h. */
52348 /* Override any GCC internal prototype to avoid an error.
52349 Use char because int might match the return type of a GCC
52350 builtin and then its argument prototype would still apply. */
52358 return getspnam ();
52363 for ac_lib in '' shadow sec gen; do
52364 if test -z "$ac_lib"; then
52365 ac_res="none required"
52368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52370 rm -f conftest.$ac_objext conftest$ac_exeext
52371 if { (ac_try="$ac_link"
52372 case "(($ac_try" in
52373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52374 *) ac_try_echo=$ac_try;;
52376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52377 $as_echo "$ac_try_echo") >&5
52378 (eval "$ac_link") 2>conftest.er1
52380 grep -v '^ *+' conftest.er1 >conftest.err
52382 cat conftest.err >&5
52383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52384 (exit $ac_status); } && {
52385 test -z "$ac_c_werror_flag" ||
52386 test ! -s conftest.err
52387 } && test -s conftest$ac_exeext &&
52388 $as_test_x conftest$ac_exeext; then
52389 ac_cv_search_getspnam=$ac_res
52391 $as_echo "$as_me: failed program was:" >&5
52392 sed 's/^/| /' conftest.$ac_ext >&5
52397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52399 if test "${ac_cv_search_getspnam+set}" = set; then
52403 if test "${ac_cv_search_getspnam+set}" = set; then
52406 ac_cv_search_getspnam=no
52408 rm conftest.$ac_ext
52409 LIBS=$ac_func_search_save_LIBS
52411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
52412 $as_echo "$ac_cv_search_getspnam" >&6; }
52413 ac_res=$ac_cv_search_getspnam
52414 if test "$ac_res" != no; then
52415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52421 for ac_header in shadow.h
52423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52426 $as_echo_n "checking for $ac_header... " >&6; }
52427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52428 $as_echo_n "(cached) " >&6
52430 ac_res=`eval 'as_val=${'$as_ac_Header'}
52431 $as_echo "$as_val"'`
52432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52433 $as_echo "$ac_res" >&6; }
52435 # Is the header compilable?
52436 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52437 $as_echo_n "checking $ac_header usability... " >&6; }
52438 cat >conftest.$ac_ext <<_ACEOF
52441 cat confdefs.h >>conftest.$ac_ext
52442 cat >>conftest.$ac_ext <<_ACEOF
52443 /* end confdefs.h. */
52444 $ac_includes_default
52445 #include <$ac_header>
52447 rm -f conftest.$ac_objext
52448 if { (ac_try="$ac_compile"
52449 case "(($ac_try" in
52450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52451 *) ac_try_echo=$ac_try;;
52453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52454 $as_echo "$ac_try_echo") >&5
52455 (eval "$ac_compile") 2>conftest.er1
52457 grep -v '^ *+' conftest.er1 >conftest.err
52459 cat conftest.err >&5
52460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52461 (exit $ac_status); } && {
52462 test -z "$ac_c_werror_flag" ||
52463 test ! -s conftest.err
52464 } && test -s conftest.$ac_objext; then
52465 ac_header_compiler=yes
52467 $as_echo "$as_me: failed program was:" >&5
52468 sed 's/^/| /' conftest.$ac_ext >&5
52470 ac_header_compiler=no
52473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52474 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52475 $as_echo "$ac_header_compiler" >&6; }
52477 # Is the header present?
52478 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52479 $as_echo_n "checking $ac_header presence... " >&6; }
52480 cat >conftest.$ac_ext <<_ACEOF
52483 cat confdefs.h >>conftest.$ac_ext
52484 cat >>conftest.$ac_ext <<_ACEOF
52485 /* end confdefs.h. */
52486 #include <$ac_header>
52488 if { (ac_try="$ac_cpp conftest.$ac_ext"
52489 case "(($ac_try" in
52490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52491 *) ac_try_echo=$ac_try;;
52493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52494 $as_echo "$ac_try_echo") >&5
52495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52497 grep -v '^ *+' conftest.er1 >conftest.err
52499 cat conftest.err >&5
52500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52501 (exit $ac_status); } >/dev/null && {
52502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52503 test ! -s conftest.err
52505 ac_header_preproc=yes
52507 $as_echo "$as_me: failed program was:" >&5
52508 sed 's/^/| /' conftest.$ac_ext >&5
52510 ac_header_preproc=no
52513 rm -f conftest.err conftest.$ac_ext
52514 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52515 $as_echo "$ac_header_preproc" >&6; }
52517 # So? What about this header?
52518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52521 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52524 ac_header_preproc=yes
52527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52528 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52530 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52532 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52534 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52538 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52540 ## ------------------------------------ ##
52541 ## Report this to bug-coreutils@gnu.org ##
52542 ## ------------------------------------ ##
52544 ) | sed "s/^/$as_me: WARNING: /" >&2
52547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52548 $as_echo_n "checking for $ac_header... " >&6; }
52549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52550 $as_echo_n "(cached) " >&6
52552 eval "$as_ac_Header=\$ac_header_preproc"
52554 ac_res=`eval 'as_val=${'$as_ac_Header'}
52555 $as_echo "$as_val"'`
52556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52557 $as_echo "$ac_res" >&6; }
52560 if test `eval 'as_val=${'$as_ac_Header'}
52561 $as_echo "$as_val"'` = yes; then
52562 cat >>confdefs.h <<_ACEOF
52563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52571 # Requirements for su.c.
52573 $ac_includes_default
52575 # include <shadow.h>
52578 { $as_echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
52579 $as_echo_n "checking for struct spwd.sp_pwdp... " >&6; }
52580 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
52581 $as_echo_n "(cached) " >&6
52583 cat >conftest.$ac_ext <<_ACEOF
52586 cat confdefs.h >>conftest.$ac_ext
52587 cat >>conftest.$ac_ext <<_ACEOF
52588 /* end confdefs.h. */
52594 static struct spwd ac_aggr;
52595 if (ac_aggr.sp_pwdp)
52601 rm -f conftest.$ac_objext
52602 if { (ac_try="$ac_compile"
52603 case "(($ac_try" in
52604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52605 *) ac_try_echo=$ac_try;;
52607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52608 $as_echo "$ac_try_echo") >&5
52609 (eval "$ac_compile") 2>conftest.er1
52611 grep -v '^ *+' conftest.er1 >conftest.err
52613 cat conftest.err >&5
52614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615 (exit $ac_status); } && {
52616 test -z "$ac_c_werror_flag" ||
52617 test ! -s conftest.err
52618 } && test -s conftest.$ac_objext; then
52619 ac_cv_member_struct_spwd_sp_pwdp=yes
52621 $as_echo "$as_me: failed program was:" >&5
52622 sed 's/^/| /' conftest.$ac_ext >&5
52624 cat >conftest.$ac_ext <<_ACEOF
52627 cat confdefs.h >>conftest.$ac_ext
52628 cat >>conftest.$ac_ext <<_ACEOF
52629 /* end confdefs.h. */
52635 static struct spwd ac_aggr;
52636 if (sizeof ac_aggr.sp_pwdp)
52642 rm -f conftest.$ac_objext
52643 if { (ac_try="$ac_compile"
52644 case "(($ac_try" in
52645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52646 *) ac_try_echo=$ac_try;;
52648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52649 $as_echo "$ac_try_echo") >&5
52650 (eval "$ac_compile") 2>conftest.er1
52652 grep -v '^ *+' conftest.er1 >conftest.err
52654 cat conftest.err >&5
52655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52656 (exit $ac_status); } && {
52657 test -z "$ac_c_werror_flag" ||
52658 test ! -s conftest.err
52659 } && test -s conftest.$ac_objext; then
52660 ac_cv_member_struct_spwd_sp_pwdp=yes
52662 $as_echo "$as_me: failed program was:" >&5
52663 sed 's/^/| /' conftest.$ac_ext >&5
52665 ac_cv_member_struct_spwd_sp_pwdp=no
52668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52673 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
52674 $as_echo "$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
52675 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
52677 cat >>confdefs.h <<_ACEOF
52678 #define HAVE_STRUCT_SPWD_SP_PWDP 1
52685 for ac_func in getspnam
52687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
52688 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
52689 $as_echo_n "checking for $ac_func... " >&6; }
52690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52691 $as_echo_n "(cached) " >&6
52693 cat >conftest.$ac_ext <<_ACEOF
52696 cat confdefs.h >>conftest.$ac_ext
52697 cat >>conftest.$ac_ext <<_ACEOF
52698 /* end confdefs.h. */
52699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52701 #define $ac_func innocuous_$ac_func
52703 /* System header to define __stub macros and hopefully few prototypes,
52704 which can conflict with char $ac_func (); below.
52705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52706 <limits.h> exists even on freestanding compilers. */
52709 # include <limits.h>
52711 # include <assert.h>
52716 /* Override any GCC internal prototype to avoid an error.
52717 Use char because int might match the return type of a GCC
52718 builtin and then its argument prototype would still apply. */
52723 /* The GNU C library defines this for functions which it implements
52724 to always fail with ENOSYS. Some functions are actually named
52725 something starting with __ and the normal name is an alias. */
52726 #if defined __stub_$ac_func || defined __stub___$ac_func
52733 return $ac_func ();
52738 rm -f conftest.$ac_objext conftest$ac_exeext
52739 if { (ac_try="$ac_link"
52740 case "(($ac_try" in
52741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52742 *) ac_try_echo=$ac_try;;
52744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52745 $as_echo "$ac_try_echo") >&5
52746 (eval "$ac_link") 2>conftest.er1
52748 grep -v '^ *+' conftest.er1 >conftest.err
52750 cat conftest.err >&5
52751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52752 (exit $ac_status); } && {
52753 test -z "$ac_c_werror_flag" ||
52754 test ! -s conftest.err
52755 } && test -s conftest$ac_exeext &&
52756 $as_test_x conftest$ac_exeext; then
52757 eval "$as_ac_var=yes"
52759 $as_echo "$as_me: failed program was:" >&5
52760 sed 's/^/| /' conftest.$ac_ext >&5
52762 eval "$as_ac_var=no"
52765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52766 conftest$ac_exeext conftest.$ac_ext
52768 ac_res=`eval 'as_val=${'$as_ac_var'}
52769 $as_echo "$as_val"'`
52770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52771 $as_echo "$ac_res" >&6; }
52772 if test `eval 'as_val=${'$as_ac_var'}
52773 $as_echo "$as_val"'` = yes; then
52774 cat >>confdefs.h <<_ACEOF
52775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
52782 # SCO-ODT-3.0 is reported to need -lufc for crypt.
52783 # NetBSD needs -lcrypt for crypt.
52784 cu_saved_libs="$LIBS"
52785 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
52786 $as_echo_n "checking for library containing crypt... " >&6; }
52787 if test "${ac_cv_search_crypt+set}" = set; then
52788 $as_echo_n "(cached) " >&6
52790 ac_func_search_save_LIBS=$LIBS
52791 cat >conftest.$ac_ext <<_ACEOF
52794 cat confdefs.h >>conftest.$ac_ext
52795 cat >>conftest.$ac_ext <<_ACEOF
52796 /* end confdefs.h. */
52798 /* Override any GCC internal prototype to avoid an error.
52799 Use char because int might match the return type of a GCC
52800 builtin and then its argument prototype would still apply. */
52813 for ac_lib in '' ufc crypt; do
52814 if test -z "$ac_lib"; then
52815 ac_res="none required"
52818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52820 rm -f conftest.$ac_objext conftest$ac_exeext
52821 if { (ac_try="$ac_link"
52822 case "(($ac_try" in
52823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52824 *) ac_try_echo=$ac_try;;
52826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52827 $as_echo "$ac_try_echo") >&5
52828 (eval "$ac_link") 2>conftest.er1
52830 grep -v '^ *+' conftest.er1 >conftest.err
52832 cat conftest.err >&5
52833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52834 (exit $ac_status); } && {
52835 test -z "$ac_c_werror_flag" ||
52836 test ! -s conftest.err
52837 } && test -s conftest$ac_exeext &&
52838 $as_test_x conftest$ac_exeext; then
52839 ac_cv_search_crypt=$ac_res
52841 $as_echo "$as_me: failed program was:" >&5
52842 sed 's/^/| /' conftest.$ac_ext >&5
52847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52849 if test "${ac_cv_search_crypt+set}" = set; then
52853 if test "${ac_cv_search_crypt+set}" = set; then
52856 ac_cv_search_crypt=no
52858 rm conftest.$ac_ext
52859 LIBS=$ac_func_search_save_LIBS
52861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
52862 $as_echo "$ac_cv_search_crypt" >&6; }
52863 ac_res=$ac_cv_search_crypt
52864 if test "$ac_res" != no; then
52865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52866 test "$ac_cv_search_crypt" = "none required" ||
52867 LIB_CRYPT="$ac_cv_search_crypt"
52870 LIBS="$cu_saved_libs"
52875 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
52876 $as_echo_n "checking whether NLS is requested... " >&6; }
52877 # Check whether --enable-nls was given.
52878 if test "${enable_nls+set}" = set; then
52879 enableval=$enable_nls; USE_NLS=$enableval
52884 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
52885 $as_echo "$USE_NLS" >&6; }
52892 # Prepare PATH_SEPARATOR.
52893 # The user is always right.
52894 if test "${PATH_SEPARATOR+set}" != set; then
52895 echo "#! /bin/sh" >conf$$.sh
52896 echo "exit 0" >>conf$$.sh
52898 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52906 # Find out how to test for executable files. Don't use a zero-byte file,
52907 # as systems may use methods other than mode bits to determine executability.
52908 cat >conf$$.file <<_ASEOF
52912 chmod +x conf$$.file
52913 if test -x conf$$.file >/dev/null 2>&1; then
52914 ac_executable_p="test -x"
52916 ac_executable_p="test -f"
52920 # Extract the first word of "msgfmt", so it can be a program name with args.
52921 set dummy msgfmt; ac_word=$2
52922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52923 $as_echo_n "checking for $ac_word... " >&6; }
52924 if test "${ac_cv_path_MSGFMT+set}" = set; then
52925 $as_echo_n "(cached) " >&6
52929 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
52932 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
52933 for ac_dir in $PATH; do
52935 test -z "$ac_dir" && ac_dir=.
52936 for ac_exec_ext in '' $ac_executable_extensions; do
52937 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
52938 echo "$as_me: trying $ac_dir/$ac_word..." >&5
52939 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
52940 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
52941 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
52948 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
52952 MSGFMT="$ac_cv_path_MSGFMT"
52953 if test "$MSGFMT" != ":"; then
52954 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
52955 $as_echo "$MSGFMT" >&6; }
52957 { $as_echo "$as_me:$LINENO: result: no" >&5
52958 $as_echo "no" >&6; }
52961 # Extract the first word of "gmsgfmt", so it can be a program name with args.
52962 set dummy gmsgfmt; ac_word=$2
52963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52964 $as_echo_n "checking for $ac_word... " >&6; }
52965 if test "${ac_cv_path_GMSGFMT+set}" = set; then
52966 $as_echo_n "(cached) " >&6
52970 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
52973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52974 for as_dir in $PATH
52977 test -z "$as_dir" && as_dir=.
52978 for ac_exec_ext in '' $ac_executable_extensions; do
52979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52980 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
52981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52988 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
52992 GMSGFMT=$ac_cv_path_GMSGFMT
52993 if test -n "$GMSGFMT"; then
52994 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
52995 $as_echo "$GMSGFMT" >&6; }
52997 { $as_echo "$as_me:$LINENO: result: no" >&5
52998 $as_echo "no" >&6; }
53003 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53004 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
53005 *) MSGFMT_015=$MSGFMT ;;
53008 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53009 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
53010 *) GMSGFMT_015=$GMSGFMT ;;
53015 # Prepare PATH_SEPARATOR.
53016 # The user is always right.
53017 if test "${PATH_SEPARATOR+set}" != set; then
53018 echo "#! /bin/sh" >conf$$.sh
53019 echo "exit 0" >>conf$$.sh
53021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53029 # Find out how to test for executable files. Don't use a zero-byte file,
53030 # as systems may use methods other than mode bits to determine executability.
53031 cat >conf$$.file <<_ASEOF
53035 chmod +x conf$$.file
53036 if test -x conf$$.file >/dev/null 2>&1; then
53037 ac_executable_p="test -x"
53039 ac_executable_p="test -f"
53043 # Extract the first word of "xgettext", so it can be a program name with args.
53044 set dummy xgettext; ac_word=$2
53045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53046 $as_echo_n "checking for $ac_word... " >&6; }
53047 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53048 $as_echo_n "(cached) " >&6
53050 case "$XGETTEXT" in
53052 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53055 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53056 for ac_dir in $PATH; do
53058 test -z "$ac_dir" && ac_dir=.
53059 for ac_exec_ext in '' $ac_executable_extensions; do
53060 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53061 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53062 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53063 (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
53064 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53071 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53075 XGETTEXT="$ac_cv_path_XGETTEXT"
53076 if test "$XGETTEXT" != ":"; then
53077 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53078 $as_echo "$XGETTEXT" >&6; }
53080 { $as_echo "$as_me:$LINENO: result: no" >&5
53081 $as_echo "no" >&6; }
53086 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53087 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
53088 *) XGETTEXT_015=$XGETTEXT ;;
53093 # Prepare PATH_SEPARATOR.
53094 # The user is always right.
53095 if test "${PATH_SEPARATOR+set}" != set; then
53096 echo "#! /bin/sh" >conf$$.sh
53097 echo "exit 0" >>conf$$.sh
53099 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53107 # Find out how to test for executable files. Don't use a zero-byte file,
53108 # as systems may use methods other than mode bits to determine executability.
53109 cat >conf$$.file <<_ASEOF
53113 chmod +x conf$$.file
53114 if test -x conf$$.file >/dev/null 2>&1; then
53115 ac_executable_p="test -x"
53117 ac_executable_p="test -f"
53121 # Extract the first word of "msgmerge", so it can be a program name with args.
53122 set dummy msgmerge; ac_word=$2
53123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53124 $as_echo_n "checking for $ac_word... " >&6; }
53125 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53126 $as_echo_n "(cached) " >&6
53128 case "$MSGMERGE" in
53130 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53133 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53134 for ac_dir in $PATH; do
53136 test -z "$ac_dir" && ac_dir=.
53137 for ac_exec_ext in '' $ac_executable_extensions; do
53138 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53139 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53140 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53141 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53148 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53152 MSGMERGE="$ac_cv_path_MSGMERGE"
53153 if test "$MSGMERGE" != ":"; then
53154 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53155 $as_echo "$MSGMERGE" >&6; }
53157 { $as_echo "$as_me:$LINENO: result: no" >&5
53158 $as_echo "no" >&6; }
53162 test -n "$localedir" || localedir='${datadir}/locale'
53165 ac_config_commands="$ac_config_commands po-directories"
53191 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53192 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
53193 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53194 $as_echo_n "(cached) " >&6
53196 gt_save_LIBS="$LIBS"
53197 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53198 cat >conftest.$ac_ext <<_ACEOF
53201 cat confdefs.h >>conftest.$ac_ext
53202 cat >>conftest.$ac_ext <<_ACEOF
53203 /* end confdefs.h. */
53204 #include <CoreFoundation/CFPreferences.h>
53208 CFPreferencesCopyAppValue(NULL, NULL)
53213 rm -f conftest.$ac_objext conftest$ac_exeext
53214 if { (ac_try="$ac_link"
53215 case "(($ac_try" in
53216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53217 *) ac_try_echo=$ac_try;;
53219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53220 $as_echo "$ac_try_echo") >&5
53221 (eval "$ac_link") 2>conftest.er1
53223 grep -v '^ *+' conftest.er1 >conftest.err
53225 cat conftest.err >&5
53226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53227 (exit $ac_status); } && {
53228 test -z "$ac_c_werror_flag" ||
53229 test ! -s conftest.err
53230 } && test -s conftest$ac_exeext &&
53231 $as_test_x conftest$ac_exeext; then
53232 gt_cv_func_CFPreferencesCopyAppValue=yes
53234 $as_echo "$as_me: failed program was:" >&5
53235 sed 's/^/| /' conftest.$ac_ext >&5
53237 gt_cv_func_CFPreferencesCopyAppValue=no
53240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53241 conftest$ac_exeext conftest.$ac_ext
53242 LIBS="$gt_save_LIBS"
53244 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53245 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53246 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53248 cat >>confdefs.h <<\_ACEOF
53249 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53253 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53254 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
53255 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53256 $as_echo_n "(cached) " >&6
53258 gt_save_LIBS="$LIBS"
53259 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53260 cat >conftest.$ac_ext <<_ACEOF
53263 cat confdefs.h >>conftest.$ac_ext
53264 cat >>conftest.$ac_ext <<_ACEOF
53265 /* end confdefs.h. */
53266 #include <CoreFoundation/CFLocale.h>
53270 CFLocaleCopyCurrent();
53275 rm -f conftest.$ac_objext conftest$ac_exeext
53276 if { (ac_try="$ac_link"
53277 case "(($ac_try" in
53278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53279 *) ac_try_echo=$ac_try;;
53281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53282 $as_echo "$ac_try_echo") >&5
53283 (eval "$ac_link") 2>conftest.er1
53285 grep -v '^ *+' conftest.er1 >conftest.err
53287 cat conftest.err >&5
53288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53289 (exit $ac_status); } && {
53290 test -z "$ac_c_werror_flag" ||
53291 test ! -s conftest.err
53292 } && test -s conftest$ac_exeext &&
53293 $as_test_x conftest$ac_exeext; then
53294 gt_cv_func_CFLocaleCopyCurrent=yes
53296 $as_echo "$as_me: failed program was:" >&5
53297 sed 's/^/| /' conftest.$ac_ext >&5
53299 gt_cv_func_CFLocaleCopyCurrent=no
53302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53303 conftest$ac_exeext conftest.$ac_ext
53304 LIBS="$gt_save_LIBS"
53306 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53307 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53308 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53310 cat >>confdefs.h <<\_ACEOF
53311 #define HAVE_CFLOCALECOPYCURRENT 1
53316 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53317 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53329 case " $gt_needs " in
53330 *" need-formatstring-macros "*) gt_api_version=3 ;;
53331 *" need-ngettext "*) gt_api_version=2 ;;
53332 *) gt_api_version=1 ;;
53334 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
53335 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
53337 if test "$USE_NLS" = "yes"; then
53338 gt_use_preinstalled_gnugettext=no
53341 if test $gt_api_version -ge 3; then
53342 gt_revision_test_code='
53343 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
53344 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
53346 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
53349 gt_revision_test_code=
53351 if test $gt_api_version -ge 2; then
53352 gt_expression_test_code=' + * ngettext ("", "", 0)'
53354 gt_expression_test_code=
53357 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53358 $as_echo_n "checking for GNU gettext in libc... " >&6; }
53359 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
53360 $as_echo_n "(cached) " >&6
53362 cat >conftest.$ac_ext <<_ACEOF
53365 cat confdefs.h >>conftest.$ac_ext
53366 cat >>conftest.$ac_ext <<_ACEOF
53367 /* end confdefs.h. */
53368 #include <libintl.h>
53369 $gt_revision_test_code
53370 extern int _nl_msg_cat_cntr;
53371 extern int *_nl_domain_bindings;
53375 bindtextdomain ("", "");
53376 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
53381 rm -f conftest.$ac_objext conftest$ac_exeext
53382 if { (ac_try="$ac_link"
53383 case "(($ac_try" in
53384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53385 *) ac_try_echo=$ac_try;;
53387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53388 $as_echo "$ac_try_echo") >&5
53389 (eval "$ac_link") 2>conftest.er1
53391 grep -v '^ *+' conftest.er1 >conftest.err
53393 cat conftest.err >&5
53394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53395 (exit $ac_status); } && {
53396 test -z "$ac_c_werror_flag" ||
53397 test ! -s conftest.err
53398 } && test -s conftest$ac_exeext &&
53399 $as_test_x conftest$ac_exeext; then
53400 eval "$gt_func_gnugettext_libc=yes"
53402 $as_echo "$as_me: failed program was:" >&5
53403 sed 's/^/| /' conftest.$ac_ext >&5
53405 eval "$gt_func_gnugettext_libc=no"
53408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53409 conftest$ac_exeext conftest.$ac_ext
53411 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
53412 $as_echo "$as_val"'`
53413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53414 $as_echo "$ac_res" >&6; }
53416 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
53422 am_save_CPPFLAGS="$CPPFLAGS"
53424 for element in $INCICONV; do
53426 for x in $CPPFLAGS; do
53428 acl_save_prefix="$prefix"
53429 prefix="$acl_final_prefix"
53430 acl_save_exec_prefix="$exec_prefix"
53431 exec_prefix="$acl_final_exec_prefix"
53433 exec_prefix="$acl_save_exec_prefix"
53434 prefix="$acl_save_prefix"
53436 if test "X$x" = "X$element"; then
53441 if test -z "$haveit"; then
53442 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
53447 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
53448 $as_echo_n "checking for iconv... " >&6; }
53449 if test "${am_cv_func_iconv+set}" = set; then
53450 $as_echo_n "(cached) " >&6
53453 am_cv_func_iconv="no, consider installing GNU libiconv"
53455 cat >conftest.$ac_ext <<_ACEOF
53458 cat confdefs.h >>conftest.$ac_ext
53459 cat >>conftest.$ac_ext <<_ACEOF
53460 /* end confdefs.h. */
53461 #include <stdlib.h>
53466 iconv_t cd = iconv_open("","");
53467 iconv(cd,NULL,NULL,NULL,NULL);
53473 rm -f conftest.$ac_objext conftest$ac_exeext
53474 if { (ac_try="$ac_link"
53475 case "(($ac_try" in
53476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53477 *) ac_try_echo=$ac_try;;
53479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53480 $as_echo "$ac_try_echo") >&5
53481 (eval "$ac_link") 2>conftest.er1
53483 grep -v '^ *+' conftest.er1 >conftest.err
53485 cat conftest.err >&5
53486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53487 (exit $ac_status); } && {
53488 test -z "$ac_c_werror_flag" ||
53489 test ! -s conftest.err
53490 } && test -s conftest$ac_exeext &&
53491 $as_test_x conftest$ac_exeext; then
53492 am_cv_func_iconv=yes
53494 $as_echo "$as_me: failed program was:" >&5
53495 sed 's/^/| /' conftest.$ac_ext >&5
53500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53501 conftest$ac_exeext conftest.$ac_ext
53502 if test "$am_cv_func_iconv" != yes; then
53503 am_save_LIBS="$LIBS"
53504 LIBS="$LIBS $LIBICONV"
53505 cat >conftest.$ac_ext <<_ACEOF
53508 cat confdefs.h >>conftest.$ac_ext
53509 cat >>conftest.$ac_ext <<_ACEOF
53510 /* end confdefs.h. */
53511 #include <stdlib.h>
53516 iconv_t cd = iconv_open("","");
53517 iconv(cd,NULL,NULL,NULL,NULL);
53523 rm -f conftest.$ac_objext conftest$ac_exeext
53524 if { (ac_try="$ac_link"
53525 case "(($ac_try" in
53526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53527 *) ac_try_echo=$ac_try;;
53529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53530 $as_echo "$ac_try_echo") >&5
53531 (eval "$ac_link") 2>conftest.er1
53533 grep -v '^ *+' conftest.er1 >conftest.err
53535 cat conftest.err >&5
53536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53537 (exit $ac_status); } && {
53538 test -z "$ac_c_werror_flag" ||
53539 test ! -s conftest.err
53540 } && test -s conftest$ac_exeext &&
53541 $as_test_x conftest$ac_exeext; then
53542 am_cv_lib_iconv=yes
53543 am_cv_func_iconv=yes
53545 $as_echo "$as_me: failed program was:" >&5
53546 sed 's/^/| /' conftest.$ac_ext >&5
53551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53552 conftest$ac_exeext conftest.$ac_ext
53553 LIBS="$am_save_LIBS"
53557 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
53558 $as_echo "$am_cv_func_iconv" >&6; }
53559 if test "$am_cv_func_iconv" = yes; then
53561 cat >>confdefs.h <<\_ACEOF
53562 #define HAVE_ICONV 1
53566 if test "$am_cv_lib_iconv" = yes; then
53567 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
53568 $as_echo_n "checking how to link with libiconv... " >&6; }
53569 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
53570 $as_echo "$LIBICONV" >&6; }
53572 CPPFLAGS="$am_save_CPPFLAGS"
53586 acl_save_prefix="$prefix"
53587 prefix="$acl_final_prefix"
53588 acl_save_exec_prefix="$exec_prefix"
53589 exec_prefix="$acl_final_exec_prefix"
53591 eval additional_includedir=\"$includedir\"
53592 eval additional_libdir=\"$libdir\"
53594 exec_prefix="$acl_save_exec_prefix"
53595 prefix="$acl_save_prefix"
53598 # Check whether --with-libintl-prefix was given.
53599 if test "${with_libintl_prefix+set}" = set; then
53600 withval=$with_libintl_prefix;
53601 if test "X$withval" = "Xno"; then
53604 if test "X$withval" = "X"; then
53606 acl_save_prefix="$prefix"
53607 prefix="$acl_final_prefix"
53608 acl_save_exec_prefix="$exec_prefix"
53609 exec_prefix="$acl_final_exec_prefix"
53611 eval additional_includedir=\"$includedir\"
53612 eval additional_libdir=\"$libdir\"
53614 exec_prefix="$acl_save_exec_prefix"
53615 prefix="$acl_save_prefix"
53618 additional_includedir="$withval/include"
53619 additional_libdir="$withval/$acl_libdirstem"
53631 names_already_handled=
53632 names_next_round='intl '
53633 while test -n "$names_next_round"; do
53634 names_this_round="$names_next_round"
53636 for name in $names_this_round; do
53638 for n in $names_already_handled; do
53639 if test "$n" = "$name"; then
53640 already_handled=yes
53644 if test -z "$already_handled"; then
53645 names_already_handled="$names_already_handled $name"
53646 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
53647 eval value=\"\$HAVE_LIB$uppername\"
53648 if test -n "$value"; then
53649 if test "$value" = yes; then
53650 eval value=\"\$LIB$uppername\"
53651 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
53652 eval value=\"\$LTLIB$uppername\"
53653 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
53662 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
53663 if test -n "$acl_shlibext"; then
53664 shrext=".$acl_shlibext" # typically: shrext=.so
53668 if test $use_additional = yes; then
53669 dir="$additional_libdir"
53670 if test -n "$acl_shlibext"; then
53671 if test -f "$dir/$libname$shrext"; then
53673 found_so="$dir/$libname$shrext"
53675 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53676 ver=`(cd "$dir" && \
53677 for f in "$libname$shrext".*; do echo "$f"; done \
53678 | sed -e "s,^$libname$shrext\\\\.,," \
53679 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53680 | sed 1q ) 2>/dev/null`
53681 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53683 found_so="$dir/$libname$shrext.$ver"
53686 eval library_names=\"$acl_library_names_spec\"
53687 for f in $library_names; do
53688 if test -f "$dir/$f"; then
53697 if test "X$found_dir" = "X"; then
53698 if test -f "$dir/$libname.$acl_libext"; then
53700 found_a="$dir/$libname.$acl_libext"
53703 if test "X$found_dir" != "X"; then
53704 if test -f "$dir/$libname.la"; then
53705 found_la="$dir/$libname.la"
53709 if test "X$found_dir" = "X"; then
53710 for x in $LDFLAGS $LTLIBINTL; do
53712 acl_save_prefix="$prefix"
53713 prefix="$acl_final_prefix"
53714 acl_save_exec_prefix="$exec_prefix"
53715 exec_prefix="$acl_final_exec_prefix"
53717 exec_prefix="$acl_save_exec_prefix"
53718 prefix="$acl_save_prefix"
53722 dir=`echo "X$x" | sed -e 's/^X-L//'`
53723 if test -n "$acl_shlibext"; then
53724 if test -f "$dir/$libname$shrext"; then
53726 found_so="$dir/$libname$shrext"
53728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53729 ver=`(cd "$dir" && \
53730 for f in "$libname$shrext".*; do echo "$f"; done \
53731 | sed -e "s,^$libname$shrext\\\\.,," \
53732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53733 | sed 1q ) 2>/dev/null`
53734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53736 found_so="$dir/$libname$shrext.$ver"
53739 eval library_names=\"$acl_library_names_spec\"
53740 for f in $library_names; do
53741 if test -f "$dir/$f"; then
53750 if test "X$found_dir" = "X"; then
53751 if test -f "$dir/$libname.$acl_libext"; then
53753 found_a="$dir/$libname.$acl_libext"
53756 if test "X$found_dir" != "X"; then
53757 if test -f "$dir/$libname.la"; then
53758 found_la="$dir/$libname.la"
53763 if test "X$found_dir" != "X"; then
53768 if test "X$found_dir" != "X"; then
53769 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
53770 if test "X$found_so" != "X"; then
53771 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
53772 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53775 for x in $ltrpathdirs; do
53776 if test "X$x" = "X$found_dir"; then
53781 if test -z "$haveit"; then
53782 ltrpathdirs="$ltrpathdirs $found_dir"
53784 if test "$acl_hardcode_direct" = yes; then
53785 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53787 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53788 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53790 for x in $rpathdirs; do
53791 if test "X$x" = "X$found_dir"; then
53796 if test -z "$haveit"; then
53797 rpathdirs="$rpathdirs $found_dir"
53801 for x in $LDFLAGS $LIBINTL; do
53803 acl_save_prefix="$prefix"
53804 prefix="$acl_final_prefix"
53805 acl_save_exec_prefix="$exec_prefix"
53806 exec_prefix="$acl_final_exec_prefix"
53808 exec_prefix="$acl_save_exec_prefix"
53809 prefix="$acl_save_prefix"
53811 if test "X$x" = "X-L$found_dir"; then
53816 if test -z "$haveit"; then
53817 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
53819 if test "$acl_hardcode_minus_L" != no; then
53820 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
53822 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
53828 if test "X$found_a" != "X"; then
53829 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
53831 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
53834 additional_includedir=
53835 case "$found_dir" in
53836 */$acl_libdirstem | */$acl_libdirstem/)
53837 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
53838 LIBINTL_PREFIX="$basedir"
53839 additional_includedir="$basedir/include"
53842 if test "X$additional_includedir" != "X"; then
53843 if test "X$additional_includedir" != "X/usr/include"; then
53845 if test "X$additional_includedir" = "X/usr/local/include"; then
53846 if test -n "$GCC"; then
53848 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53852 if test -z "$haveit"; then
53853 for x in $CPPFLAGS $INCINTL; do
53855 acl_save_prefix="$prefix"
53856 prefix="$acl_final_prefix"
53857 acl_save_exec_prefix="$exec_prefix"
53858 exec_prefix="$acl_final_exec_prefix"
53860 exec_prefix="$acl_save_exec_prefix"
53861 prefix="$acl_save_prefix"
53863 if test "X$x" = "X-I$additional_includedir"; then
53868 if test -z "$haveit"; then
53869 if test -d "$additional_includedir"; then
53870 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
53876 if test -n "$found_la"; then
53877 save_libdir="$libdir"
53878 case "$found_la" in
53879 */* | *\\*) . "$found_la" ;;
53880 *) . "./$found_la" ;;
53882 libdir="$save_libdir"
53883 for dep in $dependency_libs; do
53886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53887 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
53889 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
53890 if test -n "$GCC"; then
53892 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53896 if test -z "$haveit"; then
53898 for x in $LDFLAGS $LIBINTL; do
53900 acl_save_prefix="$prefix"
53901 prefix="$acl_final_prefix"
53902 acl_save_exec_prefix="$exec_prefix"
53903 exec_prefix="$acl_final_exec_prefix"
53905 exec_prefix="$acl_save_exec_prefix"
53906 prefix="$acl_save_prefix"
53908 if test "X$x" = "X-L$additional_libdir"; then
53913 if test -z "$haveit"; then
53914 if test -d "$additional_libdir"; then
53915 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
53919 for x in $LDFLAGS $LTLIBINTL; do
53921 acl_save_prefix="$prefix"
53922 prefix="$acl_final_prefix"
53923 acl_save_exec_prefix="$exec_prefix"
53924 exec_prefix="$acl_final_exec_prefix"
53926 exec_prefix="$acl_save_exec_prefix"
53927 prefix="$acl_save_prefix"
53929 if test "X$x" = "X-L$additional_libdir"; then
53934 if test -z "$haveit"; then
53935 if test -d "$additional_libdir"; then
53936 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
53943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
53944 if test "$enable_rpath" != no; then
53946 for x in $rpathdirs; do
53947 if test "X$x" = "X$dir"; then
53952 if test -z "$haveit"; then
53953 rpathdirs="$rpathdirs $dir"
53956 for x in $ltrpathdirs; do
53957 if test "X$x" = "X$dir"; then
53962 if test -z "$haveit"; then
53963 ltrpathdirs="$ltrpathdirs $dir"
53968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
53971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
53974 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
53975 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
53981 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
53982 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
53988 if test "X$rpathdirs" != "X"; then
53989 if test -n "$acl_hardcode_libdir_separator"; then
53991 for found_dir in $rpathdirs; do
53992 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
53994 acl_save_libdir="$libdir"
53996 eval flag=\"$acl_hardcode_libdir_flag_spec\"
53997 libdir="$acl_save_libdir"
53998 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54000 for found_dir in $rpathdirs; do
54001 acl_save_libdir="$libdir"
54002 libdir="$found_dir"
54003 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54004 libdir="$acl_save_libdir"
54005 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54009 if test "X$ltrpathdirs" != "X"; then
54010 for found_dir in $ltrpathdirs; do
54011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54015 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54016 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
54017 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
54018 $as_echo_n "(cached) " >&6
54020 gt_save_CPPFLAGS="$CPPFLAGS"
54021 CPPFLAGS="$CPPFLAGS $INCINTL"
54022 gt_save_LIBS="$LIBS"
54023 LIBS="$LIBS $LIBINTL"
54024 cat >conftest.$ac_ext <<_ACEOF
54027 cat confdefs.h >>conftest.$ac_ext
54028 cat >>conftest.$ac_ext <<_ACEOF
54029 /* end confdefs.h. */
54030 #include <libintl.h>
54031 $gt_revision_test_code
54032 extern int _nl_msg_cat_cntr;
54037 const char *_nl_expand_alias (const char *);
54041 bindtextdomain ("", "");
54042 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54047 rm -f conftest.$ac_objext conftest$ac_exeext
54048 if { (ac_try="$ac_link"
54049 case "(($ac_try" in
54050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54051 *) ac_try_echo=$ac_try;;
54053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54054 $as_echo "$ac_try_echo") >&5
54055 (eval "$ac_link") 2>conftest.er1
54057 grep -v '^ *+' conftest.er1 >conftest.err
54059 cat conftest.err >&5
54060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54061 (exit $ac_status); } && {
54062 test -z "$ac_c_werror_flag" ||
54063 test ! -s conftest.err
54064 } && test -s conftest$ac_exeext &&
54065 $as_test_x conftest$ac_exeext; then
54066 eval "$gt_func_gnugettext_libintl=yes"
54068 $as_echo "$as_me: failed program was:" >&5
54069 sed 's/^/| /' conftest.$ac_ext >&5
54071 eval "$gt_func_gnugettext_libintl=no"
54074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54075 conftest$ac_exeext conftest.$ac_ext
54076 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
54077 LIBS="$LIBS $LIBICONV"
54078 cat >conftest.$ac_ext <<_ACEOF
54081 cat confdefs.h >>conftest.$ac_ext
54082 cat >>conftest.$ac_ext <<_ACEOF
54083 /* end confdefs.h. */
54084 #include <libintl.h>
54085 $gt_revision_test_code
54086 extern int _nl_msg_cat_cntr;
54091 const char *_nl_expand_alias (const char *);
54095 bindtextdomain ("", "");
54096 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54101 rm -f conftest.$ac_objext conftest$ac_exeext
54102 if { (ac_try="$ac_link"
54103 case "(($ac_try" in
54104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54105 *) ac_try_echo=$ac_try;;
54107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54108 $as_echo "$ac_try_echo") >&5
54109 (eval "$ac_link") 2>conftest.er1
54111 grep -v '^ *+' conftest.er1 >conftest.err
54113 cat conftest.err >&5
54114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54115 (exit $ac_status); } && {
54116 test -z "$ac_c_werror_flag" ||
54117 test ! -s conftest.err
54118 } && test -s conftest$ac_exeext &&
54119 $as_test_x conftest$ac_exeext; then
54120 LIBINTL="$LIBINTL $LIBICONV"
54121 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54122 eval "$gt_func_gnugettext_libintl=yes"
54125 $as_echo "$as_me: failed program was:" >&5
54126 sed 's/^/| /' conftest.$ac_ext >&5
54131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54132 conftest$ac_exeext conftest.$ac_ext
54134 CPPFLAGS="$gt_save_CPPFLAGS"
54135 LIBS="$gt_save_LIBS"
54137 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
54138 $as_echo "$as_val"'`
54139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54140 $as_echo "$ac_res" >&6; }
54143 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
54144 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
54145 && test "$PACKAGE" != gettext-runtime \
54146 && test "$PACKAGE" != gettext-tools; }; then
54147 gt_use_preinstalled_gnugettext=yes
54156 if test -n "$INTL_MACOSX_LIBS"; then
54157 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54158 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54159 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54160 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54164 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54165 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54167 cat >>confdefs.h <<\_ACEOF
54168 #define ENABLE_NLS 1
54176 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
54177 $as_echo_n "checking whether to use NLS... " >&6; }
54178 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54179 $as_echo "$USE_NLS" >&6; }
54180 if test "$USE_NLS" = "yes"; then
54181 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54182 $as_echo_n "checking where the gettext function comes from... " >&6; }
54183 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54184 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54185 gt_source="external libintl"
54190 gt_source="included intl directory"
54192 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
54193 $as_echo "$gt_source" >&6; }
54196 if test "$USE_NLS" = "yes"; then
54198 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54199 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54200 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
54201 $as_echo_n "checking how to link with libintl... " >&6; }
54202 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
54203 $as_echo "$LIBINTL" >&6; }
54205 for element in $INCINTL; do
54207 for x in $CPPFLAGS; do
54209 acl_save_prefix="$prefix"
54210 prefix="$acl_final_prefix"
54211 acl_save_exec_prefix="$exec_prefix"
54212 exec_prefix="$acl_final_exec_prefix"
54214 exec_prefix="$acl_save_exec_prefix"
54215 prefix="$acl_save_prefix"
54217 if test "X$x" = "X$element"; then
54222 if test -z "$haveit"; then
54223 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54230 cat >>confdefs.h <<\_ACEOF
54231 #define HAVE_GETTEXT 1
54235 cat >>confdefs.h <<\_ACEOF
54236 #define HAVE_DCGETTEXT 1
54246 INTLLIBS="$LIBINTL"
54255 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/dd/Makefile tests/dircolors/Makefile tests/du/Makefile tests/expr/Makefile tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile tests/join/Makefile tests/ln/Makefile tests/ls-2/Makefile tests/ls/Makefile tests/md5sum/Makefile tests/misc/Makefile tests/mkdir/Makefile tests/mv/Makefile tests/od/Makefile tests/pr/Makefile tests/readlink/Makefile tests/rm/Makefile tests/rmdir/Makefile tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile tests/stty/Makefile tests/sum/Makefile tests/tac/Makefile tests/tail-2/Makefile tests/tail/Makefile tests/tee/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
54257 cat >confcache <<\_ACEOF
54258 # This file is a shell script that caches the results of configure
54259 # tests run on this system so they can be shared between configure
54260 # scripts and configure runs, see configure's option --config-cache.
54261 # It is not useful on other systems. If it contains results you don't
54262 # want to keep, you may remove or edit it.
54264 # config.status only pays attention to the cache file if you give it
54265 # the --recheck option to rerun configure.
54267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54269 # following values.
54273 # The following way of writing the cache mishandles newlines in values,
54274 # but we know of no workaround that is simple, portable, and efficient.
54275 # So, we kill variables containing newlines.
54276 # Ultrix sh set writes to stderr and can't be redirected directly,
54277 # and sets the high bit in the cache file unless we assign to the vars.
54279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54280 eval ac_val=\$$ac_var
54284 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
54285 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
54288 _ | IFS | as_nl) ;; #(
54289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54290 *) $as_unset $ac_var ;;
54296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
54297 *${as_nl}ac_space=\ *)
54298 # `set' does not quote correctly, so add quotes (double-quote
54299 # substitution turns \\\\ into \\, and sed turns \\ into \).
54302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54305 # `set' quotes correctly as required by POSIX, so do not add quotes.
54306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
54320 if test -w "$cache_file"; then
54321 test "x$cache_file" != "x/dev/null" &&
54322 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
54323 $as_echo "$as_me: updating cache $cache_file" >&6;}
54324 cat confcache >$cache_file
54326 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54333 # Let make expand exec_prefix.
54334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54336 DEFS=-DHAVE_CONFIG_H
54340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54341 # 1. Remove the extension, and $U if already installed.
54342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54343 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
54344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
54345 # will be set to the directory where LIBOBJS objects are built.
54346 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54347 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54349 LIBOBJS=$ac_libobjs
54351 LTLIBOBJS=$ac_ltlibobjs
54354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54355 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54356 Usually this means the macro was only invoked conditionally." >&5
54357 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
54358 Usually this means the macro was only invoked conditionally." >&2;}
54359 { (exit 1); exit 1; }; }
54361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54362 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54363 Usually this means the macro was only invoked conditionally." >&5
54364 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54365 Usually this means the macro was only invoked conditionally." >&2;}
54366 { (exit 1); exit 1; }; }
54368 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
54369 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54370 Usually this means the macro was only invoked conditionally." >&5
54371 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54372 Usually this means the macro was only invoked conditionally." >&2;}
54373 { (exit 1); exit 1; }; }
54375 test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS=
54379 if test -n "$gl_LIBOBJS"; then
54380 # Remove the extension.
54381 sed_drop_objext='s/\.o$//;s/\.obj$//'
54382 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
54383 gl_libobjs="$gl_libobjs $i.$ac_objext"
54384 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
54387 gl_LIBOBJS=$gl_libobjs
54389 gl_LTLIBOBJS=$gl_ltlibobjs
54393 : ${CONFIG_STATUS=./config.status}
54394 ac_clean_files_save=$ac_clean_files
54395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54396 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54398 cat >$CONFIG_STATUS <<_ACEOF
54400 # Generated by $as_me.
54401 # Run this file to recreate the current configuration.
54402 # Compiler output produced by configure, useful for debugging
54403 # configure, is in config.log if it exists.
54406 ac_cs_recheck=false
54408 SHELL=\${CONFIG_SHELL-$SHELL}
54411 cat >>$CONFIG_STATUS <<\_ACEOF
54412 ## --------------------- ##
54413 ## M4sh Initialization. ##
54414 ## --------------------- ##
54416 # Be more Bourne compatible
54417 DUALCASE=1; export DUALCASE # for MKS sh
54418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54421 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54422 # is contrary to our usage. Disable this feature.
54423 alias -g '${1+"$@"}'='"$@"'
54424 setopt NO_GLOB_SUBST
54426 case `(set -o) 2>/dev/null` in
54427 *posix*) set -o posix ;;
54436 # Avoid depending upon Character Ranges.
54437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54440 as_cr_digits='0123456789'
54441 as_cr_alnum=$as_cr_Letters$as_cr_digits
54446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
54447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
54450 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54451 as_echo='printf %s\n'
54452 as_echo_n='printf %s'
54454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54456 as_echo_n='/usr/ucb/echo -n'
54458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54459 as_echo_n_body='eval
54463 expr "X$arg" : "X\\(.*\\)$as_nl";
54464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
54466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
54468 export as_echo_n_body
54469 as_echo_n='sh -c $as_echo_n_body as_echo'
54471 export as_echo_body
54472 as_echo='sh -c $as_echo_body as_echo'
54475 # The user is always right.
54476 if test "${PATH_SEPARATOR+set}" != set; then
54477 echo "#! /bin/sh" >conf$$.sh
54478 echo "exit 0" >>conf$$.sh
54480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54488 # Support unset when possible.
54489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54497 # We need space, tab and new line, in precisely that order. Quoting is
54498 # there to prevent editors from complaining about space-tab.
54499 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54500 # splitting by setting IFS to empty value.)
54503 # Find who we are. Look in the path if we contain no directory separator.
54505 *[\\/]* ) as_myself=$0 ;;
54506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54507 for as_dir in $PATH
54510 test -z "$as_dir" && as_dir=.
54511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54517 # We did not find ourselves, most probably we were run as `sh COMMAND'
54518 # in which case we are not to be found in the path.
54519 if test "x$as_myself" = x; then
54522 if test ! -f "$as_myself"; then
54523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
54524 { (exit 1); exit 1; }
54527 # Work around bugs in pre-3.0 UWIN ksh.
54528 for as_var in ENV MAIL MAILPATH
54529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
54538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
54539 LC_TELEPHONE LC_TIME
54541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54542 eval $as_var=C; export $as_var
54544 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54548 # Required to use basename.
54549 if expr a : '\(a\)' >/dev/null 2>&1 &&
54550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
54556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54557 as_basename=basename
54563 # Name of the executable.
54564 as_me=`$as_basename -- "$0" ||
54565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54566 X"$0" : 'X\(//\)$' \| \
54567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54569 sed '/^.*\/\([^/][^/]*\)\/*$/{
54588 as_lineno_1=$LINENO
54589 as_lineno_2=$LINENO
54590 test "x$as_lineno_1" != "x$as_lineno_2" &&
54591 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54594 # uniformly replaced by the line number. The first 'sed' inserts a
54595 # line-number line after each line using $LINENO; the second 'sed'
54596 # does the real work. The second script uses 'N' to pair each
54597 # line-number line with the line containing $LINENO, and appends
54598 # trailing '-' during substitution so that $LINENO is not a special
54599 # case at line end.
54600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
54601 # scripts with optimization help from Paolo Bonzini. Blame Lee
54602 # E. McMahon (1931-1989) for sed's syntax. :-)
54614 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54617 ' >$as_me.lineno &&
54618 chmod +x "$as_me.lineno" ||
54619 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54620 { (exit 1); exit 1; }; }
54622 # Don't try to exec as it changes $[0], causing all sort of problems
54623 # (the dirname of $[0] is not the place where we might find the
54624 # original and so on. Autoconf is especially sensitive to this).
54625 . "./$as_me.lineno"
54626 # Exit status is that of the last command.
54631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
54637 ECHO_C= ECHO_N= ECHO_T=
54638 case `echo -n x` in
54640 case `echo 'x\c'` in
54641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
54647 if expr a : '\(a\)' >/dev/null 2>&1 &&
54648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
54654 rm -f conf$$ conf$$.exe conf$$.file
54655 if test -d conf$$.dir; then
54656 rm -f conf$$.dir/conf$$.file
54662 if ln -s conf$$.file conf$$ 2>/dev/null; then
54664 # ... but there are two gotchas:
54665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
54666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
54667 # In both cases, we have to default to `cp -p'.
54668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
54670 elif ln conf$$.file conf$$ 2>/dev/null; then
54675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54676 rmdir conf$$.dir 2>/dev/null
54678 if mkdir -p . 2>/dev/null; then
54681 test -d ./-p && rmdir ./-p
54685 if test -x / >/dev/null 2>&1; then
54686 as_test_x='test -x'
54688 if ls -dL / >/dev/null 2>&1; then
54695 if test -d "$1"; then
54701 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
54702 ???[sx]*):;;*)false;;esac;fi
54706 as_executable_p=$as_test_x
54708 # Sed expression to map a string onto a valid CPP name.
54709 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54711 # Sed expression to map a string onto a valid variable name.
54712 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54717 # Save the log message, to keep $[0] and so on meaningful, and to
54718 # report actual input values of CONFIG_FILES etc. instead of their
54719 # values after options handling.
54721 This file was extended by GNU coreutils $as_me 6.9, which was
54722 generated by GNU Autoconf 2.61a. Invocation command line was
54724 CONFIG_FILES = $CONFIG_FILES
54725 CONFIG_HEADERS = $CONFIG_HEADERS
54726 CONFIG_LINKS = $CONFIG_LINKS
54727 CONFIG_COMMANDS = $CONFIG_COMMANDS
54730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
54735 cat >>$CONFIG_STATUS <<_ACEOF
54736 # Files that config.status was made for.
54737 config_files="$ac_config_files"
54738 config_headers="$ac_config_headers"
54739 config_commands="$ac_config_commands"
54743 cat >>$CONFIG_STATUS <<\_ACEOF
54745 \`$as_me' instantiates files from templates according to the
54746 current configuration.
54748 Usage: $0 [OPTIONS] [FILE]...
54750 -h, --help print this help, then exit
54751 -V, --version print version number and configuration settings, then exit
54752 -q, --quiet do not print progress messages
54753 -d, --debug don't remove temporary files
54754 --recheck update $as_me by reconfiguring in the same conditions
54755 --file=FILE[:TEMPLATE]
54756 instantiate the configuration file FILE
54757 --header=FILE[:TEMPLATE]
54758 instantiate the configuration header FILE
54760 Configuration files:
54763 Configuration headers:
54766 Configuration commands:
54769 Report bugs to <bug-autoconf@gnu.org>."
54772 cat >>$CONFIG_STATUS <<_ACEOF
54774 GNU coreutils config.status 6.9
54775 configured by $0, generated by GNU Autoconf 2.61a,
54776 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54778 Copyright (C) 2006 Free Software Foundation, Inc.
54779 This config.status script is free software; the Free Software Foundation
54780 gives unlimited permission to copy, distribute and modify it."
54787 test -n "\$AWK" || AWK=awk
54790 cat >>$CONFIG_STATUS <<\_ACEOF
54791 # If no file are specified by the user, then we need to provide default
54792 # value. By we need to know if files were specified by the user.
54798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
54799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54810 # Handling of the options.
54811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54814 $as_echo "$ac_cs_version"; exit ;;
54815 --debug | --debu | --deb | --de | --d | -d )
54817 --file | --fil | --fi | --f )
54819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54820 ac_need_defaults=false;;
54821 --header | --heade | --head | --hea )
54823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54824 ac_need_defaults=false;;
54826 # Conflict between --help and --header
54827 { $as_echo "$as_me: error: ambiguous option: $1
54828 Try \`$0 --help' for more information." >&2
54829 { (exit 1); exit 1; }; };;
54830 --help | --hel | -h )
54831 $as_echo "$ac_cs_usage"; exit ;;
54832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
54836 # This is an error.
54837 -*) { $as_echo "$as_me: error: unrecognized option: $1
54838 Try \`$0 --help' for more information." >&2
54839 { (exit 1); exit 1; }; } ;;
54841 *) ac_config_targets="$ac_config_targets $1"
54842 ac_need_defaults=false ;;
54848 ac_configure_extra_args=
54850 if $ac_cs_silent; then
54852 ac_configure_extra_args="$ac_configure_extra_args --silent"
54856 cat >>$CONFIG_STATUS <<_ACEOF
54857 if \$ac_cs_recheck; then
54858 set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54860 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
54861 CONFIG_SHELL='$SHELL'
54862 export CONFIG_SHELL
54867 cat >>$CONFIG_STATUS <<\_ACEOF
54871 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54872 ## Running $as_me. ##
54878 cat >>$CONFIG_STATUS <<_ACEOF
54882 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
54883 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
54884 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
54885 # from automake < 1.5.
54886 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
54887 # Capture the value of LINGUAS because we need it to compute CATALOGS.
54888 LINGUAS="${LINGUAS-%UNSET%}"
54893 cat >>$CONFIG_STATUS <<\_ACEOF
54895 # Handling of arguments.
54896 for ac_config_target in $ac_config_targets
54898 case $ac_config_target in
54899 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
54900 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
54901 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
54902 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54903 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
54904 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
54905 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
54906 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
54907 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
54908 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
54909 "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
54910 "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
54911 "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
54912 "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
54913 "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
54914 "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
54915 "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
54916 "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
54917 "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
54918 "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
54919 "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
54920 "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
54921 "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
54922 "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
54923 "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
54924 "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
54925 "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
54926 "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
54927 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
54928 "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
54929 "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
54930 "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
54931 "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
54932 "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
54933 "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
54934 "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
54935 "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
54936 "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
54937 "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
54938 "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
54939 "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
54940 "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
54941 "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
54942 "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
54943 "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
54944 "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
54945 "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
54946 "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
54947 "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
54948 "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
54949 "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
54950 "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
54951 "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
54953 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54954 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54955 { (exit 1); exit 1; }; };;
54960 # If the user did not use the arguments to specify the items to instantiate,
54961 # then the envvar interface is used. Set only those that are not.
54962 # We use the long form for the default assignment because of an extremely
54963 # bizarre bug on SunOS 4.1.3.
54964 if $ac_need_defaults; then
54965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54970 # Have a temporary directory for convenience. Make it in the build tree
54971 # simply because there is no reason against having it here, and in addition,
54972 # creating and moving files from /tmp can sometimes cause problems.
54973 # Hook for its removal unless debugging.
54974 # Note that there is a small window in which the directory will not be cleaned:
54975 # after its creation but before its name has been assigned to `$tmp'.
54979 trap 'exit_status=$?
54980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54982 trap '{ (exit 1); exit 1; }' 1 2 13 15
54984 # Create a (secure) tmp directory for tmp files.
54987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54988 test -n "$tmp" && test -d "$tmp"
54991 tmp=./conf$$-$RANDOM
54992 (umask 077 && mkdir "$tmp")
54995 $as_echo "$me: cannot create a temporary directory in ." >&2
54996 { (exit 1); exit 1; }
54999 # Set up the scripts for CONFIG_FILES section.
55000 # No need to generate them if there are no CONFIG_FILES.
55001 # This happens for instance with `./config.status config.h'.
55002 if test -n "$CONFIG_FILES"; then
55005 echo 'BEGIN {' >"$tmp/subs.awk"
55010 echo "cat >conf$$subs.awk <<_ACEOF"
55011 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'
55014 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
55016 for ac_last_try in false false false false false :; do
55019 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
55021 elif $ac_last_try; then
55022 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55023 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55024 { (exit 1); exit 1; }; }
55026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55029 rm -f conf$$subs.sh
55031 cat >>$CONFIG_STATUS <<_ACEOF
55032 cat >>"\$tmp/subs.awk" <<\CEOF
55036 s/^/S["/; s/!.*/"]=/
55046 s/\(.\{148\}\).*/\1/
55048 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
55053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55060 s/\(.\{148\}\).*/\1/
55062 s/["\\]/\\&/g; s/^/"/; s/$/"/
55066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55071 ' <conf$$subs.awk | sed '
55077 rm -f conf$$subs.awk
55078 cat >>$CONFIG_STATUS <<_ACEOF
55080 cat >>"\$tmp/subs.awk" <<CEOF
55081 for (key in S) S_is_set[key] = 1
55087 nfields = split(line, field, "@")
55089 len = length(field[1])
55090 for (i = 2; i < nfields; i++) {
55092 keylen = length(key)
55093 if (S_is_set[key]) {
55095 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
55096 len += length(value) + length(field[++i])
55108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55110 # trailing colons and then remove the whole line if VPATH becomes empty
55111 # (actually we leave an empty line to preserve line numbers).
55112 if test "x$srcdir" = x.; then
55113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
55114 s/:*\$(srcdir):*/:/
55115 s/:*\${srcdir}:*/:/
55117 s/^\([^=]*=[ ]*\):*/\1/
55123 cat >>$CONFIG_STATUS <<\_ACEOF
55124 fi # test -n "$CONFIG_FILES"
55127 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
55130 :[FHLC]) ac_mode=$ac_tag; continue;;
55132 case $ac_mode$ac_tag in
55134 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
55135 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
55136 { (exit 1); exit 1; }; };;
55137 :[FH]-) ac_tag=-:-;;
55138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55155 -) ac_f="$tmp/stdin";;
55156 *) # Look for the file first in the build tree, then in the source tree
55157 # (if the path is not absolute). The absolute path cannot be DOS-style,
55158 # because $ac_f cannot contain `:'.
55162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55164 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55165 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55166 { (exit 1); exit 1; }; };;
55168 ac_file_inputs="$ac_file_inputs $ac_f"
55171 # Let's still pretend it is `configure' which instantiates (i.e., don't
55172 # use $as_me), people would be surprised to read:
55173 # /* config.h. Generated by config.status. */
55174 configure_input='Generated from '`
55175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
55177 if test x"$ac_file" != x-; then
55178 configure_input="$ac_file. $configure_input"
55179 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
55180 $as_echo "$as_me: creating $ac_file" >&6;}
55184 *:-:* | *:-) cat >"$tmp/stdin";;
55189 ac_dir=`$as_dirname -- "$ac_file" ||
55190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55191 X"$ac_file" : 'X\(//\)[^/]' \| \
55192 X"$ac_file" : 'X\(//\)$' \| \
55193 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55194 $as_echo X"$ac_file" |
55195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55199 /^X\(\/\/\)[^/].*/{
55214 -*) as_dir=./$as_dir;;
55216 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55220 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55221 *) as_qdir=$as_dir;;
55223 as_dirs="'$as_qdir' $as_dirs"
55224 as_dir=`$as_dirname -- "$as_dir" ||
55225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55226 X"$as_dir" : 'X\(//\)[^/]' \| \
55227 X"$as_dir" : 'X\(//\)$' \| \
55228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55229 $as_echo X"$as_dir" |
55230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55234 /^X\(\/\/\)[^/].*/{
55247 test -d "$as_dir" && break
55249 test -z "$as_dirs" || eval "mkdir $as_dirs"
55250 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55251 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55252 { (exit 1); exit 1; }; }; }
55256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
55259 # A ".." for each directory in $ac_dir_suffix.
55260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55261 case $ac_top_builddir_sub in
55262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55266 ac_abs_top_builddir=$ac_pwd
55267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55268 # for backward compatibility:
55269 ac_top_builddir=$ac_top_build_prefix
55272 .) # We are building in place.
55274 ac_top_srcdir=$ac_top_builddir_sub
55275 ac_abs_top_srcdir=$ac_pwd ;;
55276 [\\/]* | ?:[\\/]* ) # Absolute name.
55277 ac_srcdir=$srcdir$ac_dir_suffix;
55278 ac_top_srcdir=$srcdir
55279 ac_abs_top_srcdir=$srcdir ;;
55280 *) # Relative name.
55281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55282 ac_top_srcdir=$ac_top_build_prefix$srcdir
55283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55298 ac_MKDIR_P=$MKDIR_P
55300 [\\/$]* | ?:[\\/]* ) ;;
55301 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
55305 cat >>$CONFIG_STATUS <<\_ACEOF
55306 # If the template does not know about datarootdir, expand it.
55307 # FIXME: This hack should be removed a few years after 2.60.
55308 ac_datarootdir_hack=; ac_datarootdir_seen=
55310 case `sed -n '/datarootdir/ {
55319 ' $ac_file_inputs` in
55320 *datarootdir*) ac_datarootdir_seen=yes;;
55321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55322 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55325 cat >>$CONFIG_STATUS <<_ACEOF
55326 ac_datarootdir_hack='
55327 s&@datadir@&$datadir&g
55328 s&@docdir@&$docdir&g
55329 s&@infodir@&$infodir&g
55330 s&@localedir@&$localedir&g
55331 s&@mandir@&$mandir&g
55332 s&\\\${datarootdir}&$datarootdir&g' ;;
55336 # Neutralize VPATH when `$srcdir' = `.'.
55337 # Shell code in configure.ac might set extrasub.
55338 # FIXME: do we really want to maintain this feature?
55339 cat >>$CONFIG_STATUS <<_ACEOF
55343 cat >>$CONFIG_STATUS <<\_ACEOF
55345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55346 s&@configure_input@&$configure_input&;t t
55347 s&@top_builddir@&$ac_top_builddir_sub&;t t
55348 s&@srcdir@&$ac_srcdir&;t t
55349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55350 s&@top_srcdir@&$ac_top_srcdir&;t t
55351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55352 s&@builddir@&$ac_builddir&;t t
55353 s&@abs_builddir@&$ac_abs_builddir&;t t
55354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55355 s&@INSTALL@&$ac_INSTALL&;t t
55356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
55357 $ac_datarootdir_hack
55358 " $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out
55360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55361 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55363 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55364 which seems to be undefined. Please make sure it is defined." >&5
55365 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55366 which seems to be undefined. Please make sure it is defined." >&2;}
55370 -) cat "$tmp/out"; rm -f "$tmp/out";;
55371 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55380 # Transform confdefs.h into a sed script `conftest.defines', that
55381 # substitutes the proper values into config.h.in to produce config.h.
55382 rm -f conftest.defines conftest.tail
55383 # First, append a space to every undef/define line, to ease matching.
55384 echo 's/$/ /' >conftest.defines
55385 # Then, protect against being on the right side of a sed subst, or in
55386 # an unquoted here document, in config.status. If some macros were
55387 # called several times there might be several #defines for the same
55388 # symbol, which is useless. But do not sort them, since the last
55389 # AC_DEFINE must be honored.
55390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55391 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55392 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55393 # PARAMS is the parameter list in the macro definition--in most cases, it's
55394 # just an empty string.
55395 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
55396 ac_dB='\\)[ (].*,\\1define\\2'
55404 s/^[ ]*#[ ]*define[ ][ ]*//
55409 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55410 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55411 ' >>conftest.defines
55413 # Remove the space that was appended to ease matching.
55414 # Then replace #undef with comments. This is necessary, for
55415 # example, in the case of _POSIX_SOURCE, which is predefined and required
55416 # on some systems where configure will not decide to define it.
55417 # (The regexp can be short, since the line contains either #define or #undef.)
55419 s,^[ #]*u.*,/* & */,' >>conftest.defines
55421 # Break up conftest.defines:
55422 ac_max_sed_lines=50
55424 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55425 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55426 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55428 ac_in='$ac_file_inputs'
55429 ac_out='"$tmp/out1"'
55430 ac_nxt='"$tmp/out2"'
55434 # Write a here document:
55435 cat >>$CONFIG_STATUS <<_ACEOF
55436 # First, check the format of the line:
55437 cat >"\$tmp/defines.sed" <<\\CEOF
55438 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
55439 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
55443 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55445 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55446 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55447 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55448 grep . conftest.tail >/dev/null || break
55449 rm -f conftest.defines
55450 mv conftest.tail conftest.defines
55452 rm -f conftest.defines conftest.tail
55454 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55455 cat >>$CONFIG_STATUS <<\_ACEOF
55456 if test x"$ac_file" != x-; then
55457 $as_echo "/* $configure_input */" >"$tmp/config.h"
55458 cat "$ac_result" >>"$tmp/config.h"
55459 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55460 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55461 $as_echo "$as_me: $ac_file is unchanged" >&6;}
55464 mv "$tmp/config.h" $ac_file
55467 $as_echo "/* $configure_input */"
55471 # Compute $ac_file's index in $config_headers.
55473 for _am_header in $config_headers :; do
55474 case $_am_header in
55475 $ac_file | $ac_file:* )
55478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
55481 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
55482 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55483 X$ac_file : 'X\(//\)[^/]' \| \
55484 X$ac_file : 'X\(//\)$' \| \
55485 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
55486 $as_echo X$ac_file |
55487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55491 /^X\(\/\/\)[^/].*/{
55503 s/.*/./; q'`/stamp-h$_am_stamp_count
55506 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
55507 $as_echo "$as_me: executing $ac_file commands" >&6;}
55512 case $ac_file$ac_mode in
55513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
55514 # Strip MF so we end up with the name of the file.
55515 mf=`echo "$mf" | sed -e 's/:.*$//'`
55516 # Check whether this is an Automake generated Makefile or not.
55517 # We used to match only the files named `Makefile.in', but
55518 # some people rename them; so instead we look at the file content.
55519 # Grep'ing the first line is not enough: some people post-process
55520 # each Makefile.in and add a new line on top of each file to say so.
55521 # Grep'ing the whole file is not good either: AIX grep has a line
55522 # limit of 2048, but all sed's we know have understand at least 4000.
55523 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
55524 dirpart=`$as_dirname -- "$mf" ||
55525 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55526 X"$mf" : 'X\(//\)[^/]' \| \
55527 X"$mf" : 'X\(//\)$' \| \
55528 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
55530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55534 /^X\(\/\/\)[^/].*/{
55550 # Extract the definition of DEPDIR, am__include, and am__quote
55551 # from the Makefile without running `make'.
55552 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
55553 test -z "$DEPDIR" && continue
55554 am__include=`sed -n 's/^am__include = //p' < "$mf"`
55555 test -z "am__include" && continue
55556 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
55557 # When using ansi2knr, U may be empty or an underscore; expand it
55558 U=`sed -n 's/^U = //p' < "$mf"`
55559 # Find all dependency output files, they are included files with
55560 # $(DEPDIR) in their names. We invoke sed twice because it is the
55561 # simplest approach to changing $(DEPDIR) to its actual value in the
55563 for file in `sed -n "
55564 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
55565 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
55566 # Make sure the directory exists.
55567 test -f "$dirpart/$file" && continue
55568 fdir=`$as_dirname -- "$file" ||
55569 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55570 X"$file" : 'X\(//\)[^/]' \| \
55571 X"$file" : 'X\(//\)$' \| \
55572 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
55573 $as_echo X"$file" |
55574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55578 /^X\(\/\/\)[^/].*/{
55591 { as_dir=$dirpart/$fdir
55593 -*) as_dir=./$as_dir;;
55595 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55599 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55600 *) as_qdir=$as_dir;;
55602 as_dirs="'$as_qdir' $as_dirs"
55603 as_dir=`$as_dirname -- "$as_dir" ||
55604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55605 X"$as_dir" : 'X\(//\)[^/]' \| \
55606 X"$as_dir" : 'X\(//\)$' \| \
55607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55608 $as_echo X"$as_dir" |
55609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55613 /^X\(\/\/\)[^/].*/{
55626 test -d "$as_dir" && break
55628 test -z "$as_dirs" || eval "mkdir $as_dirs"
55629 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55630 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55631 { (exit 1); exit 1; }; }; }
55632 # echo "creating $dirpart/$file"
55633 echo '# dummy' > "$dirpart/$file"
55637 "po-directories":C)
55638 for ac_file in $CONFIG_FILES; do
55639 # Support "outfile[:infile[:infile...]]"
55641 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
55643 # PO directories have a Makefile.in generated from Makefile.in.in.
55644 case "$ac_file" in */Makefile.in)
55645 # Adjust a relative srcdir.
55646 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
55647 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
55648 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
55649 # In autoconf-2.13 it is called $ac_given_srcdir.
55650 # In autoconf-2.50 it is called $srcdir.
55651 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
55652 case "$ac_given_srcdir" in
55653 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
55654 /*) top_srcdir="$ac_given_srcdir" ;;
55655 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
55657 # Treat a directory as a PO directory if and only if it has a
55658 # POTFILES.in file. This allows packages to have multiple PO
55659 # directories under different names or in different locations.
55660 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
55661 rm -f "$ac_dir/POTFILES"
55662 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
55663 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
55664 POMAKEFILEDEPS="POTFILES.in"
55665 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
55666 # on $ac_dir but don't depend on user-specified configuration
55668 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
55669 # The LINGUAS file contains the set of available languages.
55670 if test -n "$OBSOLETE_ALL_LINGUAS"; then
55671 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
55673 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
55674 # Hide the ALL_LINGUAS assigment from automake < 1.5.
55675 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
55676 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
55678 # The set of available languages was given in configure.in.
55679 # Hide the ALL_LINGUAS assigment from automake < 1.5.
55680 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
55683 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
55684 # Compute UPDATEPOFILES
55685 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
55686 # Compute DUMMYPOFILES
55687 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
55689 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
55690 case "$ac_given_srcdir" in
55692 *) srcdirpre='$(srcdir)/' ;;
55698 for lang in $ALL_LINGUAS; do
55699 POFILES="$POFILES $srcdirpre$lang.po"
55700 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
55701 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
55702 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
55704 # CATALOGS depends on both $ac_dir and the user's LINGUAS
55705 # environment variable.
55707 if test -n "$ALL_LINGUAS"; then
55708 for presentlang in $ALL_LINGUAS; do
55710 if test "%UNSET%" != "$LINGUAS"; then
55711 desiredlanguages="$LINGUAS"
55713 desiredlanguages="$ALL_LINGUAS"
55715 for desiredlang in $desiredlanguages; do
55716 # Use the presentlang catalog if desiredlang is
55717 # a. equal to presentlang, or
55718 # b. a variant of presentlang (because in this case,
55719 # presentlang can be used as a fallback for messages
55720 # which are not translated in the desiredlang catalog).
55721 case "$desiredlang" in
55722 "$presentlang"*) useit=yes;;
55725 if test $useit = yes; then
55726 INST_LINGUAS="$INST_LINGUAS $presentlang"
55731 if test -n "$INST_LINGUAS"; then
55732 for lang in $INST_LINGUAS; do
55733 CATALOGS="$CATALOGS $lang.gmo"
55736 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
55737 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"
55738 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
55739 if test -f "$f"; then
55741 *.orig | *.bak | *~) ;;
55742 *) cat "$f" >> "$ac_dir/Makefile" ;;
55755 { (exit 0); exit 0; }
55757 chmod +x $CONFIG_STATUS
55758 ac_clean_files=$ac_clean_files_save
55761 # configure is writing to config.log, and then calls config.status.
55762 # config.status does its own redirection, appending to config.log.
55763 # Unfortunately, on DOS this fails, as config.log is still kept open
55764 # by configure, so config.status won't be able to write to it; its
55765 # output is simply discarded. So we exec the FD to /dev/null,
55766 # effectively closing config.log, so it can be properly (re)opened and
55767 # appended to by config.status. When coming back to configure, we
55768 # need to make the FD available again.
55769 if test "$no_create" != yes; then
55771 ac_config_status_args=
55772 test "$silent" = yes &&
55773 ac_config_status_args="$ac_config_status_args --quiet"
55775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55778 # would make configure fail if this is the last instruction.
55779 $ac_cs_success || { (exit 1); exit 1; }