2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for GNU coreutils 6.0-cvs.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='GNU coreutils'
561 PACKAGE_TARNAME='coreutils'
562 PACKAGE_VERSION='6.0-cvs'
563 PACKAGE_STRING='GNU coreutils 6.0-cvs'
564 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
566 ac_unique_file="src/ls.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
605 ac_config_libobj_dir=lib
615 program_transform_name
664 INSTALL_STRIP_PROGRAM
672 DEFAULT_POSIX2_VERSION
730 BITSIZEOF_SIG_ATOMIC_T
734 HAVE_SIGNED_SIG_ATOMIC_T
763 ac_precious_vars='build_alias
766 DEFAULT_POSIX2_VERSION
776 # Initialize some variables set by options.
778 ac_init_version=false
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
788 program_transform_name=s,x,x,
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
834 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
880 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
881 { (exit 1); exit 1; }; }
882 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
883 eval enable_$ac_feature=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 -enable-* | --enable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
902 eval enable_$ac_feature=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
917 -help | --help | --hel | --he | -h)
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 # Obsolete; use --without-fp.
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 sbindir=$ac_optarg ;;
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 sharedstatedir=$ac_optarg ;;
1064 -site | --site | --sit)
1066 -site=* | --site=* | --sit=*)
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1093 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid package name: $ac_package" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_package=`echo $ac_package| sed 's/-/_/g'`
1099 eval with_$ac_package=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/-/_/g'`
1108 eval with_$ac_package=no ;;
1111 # Obsolete; use --with-x.
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1128 -*) { echo "$as_me: error: unrecognized option: $ac_option
1129 Try \`$0 --help' for more information." >&2
1130 { (exit 1); exit 1; }; }
1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1138 { (exit 1); exit 1; }; }
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1143 # FIXME: should be removed in autoconf 3.0.
1144 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 { echo "$as_me: error: missing argument to $ac_option" >&2
1156 { (exit 1); exit 1; }; }
1159 # Be sure to have absolute directory names.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
1165 eval ac_val=\$$ac_var
1167 [\\/$]* | ?:[\\/]* ) continue;;
1168 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171 { (exit 1); exit 1; }; }
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1179 target=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186 If a cross compiler is detected then cross compile mode will be used." >&2
1187 elif test "x$build_alias" != "x$host_alias"; then
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 { echo "$as_me: error: Working directory cannot be determined" >&2
1202 { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 { echo "$as_me: error: pwd does not report name of working directory" >&2
1205 { (exit 1); exit 1; }; }
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210 ac_srcdir_defaulted=yes
1211 # Try the directory containing this script, then the parent directory.
1212 ac_confdir=`$as_dirname -- "$0" ||
1213 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214 X"$0" : 'X\(//\)[^/]' \| \
1215 X"$0" : 'X\(//\)$' \| \
1216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1240 ac_srcdir_defaulted=no
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245 { (exit 1); exit 1; }; }
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1250 { (exit 1); exit 1; }; }
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 # Report the --help message.
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1276 \`configure' configures GNU coreutils 6.0-cvs to adapt to many kinds of systems.
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1283 Defaults for the options are specified in brackets.
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1307 For better control, use the options below.
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/coreutils]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of GNU coreutils 6.0-cvs:";;
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --disable-dependency-tracking speeds up one-time build
1354 --enable-dependency-tracking do not reject slow dependency extractors
1355 --disable-largefile omit support for large files
1356 --disable-assert turn off assertions
1357 --disable-rpath do not hardcode runtime library paths
1358 --disable-nls do not use Native Language Support
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --without-included-regex
1364 don't compile regex; this is the default on systems
1365 with recent-enough versions of the GNU C Library
1366 (use with caution on other systems)
1367 --with-gnu-ld assume the C compiler uses GNU ld default=no
1368 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1369 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1370 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1371 --without-libintl-prefix don't search for libintl in includedir and libdir
1373 Some influential environment variables:
1374 DEFAULT_POSIX2_VERSION
1375 POSIX version to default to; see 'config.hin'.
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
1383 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1384 `bison -y'. Values other than `bison -y' will most likely break
1386 YFLAGS YFLAGS contains the list arguments that will be passed by
1387 default to Bison. This script will default YFLAGS to the empty
1388 string to avoid a default value of `-d' given by some make
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1394 Report bugs to <bug-coreutils@gnu.org>.
1399 if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" || continue
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1422 .) # We are building in place.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1444 $SHELL "$ac_srcdir/configure" --help=recursive
1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 cd "$ac_pwd" || { ac_status=$?; break; }
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1455 GNU coreutils configure 6.0-cvs
1456 generated by GNU Autoconf 2.60
1458 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1459 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1465 cat >config.log <<_ACEOF
1466 This file contains any messages produced by compilers while
1467 running configure, to aid debugging if configure makes a mistake.
1469 It was created by GNU coreutils $as_me 6.0-cvs, which was
1470 generated by GNU Autoconf 2.60. Invocation command line was
1482 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1483 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1484 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1485 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1486 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1489 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1491 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1492 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1493 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1494 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1495 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1496 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1497 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir"
1522 # Keep a trace of the command line.
1523 # Strip out --no-create and --no-recursion so they do not pile up.
1524 # Strip out --silent because we don't want to record it for future runs.
1525 # Also quote any args containing shell meta-characters.
1526 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_must_keep_next=false
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1547 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal.
1551 *=* | --config-cache | -C | -disable-* | --disable-* \
1552 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1553 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1554 | -with-* | --with-* | -without-* | --without-* | --x)
1555 case "$ac_configure_args0 " in
1556 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1559 -* ) ac_must_keep_next=true ;;
1562 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1568 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570 # When interrupted or exit'd, cleanup temporary files, and complete
1571 # config.log. We remove comments because anyway the quotes in there
1572 # would cause problems or look ugly.
1573 # WARNING: Use '\'' to represent an apostrophe within the trap.
1574 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1575 trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging.
1581 ## ---------------- ##
1582 ## Cache variables. ##
1583 ## ---------------- ##
1586 # The following way of writing the cache mishandles newlines in values,
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1594 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1597 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;;
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1604 *${as_nl}ac_space=\ *)
1606 "s/'\''/'\''\\\\'\'''\''/g;
1607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618 ## ----------------- ##
1619 ## Output variables. ##
1620 ## ----------------- ##
1623 for ac_var in $ac_subst_vars
1625 eval ac_val=\$$ac_var
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 echo "$ac_var='\''$ac_val'\''"
1633 if test -n "$ac_subst_files"; then
1635 ## ------------------- ##
1636 ## File substitutions. ##
1637 ## ------------------- ##
1640 for ac_var in $ac_subst_files
1642 eval ac_val=\$$ac_var
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646 echo "$ac_var='\''$ac_val'\''"
1651 if test -s confdefs.h; then
1661 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status"
1665 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1669 for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1675 rm -f -r conftest* confdefs.h
1677 # Predefined preprocessor variables.
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 # Let the site file select an alternate cache file if it wants to.
1705 # Prefer explicitly selected file to automatically selected ones.
1706 if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE"
1708 elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711 set x "$ac_default_prefix/share/config.site" \
1712 "$ac_default_prefix/etc/config.site"
1717 if test -r "$ac_site_file"; then
1718 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1719 echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5
1725 if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special
1727 # files actually), so we avoid doing that.
1728 if test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1730 echo "$as_me: loading cache $cache_file" >&6;}
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";;
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1738 echo "$as_me: creating cache $cache_file" >&6;}
1742 ac_header_list="$ac_header_list hurd.h"
1743 ac_header_list="$ac_header_list paths.h"
1744 ac_header_list="$ac_header_list priv.h"
1745 ac_header_list="$ac_header_list stropts.h"
1746 ac_header_list="$ac_header_list sys/ioctl.h"
1747 ac_header_list="$ac_header_list sys/param.h"
1748 ac_header_list="$ac_header_list sys/resource.h"
1749 ac_header_list="$ac_header_list sys/statvfs.h"
1750 ac_header_list="$ac_header_list sys/systeminfo.h"
1751 ac_header_list="$ac_header_list sys/time.h"
1752 ac_header_list="$ac_header_list sys/vfs.h"
1753 ac_header_list="$ac_header_list sys/wait.h"
1754 ac_header_list="$ac_header_list syslog.h"
1755 ac_header_list="$ac_header_list termios.h"
1756 ac_header_list="$ac_header_list grp.h"
1757 ac_header_list="$ac_header_list pwd.h"
1758 ac_header_list="$ac_header_list utmp.h"
1759 ac_func_list="$ac_func_list pathconf"
1760 ac_header_list="$ac_header_list sys/socket.h"
1761 ac_header_list="$ac_header_list netinet/in.h"
1762 ac_header_list="$ac_header_list netdb.h"
1763 ac_func_list="$ac_func_list mempcpy"
1764 ac_header_list="$ac_header_list sys/fs_types.h"
1765 ac_header_list="$ac_header_list stdio_ext.h"
1766 ac_func_list="$ac_func_list __fsetlocking"
1767 ac_func_list="$ac_func_list tcgetattr"
1768 ac_func_list="$ac_func_list tcsetattr"
1769 ac_func_list="$ac_func_list alarm"
1770 ac_header_list="$ac_header_list libgen.h"
1771 ac_header_list="$ac_header_list unistd.h"
1772 ac_header_list="$ac_header_list wchar.h"
1773 ac_header_list="$ac_header_list wctype.h"
1774 ac_func_list="$ac_func_list iswprint"
1775 ac_func_list="$ac_func_list wcwidth"
1776 ac_func_list="$ac_func_list microuptime"
1777 ac_func_list="$ac_func_list nanouptime"
1778 ac_func_list="$ac_func_list gettimeofday"
1779 ac_func_list="$ac_func_list nanotime"
1780 ac_header_list="$ac_header_list stddef.h"
1781 ac_header_list="$ac_header_list stdlib.h"
1782 ac_header_list="$ac_header_list string.h"
1783 ac_func_list="$ac_func_list setlocale"
1784 ac_func_list="$ac_func_list isascii"
1785 ac_func_list="$ac_func_list mbsinit"
1786 ac_func_list="$ac_func_list lchmod"
1787 ac_header_list="$ac_header_list utmpx.h"
1788 ac_func_list="$ac_func_list utmpname"
1789 ac_func_list="$ac_func_list utmpxname"
1790 ac_header_list="$ac_header_list locale.h"
1791 ac_func_list="$ac_func_list mbrtowc"
1792 ac_func_list="$ac_func_list wcrtomb"
1793 ac_func_list="$ac_func_list wcscoll"
1794 ac_func_list="$ac_func_list fchdir"
1795 ac_func_list="$ac_func_list settimeofday"
1796 ac_func_list="$ac_func_list stime"
1797 ac_header_list="$ac_header_list stdint.h"
1798 ac_header_list="$ac_header_list utime.h"
1799 ac_func_list="$ac_func_list futimes"
1800 ac_func_list="$ac_func_list futimesat"
1801 ac_func_list="$ac_func_list mblen"
1802 ac_func_list="$ac_func_list mbrlen"
1803 ac_func_list="$ac_func_list tzset"
1804 ac_func_list="$ac_func_list siginterrupt"
1805 ac_header_list="$ac_header_list sys/select.h"
1806 ac_func_list="$ac_func_list fdopendir"
1807 ac_func_list="$ac_func_list directio"
1808 ac_func_list="$ac_func_list endgrent"
1809 ac_func_list="$ac_func_list endpwent"
1810 ac_func_list="$ac_func_list fchmod"
1811 ac_func_list="$ac_func_list fchown"
1812 ac_func_list="$ac_func_list ftruncate"
1813 ac_func_list="$ac_func_list hasmntopt"
1814 ac_func_list="$ac_func_list iswspace"
1815 ac_func_list="$ac_func_list lchown"
1816 ac_func_list="$ac_func_list listmntent"
1817 ac_func_list="$ac_func_list mkfifo"
1818 ac_func_list="$ac_func_list realpath"
1819 ac_func_list="$ac_func_list setgroups"
1820 ac_func_list="$ac_func_list sethostname"
1821 ac_func_list="$ac_func_list sync"
1822 ac_func_list="$ac_func_list sysctl"
1823 ac_func_list="$ac_func_list sysinfo"
1824 ac_func_list="$ac_func_list tcgetpgrp"
1825 ac_header_list="$ac_header_list sys/sysmacros.h"
1826 ac_func_list="$ac_func_list statvfs"
1827 # Check that the precious variables saved in the cache have kept the same
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
1833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
1835 case $ac_old_set,$ac_new_set in
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
1847 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1850 echo "$as_me: former value: $ac_old_val" >&2;}
1851 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1852 echo "$as_me: current value: $ac_new_val" >&2;}
1853 ac_cache_corrupted=:
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1859 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1860 *) ac_arg=$ac_var=$ac_new_val ;;
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868 if $ac_cache_corrupted; then
1869 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873 { (exit 1); exit 1; }; }
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 for ac_dir in build-aux "$srcdir"/build-aux; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940 ac_config_headers="$ac_config_headers config.h:config.hin"
1943 # Make sure we can run config.sub.
1944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1945 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1946 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1947 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: checking build system type" >&5
1950 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1951 if test "${ac_cv_build+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 ac_build_alias=$build_alias
1955 test "x$ac_build_alias" = x &&
1956 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1957 test "x$ac_build_alias" = x &&
1958 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1959 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1960 { (exit 1); exit 1; }; }
1961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1962 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1963 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1964 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1968 echo "${ECHO_T}$ac_cv_build" >&6; }
1969 case $ac_cv_build in
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1972 echo "$as_me: error: invalid value of canonical build" >&2;}
1973 { (exit 1); exit 1; }; };;
1976 ac_save_IFS=$IFS; IFS='-'
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1989 { echo "$as_me:$LINENO: checking host system type" >&5
1990 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1991 if test "${ac_cv_host+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test "x$host_alias" = x; then
1995 ac_cv_host=$ac_cv_build
1997 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2004 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2005 echo "${ECHO_T}$ac_cv_host" >&6; }
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2009 echo "$as_me: error: invalid value of canonical host" >&2;}
2010 { (exit 1); exit 1; }; };;
2013 ac_save_IFS=$IFS; IFS='-'
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2030 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2031 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2032 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2033 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2035 if test "$hostname"; then
2036 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2037 echo "$as_me: autobuild hostname... $hostname" >&6;}
2040 date=`date +%Y%m%d-%H%M%S`
2041 if test "$?" != 0; then
2044 if test "$date"; then
2045 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2046 echo "$as_me: autobuild timestamp... $date" >&6;}
2049 am__api_version="1.9"
2050 # Find a good install program. We prefer a C program (faster),
2051 # so one script is as good as another. But avoid the broken or
2052 # incompatible versions:
2053 # SysV /etc/install, /usr/sbin/install
2054 # SunOS /usr/etc/install
2055 # IRIX /sbin/install
2057 # AmigaOS /C/install, which installs bootblocks on floppy discs
2058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2061 # OS/2's system install, which has a completely different semantic
2062 # ./install, which can be erroneously created by make from ./install.sh.
2063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2065 if test -z "$INSTALL"; then
2066 if test "${ac_cv_path_install+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 # Account for people who put trailing slashes in PATH elements.
2076 ./ | .// | /cC/* | \
2077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2078 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2081 # OSF1 and SCO ODT 3.0 have their own names for install.
2082 # Don't use installbsd from OSF since it installs stuff as root
2084 for ac_prog in ginstall scoinst install; do
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2087 if test $ac_prog = install &&
2088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089 # AIX install. It has an incompatible calling convention.
2091 elif test $ac_prog = install &&
2092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2093 # program-specific install script used by HP pwplus--don't use.
2096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2109 if test "${ac_cv_path_install+set}" = set; then
2110 INSTALL=$ac_cv_path_install
2112 # As a last resort, use the slow shell script. Don't cache a
2113 # value for INSTALL within a source directory, because that will
2114 # break other packages using the cache if that directory is
2115 # removed, or if the value is a relative name.
2116 INSTALL=$ac_install_sh
2119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2120 echo "${ECHO_T}$INSTALL" >&6; }
2122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2123 # It thinks the first close brace ends the variable substitution.
2124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2131 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2134 echo timestamp > conftest.file
2135 # Do `set' in a subshell so we don't clobber the current shell's
2136 # arguments. Must try -L first in case configure is actually a
2137 # symlink; some systems play weird games with the mod time of symlinks
2138 # (eg FreeBSD returns the mod time of the symlink's containing
2141 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2142 if test "$*" = "X"; then
2144 set X `ls -t $srcdir/configure conftest.file`
2147 if test "$*" != "X $srcdir/configure conftest.file" \
2148 && test "$*" != "X conftest.file $srcdir/configure"; then
2150 # If neither matched, then we have a broken ls. This can happen
2151 # if, for instance, CONFIG_SHELL is bash and it inherits a
2152 # broken ls alias from the environment. This has actually
2153 # happened. Such a system could not be considered "sane".
2154 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2155 alias in your environment" >&5
2156 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2157 alias in your environment" >&2;}
2158 { (exit 1); exit 1; }; }
2161 test "$2" = conftest.file
2167 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2168 Check your system clock" >&5
2169 echo "$as_me: error: newly created file is older than distributed files!
2170 Check your system clock" >&2;}
2171 { (exit 1); exit 1; }; }
2173 { echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6; }
2175 test "$program_prefix" != NONE &&
2176 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2177 # Use a double $ so make ignores it.
2178 test "$program_suffix" != NONE &&
2179 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2180 # Double any \ or $. echo might interpret backslashes.
2181 # By default was `s,x,x', remove it if useless.
2182 cat <<\_ACEOF >conftest.sed
2183 s/[\\$]/&&/g;s/;s,x,x,$//
2185 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2188 # expand $ac_aux_dir to an absolute path
2189 am_aux_dir=`cd $ac_aux_dir && pwd`
2191 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2192 # Use eval to expand $SHELL
2193 if eval "$MISSING --run true"; then
2194 am_missing_run="$MISSING --run "
2197 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2198 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2201 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2202 # We used to keeping the `.' as first argument, in order to
2203 # allow $(mkdir_p) to be used without argument. As in
2204 # $(mkdir_p) $(somedir)
2205 # where $(somedir) is conditionally defined. However this is wrong
2207 # 1. if the package is installed by a user who cannot write `.'
2208 # make install will fail,
2209 # 2. the above comment should most certainly read
2210 # $(mkdir_p) $(DESTDIR)$(somedir)
2211 # so it does not work when $(somedir) is undefined and
2212 # $(DESTDIR) is not.
2213 # To support the latter case, we have to write
2214 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2215 # so the `.' trick is pointless.
2216 mkdir_p='mkdir -p --'
2218 # On NextStep and OpenStep, the `mkdir' command does not
2219 # recognize any option. It will interpret all options as
2220 # directories to create, and then abort because `.' already
2222 for d in ./-p ./--version;
2224 test -d $d && rmdir $d
2226 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2227 if test -f "$ac_aux_dir/mkinstalldirs"; then
2228 mkdir_p='$(mkinstalldirs)'
2230 mkdir_p='$(install_sh) -d'
2234 for ac_prog in gawk mawk nawk awk
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_AWK+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$AWK"; then
2244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_AWK="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test -n "$AWK"; then
2265 { echo "$as_me:$LINENO: result: $AWK" >&5
2266 echo "${ECHO_T}$AWK" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$AWK" && break
2276 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2277 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2278 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2279 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.make <<\_ACEOF
2285 @echo '@@@%%%=$(MAKE)=@@@%%%'
2287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2290 eval ac_cv_prog_make_${ac_make}_set=yes;;
2292 eval ac_cv_prog_make_${ac_make}_set=no;;
2296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2297 { echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6; }
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2303 SET_MAKE="MAKE=${MAKE-make}"
2306 rm -rf .tst 2>/dev/null
2307 mkdir .tst 2>/dev/null
2308 if test -d .tst; then
2313 rmdir .tst 2>/dev/null
2315 # test to see if srcdir already configured
2316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2317 test -f $srcdir/config.status; then
2318 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2320 { (exit 1); exit 1; }; }
2323 # test whether we have cygpath
2324 if test -z "$CYGPATH_W"; then
2325 if (cygpath --version) >/dev/null 2>/dev/null; then
2326 CYGPATH_W='cygpath -w'
2333 # Define the identity of the package.
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE "$PACKAGE"
2343 cat >>confdefs.h <<_ACEOF
2344 #define VERSION "$VERSION"
2347 # Some tools Automake needs.
2349 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2352 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2355 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2358 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2361 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2363 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2365 # Installed binaries are usually stripped using `strip' when the user
2366 # run `make install-strip'. However `strip' might not be the right
2367 # tool to use in cross-compilation environments, therefore Automake
2368 # will honor the `STRIP' environment variable to overrule this program.
2369 if test "$cross_compiling" != no; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}strip; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$STRIP"; then
2379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 STRIP=$ac_cv_prog_STRIP
2399 if test -n "$STRIP"; then
2400 { echo "$as_me:$LINENO: result: $STRIP" >&5
2401 echo "${ECHO_T}$STRIP" >&6; }
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2409 if test -z "$ac_cv_prog_STRIP"; then
2411 # Extract the first word of "strip", so it can be a program name with args.
2412 set dummy strip; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$ac_ct_STRIP"; then
2419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_STRIP="strip"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439 if test -n "$ac_ct_STRIP"; then
2440 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2441 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2443 { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2447 if test "x$ac_ct_STRIP" = x; then
2450 case $cross_compiling:$ac_tool_warned in
2452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2453 whose name does not start with the host triplet. If you think this
2454 configuration is useful to you, please write to autoconf@gnu.org." >&5
2455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2456 whose name does not start with the host triplet. If you think this
2457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2458 ac_tool_warned=yes ;;
2463 STRIP="$ac_cv_prog_STRIP"
2467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2469 # We need awk for the "check" target. The system "awk" is bad on
2471 # Always define AMTAR for backward compatibility.
2473 AMTAR=${AMTAR-"${am_missing_run}tar"}
2475 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2483 { echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
2484 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6; }
2485 gl_default_posix2_version=none-specified
2486 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
2487 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
2489 cat >>confdefs.h <<_ACEOF
2490 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
2494 { echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
2495 echo "${ECHO_T}$gl_default_posix2_version" >&6; }
2499 cat >>confdefs.h <<\_ACEOF
2500 #define _GNU_SOURCE 1
2504 DEPDIR="${am__leading_dot}deps"
2506 ac_config_commands="$ac_config_commands depfiles"
2509 am_make=${MAKE-make}
2510 cat > confinc << 'END'
2515 # If we don't find an include directive, just comment out the code.
2516 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2517 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2521 # First try GNU make style include.
2522 echo "include confinc" > confmf
2523 # We grep out `Entering directory' and `Leaving directory'
2524 # messages which can occur if `w' ends up in MAKEFLAGS.
2525 # In particular we don't look at `^make:' because GNU make might
2526 # be invoked under some other name (usually "gmake"), in which
2527 # case it prints its new name instead of `make'.
2528 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2533 # Now try BSD make style include.
2534 if test "$am__include" = "#"; then
2535 echo '.include "confinc"' > confmf
2536 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2537 am__include=.include
2544 { echo "$as_me:$LINENO: result: $_am_result" >&5
2545 echo "${ECHO_T}$_am_result" >&6; }
2546 rm -f confinc confmf
2548 # Check whether --enable-dependency-tracking was given.
2549 if test "${enable_dependency_tracking+set}" = set; then
2550 enableval=$enable_dependency_tracking;
2553 if test "x$enable_dependency_tracking" != xno; then
2554 am_depcomp="$ac_aux_dir/depcomp"
2559 if test "x$enable_dependency_tracking" != xno; then
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test -n "$CC"; then
2604 { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2613 if test -z "$ac_cv_prog_CC"; then
2615 # Extract the first word of "gcc", so it can be a program name with args.
2616 set dummy gcc; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 if test -n "$ac_ct_CC"; then
2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_ac_ct_CC="gcc"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6; }
2647 { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2651 if test "x$ac_ct_CC" = x; then
2654 case $cross_compiling:$ac_tool_warned in
2656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2657 whose name does not start with the host triplet. If you think this
2658 configuration is useful to you, please write to autoconf@gnu.org." >&5
2659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet. If you think this
2661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2662 ac_tool_warned=yes ;;
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}cc"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { echo "$as_me:$LINENO: result: $CC" >&5
2702 echo "${ECHO_T}$CC" >&6; }
2704 { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2711 if test -z "$CC"; then
2712 # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731 ac_prog_rejected=yes
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test $ac_prog_rejected = yes; then
2743 # We found a bogon in the path, so make sure we never use it.
2744 set dummy $ac_cv_prog_CC
2746 if test $# != 0; then
2747 # We chose a different compiler from the bogus one.
2748 # However, it has the same basename, so the bogon will be chosen
2749 # first if we set CC to just the basename; use the full file name.
2751 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2757 if test -n "$CC"; then
2758 { echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6; }
2761 { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2767 if test -z "$CC"; then
2768 if test -n "$ac_tool_prefix"; then
2769 for ac_prog in cl.exe
2771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test -n "$CC"; then
2800 { echo "$as_me:$LINENO: result: $CC" >&5
2801 echo "${ECHO_T}$CC" >&6; }
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2808 test -n "$CC" && break
2811 if test -z "$CC"; then
2813 for ac_prog in cl.exe
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_ac_ct_CC="$ac_prog"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 echo "${ECHO_T}$ac_ct_CC" >&6; }
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2852 test -n "$ac_ct_CC" && break
2855 if test "x$ac_ct_CC" = x; then
2858 case $cross_compiling:$ac_tool_warned in
2860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet. If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&5
2863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet. If you think this
2865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2866 ac_tool_warned=yes ;;
2875 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: no acceptable C compiler found in \$PATH
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2935 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2939 # List of possible output files, starting from the most likely.
2940 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2941 # only as a last resort. b.out is created by i960 compilers.
2942 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2944 # The IRIX 6 linker writes into existing files which may not be
2945 # executable, retaining their permissions. Remove them first so a
2946 # subsequent execution test works.
2948 for ac_file in $ac_files
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2957 if { (ac_try="$ac_link_default"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_link_default") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2969 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2970 # so that the user can short-circuit this test for compilers unknown to
2972 for ac_file in $ac_files
2974 test -f "$ac_file" || continue
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2979 # We found the default executable, but exeext='' is most
2983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987 # We set ac_cv_exeext here because the later test for it is not
2988 # safe: cross compilers may not add the suffix if given an `-o'
2989 # argument, so we may need to know it at that point already.
2990 # Even if this section looks crufty: it has the advantage of
2997 test "$ac_cv_exeext" = no && ac_cv_exeext=
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&2;}
3007 { (exit 77); exit 77; }; }
3010 ac_exeext=$ac_cv_exeext
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3019 # If not cross compiling, check that we can run a simple program.
3020 if test "$cross_compiling" != yes; then
3021 if { ac_try='./$ac_file'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 if test "$cross_compiling" = maybe; then
3036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3046 { echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6; }
3049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3055 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6; }
3058 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3060 if { (ac_try="$ac_link"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_link") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest$ac_cv_exeext
3092 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3095 rm -f conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3098 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3100 if test "${ac_cv_objext+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -f conftest.o conftest.obj
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; then
3129 for ac_file in conftest.o conftest.obj conftest.*; do
3130 test -f "$ac_file" || continue;
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3133 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 echo "${ECHO_T}$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3154 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3223 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3225 GCC=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_g+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3261 grep -v '^ *+' conftest.er1 >conftest.err
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267 { (case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_try") 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_try") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3378 { (case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_try") 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest.$ac_objext'
3388 { (case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_try") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417 CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419 if test "$GCC" = yes; then
3425 if test "$GCC" = yes; then
3431 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3432 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_cc_c89+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 ac_cv_prog_cc_c89=no
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3446 #include <sys/types.h>
3447 #include <sys/stat.h>
3448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3449 struct buf { int x; };
3450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3451 static char *e (p, i)
3457 static char *f (char * (*g) (char **, int), char **p, ...)
3462 s = g (p, va_arg (v,int));
3467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3468 function prototypes and stuff, but not '\xHH' hex character constants.
3469 These don't provoke an error unfortunately, instead are silently treated
3470 as 'x'. The following induces an error, until -std is added to get
3471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3472 array size at least. It's necessary to write '\x00'==0 to get something
3473 that's true only with -std. */
3474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3477 inside strings and character constants. */
3479 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3481 int test (int i, double x);
3482 struct s1 {int (*f) (int a);};
3483 struct s2 {int (*f) (double a);};
3484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3496 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 CC="$ac_save_CC $ac_arg"
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3514 { (case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_try") 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_try") 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_prog_cc_c89=$ac_arg
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3544 rm -f conftest.$ac_ext
3549 case "x$ac_cv_prog_cc_c89" in
3551 { echo "$as_me:$LINENO: result: none needed" >&5
3552 echo "${ECHO_T}none needed" >&6; } ;;
3554 { echo "$as_me:$LINENO: result: unsupported" >&5
3555 echo "${ECHO_T}unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 depcc="$CC" am_compiler_list=
3571 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3573 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577 # We make a subdir and do the tests there. Otherwise we can end up
3578 # making bogus files that we don't know about and never remove. For
3579 # instance it was reported that on HP-UX the gcc test will end up
3580 # making a dummy file named `D' -- because `-MD' means `put the output
3583 # Copy depcomp to subdir because otherwise we won't find it if we're
3584 # using a relative directory.
3585 cp "$am_depcomp" conftest.dir
3587 # We will build objects and dependencies in a subdirectory because
3588 # it helps to detect inapplicable dependency modes. For instance
3589 # both Tru64's cc and ICC support -MD to output dependencies as a
3590 # side effect of compilation, but ICC will put the dependencies in
3591 # the current directory while Tru64 will put them in the object
3595 am_cv_CC_dependencies_compiler_type=none
3596 if test "$am_compiler_list" = ""; then
3597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3599 for depmode in $am_compiler_list; do
3600 # Setup a source with many dependencies, because some compilers
3601 # like to wrap large dependency lists on column 80 (with \), and
3602 # we should not choose a depcomp mode which is confused by this.
3604 # We need to recreate these files for each test, as the compiler may
3605 # overwrite some of them when testing with obscure command lines.
3606 # This happens at least with the AIX C compiler.
3608 for i in 1 2 3 4 5 6; do
3609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3611 # Solaris 8's {/usr,}/bin/sh.
3612 touch sub/conftst$i.h
3614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618 # after this tag, mechanisms are not by side-effect, so they'll
3619 # only be used when explicitly requested
3620 if test "x$enable_dependency_tracking" = xyes; then
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this.
3631 if depmode=$depmode \
3632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3635 >/dev/null 2>conftest.err &&
3636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3637 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3639 # icc doesn't choke on unknown options, it will just issue warnings
3640 # or remarks (even with -Werror). So we grep stderr for any message
3641 # that says an option was ignored or not supported.
3642 # When given -MP, icc 7.0 and 7.1 complain thusly:
3643 # icc: Command line warning: ignoring option '-M'; no argument required
3644 # The diagnosis changed in icc 8.0:
3645 # icc: Command line remark: option '-MP' not supported
3646 if (grep 'ignoring option' conftest.err ||
3647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3648 am_cv_CC_dependencies_compiler_type=$depmode
3657 am_cv_CC_dependencies_compiler_type=none
3661 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3662 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3663 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3668 test "x$enable_dependency_tracking" != xno \
3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3671 am__fastdepCC_FALSE='#'
3673 am__fastdepCC_TRUE='#'
3674 am__fastdepCC_FALSE=
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3686 # On Suns, sometimes $CPP names a directory.
3687 if test -n "$CPP" && test -d "$CPP"; then
3690 if test -z "$CPP"; then
3691 if test "${ac_cv_prog_CPP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 # Double quotes because CPP needs to be expanded
3695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3698 for ac_c_preproc_warn_flag in '' yes
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3713 # include <limits.h>
3715 # include <assert.h>
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3741 if test -z "$ac_cpp_err"; then
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 # Broken: fails on valid input.
3751 rm -f conftest.err conftest.$ac_ext
3753 # OK, works on sane cases. Now check whether nonexistent headers
3754 # can be detected and how.
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 #include <ac_nonexistent.h>
3763 if { (ac_try="$ac_cpp conftest.$ac_ext"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } >/dev/null; then
3776 if test -s conftest.err; then
3777 ac_cpp_err=$ac_c_preproc_warn_flag
3778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3785 if test -z "$ac_cpp_err"; then
3786 # Broken: success on invalid input.
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 # Passes both tests.
3797 rm -f conftest.err conftest.$ac_ext
3800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3801 rm -f conftest.err conftest.$ac_ext
3802 if $ac_preproc_ok; then
3814 { echo "$as_me:$LINENO: result: $CPP" >&5
3815 echo "${ECHO_T}$CPP" >&6; }
3817 for ac_c_preproc_warn_flag in '' yes
3819 # Use a header file that comes with gcc, so configuring glibc
3820 # with a fresh cross-compiler works.
3821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822 # <limits.h> exists even on freestanding compilers.
3823 # On the NeXT, cc -E runs the code through the compiler's parser,
3824 # not just through cpp. "Syntax error" is here to catch this case.
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 # include <limits.h>
3834 # include <assert.h>
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } >/dev/null; then
3851 if test -s conftest.err; then
3852 ac_cpp_err=$ac_c_preproc_warn_flag
3853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860 if test -z "$ac_cpp_err"; then
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 # Broken: fails on valid input.
3870 rm -f conftest.err conftest.$ac_ext
3872 # OK, works on sane cases. Now check whether nonexistent headers
3873 # can be detected and how.
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 #include <ac_nonexistent.h>
3882 if { (ac_try="$ac_cpp conftest.$ac_ext"
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3890 grep -v '^ *+' conftest.er1 >conftest.err
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } >/dev/null; then
3895 if test -s conftest.err; then
3896 ac_cpp_err=$ac_c_preproc_warn_flag
3897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3904 if test -z "$ac_cpp_err"; then
3905 # Broken: success on invalid input.
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Passes both tests.
3916 rm -f conftest.err conftest.$ac_ext
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3925 See \`config.log' for more details." >&5
3926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&2;}
3928 { (exit 1); exit 1; }; }
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 $ac_path_GREP_found && break 3
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4007 ac_cv_path_GREP=$GREP
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4071 $ac_path_EGREP_found && break 3
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4089 ac_cv_path_EGREP=$EGREP
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4101 { echo "$as_me:$LINENO: checking for AIX" >&5
4102 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "yes" >/dev/null 2>&1; then
4116 { echo "$as_me:$LINENO: result: yes" >&5
4117 echo "${ECHO_T}yes" >&6; }
4118 cat >>confdefs.h <<\_ACEOF
4119 #define _ALL_SOURCE 1
4123 { echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6; }
4129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4131 if test "${ac_cv_header_stdc+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_header_stdc=yes
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ac_cv_header_stdc=no
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "memchr" >/dev/null 2>&1; then
4212 ac_cv_header_stdc=no
4218 if test $ac_cv_header_stdc = yes; then
4219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 $EGREP "free" >/dev/null 2>&1; then
4233 ac_cv_header_stdc=no
4239 if test $ac_cv_header_stdc = yes; then
4240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4241 if test "$cross_compiling" = yes; then
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 #if ((' ' & 0x0FF) == 0x020)
4253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4256 # define ISLOWER(c) \
4257 (('a' <= (c) && (c) <= 'i') \
4258 || ('j' <= (c) && (c) <= 'r') \
4259 || ('s' <= (c) && (c) <= 'z'))
4260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268 for (i = 0; i < 256; i++)
4269 if (XOR (islower (i), ISLOWER (i))
4270 || toupper (i) != TOUPPER (i))
4275 rm -f conftest$ac_exeext
4276 if { (ac_try="$ac_link"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_link") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_header_stdc=no
4304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4312 if test $ac_cv_header_stdc = yes; then
4314 cat >>confdefs.h <<\_ACEOF
4315 #define STDC_HEADERS 1
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331 inttypes.h stdint.h unistd.h
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4347 #include <$ac_header>
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 eval "$as_ac_Header=yes"
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 eval "$as_ac_Header=no"
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4415 # Is the header compilable?
4416 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4417 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4425 #include <minix/config.h>
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_header_compiler=yes
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_header_compiler=no
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6; }
4473 # Is the header present?
4474 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4475 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <minix/config.h>
4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506 if test -z "$ac_cpp_err"; then
4507 ac_header_preproc=yes
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_header_preproc=no
4515 rm -f conftest.err conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6; }
4519 # So? What about this header?
4520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4522 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4525 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4526 ac_header_preproc=yes
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4534 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4536 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4540 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4542 ## ------------------------------------ ##
4543 ## Report this to bug-coreutils@gnu.org ##
4544 ## ------------------------------------ ##
4546 ) | sed "s/^/$as_me: WARNING: /" >&2
4549 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4550 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4551 if test "${ac_cv_header_minix_config_h+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_header_minix_config_h=$ac_header_preproc
4556 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4557 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4560 if test $ac_cv_header_minix_config_h = yes; then
4567 if test "$MINIX" = yes; then
4569 cat >>confdefs.h <<\_ACEOF
4570 #define _POSIX_SOURCE 1
4574 cat >>confdefs.h <<\_ACEOF
4575 #define _POSIX_1_SOURCE 2
4579 cat >>confdefs.h <<\_ACEOF
4595 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4596 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4597 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4607 #define __EXTENSIONS__ 1
4608 $ac_includes_default
4617 rm -f conftest.$ac_objext
4618 if { (ac_try="$ac_compile"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_compile") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_safe_to_define___extensions__=yes
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 ac_cv_safe_to_define___extensions__=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4662 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4663 test $ac_cv_safe_to_define___extensions__ = yes &&
4664 cat >>confdefs.h <<\_ACEOF
4665 #define __EXTENSIONS__ 1
4668 cat >>confdefs.h <<\_ACEOF
4669 #define _POSIX_PTHREAD_SEMANTICS 1
4674 { echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
4675 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6; }
4676 if test "${PERL+set}" = set; then
4677 # `PERL' is set in the user's environment.
4678 candidate_perl_names="$PERL"
4681 candidate_perl_names='perl perl5'
4687 PERL="$am_missing_run perl"
4688 for perl in $candidate_perl_names; do
4689 # Run test in a subshell; some versions of sh will print an error if
4690 # an executable is not found, even if stderr is redirected.
4691 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
4698 { echo "$as_me:$LINENO: result: $found" >&5
4699 echo "${ECHO_T}$found" >&6; }
4700 test $found = no && { echo "$as_me:$LINENO: WARNING:
4701 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4702 a usable version of the Perl File::Compare module. As a result,
4703 you may be unable to run a few tests or to regenerate certain
4704 files if you modify the sources from which they are derived.
4706 echo "$as_me: WARNING:
4707 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4708 a usable version of the Perl File::Compare module. As a result,
4709 you may be unable to run a few tests or to regenerate certain
4710 files if you modify the sources from which they are derived.
4713 case $ac_cv_prog_cc_stdc in
4714 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4715 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4716 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_cc_c99+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 ac_cv_prog_cc_c99=no
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 #include <stdbool.h>
4734 struct incomplete_array
4742 const wchar_t *name;
4746 typedef const char *ccp;
4749 test_restrict(ccp restrict text)
4751 // See if C++-style comments work.
4752 // Iterate through items via the restricted pointer.
4753 // Also check for declarations in for loops.
4754 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4759 // Check varargs and va_copy work.
4761 test_varargs(const char *format, ...)
4764 va_start(args, format);
4766 va_copy(args_copy, args);
4777 str = va_arg(args_copy, const char *);
4780 number = va_arg(args_copy, int);
4783 fnumber = (float) va_arg(args_copy, double);
4797 // Check bool and long long datatypes.
4798 _Bool success = false;
4799 long long int bignum = -1234567890LL;
4800 unsigned long long int ubignum = 1234567890uLL;
4803 if (test_restrict("String literal") != 0)
4805 char *restrict newvar = "Another string";
4808 test_varargs("s, d' f .", "string", 65, 34.234);
4810 // Check incomplete arrays work.
4811 struct incomplete_array *ia =
4812 malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
4814 for (int i = 0; i < ia->datasize; ++i)
4815 ia->data[i] = (double) i * 1.234;
4817 // Check named initialisers.
4818 struct named_init ni = {
4820 .name = L"Test wide string",
4821 .average = 543.34343,
4826 int dynamic_array[ni.number];
4827 dynamic_array[43] = 543;
4829 // work around unused variable warnings
4830 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
4836 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4838 CC="$ac_save_CC $ac_arg"
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4854 { (case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_try") 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_try") 2>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 ac_cv_prog_cc_c99=$ac_arg
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f core conftest.err conftest.$ac_objext
4882 test "x$ac_cv_prog_cc_c99" != "xno" && break
4884 rm -f conftest.$ac_ext
4889 case "x$ac_cv_prog_cc_c99" in
4891 { echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6; } ;;
4894 { echo "$as_me:$LINENO: result: unsupported" >&5
4895 echo "${ECHO_T}unsupported" >&6; } ;;
4897 CC="$CC $ac_cv_prog_cc_c99"
4898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4899 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4901 if test "x$ac_cv_prog_cc_c99" != xno; then
4902 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4904 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4905 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_cc_c89+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_prog_cc_c89=no
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 #include <sys/stat.h>
4921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4922 struct buf { int x; };
4923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4924 static char *e (p, i)
4930 static char *f (char * (*g) (char **, int), char **p, ...)
4935 s = g (p, va_arg (v,int));
4940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4941 function prototypes and stuff, but not '\xHH' hex character constants.
4942 These don't provoke an error unfortunately, instead are silently treated
4943 as 'x'. The following induces an error, until -std is added to get
4944 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4945 array size at least. It's necessary to write '\x00'==0 to get something
4946 that's true only with -std. */
4947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4950 inside strings and character constants. */
4952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4954 int test (int i, double x);
4955 struct s1 {int (*f) (int a);};
4956 struct s2 {int (*f) (double a);};
4957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4969 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4971 CC="$ac_save_CC $ac_arg"
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4987 { (case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_try") 2>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_try") 2>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_cv_prog_cc_c89=$ac_arg
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5014 rm -f core conftest.err conftest.$ac_objext
5015 test "x$ac_cv_prog_cc_c89" != "xno" && break
5017 rm -f conftest.$ac_ext
5022 case "x$ac_cv_prog_cc_c89" in
5024 { echo "$as_me:$LINENO: result: none needed" >&5
5025 echo "${ECHO_T}none needed" >&6; } ;;
5027 { echo "$as_me:$LINENO: result: unsupported" >&5
5028 echo "${ECHO_T}unsupported" >&6; } ;;
5030 CC="$CC $ac_cv_prog_cc_c89"
5031 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5032 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5034 if test "x$ac_cv_prog_cc_c89" != xno; then
5035 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5037 ac_cv_prog_cc_stdc=no
5045 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5046 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 case $ac_cv_prog_cc_stdc in
5052 no) { echo "$as_me:$LINENO: result: unsupported" >&5
5053 echo "${ECHO_T}unsupported" >&6; } ;;
5054 '') { echo "$as_me:$LINENO: result: none needed" >&5
5055 echo "${ECHO_T}none needed" >&6; } ;;
5056 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
5061 if test "x$CC" != xcc; then
5062 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5063 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5065 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5066 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5068 set dummy $CC; ac_cc=`echo $2 |
5069 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5070 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5088 # Make sure it works both with $CC and with simple cc.
5089 # We do the test twice because some compilers refuse to overwrite an
5090 # existing .o file with -o, though they will create one.
5091 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5093 if { (case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_try") 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_try") 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); };
5112 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5113 if test "x$CC" != xcc; then
5114 # Test first that cc exists at all.
5115 if { ac_try='cc -c conftest.$ac_ext >&5'
5116 { (case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_try") 2>&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5127 if { (case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_try") 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_try") 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); };
5149 # cc exists but doesn't like -o.
5150 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5155 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5157 rm -f core conftest*
5160 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5161 { echo "$as_me:$LINENO: result: yes" >&5
5162 echo "${ECHO_T}yes" >&6; }
5164 { echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6; }
5167 cat >>confdefs.h <<\_ACEOF
5168 #define NO_MINUS_C_MINUS_O 1
5173 # FIXME: we rely on the cache variable name because
5174 # there is no other way.
5176 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5177 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5178 # Losing compiler, so override with the script.
5179 # FIXME: It is wrong to rewrite CC.
5180 # But if we don't then we get into trouble of one sort or another.
5181 # A longer-term fix would be to have automake use am__CC in this case,
5182 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5183 CC="$am_aux_dir/compile $CC"
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5193 # On Suns, sometimes $CPP names a directory.
5194 if test -n "$CPP" && test -d "$CPP"; then
5197 if test -z "$CPP"; then
5198 if test "${ac_cv_prog_CPP+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 # Double quotes because CPP needs to be expanded
5202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5205 for ac_c_preproc_warn_flag in '' yes
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error" is here to catch this case.
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5220 # include <limits.h>
5222 # include <assert.h>
5226 if { (ac_try="$ac_cpp conftest.$ac_ext"
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev/null; then
5239 if test -s conftest.err; then
5240 ac_cpp_err=$ac_c_preproc_warn_flag
5241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5248 if test -z "$ac_cpp_err"; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 # Broken: fails on valid input.
5258 rm -f conftest.err conftest.$ac_ext
5260 # OK, works on sane cases. Now check whether nonexistent headers
5261 # can be detected and how.
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #include <ac_nonexistent.h>
5270 if { (ac_try="$ac_cpp conftest.$ac_ext"
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } >/dev/null; then
5283 if test -s conftest.err; then
5284 ac_cpp_err=$ac_c_preproc_warn_flag
5285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5292 if test -z "$ac_cpp_err"; then
5293 # Broken: success on invalid input.
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 # Passes both tests.
5304 rm -f conftest.err conftest.$ac_ext
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.err conftest.$ac_ext
5309 if $ac_preproc_ok; then
5321 { echo "$as_me:$LINENO: result: $CPP" >&5
5322 echo "${ECHO_T}$CPP" >&6; }
5324 for ac_c_preproc_warn_flag in '' yes
5326 # Use a header file that comes with gcc, so configuring glibc
5327 # with a fresh cross-compiler works.
5328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329 # <limits.h> exists even on freestanding compilers.
5330 # On the NeXT, cc -E runs the code through the compiler's parser,
5331 # not just through cpp. "Syntax error" is here to catch this case.
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5339 # include <limits.h>
5341 # include <assert.h>
5345 if { (ac_try="$ac_cpp conftest.$ac_ext"
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_c_preproc_warn_flag
5360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5367 if test -z "$ac_cpp_err"; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 # Broken: fails on valid input.
5377 rm -f conftest.err conftest.$ac_ext
5379 # OK, works on sane cases. Now check whether nonexistent headers
5380 # can be detected and how.
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5389 if { (ac_try="$ac_cpp conftest.$ac_ext"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 if test -z "$ac_cpp_err"; then
5412 # Broken: success on invalid input.
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 # Passes both tests.
5423 rm -f conftest.err conftest.$ac_ext
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then
5431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." >&5
5433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." >&2;}
5435 { (exit 1); exit 1; }; }
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444 if test $ac_cv_c_compiler_gnu = yes; then
5445 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5446 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5447 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_pattern="Autoconf.*'x'"
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5462 ac_cv_prog_gcc_traditional=yes
5464 ac_cv_prog_gcc_traditional=no
5469 if test $ac_cv_prog_gcc_traditional = no; then
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5481 ac_cv_prog_gcc_traditional=yes
5487 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5488 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5489 if test $ac_cv_prog_gcc_traditional = yes; then
5490 CC="$CC -traditional"
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_RANLIB+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test -n "$RANLIB"; then
5503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 RANLIB=$ac_cv_prog_RANLIB
5523 if test -n "$RANLIB"; then
5524 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5525 echo "${ECHO_T}$RANLIB" >&6; }
5527 { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5533 if test -z "$ac_cv_prog_RANLIB"; then
5534 ac_ct_RANLIB=$RANLIB
5535 # Extract the first word of "ranlib", so it can be a program name with args.
5536 set dummy ranlib; ac_word=$2
5537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 if test -n "$ac_ct_RANLIB"; then
5543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_RANLIB="ranlib"
5553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5563 if test -n "$ac_ct_RANLIB"; then
5564 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5565 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5567 { echo "$as_me:$LINENO: result: no" >&5
5568 echo "${ECHO_T}no" >&6; }
5571 if test "x$ac_ct_RANLIB" = x; then
5574 case $cross_compiling:$ac_tool_warned in
5576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5577 whose name does not start with the host triplet. If you think this
5578 configuration is useful to you, please write to autoconf@gnu.org." >&5
5579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5580 whose name does not start with the host triplet. If you think this
5581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5582 ac_tool_warned=yes ;;
5584 RANLIB=$ac_ct_RANLIB
5587 RANLIB="$ac_cv_prog_RANLIB"
5590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5593 if test "$LN_S" = "ln -s"; then
5594 { echo "$as_me:$LINENO: result: yes" >&5
5595 echo "${ECHO_T}yes" >&6; }
5597 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5598 echo "${ECHO_T}no, using $LN_S" >&6; }
5602 { echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
5603 echo $ECHO_N "checking for flag to ignore unused libraries... $ECHO_C" >&6; }
5604 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 gl_cv_ignore_unused_libraries=none
5608 gl_saved_ldflags=$LDFLAGS
5610 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
5611 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
5613 # Use long option sequences like '-z ignore' to test for the feature,
5614 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
5615 # GCC + binutils likes '-Wl,--as-needed'.
5616 # GCC + Solaris ld likes '-Wl,-z,ignore'.
5617 # Sun C likes '-z ignore'.
5618 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
5619 # native cc issues annoying warnings and then ignores it,
5620 # which would cause us to incorrectly conclude that it worked.
5626 LDFLAGS="$gl_flags $LDFLAGS"
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (ac_try="$ac_link"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_link") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5657 { (case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_try") 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest$ac_exeext'
5667 { (case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_try") 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 gl_cv_ignore_unused_libraries=$gl_flags
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f core conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 LDFLAGS=$gl_saved_ldflags
5687 test "$gl_cv_ignore_unused_libraries" != none && break
5691 { echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
5692 echo "${ECHO_T}$gl_cv_ignore_unused_libraries" >&6; }
5694 test "$gl_cv_ignore_unused_libraries" != none &&
5695 LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
5700 for ac_func in uname
5702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5716 #define $ac_func innocuous_$ac_func
5718 /* System header to define __stub macros and hopefully few prototypes,
5719 which can conflict with char $ac_func (); below.
5720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5721 <limits.h> exists even on freestanding compilers. */
5724 # include <limits.h>
5726 # include <assert.h>
5731 /* Override any GCC internal prototype to avoid an error.
5732 Use char because int might match the return type of a GCC
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined __stub_$ac_func || defined __stub___$ac_func
5753 rm -f conftest.$ac_objext conftest$ac_exeext
5754 if { (ac_try="$ac_link"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_link") 2>conftest.er1
5762 grep -v '^ *+' conftest.er1 >conftest.err
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_try") 2>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest$ac_exeext'
5778 { (case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_try") 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 eval "$as_ac_var=yes"
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 eval "$as_ac_var=no"
5795 rm -f core conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_var'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_var'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5805 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5811 for ac_func in chroot
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5827 #define $ac_func innocuous_$ac_func
5829 /* System header to define __stub macros and hopefully few prototypes,
5830 which can conflict with char $ac_func (); below.
5831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 <limits.h> exists even on freestanding compilers. */
5835 # include <limits.h>
5837 # include <assert.h>
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5849 /* The GNU C library defines this for functions which it implements
5850 to always fail with ENOSYS. Some functions are actually named
5851 something starting with __ and the normal name is an alias. */
5852 #if defined __stub_$ac_func || defined __stub___$ac_func
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_link") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest$ac_exeext'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 eval "$as_ac_var=yes"
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 eval "$as_ac_var=no"
5906 rm -f core conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5909 ac_res=`eval echo '${'$as_ac_var'}'`
5910 { echo "$as_me:$LINENO: result: $ac_res" >&5
5911 echo "${ECHO_T}$ac_res" >&6; }
5912 if test `eval echo '${'$as_ac_var'}'` = yes; then
5913 cat >>confdefs.h <<_ACEOF
5914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5916 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5922 for ac_func in gethostid
5924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5938 #define $ac_func innocuous_$ac_func
5940 /* System header to define __stub macros and hopefully few prototypes,
5941 which can conflict with char $ac_func (); below.
5942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943 <limits.h> exists even on freestanding compilers. */
5946 # include <limits.h>
5948 # include <assert.h>
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5960 /* The GNU C library defines this for functions which it implements
5961 to always fail with ENOSYS. Some functions are actually named
5962 something starting with __ and the normal name is an alias. */
5963 #if defined __stub_$ac_func || defined __stub___$ac_func
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_var=yes"
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 eval "$as_ac_var=no"
6017 rm -f core conftest.err conftest.$ac_objext \
6018 conftest$ac_exeext conftest.$ac_ext
6020 ac_res=`eval echo '${'$as_ac_var'}'`
6021 { echo "$as_me:$LINENO: result: $ac_res" >&5
6022 echo "${ECHO_T}$ac_res" >&6; }
6023 if test `eval echo '${'$as_ac_var'}'` = yes; then
6024 cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6027 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
6034 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6035 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
6036 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-lcposix $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6048 /* Override any GCC internal prototype to avoid an error.
6049 Use char because int might match the return type of a GCC
6050 builtin and then its argument prototype would still apply. */
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (ac_try="$ac_link"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_link") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_cposix_strerror=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_lib_cposix_strerror=no
6105 rm -f core conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6109 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6110 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
6111 if test $ac_cv_lib_cposix_strerror = yes; then
6112 LIBS="$LIBS -lcposix"
6117 # Check whether --enable-largefile was given.
6118 if test "${enable_largefile+set}" = set; then
6119 enableval=$enable_largefile;
6122 if test "$enable_largefile" != no; then
6124 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6125 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
6126 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 ac_cv_sys_largefile_CC=no
6130 if test "$GCC" != yes; then
6133 # IRIX 6.2 and later do not support large files by default,
6134 # so use the C compiler's -n32 option if that helps.
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <sys/types.h>
6142 /* Check that off_t can represent 2**63 - 1 correctly.
6143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6144 since some C++ compilers masquerading as C compilers
6145 incorrectly reject 9223372036854775807. */
6146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6148 && LARGE_OFF_T % 2147483647 == 1)
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compile") 2>conftest.er1
6167 grep -v '^ *+' conftest.er1 >conftest.err
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6173 { (case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_try") 2>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6200 rm -f core conftest.err conftest.$ac_objext
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217 { (case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_try") 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_try") 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_sys_largefile_CC=' -n32'; break
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6244 rm -f core conftest.err conftest.$ac_objext
6248 rm -f conftest.$ac_ext
6251 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6252 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
6253 if test "$ac_cv_sys_largefile_CC" != no; then
6254 CC=$CC$ac_cv_sys_largefile_CC
6257 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6258 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
6259 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 ac_cv_sys_file_offset_bits=no
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <sys/types.h>
6271 /* Check that off_t can represent 2**63 - 1 correctly.
6272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273 since some C++ compilers masquerading as C compilers
6274 incorrectly reject 9223372036854775807. */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277 && LARGE_OFF_T % 2147483647 == 1)
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #define _FILE_OFFSET_BITS 64
6337 #include <sys/types.h>
6338 /* Check that off_t can represent 2**63 - 1 correctly.
6339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6340 since some C++ compilers masquerading as C compilers
6341 incorrectly reject 9223372036854775807. */
6342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6344 && LARGE_OFF_T % 2147483647 == 1)
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_sys_file_offset_bits=64; break
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6401 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
6402 if test "$ac_cv_sys_file_offset_bits" != no; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6410 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6411 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
6412 if test "${ac_cv_sys_large_files+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 ac_cv_sys_large_files=no
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <sys/types.h>
6424 /* Check that off_t can represent 2**63 - 1 correctly.
6425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6426 since some C++ compilers masquerading as C compilers
6427 incorrectly reject 9223372036854775807. */
6428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6430 && LARGE_OFF_T % 2147483647 == 1)
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_try") 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #define _LARGE_FILES 1
6490 #include <sys/types.h>
6491 /* Check that off_t can represent 2**63 - 1 correctly.
6492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6493 since some C++ compilers masquerading as C compilers
6494 incorrectly reject 9223372036854775807. */
6495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6497 && LARGE_OFF_T % 2147483647 == 1)
6507 rm -f conftest.$ac_objext
6508 if { (ac_try="$ac_compile"
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_compile") 2>conftest.er1
6516 grep -v '^ *+' conftest.er1 >conftest.err
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522 { (case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_try") 2>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_sys_large_files=1; break
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6554 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6555 if test "$ac_cv_sys_large_files" != no; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define _LARGE_FILES $ac_cv_sys_large_files
6565 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6566 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6567 if test "$ac_cv_prog_cc_c89" != no; then
6568 { echo "$as_me:$LINENO: result: yes" >&5
6569 echo "${ECHO_T}yes" >&6; }
6571 cat >>confdefs.h <<\_ACEOF
6572 #define PROTOTYPES 1
6576 cat >>confdefs.h <<\_ACEOF
6577 #define __PROTOTYPES 1
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6586 if test "$ac_cv_prog_cc_stdc" != no; then
6589 U=_ ANSI2KNR=./ansi2knr
6591 # Ensure some checks needed by ansi2knr itself.
6594 for ac_header in string.h
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6607 # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <$ac_header>
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6634 { (case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_try") 2>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_try") 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_header_compiler=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_header_compiler=no
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663 echo "${ECHO_T}$ac_header_compiler" >&6; }
6665 # Is the header present?
6666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <$ac_header>
6676 if { (ac_try="$ac_cpp conftest.$ac_ext"
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev/null; then
6689 if test -s conftest.err; then
6690 ac_cpp_err=$ac_c_preproc_warn_flag
6691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6698 if test -z "$ac_cpp_err"; then
6699 ac_header_preproc=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_header_preproc=no
6707 rm -f conftest.err conftest.$ac_ext
6708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6709 echo "${ECHO_T}$ac_header_preproc" >&6; }
6711 # So? What about this header?
6712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6718 ac_header_preproc=yes
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6734 ## ------------------------------------ ##
6735 ## Report this to bug-coreutils@gnu.org ##
6736 ## ------------------------------------ ##
6738 ) | sed "s/^/$as_me: WARNING: /" >&2
6741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 eval "$as_ac_Header=\$ac_header_preproc"
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754 cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6763 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6764 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6765 if test "${ac_cv_c_bigendian+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 # See if sys/param.h defines the BYTE_ORDER macro.
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <sys/types.h>
6776 #include <sys/param.h>
6781 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6789 rm -f conftest.$ac_objext
6790 if { (ac_try="$ac_compile"
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796 (eval "$ac_compile") 2>conftest.er1
6798 grep -v '^ *+' conftest.er1 >conftest.err
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6804 { (case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_try") 2>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_try") 2>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 # It does; now see whether it defined to BIG_ENDIAN or not.
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 #include <sys/param.h>
6836 #if BYTE_ORDER != BIG_ENDIAN
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6859 { (case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_try") 2>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_try") 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_cv_c_bigendian=yes
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 ac_cv_c_bigendian=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 # It does not; compile a test program.
6892 if test "$cross_compiling" = yes; then
6893 # try to guess the endianness by grepping values into an object file
6894 ac_cv_c_bigendian=unknown
6895 cat >conftest.$ac_ext <<_ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6902 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6903 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6904 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6905 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6906 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6910 _ascii (); _ebcdic ();
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_compile") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6930 { (case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_try") 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; } &&
6939 { ac_try='test -s conftest.$ac_objext'
6940 { (case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_try") 2>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6950 ac_cv_c_bigendian=yes
6952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6953 if test "$ac_cv_c_bigendian" = unknown; then
6954 ac_cv_c_bigendian=no
6956 # finding both strings is unlikely to happen, but who knows?
6957 ac_cv_c_bigendian=unknown
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 $ac_includes_default
6980 /* Are we little or big endian? From Harbison&Steele. */
6984 char c[sizeof (long int)];
6987 return u.c[sizeof (long int) - 1] == 1;
6993 rm -f conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_link") 2>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7004 { (case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_try") 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_c_bigendian=no
7015 echo "$as_me: program exited with status $ac_status" >&5
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_c_bigendian=yes
7022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7031 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7032 case $ac_cv_c_bigendian in
7035 cat >>confdefs.h <<\_ACEOF
7036 #define WORDS_BIGENDIAN 1
7042 { { echo "$as_me:$LINENO: error: unknown endianness
7043 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7044 echo "$as_me: error: unknown endianness
7045 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7046 { (exit 1); exit 1; }; } ;;
7049 { echo "$as_me:$LINENO: checking for working volatile" >&5
7050 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
7051 if test "${ac_cv_c_volatile+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7066 int * volatile y = (int *) 0;
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7087 { (case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_try") 2>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_c_volatile=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7117 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
7118 if test $ac_cv_c_volatile = no; then
7120 cat >>confdefs.h <<\_ACEOF
7126 { echo "$as_me:$LINENO: checking for inline" >&5
7127 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7128 if test "${ac_cv_c_inline+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 for ac_kw in inline __inline__ __inline; do
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7141 static $ac_kw foo_t static_foo () {return 0; }
7142 $ac_kw foo_t foo () {return 0; }
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153 (eval "$ac_compile") 2>conftest.er1
7155 grep -v '^ *+' conftest.er1 >conftest.err
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_try") 2>&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_try") 2>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_c_inline=$ac_kw
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 test "$ac_cv_c_inline" != no && break
7193 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7194 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7197 case $ac_cv_c_inline in
7200 case $ac_cv_c_inline in
7202 *) ac_val=$ac_cv_c_inline;;
7204 cat >>confdefs.h <<_ACEOF
7206 #define inline $ac_val
7214 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
7215 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
7216 if test "${ac_cv_type_long_double_wider+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7226 long double const a[] =
7228 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7229 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7234 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7235 + (x ? f (x) : 'c'));
7241 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7242 + (DBL_MANT_DIG < LDBL_MANT_DIG)
7243 - (LDBL_MAX_EXP < DBL_MAX_EXP)
7244 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7245 && (int) LDBL_EPSILON == 0
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_try") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 ac_cv_type_long_double_wider=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 ac_cv_type_long_double_wider=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
7298 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
7299 if test $ac_cv_type_long_double_wider = yes; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define HAVE_LONG_DOUBLE_WIDER 1
7307 ac_cv_c_long_double=$ac_cv_type_long_double_wider
7308 if test $ac_cv_c_long_double = yes; then
7310 cat >>confdefs.h <<\_ACEOF
7311 #define HAVE_LONG_DOUBLE 1
7320 for ac_header in $ac_header_list
7322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 ac_res=`eval echo '${'$as_ac_Header'}'`
7330 { echo "$as_me:$LINENO: result: $ac_res" >&5
7331 echo "${ECHO_T}$ac_res" >&6; }
7333 # Is the header compilable?
7334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7343 #include <$ac_header>
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7360 { (case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_try") 2>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_try") 2>&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_header_compiler=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 ac_header_compiler=no
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7389 echo "${ECHO_T}$ac_header_compiler" >&6; }
7391 # Is the header present?
7392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <$ac_header>
7402 if { (ac_try="$ac_cpp conftest.$ac_ext"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } >/dev/null; then
7415 if test -s conftest.err; then
7416 ac_cpp_err=$ac_c_preproc_warn_flag
7417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7424 if test -z "$ac_cpp_err"; then
7425 ac_header_preproc=yes
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_header_preproc=no
7433 rm -f conftest.err conftest.$ac_ext
7434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7435 echo "${ECHO_T}$ac_header_preproc" >&6; }
7437 # So? What about this header?
7438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7444 ac_header_preproc=yes
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7460 ## ------------------------------------ ##
7461 ## Report this to bug-coreutils@gnu.org ##
7462 ## ------------------------------------ ##
7464 ) | sed "s/^/$as_me: WARNING: /" >&2
7467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 eval "$as_ac_Header=\$ac_header_preproc"
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475 { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7480 cat >>confdefs.h <<_ACEOF
7481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 for ac_header in sys/mount.h sys/sysctl.h
7553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7566 #if HAVE_SYS_PARAM_H
7567 #include <sys/param.h>
7570 #include <$ac_header>
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7581 grep -v '^ *+' conftest.er1 >conftest.err
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7587 { (case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_try") 2>&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_try") 2>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 eval "$as_ac_Header=yes"
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 eval "$as_ac_Header=no"
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 ac_res=`eval echo '${'$as_ac_Header'}'`
7617 { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7620 cat >>confdefs.h <<_ACEOF
7621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7629 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
7630 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
7631 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7644 static struct stat ac_aggr;
7645 if (ac_aggr.st_blocks)
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_try") 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_try") 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_member_struct_stat_st_blocks=yes
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7700 static struct stat ac_aggr;
7701 if (sizeof ac_aggr.st_blocks)
7707 rm -f conftest.$ac_objext
7708 if { (ac_try="$ac_compile"
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7716 grep -v '^ *+' conftest.er1 >conftest.err
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7722 { (case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_try") 2>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try='test -s conftest.$ac_objext'
7732 { (case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_try") 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_member_struct_stat_st_blocks=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_cv_member_struct_stat_st_blocks=no
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
7756 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7758 cat >>confdefs.h <<_ACEOF
7759 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_ST_BLOCKS 1
7768 case " $LIBOBJS " in
7769 *" fileblocks.$ac_objext "* ) ;;
7770 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7777 { echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7778 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6; }
7779 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 #include <sys/types.h>
7789 #include <sys/stat.h>
7793 struct stat s; s.st_dm_mode;
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
7823 { (case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_try") 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_struct_st_dm_mode=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_struct_st_dm_mode=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7843 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6; }
7845 if test $ac_cv_struct_st_dm_mode = yes; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_ST_DM_MODE 1
7854 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7855 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7856 if test "${ac_cv_type_uid_t+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 cat >conftest.$ac_ext <<_ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 #include <sys/types.h>
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "uid_t" >/dev/null 2>&1; then
7870 ac_cv_type_uid_t=yes
7877 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7878 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7879 if test $ac_cv_type_uid_t = no; then
7881 cat >>confdefs.h <<\_ACEOF
7886 cat >>confdefs.h <<\_ACEOF
7892 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7893 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7894 if test "${ac_cv_type_getgroups+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 if test "$cross_compiling" = yes; then
7898 ac_cv_type_getgroups=cross
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 /* Thanks to Mike Rendell for this test. */
7907 $ac_includes_default
7910 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7917 union { gid_t gval; long int lval; } val;
7920 for (i = 0; i < NGID; i++)
7921 gidset[i] = val.gval;
7922 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7924 /* Exit non-zero if getgroups seems to require an array of ints. This
7925 happens when gid_t is short int but getgroups modifies an array
7927 return n > 0 && gidset[n] != val.gval;
7930 rm -f conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7941 { (case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_try") 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_type_getgroups=gid_t
7952 echo "$as_me: program exited with status $ac_status" >&5
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7957 ac_cv_type_getgroups=int
7959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7963 if test $ac_cv_type_getgroups = cross; then
7964 cat >conftest.$ac_ext <<_ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7975 ac_cv_type_getgroups=gid_t
7977 ac_cv_type_getgroups=int
7983 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7984 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
7986 cat >>confdefs.h <<_ACEOF
7987 #define GETGROUPS_T $ac_cv_type_getgroups
7991 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
7992 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
7993 if test "${ac_cv_type_mbstate_t+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 $ac_includes_default
8007 mbstate_t x; return sizeof x;
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest.$ac_objext'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_type_mbstate_t=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_cv_type_mbstate_t=no
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8057 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
8058 if test $ac_cv_type_mbstate_t = yes; then
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_MBSTATE_T 1
8066 cat >>confdefs.h <<\_ACEOF
8067 #define mbstate_t int
8071 { echo "$as_me:$LINENO: checking for mode_t" >&5
8072 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8073 if test "${ac_cv_type_mode_t+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 typedef mode_t ac__type_new_;
8087 if ((ac__type_new_ *) 0)
8089 if (sizeof (ac__type_new_))
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_compile") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110 { (case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_try") 2>&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_cv_type_mode_t=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_type_mode_t=no
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8140 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8141 if test $ac_cv_type_mode_t = yes; then
8145 cat >>confdefs.h <<_ACEOF
8151 { echo "$as_me:$LINENO: checking for off_t" >&5
8152 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8153 if test "${ac_cv_type_off_t+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 $ac_includes_default
8163 typedef off_t ac__type_new_;
8167 if ((ac__type_new_ *) 0)
8169 if (sizeof (ac__type_new_))
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest.$ac_objext'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_type_off_t=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8220 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8221 if test $ac_cv_type_off_t = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define off_t long int
8231 { echo "$as_me:$LINENO: checking for pid_t" >&5
8232 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8233 if test "${ac_cv_type_pid_t+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 typedef pid_t ac__type_new_;
8247 if ((ac__type_new_ *) 0)
8249 if (sizeof (ac__type_new_))
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_type_pid_t=yes
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8301 if test $ac_cv_type_pid_t = yes; then
8305 cat >>confdefs.h <<_ACEOF
8311 { echo "$as_me:$LINENO: checking for size_t" >&5
8312 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8313 if test "${ac_cv_type_size_t+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 $ac_includes_default
8323 typedef size_t ac__type_new_;
8327 if ((ac__type_new_ *) 0)
8329 if (sizeof (ac__type_new_))
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_type_size_t=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_cv_type_size_t=no
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8380 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8381 if test $ac_cv_type_size_t = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define size_t unsigned int
8392 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8393 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8394 if test "${gl_cv_c_uint32_t+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 for ac_type in "uint32_t" "unsigned int" \
8399 "unsigned long int" "unsigned short int"; do
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 $ac_includes_default
8410 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest.$ac_objext'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 gl_cv_c_uint32_t=$ac_type
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 test "$gl_cv_c_uint32_t" != no && break
8463 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
8464 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6; }
8465 case "$gl_cv_c_uint32_t" in
8469 cat >>confdefs.h <<\_ACEOF
8474 cat >>confdefs.h <<_ACEOF
8475 #define uint32_t $gl_cv_c_uint32_t
8481 { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
8482 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
8483 if test "${gl_cv_c_uint32_max+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8496 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518 { (case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_try") 2>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; } &&
8527 { ac_try='test -s conftest.$ac_objext'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 gl_cv_c_uint32_max=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 gl_cv_c_uint32_max=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
8548 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6; }
8549 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
8554 cat >>confdefs.h <<\_ACEOF
8555 #define UINT32_MAX 4294967295U
8562 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8563 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8564 if test "${gl_cv_header_inttypes_h+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&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 <sys/types.h>
8574 #include <inttypes.h>
8578 uintmax_t i = (uintmax_t) -1;
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 gl_cv_header_inttypes_h=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 gl_cv_header_inttypes_h=no
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8628 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8629 if test $gl_cv_header_inttypes_h = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8638 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8639 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8640 if test "${gl_cv_header_stdint_h+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <sys/types.h>
8654 uintmax_t i = (uintmax_t) -1;
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_compile") 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 gl_cv_header_stdint_h=yes
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 gl_cv_header_stdint_h=no
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8704 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8705 if test $gl_cv_header_stdint_h = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_STDINT_H_WITH_UINTMAX 1
8714 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8715 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
8716 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 unsigned long long int ull = 18446744073709551615ULL;
8726 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8732 unsigned long long int ullmax = 18446744073709551615ull;
8733 return (ull << 63 | ull >> 63 | ull << i | ull >> i
8734 | ullmax / ull | ullmax % ull);
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_link") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754 { (case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_try") 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_try") 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_type_unsigned_long_long_int=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_type_unsigned_long_long_int=no
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8785 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
8786 if test $ac_cv_type_unsigned_long_long_int = yes; then
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_UNSIGNED_LONG_LONG_INT 1
8796 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
8797 if test $ac_cv_type_unsigned_long_long = yes; then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_UNSIGNED_LONG_LONG 1
8808 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8810 test $ac_cv_type_unsigned_long_long = yes \
8811 && ac_type='unsigned long long' \
8812 || ac_type='unsigned long'
8814 cat >>confdefs.h <<_ACEOF
8815 #define uintmax_t $ac_type
8820 cat >>confdefs.h <<\_ACEOF
8821 #define HAVE_UINTMAX_T 1
8827 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8828 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8829 if test "${gl_cv_c_uintptr_t+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 gl_cv_c_uintptr_t=no
8833 for ac_type in "uintptr_t" "unsigned int" \
8834 "unsigned long int" "unsigned long long int"; do
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8845 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
8852 rm -f conftest.$ac_objext
8853 if { (ac_try="$ac_compile"
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compile") 2>conftest.er1
8861 grep -v '^ *+' conftest.er1 >conftest.err
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_try") 2>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 gl_cv_c_uintptr_t=$ac_type
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 test $gl_cv_c_uintptr_t != no && break
8898 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
8899 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6; }
8900 case $gl_cv_c_uintptr_t in
8904 cat >>confdefs.h <<_ACEOF
8905 #define uintptr_t $gl_cv_c_uintptr_t
8911 { echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
8912 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6; }
8913 if test "${gl_cv_c_uintptr_max+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8927 error: UINTPTR_MAX is not defined.
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_compile") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_try") 2>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 gl_cv_c_uintptr_max=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 gl_cv_c_uintptr_max=no
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
8978 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6; }
8979 case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
8984 cat >>confdefs.h <<\_ACEOF
8985 #define UINTPTR_MAX ((uintptr_t) -1)
8991 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8992 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
8993 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 #include <sys/types.h>
9006 return makedev(0, 0);
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_link") 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9026 { (case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_try") 2>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest$ac_exeext'
9036 { (case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_try") 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_header_sys_types_h_makedev=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_header_sys_types_h_makedev=no
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9057 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9058 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
9060 if test $ac_cv_header_sys_types_h_makedev = no; then
9061 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9062 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9063 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9064 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9068 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9070 # Is the header compilable?
9071 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9072 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 $ac_includes_default
9080 #include <sys/mkdev.h>
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9097 { (case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_try") 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_header_compiler=yes
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 ac_header_compiler=no
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6; }
9128 # Is the header present?
9129 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9130 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #include <sys/mkdev.h>
9139 if { (ac_try="$ac_cpp conftest.$ac_ext"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } >/dev/null; then
9152 if test -s conftest.err; then
9153 ac_cpp_err=$ac_c_preproc_warn_flag
9154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9161 if test -z "$ac_cpp_err"; then
9162 ac_header_preproc=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
9181 ac_header_preproc=yes
9184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
9197 ## ------------------------------------ ##
9198 ## Report this to bug-coreutils@gnu.org ##
9199 ## ------------------------------------ ##
9201 ) | sed "s/^/$as_me: WARNING: /" >&2
9204 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9205 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
9206 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
9215 if test $ac_cv_header_sys_mkdev_h = yes; then
9217 cat >>confdefs.h <<\_ACEOF
9218 #define MAJOR_IN_MKDEV 1
9225 if test $ac_cv_header_sys_mkdev_h = no; then
9226 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9227 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9228 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9229 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9233 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9235 # Is the header compilable?
9236 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9237 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9245 #include <sys/sysmacros.h>
9247 rm -f conftest.$ac_objext
9248 if { (ac_try="$ac_compile"
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_compile") 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262 { (case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_try") 2>&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest.$ac_objext'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_header_compiler=yes
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_header_compiler=no
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9291 echo "${ECHO_T}$ac_header_compiler" >&6; }
9293 # Is the header present?
9294 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9295 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #include <sys/sysmacros.h>
9304 if { (ac_try="$ac_cpp conftest.$ac_ext"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } >/dev/null; then
9317 if test -s conftest.err; then
9318 ac_cpp_err=$ac_c_preproc_warn_flag
9319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9326 if test -z "$ac_cpp_err"; then
9327 ac_header_preproc=yes
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_header_preproc=no
9335 rm -f conftest.err conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9337 echo "${ECHO_T}$ac_header_preproc" >&6; }
9339 # So? What about this header?
9340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9343 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
9345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
9346 ac_header_preproc=yes
9349 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9350 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9352 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
9354 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
9356 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9358 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
9360 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
9362 ## ------------------------------------ ##
9363 ## Report this to bug-coreutils@gnu.org ##
9364 ## ------------------------------------ ##
9366 ) | sed "s/^/$as_me: WARNING: /" >&2
9369 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9370 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9371 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9376 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9377 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9380 if test $ac_cv_header_sys_sysmacros_h = yes; then
9382 cat >>confdefs.h <<\_ACEOF
9383 #define MAJOR_IN_SYSMACROS 1
9393 { echo "$as_me:$LINENO: checking host operating system" >&5
9394 echo $ECHO_N "checking host operating system... $ECHO_C" >&6; }
9395 if test "${gl_cv_host_operating_system+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 # These operating system names do not use the default heuristic below.
9401 # They are in reverse order, so that more-specific prefixes come first.
9402 winnt*) os='Windows NT';;
9404 sysv*) os='Unix System V';;
9405 superux*) os='SUPER-UX';;
9406 sunos*) os='SunOS';;
9408 sco*) os='SCO Unix';;
9409 riscos*) os='RISC OS';;
9410 riscix*) os='RISCiX';;
9414 plan9*) os='Plan 9';;
9417 openbsd*) os='OpenBSD';;
9418 nsk*) os='NonStop Kernel';;
9419 nonstopux*) os='NonStop-UX';;
9420 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
9421 netbsd*) os='NetBSD';;
9422 knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
9423 kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
9424 msdosdjgpp*) os='DJGPP';;
9425 mpeix*) os='MPE/iX';;
9427 mingw*) os='MinGW';;
9428 lynxos*) os='LynxOS';;
9429 linux*) os='GNU/Linux';;
9433 freebsd*) os='FreeBSD';;
9435 bsdi*) os='BSD/OS';;
9439 atheos*) os='AtheOS';;
9440 amigaos*) os='Amiga OS';;
9443 # The default heuristic takes the initial alphabetic string
9444 # from $host_os, but capitalizes its first letter.
9447 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
9449 expr "X$host_os" : 'X.\([A-Za-z]*\)'
9453 # If $host_os does not start with an alphabetic string, use it unchanged.
9457 gl_cv_host_operating_system=$os
9459 { echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
9460 echo "${ECHO_T}$gl_cv_host_operating_system" >&6; }
9462 cat >>confdefs.h <<_ACEOF
9463 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
9468 { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
9469 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
9470 # Check whether --enable-assert was given.
9471 if test "${enable_assert+set}" = set; then
9472 enableval=$enable_assert; { echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6; }
9475 cat >>confdefs.h <<\_ACEOF
9480 { echo "$as_me:$LINENO: result: yes" >&5
9481 echo "${ECHO_T}yes" >&6; }
9486 { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
9487 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
9488 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9498 #include <sys/types.h>
9504 struct dirent dp; dp.d_type = 0;
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_link") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9524 { (case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_try") 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_try") 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 jm_cv_struct_dirent_d_type=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 jm_cv_struct_dirent_d_type=no
9551 rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9556 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
9557 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6; }
9558 if test $jm_cv_struct_dirent_d_type = yes; then
9560 cat >>confdefs.h <<\_ACEOF
9561 #define HAVE_STRUCT_DIRENT_D_TYPE 1
9567 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9568 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9569 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 #include <sys/types.h>
9585 struct dirent dp; dp.d_ino = 0;
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 jm_cv_struct_dirent_d_ino=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 jm_cv_struct_dirent_d_ino=no
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9637 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9638 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6; }
9639 if test $jm_cv_struct_dirent_d_ino = yes; then
9641 cat >>confdefs.h <<\_ACEOF
9642 #define D_INO_IN_DIRENT 1
9668 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9670 if test "${ac_cv_header_time+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 #include <sys/types.h>
9680 #include <sys/time.h>
9686 if ((struct tm *) 0)
9692 rm -f conftest.$ac_objext
9693 if { (ac_try="$ac_compile"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_compile") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest.$ac_objext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_header_time=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_header_time=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9737 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9738 if test $ac_cv_header_time = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define TIME_WITH_SYS_TIME 1
9756 #include <sys/types.h>
9757 #if TIME_WITH_SYS_TIME
9758 # include <sys/time.h>
9761 # if HAVE_SYS_TIME_H
9762 # include <sys/time.h>
9781 { echo "$as_me:$LINENO: checking whether free is declared" >&5
9782 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
9783 if test "${ac_cv_have_decl_free+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9798 char *p = (char *) free;
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_compile") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_cv_have_decl_free=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_cv_have_decl_free=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9851 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
9852 if test $ac_cv_have_decl_free = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define HAVE_DECL_FREE 1
9860 cat >>confdefs.h <<_ACEOF
9861 #define HAVE_DECL_FREE 0
9866 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9867 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9868 if test "${ac_cv_have_decl_getenv+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9883 char *p = (char *) getenv;
9891 rm -f conftest.$ac_objext
9892 if { (ac_try="$ac_compile"
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_compile") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
9905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest.$ac_objext'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_have_decl_getenv=yes
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_cv_have_decl_getenv=no
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9936 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9937 if test $ac_cv_have_decl_getenv = yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_DECL_GETENV 1
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_DECL_GETENV 0
9951 { echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9952 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6; }
9953 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9968 char *p = (char *) geteuid;
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_have_decl_geteuid=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_have_decl_geteuid=no
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
10021 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6; }
10022 if test $ac_cv_have_decl_geteuid = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_GETEUID 1
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_DECL_GETEUID 0
10036 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
10037 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
10038 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10053 char *p = (char *) getgrgid;
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest.$ac_objext'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_have_decl_getgrgid=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_have_decl_getgrgid=no
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
10106 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
10107 if test $ac_cv_have_decl_getgrgid = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_DECL_GETGRGID 1
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_DECL_GETGRGID 0
10121 { echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
10122 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6; }
10123 if test "${ac_cv_have_decl_getlogin+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10138 char *p = (char *) getlogin;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_compile") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest.$ac_objext'
10171 { (case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_try") 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_have_decl_getlogin=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_have_decl_getlogin=no
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
10191 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6; }
10192 if test $ac_cv_have_decl_getlogin = yes; then
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_DECL_GETLOGIN 1
10200 cat >>confdefs.h <<_ACEOF
10201 #define HAVE_DECL_GETLOGIN 0
10206 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
10207 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
10208 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10223 char *p = (char *) getpwuid;
10231 rm -f conftest.$ac_objext
10232 if { (ac_try="$ac_compile"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_compile") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_try") 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_cv_have_decl_getpwuid=yes
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ac_cv_have_decl_getpwuid=no
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
10276 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
10277 if test $ac_cv_have_decl_getpwuid = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define HAVE_DECL_GETPWUID 1
10285 cat >>confdefs.h <<_ACEOF
10286 #define HAVE_DECL_GETPWUID 0
10291 { echo "$as_me:$LINENO: checking whether getuid is declared" >&5
10292 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6; }
10293 if test "${ac_cv_have_decl_getuid+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10308 char *p = (char *) getuid;
10316 rm -f conftest.$ac_objext
10317 if { (ac_try="$ac_compile"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_compile") 2>conftest.er1
10325 grep -v '^ *+' conftest.er1 >conftest.err
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 ac_cv_have_decl_getuid=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_have_decl_getuid=no
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
10361 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6; }
10362 if test $ac_cv_have_decl_getuid = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL_GETUID 1
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DECL_GETUID 0
10376 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
10377 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
10378 if test "${ac_cv_have_decl_getutent+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10393 char *p = (char *) getutent;
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_compile") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_have_decl_getutent=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_have_decl_getutent=no
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
10446 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
10447 if test $ac_cv_have_decl_getutent = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_DECL_GETUTENT 1
10455 cat >>confdefs.h <<_ACEOF
10456 #define HAVE_DECL_GETUTENT 0
10461 { echo "$as_me:$LINENO: checking whether lseek is declared" >&5
10462 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6; }
10463 if test "${ac_cv_have_decl_lseek+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10478 char *p = (char *) lseek;
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_compile") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501 { (case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_try") 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_try") 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_cv_have_decl_lseek=yes
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ac_cv_have_decl_lseek=no
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
10531 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6; }
10532 if test $ac_cv_have_decl_lseek = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_DECL_LSEEK 1
10540 cat >>confdefs.h <<_ACEOF
10541 #define HAVE_DECL_LSEEK 0
10546 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10547 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
10548 if test "${ac_cv_have_decl_malloc+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10563 char *p = (char *) malloc;
10571 rm -f conftest.$ac_objext
10572 if { (ac_try="$ac_compile"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_compile") 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10586 { (case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_try") 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest.$ac_objext'
10596 { (case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_try") 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_cv_have_decl_malloc=yes
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_cv_have_decl_malloc=no
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10616 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
10617 if test $ac_cv_have_decl_malloc = yes; then
10619 cat >>confdefs.h <<_ACEOF
10620 #define HAVE_DECL_MALLOC 1
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_DECL_MALLOC 0
10631 { echo "$as_me:$LINENO: checking whether memchr is declared" >&5
10632 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6; }
10633 if test "${ac_cv_have_decl_memchr+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10648 char *p = (char *) memchr;
10656 rm -f conftest.$ac_objext
10657 if { (ac_try="$ac_compile"
10658 case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_compile") 2>conftest.er1
10665 grep -v '^ *+' conftest.er1 >conftest.err
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10671 { (case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_try") 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest.$ac_objext'
10681 { (case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_try") 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 ac_cv_have_decl_memchr=yes
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ac_cv_have_decl_memchr=no
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
10701 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6; }
10702 if test $ac_cv_have_decl_memchr = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define HAVE_DECL_MEMCHR 1
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_DECL_MEMCHR 0
10716 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10717 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
10718 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10733 char *p = (char *) memrchr;
10741 rm -f conftest.$ac_objext
10742 if { (ac_try="$ac_compile"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_compile") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest.$ac_objext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_have_decl_memrchr=yes
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_have_decl_memrchr=no
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10786 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
10787 if test $ac_cv_have_decl_memrchr = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_DECL_MEMRCHR 1
10795 cat >>confdefs.h <<_ACEOF
10796 #define HAVE_DECL_MEMRCHR 0
10801 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10802 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
10803 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10818 char *p = (char *) nanosleep;
10826 rm -f conftest.$ac_objext
10827 if { (ac_try="$ac_compile"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_compile") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_have_decl_nanosleep=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_have_decl_nanosleep=no
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10871 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
10872 if test $ac_cv_have_decl_nanosleep = yes; then
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_DECL_NANOSLEEP 1
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_DECL_NANOSLEEP 0
10886 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10887 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
10888 if test "${ac_cv_have_decl_realloc+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10903 char *p = (char *) realloc;
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_try") 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_have_decl_realloc=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_have_decl_realloc=no
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10956 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
10957 if test $ac_cv_have_decl_realloc = yes; then
10959 cat >>confdefs.h <<_ACEOF
10960 #define HAVE_DECL_REALLOC 1
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_DECL_REALLOC 0
10971 { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10972 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
10973 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10988 char *p = (char *) stpcpy;
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1 >conftest.err
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_have_decl_stpcpy=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_have_decl_stpcpy=no
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11041 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
11042 if test $ac_cv_have_decl_stpcpy = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_DECL_STPCPY 1
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_DECL_STPCPY 0
11056 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
11057 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
11058 if test "${ac_cv_have_decl_strndup+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11073 char *p = (char *) strndup;
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_have_decl_strndup=yes
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 ac_cv_have_decl_strndup=no
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
11126 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
11127 if test $ac_cv_have_decl_strndup = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_DECL_STRNDUP 1
11135 cat >>confdefs.h <<_ACEOF
11136 #define HAVE_DECL_STRNDUP 0
11141 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
11142 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
11143 if test "${ac_cv_have_decl_strnlen+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11158 char *p = (char *) strnlen;
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_have_decl_strnlen=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_cv_have_decl_strnlen=no
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
11211 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
11212 if test $ac_cv_have_decl_strnlen = yes; then
11214 cat >>confdefs.h <<_ACEOF
11215 #define HAVE_DECL_STRNLEN 1
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_DECL_STRNLEN 0
11226 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11227 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
11228 if test "${ac_cv_have_decl_strstr+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11243 char *p = (char *) strstr;
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_have_decl_strstr=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_have_decl_strstr=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11296 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
11297 if test $ac_cv_have_decl_strstr = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_DECL_STRSTR 1
11305 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_DECL_STRSTR 0
11311 { echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
11312 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6; }
11313 if test "${ac_cv_have_decl_strtoul+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11328 char *p = (char *) strtoul;
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_have_decl_strtoul=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_cv_have_decl_strtoul=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
11381 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6; }
11382 if test $ac_cv_have_decl_strtoul = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_DECL_STRTOUL 1
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_DECL_STRTOUL 0
11396 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
11397 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
11398 if test "${ac_cv_have_decl_strtoull+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11413 char *p = (char *) strtoull;
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_cv_have_decl_strtoull=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_cv_have_decl_strtoull=no
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
11466 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
11467 if test $ac_cv_have_decl_strtoull = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470 #define HAVE_DECL_STRTOULL 1
11475 cat >>confdefs.h <<_ACEOF
11476 #define HAVE_DECL_STRTOULL 0
11481 { echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
11482 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6; }
11483 if test "${ac_cv_have_decl_ttyname+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11498 char *p = (char *) ttyname;
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_have_decl_ttyname=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_cv_have_decl_ttyname=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
11551 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6; }
11552 if test $ac_cv_have_decl_ttyname = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define HAVE_DECL_TTYNAME 1
11560 cat >>confdefs.h <<_ACEOF
11561 #define HAVE_DECL_TTYNAME 0
11569 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
11570 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
11571 if test "${ac_cv_have_decl_isblank+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 cat >conftest.$ac_ext <<_ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11586 char *p = (char *) isblank;
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_try") 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_cv_have_decl_isblank=yes
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_cv_have_decl_isblank=no
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
11639 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
11640 if test $ac_cv_have_decl_isblank = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define HAVE_DECL_ISBLANK 1
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_DECL_ISBLANK 0
11657 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11658 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11659 if test "${ac_cv_header_stdbool_h+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11669 #include <stdbool.h>
11671 "error: bool is not defined"
11674 "error: false is not defined"
11677 "error: false is not 0"
11680 "error: true is not defined"
11683 "error: true is not 1"
11685 #ifndef __bool_true_false_are_defined
11686 "error: __bool_true_false_are_defined is not defined"
11689 struct s { _Bool s: 1; _Bool t; } s;
11691 char a[true == 1 ? 1 : -1];
11692 char b[false == 0 ? 1 : -1];
11693 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11694 char d[(bool) 0.5 == true ? 1 : -1];
11696 char f[(_Bool) 0.0 == false ? 1 : -1];
11698 char h[sizeof (_Bool)];
11699 char i[sizeof s.t];
11700 enum { j = false, k = true, l = false * true, m = true * 256 };
11702 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11703 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11704 #if defined __xlc__ || defined __GNUC__
11705 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11706 reported by James Lemley on 2005-10-05; see
11707 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11708 This test is not quite right, since xlc is allowed to
11709 reject this program, as the initializer for xlcbug is
11710 not one of the forms that C requires support for.
11711 However, doing the test right would require a run-time
11712 test, and that would make cross-compilation harder.
11713 Let us hope that IBM fixes the xlc bug, and also adds
11714 support for this kind of constant expression. In the
11715 meantime, this test will reject xlc, which is OK, since
11716 our stdbool.h substitute should suffice. We also test
11717 this with GCC, where it should work, to detect more
11718 quickly whether someone messes up the test in the
11720 char digs[] = "0123456789";
11721 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11723 /* Catch a bug in an HP-UX C compiler. See
11724 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11725 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11736 /* Refer to every declared value, to avoid compiler optimizations. */
11737 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11738 + !m + !n + !o + !p + !q + !pq);
11744 rm -f conftest.$ac_objext
11745 if { (ac_try="$ac_compile"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_compile") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_header_stdbool_h=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_header_stdbool_h=no
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11789 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11790 { echo "$as_me:$LINENO: checking for _Bool" >&5
11791 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11792 if test "${ac_cv_type__Bool+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 $ac_includes_default
11802 typedef _Bool ac__type_new_;
11806 if ((ac__type_new_ *) 0)
11808 if (sizeof (ac__type_new_))
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest.$ac_objext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_type__Bool=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_cv_type__Bool=no
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11859 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11860 if test $ac_cv_type__Bool = yes; then
11862 cat >>confdefs.h <<_ACEOF
11863 #define HAVE__BOOL 1
11869 if test $ac_cv_header_stdbool_h = yes; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_STDBOOL_H 1
11879 # Define two additional variables used in the Makefile substitution.
11881 if test "$ac_cv_header_stdbool_h" = yes; then
11884 STDBOOL_H='stdbool.h'
11888 if test "$ac_cv_type__Bool" = yes; then
11895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11896 # for constant arguments. Useless!
11897 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
11898 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11899 if test "${ac_cv_working_alloca_h+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 #include <alloca.h>
11912 char *p = (char *) alloca (2 * sizeof (int));
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_working_alloca_h=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_working_alloca_h=no
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11964 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11965 if test $ac_cv_working_alloca_h = yes; then
11967 cat >>confdefs.h <<\_ACEOF
11968 #define HAVE_ALLOCA_H 1
11973 { echo "$as_me:$LINENO: checking for alloca" >&5
11974 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11975 if test "${ac_cv_func_alloca_works+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11985 # define alloca __builtin_alloca
11988 # include <malloc.h>
11989 # define alloca _alloca
11992 # include <alloca.h>
11997 # ifndef alloca /* predefined by HP cc +Olibcalls */
12008 char *p = (char *) alloca (1);
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_link") 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_func_alloca_works=yes
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_func_alloca_works=no
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12059 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12060 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12062 if test $ac_cv_func_alloca_works = yes; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_ALLOCA 1
12069 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12070 # that cause trouble. Some versions do not even contain alloca or
12071 # contain a buggy version. If you still want to use their alloca,
12072 # use ar to extract alloca.o from them instead of compiling alloca.c.
12074 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12076 cat >>confdefs.h <<\_ACEOF
12081 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12082 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12083 if test "${ac_cv_os_cray+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #if defined CRAY && ! defined CRAY2
12099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100 $EGREP "webecray" >/dev/null 2>&1; then
12108 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12109 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12110 if test $ac_cv_os_cray = yes; then
12111 for ac_func in _getb67 GETB67 getb67; do
12112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12126 #define $ac_func innocuous_$ac_func
12128 /* System header to define __stub macros and hopefully few prototypes,
12129 which can conflict with char $ac_func (); below.
12130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 <limits.h> exists even on freestanding compilers. */
12134 # include <limits.h>
12136 # include <assert.h>
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12148 /* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151 #if defined __stub_$ac_func || defined __stub___$ac_func
12158 return $ac_func ();
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest$ac_exeext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 eval "$as_ac_var=yes"
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 eval "$as_ac_var=no"
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 ac_res=`eval echo '${'$as_ac_var'}'`
12209 { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12211 if test `eval echo '${'$as_ac_var'}'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define CRAY_STACKSEG_END $ac_func
12223 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12224 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12225 if test "${ac_cv_c_stack_direction+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 if test "$cross_compiling" = yes; then
12229 ac_cv_c_stack_direction=0
12231 cat >conftest.$ac_ext <<_ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 $ac_includes_default
12239 find_stack_direction ()
12241 static char *addr = 0;
12246 return find_stack_direction ();
12249 return (&dummy > addr) ? 1 : -1;
12255 return find_stack_direction () < 0;
12258 rm -f conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_c_stack_direction=1
12280 echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ( exit $ac_status )
12285 ac_cv_c_stack_direction=-1
12287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12292 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12293 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12295 cat >>confdefs.h <<_ACEOF
12296 #define STACK_DIRECTION $ac_cv_c_stack_direction
12307 if test $ac_cv_func_alloca_works = no; then
12311 # Define an additional variable used in the Makefile substitution.
12312 if test $ac_cv_working_alloca_h = yes; then
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12320 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12326 $EGREP "Need own alloca" >/dev/null 2>&1; then
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_ALLOCA 1
12344 cat >>confdefs.h <<\_ACEOF
12345 #define HAVE_ALLOCA_H 1
12351 for ac_header in stdlib.h
12353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12364 # Is the header compilable?
12365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_header_compiler=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_header_compiler=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12420 echo "${ECHO_T}$ac_header_compiler" >&6; }
12422 # Is the header present?
12423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 #include <$ac_header>
12433 if { (ac_try="$ac_cpp conftest.$ac_ext"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } >/dev/null; then
12446 if test -s conftest.err; then
12447 ac_cpp_err=$ac_c_preproc_warn_flag
12448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12455 if test -z "$ac_cpp_err"; then
12456 ac_header_preproc=yes
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_header_preproc=no
12464 rm -f conftest.err conftest.$ac_ext
12465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12466 echo "${ECHO_T}$ac_header_preproc" >&6; }
12468 # So? What about this header?
12469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12475 ac_header_preproc=yes
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12491 ## ------------------------------------ ##
12492 ## Report this to bug-coreutils@gnu.org ##
12493 ## ------------------------------------ ##
12495 ) | sed "s/^/$as_me: WARNING: /" >&2
12498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 eval "$as_ac_Header=\$ac_header_preproc"
12505 ac_res=`eval echo '${'$as_ac_Header'}'`
12506 { echo "$as_me:$LINENO: result: $ac_res" >&5
12507 echo "${ECHO_T}$ac_res" >&6; }
12510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12511 cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12519 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12520 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12521 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 if test "$cross_compiling" = yes; then
12525 ac_cv_func_malloc_0_nonnull=no
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #if STDC_HEADERS || HAVE_STDLIB_H
12534 # include <stdlib.h>
12542 return ! malloc (0);
12547 rm -f conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_link") 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_func_malloc_0_nonnull=yes
12569 echo "$as_me: program exited with status $ac_status" >&5
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 ( exit $ac_status )
12574 ac_cv_func_malloc_0_nonnull=no
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12581 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12582 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12583 if test $ac_cv_func_malloc_0_nonnull = yes; then
12584 gl_cv_func_malloc_0_nonnull=1
12586 gl_cv_func_malloc_0_nonnull=0
12591 cat >>confdefs.h <<_ACEOF
12592 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12597 { echo "$as_me:$LINENO: checking for long long int" >&5
12598 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
12599 if test "${ac_cv_type_long_long_int+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 long long int ll = 9223372036854775807ll;
12609 long long int nll = -9223372036854775807LL;
12610 typedef int a[((-9223372036854775807LL < 0
12611 && 0 < 9223372036854775807ll)
12617 long long int llmax = 9223372036854775807ll;
12618 return (ll << 63 | ll >> 63 | ll < i | ll > i
12619 | llmax / ll | llmax % ll);
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_type_long_long_int=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_type_long_long_int=no
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
12671 if test $ac_cv_type_long_long_int = yes; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_LONG_LONG_INT 1
12681 ac_cv_type_long_long=$ac_cv_type_long_long_int
12682 if test $ac_cv_type_long_long = yes; then
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_LONG_LONG 1
12691 { echo "$as_me:$LINENO: checking for long double" >&5
12692 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
12693 if test "${gt_cv_c_long_double+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 if test "$GCC" = yes; then
12697 gt_cv_c_long_double=yes
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
12707 long double foo = 0.0;
12708 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12709 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 gt_cv_c_long_double=yes
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 gt_cv_c_long_double=no
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
12765 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
12766 if test $gt_cv_c_long_double = yes; then
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_LONG_DOUBLE 1
12781 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
12782 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
12783 if test "${ac_cv_win_or_dos+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12797 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
12798 neither MSDOS nor Windows
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_compile") 2>conftest.er1
12813 grep -v '^ *+' conftest.er1 >conftest.err
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest.$ac_objext'
12829 { (case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_win_or_dos=yes
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ac_cv_win_or_dos=no
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
12850 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
12852 if test x"$ac_cv_win_or_dos" = xyes; then
12853 ac_fs_accepts_drive_letter_prefix=1
12854 ac_fs_backslash_is_file_name_separator=1
12855 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
12856 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
12857 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 cat >conftest.$ac_ext <<_ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12871 #if defined __CYGWIN__
12872 drive letters are always absolute
12878 rm -f conftest.$ac_objext
12879 if { (ac_try="$ac_compile"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_compile") 2>conftest.er1
12887 grep -v '^ *+' conftest.er1 >conftest.err
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893 { (case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_try") 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_drive_letter_can_be_relative=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_drive_letter_can_be_relative=no
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
12924 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
12925 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
12926 ac_fs_drive_letter_can_be_relative=1
12928 ac_fs_drive_letter_can_be_relative=0
12931 ac_fs_accepts_drive_letter_prefix=0
12932 ac_fs_backslash_is_file_name_separator=0
12933 ac_fs_drive_letter_can_be_relative=0
12937 cat >>confdefs.h <<_ACEOF
12938 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12946 cat >>confdefs.h <<_ACEOF
12947 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12952 cat >>confdefs.h <<_ACEOF
12953 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
12957 { echo "$as_me:$LINENO: checking for long file names" >&5
12958 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
12959 if test "${ac_cv_sys_long_file_names+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 ac_cv_sys_long_file_names=yes
12963 # Test for long file names in all the places we know might matter:
12964 # . the current directory, where building will happen
12965 # $prefix/lib where we will be installing things
12966 # $exec_prefix/lib likewise
12967 # $TMPDIR if set, where it might want to write temporary files
12968 # /tmp where it might want to write temporary files
12969 # /var/tmp likewise
12970 # /usr/tmp likewise
12971 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
12972 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
12973 # in the usual case where exec_prefix is '${prefix}'.
12975 . | /* | ?:[\\/]*) ;; #(
12978 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
12979 ac_xdir=$ac_dir/cf$$
12980 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
12981 ac_tf1=$ac_xdir/conftest9012345
12982 ac_tf2=$ac_xdir/conftest9012346
12983 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
12984 ac_cv_sys_long_file_names=no
12985 rm -f -r "$ac_xdir" 2>/dev/null
12986 test $ac_cv_sys_long_file_names = no && break
12989 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12990 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
12991 if test $ac_cv_sys_long_file_names = yes; then
12993 cat >>confdefs.h <<\_ACEOF
12994 #define HAVE_LONG_FILE_NAMES 1
13003 for ac_func in $ac_func_list
13005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13019 #define $ac_func innocuous_$ac_func
13021 /* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func (); below.
13023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024 <limits.h> exists even on freestanding compilers. */
13027 # include <limits.h>
13029 # include <assert.h>
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13041 /* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044 #if defined __stub_$ac_func || defined __stub___$ac_func
13051 return $ac_func ();
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 eval "$as_ac_var=yes"
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 eval "$as_ac_var=no"
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13101 ac_res=`eval echo '${'$as_ac_var'}'`
13102 { echo "$as_me:$LINENO: result: $ac_res" >&5
13103 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_var'}'` = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13116 case " $LIBOBJS " in
13117 *" backupfile.$ac_objext "* ) ;;
13118 *) LIBOBJS="$LIBOBJS backupfile.$ac_objext"
13135 case " $LIBOBJS " in
13136 *" basename.$ac_objext "* ) ;;
13137 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
13146 case " $LIBOBJS " in
13147 *" c-strtod.$ac_objext "* ) ;;
13148 *) LIBOBJS="$LIBOBJS c-strtod.$ac_objext"
13157 { echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
13158 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6; }
13159 if test "${gl_cv_func_c99_strtold+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 /* On HP-UX before 11.23, strtold returns a struct instead of
13169 long double. Reject implementations like that, by requiring
13170 compatibility with the C99 prototype. */
13171 #include <stdlib.h>
13172 static long double (*p) (char const *, char **) = strtold;
13174 test (char const *nptr, char **endptr)
13177 r = strtold (nptr, endptr);
13183 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203 { (case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_try") 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 gl_cv_func_c99_strtold=yes
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 gl_cv_func_c99_strtold=no
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13233 { echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
13234 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6; }
13235 if test $gl_cv_func_c99_strtold = yes; then
13237 cat >>confdefs.h <<\_ACEOF
13238 #define HAVE_C99_STRTOLD 1
13245 case " $LIBOBJS " in
13246 *" c-strtold.$ac_objext "* ) ;;
13247 *) LIBOBJS="$LIBOBJS c-strtold.$ac_objext"
13256 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
13257 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
13258 if test "${gl_cv_c_restrict+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 gl_cv_c_restrict=no
13262 # Try the official restrict keyword, then gcc's __restrict, and
13263 # the less common variants.
13264 for ac_kw in restrict __restrict __restrict__ _Restrict; do
13265 cat >conftest.$ac_ext <<_ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 gl_cv_c_restrict=$ac_kw; break
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 { echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
13320 echo "${ECHO_T}$gl_cv_c_restrict" >&6; }
13321 case $gl_cv_c_restrict in
13324 cat >>confdefs.h <<\_ACEOF
13328 *) cat >>confdefs.h <<_ACEOF
13329 #define restrict $gl_cv_c_restrict
13343 if test $ac_cv_header_sys_socket_h = yes; then
13348 for ac_header in winsock2.h ws2tcpip.h
13350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_res=`eval echo '${'$as_ac_Header'}'`
13358 { echo "$as_me:$LINENO: result: $ac_res" >&5
13359 echo "${ECHO_T}$ac_res" >&6; }
13361 # Is the header compilable?
13362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 $ac_includes_default
13371 #include <$ac_header>
13373 rm -f conftest.$ac_objext
13374 if { (ac_try="$ac_compile"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_header_compiler=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_header_compiler=no
13415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13417 echo "${ECHO_T}$ac_header_compiler" >&6; }
13419 # Is the header present?
13420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 #include <$ac_header>
13430 if { (ac_try="$ac_cpp conftest.$ac_ext"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } >/dev/null; then
13443 if test -s conftest.err; then
13444 ac_cpp_err=$ac_c_preproc_warn_flag
13445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13452 if test -z "$ac_cpp_err"; then
13453 ac_header_preproc=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_preproc=no
13461 rm -f conftest.err conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13463 echo "${ECHO_T}$ac_header_preproc" >&6; }
13465 # So? What about this header?
13466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13472 ac_header_preproc=yes
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13488 ## ------------------------------------ ##
13489 ## Report this to bug-coreutils@gnu.org ##
13490 ## ------------------------------------ ##
13492 ) | sed "s/^/$as_me: WARNING: /" >&2
13495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 eval "$as_ac_Header=\$ac_header_preproc"
13502 ac_res=`eval echo '${'$as_ac_Header'}'`
13503 { echo "$as_me:$LINENO: result: $ac_res" >&5
13504 echo "${ECHO_T}$ac_res" >&6; }
13507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13516 SYS_SOCKET_H='sys/socket.h'
13531 { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
13532 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
13533 if test "${gl_cv_socket_ipv4+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
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 #ifdef HAVE_SYS_SOCKET_H
13544 #include <sys/socket.h>
13546 #ifdef HAVE_NETINET_IN_H
13547 #include <netinet/in.h>
13549 #ifdef HAVE_WINSOCK2_H
13550 #include <winsock2.h>
13555 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_compile") 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_try") 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 gl_cv_socket_ipv4=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 gl_cv_socket_ipv4=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
13606 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
13607 if test $gl_cv_socket_ipv4 = yes; then
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_IPV4 1
13615 { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
13616 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
13617 if test "${gl_cv_socket_ipv6+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 #include <sys/types.h>
13627 #ifdef HAVE_SYS_SOCKET_H
13628 #include <sys/socket.h>
13630 #ifdef HAVE_NETINET_IN_H
13631 #include <netinet/in.h>
13633 #ifdef HAVE_WINSOCK2_H
13634 #include <winsock2.h>
13639 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
13644 rm -f conftest.$ac_objext
13645 if { (ac_try="$ac_compile"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
13653 grep -v '^ *+' conftest.er1 >conftest.err
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 gl_cv_socket_ipv6=yes
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 gl_cv_socket_ipv6=no
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
13690 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
13691 if test $gl_cv_socket_ipv6 = yes; then
13693 cat >>confdefs.h <<\_ACEOF
13694 #define HAVE_IPV6 1
13702 { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13703 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13705 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
13706 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13724 char getaddrinfo ();
13728 return getaddrinfo ();
13733 for ac_lib in '' nsl socket; do
13734 if test -z "$ac_lib"; then
13735 ac_res="none required"
13738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_link") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest$ac_exeext'
13765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_search_getaddrinfo=$ac_res
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13782 rm -f core conftest.err conftest.$ac_objext \
13784 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13788 if test "${ac_cv_search_getaddrinfo+set}" = set; then
13791 ac_cv_search_getaddrinfo=no
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
13797 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
13798 ac_res=$ac_cv_search_getaddrinfo
13799 if test "$ac_res" != no; then
13800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13805 for ac_func in getaddrinfo
13807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13821 #define $ac_func innocuous_$ac_func
13823 /* System header to define __stub macros and hopefully few prototypes,
13824 which can conflict with char $ac_func (); below.
13825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 <limits.h> exists even on freestanding compilers. */
13829 # include <limits.h>
13831 # include <assert.h>
13836 /* Override any GCC internal prototype to avoid an error.
13837 Use char because int might match the return type of a GCC
13838 builtin and then its argument prototype would still apply. */
13843 /* The GNU C library defines this for functions which it implements
13844 to always fail with ENOSYS. Some functions are actually named
13845 something starting with __ and the normal name is an alias. */
13846 #if defined __stub_$ac_func || defined __stub___$ac_func
13853 return $ac_func ();
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_link") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest$ac_exeext'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_var=yes"
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_var=no"
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13903 ac_res=`eval echo '${'$as_ac_var'}'`
13904 { echo "$as_me:$LINENO: result: $ac_res" >&5
13905 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_var'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13914 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
13915 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 gl_cv_w32_getaddrinfo=no
13920 am_save_LIBS="$LIBS"
13921 LIBS="$LIBS -lws2_32"
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13929 #ifdef HAVE_WS2TCPIP_H
13930 #include <ws2tcpip.h>
13936 getaddrinfo(0, 0, 0, 0);
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 gl_cv_w32_getaddrinfo=yes
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985 LIBS="$am_save_LIBS"
13987 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
13988 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
13989 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13990 LIBS="$LIBS -lws2_32"
13992 case " $LIBOBJS " in
13993 *" getaddrinfo.$ac_objext "* ) ;;
13994 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
14005 for ac_func in gai_strerror
14007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14021 #define $ac_func innocuous_$ac_func
14023 /* System header to define __stub macros and hopefully few prototypes,
14024 which can conflict with char $ac_func (); below.
14025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14026 <limits.h> exists even on freestanding compilers. */
14029 # include <limits.h>
14031 # include <assert.h>
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14043 /* The GNU C library defines this for functions which it implements
14044 to always fail with ENOSYS. Some functions are actually named
14045 something starting with __ and the normal name is an alias. */
14046 #if defined __stub_$ac_func || defined __stub___$ac_func
14053 return $ac_func ();
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 eval "$as_ac_var=yes"
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 eval "$as_ac_var=no"
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14103 ac_res=`eval echo '${'$as_ac_var'}'`
14104 { echo "$as_me:$LINENO: result: $ac_res" >&5
14105 echo "${ECHO_T}$ac_res" >&6; }
14106 if test `eval echo '${'$as_ac_var'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14112 case " $LIBOBJS " in
14113 *" $ac_func.$ac_objext "* ) ;;
14114 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14123 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14124 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
14125 if test "${ac_cv_search_gethostbyname+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 ac_func_search_save_LIBS=$LIBS
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14142 char gethostbyname ();
14146 return gethostbyname ();
14151 for ac_lib in '' inet nsl; do
14152 if test -z "$ac_lib"; then
14153 ac_res="none required"
14156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_try") 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_try") 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_cv_search_gethostbyname=$ac_res
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14200 rm -f core conftest.err conftest.$ac_objext \
14202 if test "${ac_cv_search_gethostbyname+set}" = set; then
14206 if test "${ac_cv_search_gethostbyname+set}" = set; then
14209 ac_cv_search_gethostbyname=no
14211 rm conftest.$ac_ext
14212 LIBS=$ac_func_search_save_LIBS
14214 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
14215 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
14216 ac_res=$ac_cv_search_gethostbyname
14217 if test "$ac_res" != no; then
14218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222 { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
14223 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
14224 if test "${ac_cv_search_getservbyname+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 ac_func_search_save_LIBS=$LIBS
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14235 /* Override any GCC internal prototype to avoid an error.
14236 Use char because int might match the return type of a GCC
14237 builtin and then its argument prototype would still apply. */
14241 char getservbyname ();
14245 return getservbyname ();
14250 for ac_lib in '' inet nsl socket xnet; do
14251 if test -z "$ac_lib"; then
14252 ac_res="none required"
14255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (ac_try="$ac_link"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_link") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest$ac_exeext'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_search_getservbyname=$ac_res
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14299 rm -f core conftest.err conftest.$ac_objext \
14301 if test "${ac_cv_search_getservbyname+set}" = set; then
14305 if test "${ac_cv_search_getservbyname+set}" = set; then
14308 ac_cv_search_getservbyname=no
14310 rm conftest.$ac_ext
14311 LIBS=$ac_func_search_save_LIBS
14313 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
14314 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
14315 ac_res=$ac_cv_search_getservbyname
14316 if test "$ac_res" != no; then
14317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14322 for ac_func in gethostbyname
14324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14338 #define $ac_func innocuous_$ac_func
14340 /* System header to define __stub macros and hopefully few prototypes,
14341 which can conflict with char $ac_func (); below.
14342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343 <limits.h> exists even on freestanding compilers. */
14346 # include <limits.h>
14348 # include <assert.h>
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14360 /* The GNU C library defines this for functions which it implements
14361 to always fail with ENOSYS. Some functions are actually named
14362 something starting with __ and the normal name is an alias. */
14363 #if defined __stub_$ac_func || defined __stub___$ac_func
14370 return $ac_func ();
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; } &&
14399 { ac_try='test -s conftest$ac_exeext'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 eval "$as_ac_var=yes"
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 eval "$as_ac_var=no"
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14420 ac_res=`eval echo '${'$as_ac_var'}'`
14421 { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14423 if test `eval echo '${'$as_ac_var'}'` = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14430 { echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14431 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6; }
14432 if test "${gl_cv_w32_gethostbyname+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 gl_cv_w32_gethostbyname=no
14437 am_save_LIBS="$LIBS"
14438 LIBS="$LIBS -lws2_32"
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14446 #ifdef HAVE_WINSOCK2_H
14447 #include <winsock2.h>
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_link") 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_try") 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 gl_cv_w32_gethostbyname=yes
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS="$am_save_LIBS"
14504 { echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
14505 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6; }
14506 if test "$gl_cv_w32_gethostbyname" = "yes"; then
14507 LIBS="$LIBS -lws2_32"
14526 { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
14527 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
14528 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14538 /* sys/types.h is not needed according to POSIX, but the
14539 sys/socket.h in i386-unknown-freebsd4.10 and
14540 powerpc-apple-darwin5.5 required it. */
14541 #include <sys/types.h>
14542 #ifdef HAVE_SYS_SOCKET_H
14543 #include <sys/socket.h>
14545 #ifdef HAVE_NETDB_H
14548 #ifdef HAVE_WS2TCPIP_H
14549 #include <ws2tcpip.h>
14556 #ifndef getaddrinfo
14557 char *p = (char *) getaddrinfo;
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_compile") 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest.$ac_objext'
14590 { (case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_try") 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_cv_have_decl_getaddrinfo=yes
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_cv_have_decl_getaddrinfo=no
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
14610 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
14611 if test $ac_cv_have_decl_getaddrinfo = yes; then
14613 cat >>confdefs.h <<_ACEOF
14614 #define HAVE_DECL_GETADDRINFO 1
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_GETADDRINFO 0
14625 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
14626 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
14627 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14637 /* sys/types.h is not needed according to POSIX, but the
14638 sys/socket.h in i386-unknown-freebsd4.10 and
14639 powerpc-apple-darwin5.5 required it. */
14640 #include <sys/types.h>
14641 #ifdef HAVE_SYS_SOCKET_H
14642 #include <sys/socket.h>
14644 #ifdef HAVE_NETDB_H
14647 #ifdef HAVE_WS2TCPIP_H
14648 #include <ws2tcpip.h>
14655 #ifndef freeaddrinfo
14656 char *p = (char *) freeaddrinfo;
14664 rm -f conftest.$ac_objext
14665 if { (ac_try="$ac_compile"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679 { (case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_try") 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_have_decl_freeaddrinfo=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_have_decl_freeaddrinfo=no
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
14709 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
14710 if test $ac_cv_have_decl_freeaddrinfo = yes; then
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_DECL_FREEADDRINFO 1
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_FREEADDRINFO 0
14724 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
14725 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
14726 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14736 /* sys/types.h is not needed according to POSIX, but the
14737 sys/socket.h in i386-unknown-freebsd4.10 and
14738 powerpc-apple-darwin5.5 required it. */
14739 #include <sys/types.h>
14740 #ifdef HAVE_SYS_SOCKET_H
14741 #include <sys/socket.h>
14743 #ifdef HAVE_NETDB_H
14746 #ifdef HAVE_WS2TCPIP_H
14747 #include <ws2tcpip.h>
14754 #ifndef gai_strerror
14755 char *p = (char *) gai_strerror;
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_compile") 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778 { (case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_try") 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_try") 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_have_decl_gai_strerror=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_have_decl_gai_strerror=no
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
14808 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
14809 if test $ac_cv_have_decl_gai_strerror = yes; then
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_DECL_GAI_STRERROR 1
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_DECL_GAI_STRERROR 0
14823 { echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
14824 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6; }
14825 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14835 /* sys/types.h is not needed according to POSIX, but the
14836 sys/socket.h in i386-unknown-freebsd4.10 and
14837 powerpc-apple-darwin5.5 required it. */
14838 #include <sys/types.h>
14839 #ifdef HAVE_SYS_SOCKET_H
14840 #include <sys/socket.h>
14842 #ifdef HAVE_NETDB_H
14845 #ifdef HAVE_WS2TCPIP_H
14846 #include <ws2tcpip.h>
14853 #ifndef getnameinfo
14854 char *p = (char *) getnameinfo;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
14871 grep -v '^ *+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest.$ac_objext'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_cv_have_decl_getnameinfo=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_have_decl_getnameinfo=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
14907 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6; }
14908 if test $ac_cv_have_decl_getnameinfo = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_DECL_GETNAMEINFO 1
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE_DECL_GETNAMEINFO 0
14924 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14925 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14926 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 #include <sys/types.h>
14937 #ifdef HAVE_SYS_SOCKET_H
14938 #include <sys/socket.h>
14940 #ifdef HAVE_NETDB_H
14943 #ifdef HAVE_WS2TCPIP_H
14944 #include <ws2tcpip.h>
14948 typedef struct addrinfo ac__type_new_;
14952 if ((ac__type_new_ *) 0)
14954 if (sizeof (ac__type_new_))
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_compile") 2>conftest.er1
14969 grep -v '^ *+' conftest.er1 >conftest.err
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975 { (case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_try") 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest.$ac_objext'
14985 { (case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_try") 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_type_struct_addrinfo=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_type_struct_addrinfo=no
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15005 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15006 if test $ac_cv_type_struct_addrinfo = yes; then
15008 cat >>confdefs.h <<_ACEOF
15009 #define HAVE_STRUCT_ADDRINFO 1
15019 case " $LIBOBJS " in
15020 *" canon-host.$ac_objext "* ) ;;
15021 *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
15031 case " $LIBOBJS " in
15032 *" cloexec.$ac_objext "* ) ;;
15033 *) LIBOBJS="$LIBOBJS cloexec.$ac_objext"
15040 case " $LIBOBJS " in
15041 *" closeout.$ac_objext "* ) ;;
15042 *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
15051 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
15052 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
15053 if test "${ac_cv_double_slash_root+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 if test x"$cross_compiling" = xyes ; then
15057 # When cross-compiling, there is no way to tell whether // is special
15058 # short of a list of hosts. However, the only known hosts to date
15059 # that have a distinct // are Apollo DomainOS (too old to port to)
15060 # and Cygwin. If anyone knows of another system for which // has
15061 # special semantics and is distinct from /, please report it to
15062 # <bug-coreutils@gnu.org>.
15065 ac_cv_double_slash_root=yes ;;
15067 # Be optimistic and assume that / and // are the same when we
15069 ac_cv_double_slash_root='unknown, assuming no' ;;
15072 set x `ls -di / //`
15073 if test $2 = $4; then
15074 ac_cv_double_slash_root=no
15076 ac_cv_double_slash_root=yes
15080 { echo "$as_me:$LINENO: result: $ac_cv_double_slash_root" >&5
15081 echo "${ECHO_T}$ac_cv_double_slash_root" >&6; }
15082 if test x"$ac_cv_double_slash_root" = xyes; then
15083 ac_double_slash_root=1
15085 ac_double_slash_root=0
15089 cat >>confdefs.h <<_ACEOF
15090 #define DOUBLE_SLASH_IS_DISTINCT_ROOT $ac_double_slash_root
15096 case " $LIBOBJS " in
15097 *" dirname.$ac_objext "* ) ;;
15098 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
15107 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
15108 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 $ac_includes_default
15123 char *p = (char *) strerror_r;
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_have_decl_strerror_r=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_have_decl_strerror_r=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
15176 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
15177 if test $ac_cv_have_decl_strerror_r = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_DECL_STRERROR_R 1
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_R 0
15194 for ac_func in strerror_r
15196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15210 #define $ac_func innocuous_$ac_func
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char $ac_func (); below.
15214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15215 <limits.h> exists even on freestanding compilers. */
15218 # include <limits.h>
15220 # include <assert.h>
15225 /* Override any GCC internal prototype to avoid an error.
15226 Use char because int might match the return type of a GCC
15227 builtin and then its argument prototype would still apply. */
15232 /* The GNU C library defines this for functions which it implements
15233 to always fail with ENOSYS. Some functions are actually named
15234 something starting with __ and the normal name is an alias. */
15235 #if defined __stub_$ac_func || defined __stub___$ac_func
15242 return $ac_func ();
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 eval "$as_ac_var=yes"
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 eval "$as_ac_var=no"
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15292 ac_res=`eval echo '${'$as_ac_var'}'`
15293 { echo "$as_me:$LINENO: result: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_var'}'` = yes; then
15296 cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15303 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15304 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
15305 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 ac_cv_func_strerror_r_char_p=no
15310 if test $ac_cv_have_decl_strerror_r = yes; then
15311 cat >conftest.$ac_ext <<_ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15323 char x = *strerror_r (0, buf, sizeof buf);
15324 char *p = strerror_r (0, buf, sizeof buf);
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_try") 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_cv_func_strerror_r_char_p=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 # strerror_r is not declared. Choose between
15376 # systems that have relatively inaccessible declarations for the
15377 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15378 # former has a strerror_r that returns char*, while the latter
15379 # has a strerror_r that returns `int'.
15380 # This test should segfault on the DEC system.
15381 if test "$cross_compiling" = yes; then
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 $ac_includes_default
15391 extern char *strerror_r ();
15396 char x = *strerror_r (0, buf, sizeof buf);
15397 return ! isalpha (x);
15402 rm -f conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_func_strerror_r_char_p=yes
15424 echo "$as_me: program exited with status $ac_status" >&5
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15436 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15437 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
15438 if test $ac_cv_func_strerror_r_char_p = yes; then
15440 cat >>confdefs.h <<\_ACEOF
15441 #define STRERROR_R_CHAR_P 1
15447 { echo "$as_me:$LINENO: checking for error_at_line" >&5
15448 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
15449 if test "${ac_cv_lib_error_at_line+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 $ac_includes_default
15462 error_at_line (0, 0, "", 0, "");
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_link") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15482 { (case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487 (eval "$ac_try") 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest$ac_exeext'
15492 { (case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_try") 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_cv_lib_error_at_line=yes
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_cv_lib_error_at_line=no
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15512 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
15513 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
15514 if test $ac_cv_lib_error_at_line = no; then
15515 case " $LIBOBJS " in
15516 *" error.$ac_objext "* ) ;;
15517 *) LIBOBJS="$LIBOBJS error.$ac_objext"
15530 case " $LIBOBJS " in
15531 *" exclude.$ac_objext "* ) ;;
15532 *) LIBOBJS="$LIBOBJS exclude.$ac_objext"
15539 case " $LIBOBJS " in
15540 *" exitfail.$ac_objext "* ) ;;
15541 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
15550 case " $LIBOBJS " in
15551 *" open-safer.$ac_objext "* ) ;;
15552 *) LIBOBJS="$LIBOBJS open-safer.$ac_objext"
15556 case " $LIBOBJS " in
15557 *" creat-safer.$ac_objext "* ) ;;
15558 *) LIBOBJS="$LIBOBJS creat-safer.$ac_objext"
15565 case " $LIBOBJS " in
15566 *" fd-reopen.$ac_objext "* ) ;;
15567 *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
15573 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15574 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
15575 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 $ac_includes_default
15588 static struct stat ac_aggr;
15589 if (ac_aggr.st_blocks)
15595 rm -f conftest.$ac_objext
15596 if { (ac_try="$ac_compile"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_compile") 2>conftest.er1
15604 grep -v '^ *+' conftest.er1 >conftest.err
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; } &&
15619 { ac_try='test -s conftest.$ac_objext'
15620 { (case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_try") 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_member_struct_stat_st_blocks=yes
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15644 static struct stat ac_aggr;
15645 if (sizeof ac_aggr.st_blocks)
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_cv_member_struct_stat_st_blocks=yes
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 ac_cv_member_struct_stat_st_blocks=no
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15699 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
15700 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_ST_BLOCKS 1
15712 case " $LIBOBJS " in
15713 *" fileblocks.$ac_objext "* ) ;;
15714 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
15721 if test $ac_cv_member_struct_stat_st_blocks = no; then
15733 { echo "$as_me:$LINENO: checking whether strmode is declared" >&5
15734 echo $ECHO_N "checking whether strmode is declared... $ECHO_C" >&6; }
15735 if test "${ac_cv_have_decl_strmode+set}" = set; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 $ac_includes_default
15749 char *p = (char *) strmode;
15757 rm -f conftest.$ac_objext
15758 if { (ac_try="$ac_compile"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_compile") 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15772 { (case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_try") 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_have_decl_strmode=yes
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_cv_have_decl_strmode=no
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
15802 echo "${ECHO_T}$ac_cv_have_decl_strmode" >&6; }
15803 if test $ac_cv_have_decl_strmode = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define HAVE_DECL_STRMODE 1
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_DECL_STRMODE 0
15821 case " $LIBOBJS " in
15822 *" filemode.$ac_objext "* ) ;;
15823 *) LIBOBJS="$LIBOBJS filemode.$ac_objext"
15836 case " $LIBOBJS " in
15837 *" filenamecat.$ac_objext "* ) ;;
15838 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
15852 case " $LIBOBJS " in
15853 *" file-type.$ac_objext "* ) ;;
15854 *) LIBOBJS="$LIBOBJS file-type.$ac_objext"
15879 for ac_header in sys/mount.h
15881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #if HAVE_SYS_PARAM_H
15895 #include <sys/param.h>
15898 #include <$ac_header>
15900 rm -f conftest.$ac_objext
15901 if { (ac_try="$ac_compile"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_compile") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest.$ac_objext'
15925 { (case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_try") 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 eval "$as_ac_Header=yes"
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 eval "$as_ac_Header=no"
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 ac_res=`eval echo '${'$as_ac_Header'}'`
15945 { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15958 echo "checking how to get file system space usage..."
15959 ac_fsusage_space=no
15961 # Perform only the link test since it seems there are no variants of the
15962 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
15963 # because that got a false positive on SCO OSR5. Adding the declaration
15964 # of a `struct statvfs' causes this test to fail (as it should) on such
15965 # systems. That system is reported to work fine with STAT_STATFS4 which
15966 # is what it gets when this test fails.
15967 if test $ac_fsusage_space = no; then
15969 { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
15970 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
15971 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 #include <sys/types.h>
15982 Do not use statvfs on systems with GNU libc, because that function stats
15983 all preceding entries in /proc/mounts, and that makes df hang if even
15984 one of the corresponding file systems is hard-mounted, but not available.
15986 #include <sys/statvfs.h>
15990 struct statvfs fsd; statvfs (0, &fsd);
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_link") 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010 { (case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_try") 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest$ac_exeext'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 fu_cv_sys_stat_statvfs=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 fu_cv_sys_stat_statvfs=no
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16040 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
16041 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
16042 if test $fu_cv_sys_stat_statvfs = yes; then
16043 ac_fsusage_space=yes
16045 cat >>confdefs.h <<\_ACEOF
16046 #define STAT_STATVFS 1
16052 if test $ac_fsusage_space = no; then
16053 # DEC Alpha running OSF/1
16054 { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
16055 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
16056 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 if test "$cross_compiling" = yes; then
16060 fu_cv_sys_stat_statfs3_osf1=no
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 #include <sys/param.h>
16070 #include <sys/types.h>
16071 #include <sys/mount.h>
16077 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
16080 rm -f conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_link") 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 fu_cv_sys_stat_statfs3_osf1=yes
16102 echo "$as_me: program exited with status $ac_status" >&5
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ( exit $ac_status )
16107 fu_cv_sys_stat_statfs3_osf1=no
16109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16115 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
16116 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
16117 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
16118 ac_fsusage_space=yes
16120 cat >>confdefs.h <<\_ACEOF
16121 #define STAT_STATFS3_OSF1 1
16127 if test $ac_fsusage_space = no; then
16129 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
16130 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
16131 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 if test "$cross_compiling" = yes; then
16135 fu_cv_sys_stat_statfs2_bsize=no
16137 cat >conftest.$ac_ext <<_ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16144 #ifdef HAVE_SYS_PARAM_H
16145 #include <sys/param.h>
16147 #ifdef HAVE_SYS_MOUNT_H
16148 #include <sys/mount.h>
16150 #ifdef HAVE_SYS_VFS_H
16151 #include <sys/vfs.h>
16158 return statfs (".", &fsd) != 0;
16161 rm -f conftest$ac_exeext
16162 if { (ac_try="$ac_link"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_link") 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 fu_cv_sys_stat_statfs2_bsize=yes
16183 echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 ( exit $ac_status )
16188 fu_cv_sys_stat_statfs2_bsize=no
16190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
16197 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
16198 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
16199 ac_fsusage_space=yes
16201 cat >>confdefs.h <<\_ACEOF
16202 #define STAT_STATFS2_BSIZE 1
16208 if test $ac_fsusage_space = no; then
16210 { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
16211 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
16212 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 if test "$cross_compiling" = yes; then
16216 fu_cv_sys_stat_statfs4=no
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 #include <sys/types.h>
16225 #include <sys/statfs.h>
16230 return statfs (".", &fsd, sizeof fsd, 0) != 0;
16233 rm -f conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_link") 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16244 { (case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_try") 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 fu_cv_sys_stat_statfs4=yes
16255 echo "$as_me: program exited with status $ac_status" >&5
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ( exit $ac_status )
16260 fu_cv_sys_stat_statfs4=no
16262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
16269 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
16270 if test $fu_cv_sys_stat_statfs4 = yes; then
16271 ac_fsusage_space=yes
16273 cat >>confdefs.h <<\_ACEOF
16274 #define STAT_STATFS4 1
16280 if test $ac_fsusage_space = no; then
16281 # 4.4BSD and NetBSD
16282 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
16283 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
16284 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 if test "$cross_compiling" = yes; then
16288 fu_cv_sys_stat_statfs2_fsize=no
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <sys/types.h>
16297 #ifdef HAVE_SYS_PARAM_H
16298 #include <sys/param.h>
16300 #ifdef HAVE_SYS_MOUNT_H
16301 #include <sys/mount.h>
16308 return statfs (".", &fsd) != 0;
16311 rm -f conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16322 { (case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_try") 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 fu_cv_sys_stat_statfs2_fsize=yes
16333 echo "$as_me: program exited with status $ac_status" >&5
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ( exit $ac_status )
16338 fu_cv_sys_stat_statfs2_fsize=no
16340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16346 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
16347 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
16348 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
16349 ac_fsusage_space=yes
16351 cat >>confdefs.h <<\_ACEOF
16352 #define STAT_STATFS2_FSIZE 1
16358 if test $ac_fsusage_space = no; then
16360 { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
16361 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
16362 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 if test "$cross_compiling" = yes; then
16366 fu_cv_sys_stat_fs_data=no
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <sys/types.h>
16375 #ifdef HAVE_SYS_PARAM_H
16376 #include <sys/param.h>
16378 #ifdef HAVE_SYS_MOUNT_H
16379 #include <sys/mount.h>
16381 #ifdef HAVE_SYS_FS_TYPES_H
16382 #include <sys/fs_types.h>
16387 struct fs_data fsd;
16388 /* Ultrix's statfs returns 1 for success,
16389 0 for not mounted, -1 for failure. */
16390 return statfs (".", &fsd) != 1;
16393 rm -f conftest$ac_exeext
16394 if { (ac_try="$ac_link"
16395 case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_link") 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16404 { (case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_try") 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 fu_cv_sys_stat_fs_data=yes
16415 echo "$as_me: program exited with status $ac_status" >&5
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ( exit $ac_status )
16420 fu_cv_sys_stat_fs_data=no
16422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16428 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
16429 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
16430 if test $fu_cv_sys_stat_fs_data = yes; then
16431 ac_fsusage_space=yes
16433 cat >>confdefs.h <<\_ACEOF
16434 #define STAT_STATFS2_FS_DATA 1
16440 if test $ac_fsusage_space = no; then
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 #include <sys/filsys.h>
16451 if { (ac_try="$ac_cpp conftest.$ac_ext"
16452 case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16459 grep -v '^ *+' conftest.er1 >conftest.err
16461 cat conftest.err >&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } >/dev/null; then
16464 if test -s conftest.err; then
16465 ac_cpp_err=$ac_c_preproc_warn_flag
16466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16473 if test -z "$ac_cpp_err"; then
16475 cat >>confdefs.h <<\_ACEOF
16476 #define STAT_READ_FILSYS 1
16479 ac_fsusage_space=yes
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16487 rm -f conftest.err conftest.$ac_ext
16490 if test $ac_fsusage_space = yes; then
16498 if test $gl_cv_fs_space = yes; then
16499 case " $LIBOBJS " in
16500 *" fsusage.$ac_objext "* ) ;;
16501 *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
16512 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
16514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 ac_res=`eval echo '${'$as_ac_Header'}'`
16522 { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16525 # Is the header compilable?
16526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 $ac_includes_default
16535 #include <$ac_header>
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_header_compiler=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_header_compiler=no
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 #include <$ac_header>
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev/null; then
16607 if test -s conftest.err; then
16608 ac_cpp_err=$ac_c_preproc_warn_flag
16609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16616 if test -z "$ac_cpp_err"; then
16617 ac_header_preproc=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_header_preproc=no
16625 rm -f conftest.err conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6; }
16629 # So? What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636 ac_header_preproc=yes
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16652 ## ------------------------------------ ##
16653 ## Report this to bug-coreutils@gnu.org ##
16654 ## ------------------------------------ ##
16656 ) | sed "s/^/$as_me: WARNING: /" >&2
16659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 eval "$as_ac_Header=\$ac_header_preproc"
16666 ac_res=`eval echo '${'$as_ac_Header'}'`
16667 { echo "$as_me:$LINENO: result: $ac_res" >&5
16668 echo "${ECHO_T}$ac_res" >&6; }
16671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16681 { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
16682 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
16683 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 #if !defined(sun) && !defined(__sun)
16694 choke -- this is a workaround for a Sun-specific problem
16696 #include <sys/types.h>
16697 #include <sys/vfs.h>
16701 struct statfs t; long c = *(t.f_spare);
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_compile") 2>conftest.er1
16715 grep -v '^ *+' conftest.er1 >conftest.err
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721 { (case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_try") 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 fu_cv_sys_truncating_statfs=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 fu_cv_sys_truncating_statfs=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 if test $fu_cv_sys_truncating_statfs = yes; then
16753 cat >>confdefs.h <<\_ACEOF
16754 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
16758 { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
16759 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
16766 for ac_func in atexit
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define $ac_func innocuous_$ac_func
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char $ac_func (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16790 # include <limits.h>
16792 # include <assert.h>
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16804 /* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807 #if defined __stub_$ac_func || defined __stub___$ac_func
16814 return $ac_func ();
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 eval "$as_ac_var=yes"
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no"
16861 rm -f core conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16873 case " $LIBOBJS " in
16874 *" $ac_func.$ac_objext "* ) ;;
16875 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16883 if test $ac_cv_func_atexit = no; then
16891 for ac_func in dup2
16893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907 #define $ac_func innocuous_$ac_func
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
16915 # include <limits.h>
16917 # include <assert.h>
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 return $ac_func ();
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
16958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest$ac_exeext'
16969 { (case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_try") 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 eval "$as_ac_var=yes"
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 eval "$as_ac_var=no"
16986 rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16989 ac_res=`eval echo '${'$as_ac_var'}'`
16990 { echo "$as_me:$LINENO: result: $ac_res" >&5
16991 echo "${ECHO_T}$ac_res" >&6; }
16992 if test `eval echo '${'$as_ac_var'}'` = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 case " $LIBOBJS " in
16999 *" $ac_func.$ac_objext "* ) ;;
17000 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17013 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
17014 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
17015 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 if test "$cross_compiling" = yes; then
17019 ac_cv_func_fnmatch_gnu=cross
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17028 # include <stdlib.h>
17029 # include <fnmatch.h>
17030 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17031 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17033 fnm (char const *pattern, char const *string, int flags)
17035 return fnmatch (pattern, string, flags);
17042 (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH
17043 && y ("a*", "abc", 0)
17044 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17045 && y ("a\\\\bc", "abc", 0)
17046 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17047 && y ("*x", ".x", 0)
17048 && n ("*x", ".x", FNM_PERIOD)
17049 && y ("xxXX", "xXxX", FNM_CASEFOLD)
17050 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
17051 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
17052 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
17053 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
17054 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
17059 rm -f conftest$ac_exeext
17060 if { (ac_try="$ac_link"
17061 case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_link") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_func_fnmatch_gnu=yes
17081 echo "$as_me: program exited with status $ac_status" >&5
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ( exit $ac_status )
17086 ac_cv_func_fnmatch_gnu=no
17088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
17094 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
17095 if test $ac_cv_func_fnmatch_gnu = yes; then
17096 rm -f lib/fnmatch.h
17098 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
17099 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
17100 if test "${ac_cv_have_decl_isblank+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17115 char *p = (char *) isblank;
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_have_decl_isblank=yes
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_cv_have_decl_isblank=no
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
17168 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
17169 if test $ac_cv_have_decl_isblank = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_DECL_ISBLANK 1
17177 cat >>confdefs.h <<_ACEOF
17178 #define HAVE_DECL_ISBLANK 0
17191 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
17193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17207 #define $ac_func innocuous_$ac_func
17209 /* System header to define __stub macros and hopefully few prototypes,
17210 which can conflict with char $ac_func (); below.
17211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17212 <limits.h> exists even on freestanding compilers. */
17215 # include <limits.h>
17217 # include <assert.h>
17222 /* Override any GCC internal prototype to avoid an error.
17223 Use char because int might match the return type of a GCC
17224 builtin and then its argument prototype would still apply. */
17229 /* The GNU C library defines this for functions which it implements
17230 to always fail with ENOSYS. Some functions are actually named
17231 something starting with __ and the normal name is an alias. */
17232 #if defined __stub_$ac_func || defined __stub___$ac_func
17239 return $ac_func ();
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17253 grep -v '^ *+' conftest.er1 >conftest.err
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest$ac_exeext'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 eval "$as_ac_var=yes"
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 eval "$as_ac_var=no"
17286 rm -f core conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17289 ac_res=`eval echo '${'$as_ac_var'}'`
17290 { echo "$as_me:$LINENO: result: $ac_res" >&5
17291 echo "${ECHO_T}$ac_res" >&6; }
17292 if test `eval echo '${'$as_ac_var'}'` = yes; then
17293 cat >>confdefs.h <<_ACEOF
17294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17302 for ac_header in wchar.h wctype.h
17304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_res=`eval echo '${'$as_ac_Header'}'`
17312 { echo "$as_me:$LINENO: result: $ac_res" >&5
17313 echo "${ECHO_T}$ac_res" >&6; }
17315 # Is the header compilable?
17316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 $ac_includes_default
17325 #include <$ac_header>
17327 rm -f conftest.$ac_objext
17328 if { (ac_try="$ac_compile"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_compile") 2>conftest.er1
17336 grep -v '^ *+' conftest.er1 >conftest.err
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_try") 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ac_header_compiler=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_header_compiler=no
17369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17371 echo "${ECHO_T}$ac_header_compiler" >&6; }
17373 # Is the header present?
17374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 #include <$ac_header>
17384 if { (ac_try="$ac_cpp conftest.$ac_ext"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } >/dev/null; then
17397 if test -s conftest.err; then
17398 ac_cpp_err=$ac_c_preproc_warn_flag
17399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17406 if test -z "$ac_cpp_err"; then
17407 ac_header_preproc=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_preproc=no
17415 rm -f conftest.err conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17417 echo "${ECHO_T}$ac_header_preproc" >&6; }
17419 # So? What about this header?
17420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17426 ac_header_preproc=yes
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17442 ## ------------------------------------ ##
17443 ## Report this to bug-coreutils@gnu.org ##
17444 ## ------------------------------------ ##
17446 ) | sed "s/^/$as_me: WARNING: /" >&2
17449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 eval "$as_ac_Header=\$ac_header_preproc"
17456 ac_res=`eval echo '${'$as_ac_Header'}'`
17457 { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17470 case " $LIBOBJS " in
17471 *" fnmatch.$ac_objext "* ) ;;
17472 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17476 FNMATCH_H=fnmatch.h
17481 if test $ac_cv_func_fnmatch_gnu != yes; then
17483 cat >>confdefs.h <<\_ACEOF
17484 #define fnmatch gnu_fnmatch
17492 for ac_func in gethostname
17494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508 #define $ac_func innocuous_$ac_func
17510 /* System header to define __stub macros and hopefully few prototypes,
17511 which can conflict with char $ac_func (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
17516 # include <limits.h>
17518 # include <assert.h>
17523 /* Override any GCC internal prototype to avoid an error.
17524 Use char because int might match the return type of a GCC
17525 builtin and then its argument prototype would still apply. */
17530 /* The GNU C library defines this for functions which it implements
17531 to always fail with ENOSYS. Some functions are actually named
17532 something starting with __ and the normal name is an alias. */
17533 #if defined __stub_$ac_func || defined __stub___$ac_func
17540 return $ac_func ();
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_try") 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest$ac_exeext'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 eval "$as_ac_var=yes"
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 eval "$as_ac_var=no"
17587 rm -f core conftest.err conftest.$ac_objext \
17588 conftest$ac_exeext conftest.$ac_ext
17590 ac_res=`eval echo '${'$as_ac_var'}'`
17591 { echo "$as_me:$LINENO: result: $ac_res" >&5
17592 echo "${ECHO_T}$ac_res" >&6; }
17593 if test `eval echo '${'$as_ac_var'}'` = yes; then
17594 cat >>confdefs.h <<_ACEOF
17595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17599 case " $LIBOBJS " in
17600 *" $ac_func.$ac_objext "* ) ;;
17601 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17609 if test $ac_cv_func_gethostname = no; then
17612 for ac_func in uname
17614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 cat >conftest.$ac_ext <<_ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17628 #define $ac_func innocuous_$ac_func
17630 /* System header to define __stub macros and hopefully few prototypes,
17631 which can conflict with char $ac_func (); below.
17632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633 <limits.h> exists even on freestanding compilers. */
17636 # include <limits.h>
17638 # include <assert.h>
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17650 /* The GNU C library defines this for functions which it implements
17651 to always fail with ENOSYS. Some functions are actually named
17652 something starting with __ and the normal name is an alias. */
17653 #if defined __stub_$ac_func || defined __stub___$ac_func
17660 return $ac_func ();
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_link") 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17680 { (case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_try") 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest$ac_exeext'
17690 { (case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_try") 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 eval "$as_ac_var=yes"
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 eval "$as_ac_var=no"
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17710 ac_res=`eval echo '${'$as_ac_var'}'`
17711 { echo "$as_me:$LINENO: result: $ac_res" >&5
17712 echo "${ECHO_T}$ac_res" >&6; }
17713 if test `eval echo '${'$as_ac_var'}'` = yes; then
17714 cat >>confdefs.h <<_ACEOF
17715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17724 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
17725 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
17726 if test "${ac_cv_have_decl_getdelim+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 $ac_includes_default
17740 char *p = (char *) getdelim;
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_have_decl_getdelim=yes
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_cv_have_decl_getdelim=no
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
17793 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
17794 if test $ac_cv_have_decl_getdelim = yes; then
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_GETDELIM 1
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_DECL_GETDELIM 0
17815 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
17816 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
17817 if test "${ac_cv_have_decl_getline+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 $ac_includes_default
17831 char *p = (char *) getline;
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_compile") 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest.$ac_objext'
17864 { (case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_try") 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_have_decl_getline=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_have_decl_getline=no
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
17884 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
17885 if test $ac_cv_have_decl_getline = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_DECL_GETLINE 1
17893 cat >>confdefs.h <<_ACEOF
17894 #define HAVE_DECL_GETLINE 0
17902 gl_getline_needs_run_time_check=no
17903 { echo "$as_me:$LINENO: checking for getline" >&5
17904 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
17905 if test "${ac_cv_func_getline+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
17915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17916 #define getline innocuous_getline
17918 /* System header to define __stub macros and hopefully few prototypes,
17919 which can conflict with char getline (); below.
17920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921 <limits.h> exists even on freestanding compilers. */
17924 # include <limits.h>
17926 # include <assert.h>
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17938 /* The GNU C library defines this for functions which it implements
17939 to always fail with ENOSYS. Some functions are actually named
17940 something starting with __ and the normal name is an alias. */
17941 #if defined __stub_getline || defined __stub___getline
17953 rm -f conftest.$ac_objext conftest$ac_exeext
17954 if { (ac_try="$ac_link"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_link") 2>conftest.er1
17962 grep -v '^ *+' conftest.er1 >conftest.err
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17968 { (case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_try") 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest$ac_exeext'
17978 { (case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_try") 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_func_getline=yes
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_cv_func_getline=no
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17998 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
17999 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
18000 if test $ac_cv_func_getline = yes; then
18001 gl_getline_needs_run_time_check=yes
18003 am_cv_func_working_getline=no
18006 if test $gl_getline_needs_run_time_check = yes; then
18007 { echo "$as_me:$LINENO: checking for working getline function" >&5
18008 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
18009 if test "${am_cv_func_working_getline+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
18013 if test "$cross_compiling" = yes; then
18014 am_cv_func_working_getline=no
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 # include <stdio.h>
18024 # include <stdlib.h>
18025 # include <string.h>
18027 { /* Based on a test program from Karl Heuer. */
18031 FILE *in = fopen ("./conftest.data", "r");
18034 len = getline (&line, &siz, in);
18035 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
18039 rm -f conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 am_cv_func_working_getline=yes
18061 echo "$as_me: program exited with status $ac_status" >&5
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ( exit $ac_status )
18066 am_cv_func_working_getline=no
18068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18073 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
18074 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
18077 if test $am_cv_func_working_getline = no; then
18079 cat >>confdefs.h <<\_ACEOF
18080 #define getline gnu_getline
18083 case " $LIBOBJS " in
18084 *" getline.$ac_objext "* ) ;;
18085 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
18097 for ac_func in getdelim
18099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define $ac_func innocuous_$ac_func
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char $ac_func (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18121 # include <limits.h>
18123 # include <assert.h>
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_$ac_func || defined __stub___$ac_func
18145 return $ac_func ();
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_link") 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_try") 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 eval "$as_ac_var=yes"
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 eval "$as_ac_var=no"
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18195 ac_res=`eval echo '${'$as_ac_var'}'`
18196 { echo "$as_me:$LINENO: result: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18198 if test `eval echo '${'$as_ac_var'}'` = yes; then
18199 cat >>confdefs.h <<_ACEOF
18200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18204 case " $LIBOBJS " in
18205 *" $ac_func.$ac_objext "* ) ;;
18206 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18219 if test $ac_cv_func_getdelim = no; then
18223 for ac_func in flockfile funlockfile
18225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18239 #define $ac_func innocuous_$ac_func
18241 /* System header to define __stub macros and hopefully few prototypes,
18242 which can conflict with char $ac_func (); below.
18243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18244 <limits.h> exists even on freestanding compilers. */
18247 # include <limits.h>
18249 # include <assert.h>
18254 /* Override any GCC internal prototype to avoid an error.
18255 Use char because int might match the return type of a GCC
18256 builtin and then its argument prototype would still apply. */
18261 /* The GNU C library defines this for functions which it implements
18262 to always fail with ENOSYS. Some functions are actually named
18263 something starting with __ and the normal name is an alias. */
18264 #if defined __stub_$ac_func || defined __stub___$ac_func
18271 return $ac_func ();
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_link") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 eval "$as_ac_var=yes"
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 eval "$as_ac_var=no"
18318 rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18321 ac_res=`eval echo '${'$as_ac_var'}'`
18322 { echo "$as_me:$LINENO: result: $ac_res" >&5
18323 echo "${ECHO_T}$ac_res" >&6; }
18324 if test `eval echo '${'$as_ac_var'}'` = yes; then
18325 cat >>confdefs.h <<_ACEOF
18326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18338 ac_have_func=no # yes means we've found a way to get the load average.
18340 # Make sure getloadavg.c is where it belongs, at configure-time.
18341 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18342 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18343 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18344 { (exit 1); exit 1; }; }
18348 # Check for getloadavg, but be sure not to touch the cache variable.
18349 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
18350 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
18351 if test "${ac_cv_func_getloadavg+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18362 #define getloadavg innocuous_getloadavg
18364 /* System header to define __stub macros and hopefully few prototypes,
18365 which can conflict with char getloadavg (); below.
18366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18367 <limits.h> exists even on freestanding compilers. */
18370 # include <limits.h>
18372 # include <assert.h>
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18383 char getloadavg ();
18384 /* The GNU C library defines this for functions which it implements
18385 to always fail with ENOSYS. Some functions are actually named
18386 something starting with __ and the normal name is an alias. */
18387 #if defined __stub_getloadavg || defined __stub___getloadavg
18394 return getloadavg ();
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_link") 2>conftest.er1
18408 grep -v '^ *+' conftest.er1 >conftest.err
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 ac_cv_func_getloadavg=yes
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_cv_func_getloadavg=no
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18444 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18445 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
18446 if test $ac_cv_func_getloadavg = yes; then
18451 ) && ac_have_func=yes
18453 # On HPUX9, an unprivileged user can get load averages through this function.
18455 for ac_func in pstat_getdynamic
18457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18471 #define $ac_func innocuous_$ac_func
18473 /* System header to define __stub macros and hopefully few prototypes,
18474 which can conflict with char $ac_func (); below.
18475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 <limits.h> exists even on freestanding compilers. */
18479 # include <limits.h>
18481 # include <assert.h>
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18493 /* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496 #if defined __stub_$ac_func || defined __stub___$ac_func
18503 return $ac_func ();
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 eval "$as_ac_var=yes"
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 eval "$as_ac_var=no"
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 ac_res=`eval echo '${'$as_ac_var'}'`
18554 { echo "$as_me:$LINENO: result: $ac_res" >&5
18555 echo "${ECHO_T}$ac_res" >&6; }
18556 if test `eval echo '${'$as_ac_var'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18565 # Solaris has libkstat which does not require root.
18567 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18568 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lkstat $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18587 char kstat_open ();
18591 return kstat_open ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest$ac_exeext'
18621 { (case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_try") 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_lib_kstat_kstat_open=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_kstat_kstat_open=no
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18643 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
18644 if test $ac_cv_lib_kstat_kstat_open = yes; then
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_LIBKSTAT 1
18649 LIBS="-lkstat $LIBS"
18653 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18655 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18656 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18657 # to get the right answer into the cache.
18658 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18659 if test $ac_have_func = no; then
18660 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18661 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
18662 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 ac_check_lib_save_LIBS=$LIBS
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18684 return elf_begin ();
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_try") 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest$ac_exeext'
18714 { (case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_try") 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_cv_lib_elf_elf_begin=yes
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_cv_lib_elf_elf_begin=no
18731 rm -f core conftest.err conftest.$ac_objext \
18732 conftest$ac_exeext conftest.$ac_ext
18733 LIBS=$ac_check_lib_save_LIBS
18735 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18736 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
18737 if test $ac_cv_lib_elf_elf_begin = yes; then
18742 if test $ac_have_func = no; then
18743 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18744 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
18745 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 ac_check_lib_save_LIBS=$LIBS
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 /* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18767 return kvm_open ();
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_link") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest$ac_exeext'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_lib_kvm_kvm_open=yes
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_lib_kvm_kvm_open=no
18814 rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18818 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18819 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18820 if test $ac_cv_lib_kvm_kvm_open = yes; then
18824 # Check for the 4.4BSD definition of getloadavg.
18825 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18826 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
18827 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 ac_check_lib_save_LIBS=$LIBS
18831 LIBS="-lutil $LIBS"
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18839 /* Override any GCC internal prototype to avoid an error.
18840 Use char because int might match the return type of a GCC
18841 builtin and then its argument prototype would still apply. */
18845 char getloadavg ();
18849 return getloadavg ();
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18863 grep -v '^ *+' conftest.er1 >conftest.err
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest$ac_exeext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_lib_util_getloadavg=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_lib_util_getloadavg=no
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18900 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18901 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18902 if test $ac_cv_lib_util_getloadavg = yes; then
18903 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18908 if test $ac_have_func = no; then
18909 # There is a commonly available library for RS/6000 AIX.
18910 # Since it is not a standard part of AIX, it might be installed locally.
18911 ac_getloadavg_LIBS=$LIBS
18912 LIBS="-L/usr/local/lib $LIBS"
18913 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18914 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
18915 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lgetloadavg $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18927 /* Override any GCC internal prototype to avoid an error.
18928 Use char because int might match the return type of a GCC
18929 builtin and then its argument prototype would still apply. */
18933 char getloadavg ();
18937 return getloadavg ();
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18957 { (case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_try") 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest$ac_exeext'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_lib_getloadavg_getloadavg=yes
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 ac_cv_lib_getloadavg_getloadavg=no
18984 rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18986 LIBS=$ac_check_lib_save_LIBS
18988 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18989 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18990 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18991 LIBS="-lgetloadavg $LIBS"
18993 LIBS=$ac_getloadavg_LIBS
18998 # Make sure it is really in the library, if we think we found it,
18999 # otherwise set up the replacement function.
19001 for ac_func in getloadavg
19003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19017 #define $ac_func innocuous_$ac_func
19019 /* System header to define __stub macros and hopefully few prototypes,
19020 which can conflict with char $ac_func (); below.
19021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 <limits.h> exists even on freestanding compilers. */
19025 # include <limits.h>
19027 # include <assert.h>
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined __stub_$ac_func || defined __stub___$ac_func
19049 return $ac_func ();
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_link") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest$ac_exeext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 eval "$as_ac_var=yes"
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 eval "$as_ac_var=no"
19096 rm -f core conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19099 ac_res=`eval echo '${'$as_ac_var'}'`
19100 { echo "$as_me:$LINENO: result: $ac_res" >&5
19101 echo "${ECHO_T}$ac_res" >&6; }
19102 if test `eval echo '${'$as_ac_var'}'` = yes; then
19103 cat >>confdefs.h <<_ACEOF
19104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19108 case " $LIBOBJS " in
19109 *" getloadavg.$ac_objext "* ) ;;
19110 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19115 cat >>confdefs.h <<\_ACEOF
19116 #define C_GETLOADAVG 1
19119 # Figure out what our getloadavg.c needs.
19121 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19122 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19123 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19124 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19128 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19130 # Is the header compilable?
19131 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19132 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
19133 cat >conftest.$ac_ext <<_ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 $ac_includes_default
19140 #include <sys/dg_sys_info.h>
19142 rm -f conftest.$ac_objext
19143 if { (ac_try="$ac_compile"
19144 case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_compile") 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19157 { (case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_try") 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; } &&
19166 { ac_try='test -s conftest.$ac_objext'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_header_compiler=yes
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19181 ac_header_compiler=no
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19186 echo "${ECHO_T}$ac_header_compiler" >&6; }
19188 # Is the header present?
19189 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19190 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 #include <sys/dg_sys_info.h>
19199 if { (ac_try="$ac_cpp conftest.$ac_ext"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } >/dev/null; then
19212 if test -s conftest.err; then
19213 ac_cpp_err=$ac_c_preproc_warn_flag
19214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19221 if test -z "$ac_cpp_err"; then
19222 ac_header_preproc=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_header_preproc=no
19230 rm -f conftest.err conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19232 echo "${ECHO_T}$ac_header_preproc" >&6; }
19234 # So? What about this header?
19235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19237 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19238 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19239 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19240 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19241 ac_header_preproc=yes
19244 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19245 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19246 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19247 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19248 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19249 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19250 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19251 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19252 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19253 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19255 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19257 ## ------------------------------------ ##
19258 ## Report this to bug-coreutils@gnu.org ##
19259 ## ------------------------------------ ##
19261 ) | sed "s/^/$as_me: WARNING: /" >&2
19264 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19265 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
19266 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19271 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
19275 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19278 cat >>confdefs.h <<\_ACEOF
19283 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19284 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
19285 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 ac_check_lib_save_LIBS=$LIBS
19290 cat >conftest.$ac_ext <<_ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19297 /* Override any GCC internal prototype to avoid an error.
19298 Use char because int might match the return type of a GCC
19299 builtin and then its argument prototype would still apply. */
19303 char dg_sys_info ();
19307 return dg_sys_info ();
19312 rm -f conftest.$ac_objext conftest$ac_exeext
19313 if { (ac_try="$ac_link"
19314 case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_link") 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19327 { (case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_try") 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest$ac_exeext'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_cv_lib_dgc_dg_sys_info=yes
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 ac_cv_lib_dgc_dg_sys_info=no
19354 rm -f core conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19356 LIBS=$ac_check_lib_save_LIBS
19358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19359 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
19360 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_LIBDGC 1
19373 if test "${ac_cv_header_locale_h+set}" = set; then
19374 { echo "$as_me:$LINENO: checking for locale.h" >&5
19375 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19376 if test "${ac_cv_header_locale_h+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19380 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19382 # Is the header compilable?
19383 { echo "$as_me:$LINENO: checking locale.h usability" >&5
19384 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 $ac_includes_default
19392 #include <locale.h>
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_header_compiler=yes
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_header_compiler=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19438 echo "${ECHO_T}$ac_header_compiler" >&6; }
19440 # Is the header present?
19441 { echo "$as_me:$LINENO: checking locale.h presence" >&5
19442 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19449 #include <locale.h>
19451 if { (ac_try="$ac_cpp conftest.$ac_ext"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } >/dev/null; then
19464 if test -s conftest.err; then
19465 ac_cpp_err=$ac_c_preproc_warn_flag
19466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19473 if test -z "$ac_cpp_err"; then
19474 ac_header_preproc=yes
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_header_preproc=no
19482 rm -f conftest.err conftest.$ac_ext
19483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19484 echo "${ECHO_T}$ac_header_preproc" >&6; }
19486 # So? What about this header?
19487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19489 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19490 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19492 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19493 ac_header_preproc=yes
19496 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19497 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19499 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19501 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19503 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19505 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19507 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19509 ## ------------------------------------ ##
19510 ## Report this to bug-coreutils@gnu.org ##
19511 ## ------------------------------------ ##
19513 ) | sed "s/^/$as_me: WARNING: /" >&2
19516 { echo "$as_me:$LINENO: checking for locale.h" >&5
19517 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
19518 if test "${ac_cv_header_locale_h+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 ac_cv_header_locale_h=$ac_header_preproc
19523 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19524 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
19530 for ac_func in setlocale
19532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19546 #define $ac_func innocuous_$ac_func
19548 /* System header to define __stub macros and hopefully few prototypes,
19549 which can conflict with char $ac_func (); below.
19550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19551 <limits.h> exists even on freestanding compilers. */
19554 # include <limits.h>
19556 # include <assert.h>
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19568 /* The GNU C library defines this for functions which it implements
19569 to always fail with ENOSYS. Some functions are actually named
19570 something starting with __ and the normal name is an alias. */
19571 #if defined __stub_$ac_func || defined __stub___$ac_func
19578 return $ac_func ();
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 eval "$as_ac_var=yes"
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 eval "$as_ac_var=no"
19625 rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19628 ac_res=`eval echo '${'$as_ac_var'}'`
19629 { echo "$as_me:$LINENO: result: $ac_res" >&5
19630 echo "${ECHO_T}$ac_res" >&6; }
19631 if test `eval echo '${'$as_ac_var'}'` = yes; then
19632 cat >>confdefs.h <<_ACEOF
19633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19640 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19641 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19642 # Irix 4.0.5F has the header but not the library.
19643 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19646 cat >>confdefs.h <<\_ACEOF
19652 if test $ac_have_func = no; then
19653 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19654 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19655 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19656 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19660 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19662 # Is the header compilable?
19663 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19664 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 $ac_includes_default
19672 #include <inq_stats/cpustats.h>
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_compile") 2>conftest.er1
19683 grep -v '^ *+' conftest.er1 >conftest.err
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_header_compiler=yes
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_compiler=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19718 echo "${ECHO_T}$ac_header_compiler" >&6; }
19720 # Is the header present?
19721 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19722 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <inq_stats/cpustats.h>
19731 if { (ac_try="$ac_cpp conftest.$ac_ext"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } >/dev/null; then
19744 if test -s conftest.err; then
19745 ac_cpp_err=$ac_c_preproc_warn_flag
19746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19753 if test -z "$ac_cpp_err"; then
19754 ac_header_preproc=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ac_header_preproc=no
19762 rm -f conftest.err conftest.$ac_ext
19763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19764 echo "${ECHO_T}$ac_header_preproc" >&6; }
19766 # So? What about this header?
19767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19769 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19770 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19772 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19773 ac_header_preproc=yes
19776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19777 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19778 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19779 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19781 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19783 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19785 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19787 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19789 ## ------------------------------------ ##
19790 ## Report this to bug-coreutils@gnu.org ##
19791 ## ------------------------------------ ##
19793 ) | sed "s/^/$as_me: WARNING: /" >&2
19796 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19797 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19803 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19804 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19807 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19810 cat >>confdefs.h <<\_ACEOF
19815 cat >>confdefs.h <<\_ACEOF
19824 if test $ac_have_func = no; then
19825 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19826 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19827 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19828 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19832 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19834 # Is the header compilable?
19835 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19836 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
19837 cat >conftest.$ac_ext <<_ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 $ac_includes_default
19844 #include <sys/cpustats.h>
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_try") 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_header_compiler=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_header_compiler=no
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19890 echo "${ECHO_T}$ac_header_compiler" >&6; }
19892 # Is the header present?
19893 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19894 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 #include <sys/cpustats.h>
19903 if { (ac_try="$ac_cpp conftest.$ac_ext"
19904 case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19911 grep -v '^ *+' conftest.er1 >conftest.err
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } >/dev/null; then
19916 if test -s conftest.err; then
19917 ac_cpp_err=$ac_c_preproc_warn_flag
19918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19925 if test -z "$ac_cpp_err"; then
19926 ac_header_preproc=yes
19928 echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19931 ac_header_preproc=no
19934 rm -f conftest.err conftest.$ac_ext
19935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19936 echo "${ECHO_T}$ac_header_preproc" >&6; }
19938 # So? What about this header?
19939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19942 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19944 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19945 ac_header_preproc=yes
19948 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19949 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19951 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19953 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19955 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19957 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19958 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19959 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19961 ## ------------------------------------ ##
19962 ## Report this to bug-coreutils@gnu.org ##
19963 ## ------------------------------------ ##
19965 ) | sed "s/^/$as_me: WARNING: /" >&2
19968 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19969 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19970 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19975 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19976 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19979 if test $ac_cv_header_sys_cpustats_h = yes; then
19980 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19989 if test $ac_have_func = no; then
19991 for ac_header in mach/mach.h
19993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 ac_res=`eval echo '${'$as_ac_Header'}'`
20001 { echo "$as_me:$LINENO: result: $ac_res" >&5
20002 echo "${ECHO_T}$ac_res" >&6; }
20004 # Is the header compilable?
20005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 $ac_includes_default
20014 #include <$ac_header>
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20031 { (case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_try") 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest.$ac_objext'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_header_compiler=yes
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 ac_header_compiler=no
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20060 echo "${ECHO_T}$ac_header_compiler" >&6; }
20062 # Is the header present?
20063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #include <$ac_header>
20073 if { (ac_try="$ac_cpp conftest.$ac_ext"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20081 grep -v '^ *+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } >/dev/null; then
20086 if test -s conftest.err; then
20087 ac_cpp_err=$ac_c_preproc_warn_flag
20088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20095 if test -z "$ac_cpp_err"; then
20096 ac_header_preproc=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_preproc=no
20104 rm -f conftest.err conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6; }
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc=yes
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20131 ## ------------------------------------ ##
20132 ## Report this to bug-coreutils@gnu.org ##
20133 ## ------------------------------------ ##
20135 ) | sed "s/^/$as_me: WARNING: /" >&2
20138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 eval "$as_ac_Header=\$ac_header_preproc"
20145 ac_res=`eval echo '${'$as_ac_Header'}'`
20146 { echo "$as_me:$LINENO: result: $ac_res" >&5
20147 echo "${ECHO_T}$ac_res" >&6; }
20150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20162 for ac_header in nlist.h
20164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 ac_res=`eval echo '${'$as_ac_Header'}'`
20172 { echo "$as_me:$LINENO: result: $ac_res" >&5
20173 echo "${ECHO_T}$ac_res" >&6; }
20175 # Is the header compilable?
20176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 $ac_includes_default
20185 #include <$ac_header>
20187 rm -f conftest.$ac_objext
20188 if { (ac_try="$ac_compile"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_compile") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_try") 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; }; then
20221 ac_header_compiler=yes
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ac_header_compiler=no
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20231 echo "${ECHO_T}$ac_header_compiler" >&6; }
20233 # Is the header present?
20234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <$ac_header>
20244 if { (ac_try="$ac_cpp conftest.$ac_ext"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20252 grep -v '^ *+' conftest.er1 >conftest.err
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } >/dev/null; then
20257 if test -s conftest.err; then
20258 ac_cpp_err=$ac_c_preproc_warn_flag
20259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20266 if test -z "$ac_cpp_err"; then
20267 ac_header_preproc=yes
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_header_preproc=no
20275 rm -f conftest.err conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20277 echo "${ECHO_T}$ac_header_preproc" >&6; }
20279 # So? What about this header?
20280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20286 ac_header_preproc=yes
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20302 ## ------------------------------------ ##
20303 ## Report this to bug-coreutils@gnu.org ##
20304 ## ------------------------------------ ##
20306 ) | sed "s/^/$as_me: WARNING: /" >&2
20309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 eval "$as_ac_Header=\$ac_header_preproc"
20316 ac_res=`eval echo '${'$as_ac_Header'}'`
20317 { echo "$as_me:$LINENO: result: $ac_res" >&5
20318 echo "${ECHO_T}$ac_res" >&6; }
20321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20325 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20326 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
20327 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20341 static struct nlist ac_aggr;
20342 if (ac_aggr.n_un.n_name)
20348 rm -f conftest.$ac_objext
20349 if { (ac_try="$ac_compile"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_compile") 2>conftest.er1
20357 grep -v '^ *+' conftest.er1 >conftest.err
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
20362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_cv_member_struct_nlist_n_un_n_name=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20398 static struct nlist ac_aggr;
20399 if (sizeof ac_aggr.n_un.n_name)
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_try") 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_member_struct_nlist_n_un_n_name=yes
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_cv_member_struct_nlist_n_un_n_name=no
20447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20453 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20454 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20461 cat >>confdefs.h <<\_ACEOF
20462 #define NLIST_NAME_UNION 1
20476 # Some definitions of getloadavg require that the program be installed setgid.
20477 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20478 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
20479 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20489 #ifdef LDAV_PRIVILEGED
20490 Yowza Am I SETGID yet
20493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20494 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20495 ac_cv_func_getloadavg_setgid=yes
20497 ac_cv_func_getloadavg_setgid=no
20502 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20503 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
20504 if test $ac_cv_func_getloadavg_setgid = yes; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define GETLOADAVG_PRIVILEGED 1
20515 if test $ac_cv_func_getloadavg_setgid = yes; then
20516 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20517 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
20518 if test "${ac_cv_group_kmem+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20522 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20523 # If we got an error (system does not support symlinks), try without -L.
20524 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20525 ac_cv_group_kmem=`echo $ac_ls_output \
20526 | sed -ne 's/[ ][ ]*/ /g;
20527 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20531 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20532 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
20533 KMEM_GROUP=$ac_cv_group_kmem
20535 if test "x$ac_save_LIBS" = x; then
20536 GETLOADAVG_LIBS=$LIBS
20538 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
20543 { echo "$as_me:$LINENO: checking whether getpass is declared" >&5
20544 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; }
20545 if test "${ac_cv_have_decl_getpass+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.$ac_ext <<_ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 $ac_includes_default
20559 char *p = (char *) getpass;
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_compile") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_have_decl_getpass=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_have_decl_getpass=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
20612 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; }
20613 if test $ac_cv_have_decl_getpass = yes; then
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_DECL_GETPASS 1
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_GETPASS 0
20637 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
20638 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
20639 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 $ac_includes_default
20652 #ifndef fflush_unlocked
20653 char *p = (char *) fflush_unlocked;
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
20675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_try") 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; } &&
20685 { ac_try='test -s conftest.$ac_objext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_have_decl_fflush_unlocked=yes
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 ac_cv_have_decl_fflush_unlocked=no
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
20706 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
20707 if test $ac_cv_have_decl_fflush_unlocked = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_DECL_FFLUSH_UNLOCKED 1
20715 cat >>confdefs.h <<_ACEOF
20716 #define HAVE_DECL_FFLUSH_UNLOCKED 0
20723 { echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
20724 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6; }
20725 if test "${ac_cv_have_decl_flockfile+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20739 char *p = (char *) flockfile;
20747 rm -f conftest.$ac_objext
20748 if { (ac_try="$ac_compile"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_compile") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
20761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_cv_have_decl_flockfile=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_cv_have_decl_flockfile=no
20789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
20792 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6; }
20793 if test $ac_cv_have_decl_flockfile = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define HAVE_DECL_FLOCKFILE 1
20801 cat >>confdefs.h <<_ACEOF
20802 #define HAVE_DECL_FLOCKFILE 0
20809 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
20810 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
20811 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 $ac_includes_default
20824 #ifndef fputs_unlocked
20825 char *p = (char *) fputs_unlocked;
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20842 grep -v '^ *+' conftest.er1 >conftest.err
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_have_decl_fputs_unlocked=yes
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_cv_have_decl_fputs_unlocked=no
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
20878 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
20879 if test $ac_cv_have_decl_fputs_unlocked = yes; then
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_DECL_FPUTS_UNLOCKED 1
20887 cat >>confdefs.h <<_ACEOF
20888 #define HAVE_DECL_FPUTS_UNLOCKED 0
20895 { echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
20896 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6; }
20897 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20910 #ifndef funlockfile
20911 char *p = (char *) funlockfile;
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 ac_cv_have_decl_funlockfile=yes
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ac_cv_have_decl_funlockfile=no
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
20964 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6; }
20965 if test $ac_cv_have_decl_funlockfile = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_DECL_FUNLOCKFILE 1
20973 cat >>confdefs.h <<_ACEOF
20974 #define HAVE_DECL_FUNLOCKFILE 0
20981 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
20982 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
20983 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 $ac_includes_default
20996 #ifndef putc_unlocked
20997 char *p = (char *) putc_unlocked;
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 ac_cv_have_decl_putc_unlocked=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_cv_have_decl_putc_unlocked=no
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
21050 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
21051 if test $ac_cv_have_decl_putc_unlocked = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 #define HAVE_DECL_PUTC_UNLOCKED 1
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_DECL_PUTC_UNLOCKED 0
21074 case " $LIBOBJS " in
21075 *" getpass.$ac_objext "* ) ;;
21076 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
21122 cat >>confdefs.h <<\_ACEOF
21123 #define getpass gnu_getpass
21129 for ac_func in getusershell
21131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21145 #define $ac_func innocuous_$ac_func
21147 /* System header to define __stub macros and hopefully few prototypes,
21148 which can conflict with char $ac_func (); below.
21149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21150 <limits.h> exists even on freestanding compilers. */
21153 # include <limits.h>
21155 # include <assert.h>
21160 /* Override any GCC internal prototype to avoid an error.
21161 Use char because int might match the return type of a GCC
21162 builtin and then its argument prototype would still apply. */
21167 /* The GNU C library defines this for functions which it implements
21168 to always fail with ENOSYS. Some functions are actually named
21169 something starting with __ and the normal name is an alias. */
21170 #if defined __stub_$ac_func || defined __stub___$ac_func
21177 return $ac_func ();
21182 rm -f conftest.$ac_objext conftest$ac_exeext
21183 if { (ac_try="$ac_link"
21184 case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_link") 2>conftest.er1
21191 grep -v '^ *+' conftest.er1 >conftest.err
21193 cat conftest.err >&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
21196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21197 { (case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_try") 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest$ac_exeext'
21207 { (case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_try") 2>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 eval "$as_ac_var=yes"
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 eval "$as_ac_var=no"
21224 rm -f core conftest.err conftest.$ac_objext \
21225 conftest$ac_exeext conftest.$ac_ext
21227 ac_res=`eval echo '${'$as_ac_var'}'`
21228 { echo "$as_me:$LINENO: result: $ac_res" >&5
21229 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_var'}'` = yes; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21236 case " $LIBOBJS " in
21237 *" $ac_func.$ac_objext "* ) ;;
21238 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21247 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21248 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21249 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 rm -f conftest.sym conftest.file
21253 echo >conftest.file
21254 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21255 if test "$cross_compiling" = yes; then
21256 ac_cv_func_lstat_dereferences_slashed_symlink=no
21258 cat >conftest.$ac_ext <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 $ac_includes_default
21269 /* Linux will dereference the symlink and fail.
21270 That is better in the sense that it means we will not
21271 have to compile and use the lstat wrapper. */
21272 return lstat ("conftest.sym/", &sbuf) == 0;
21277 rm -f conftest$ac_exeext
21278 if { (ac_try="$ac_link"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_link") 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21288 { (case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_try") 2>&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21299 echo "$as_me: program exited with status $ac_status" >&5
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ( exit $ac_status )
21304 ac_cv_func_lstat_dereferences_slashed_symlink=no
21306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21311 # If the `ln -s' command failed, then we probably don't even
21312 # have an lstat function.
21313 ac_cv_func_lstat_dereferences_slashed_symlink=no
21315 rm -f conftest.sym conftest.file
21318 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21319 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21321 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21323 cat >>confdefs.h <<_ACEOF
21324 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21328 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21329 case " $LIBOBJS " in
21330 *" lstat.$ac_objext "* ) ;;
21331 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21345 for ac_func in memchr
21347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21361 #define $ac_func innocuous_$ac_func
21363 /* System header to define __stub macros and hopefully few prototypes,
21364 which can conflict with char $ac_func (); below.
21365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21366 <limits.h> exists even on freestanding compilers. */
21369 # include <limits.h>
21371 # include <assert.h>
21376 /* Override any GCC internal prototype to avoid an error.
21377 Use char because int might match the return type of a GCC
21378 builtin and then its argument prototype would still apply. */
21383 /* The GNU C library defines this for functions which it implements
21384 to always fail with ENOSYS. Some functions are actually named
21385 something starting with __ and the normal name is an alias. */
21386 #if defined __stub_$ac_func || defined __stub___$ac_func
21393 return $ac_func ();
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (ac_try="$ac_link"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_link") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } &&
21412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21413 { (case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_try") 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest$ac_exeext'
21423 { (case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_try") 2>&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 eval "$as_ac_var=yes"
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 eval "$as_ac_var=no"
21440 rm -f core conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21443 ac_res=`eval echo '${'$as_ac_var'}'`
21444 { echo "$as_me:$LINENO: result: $ac_res" >&5
21445 echo "${ECHO_T}$ac_res" >&6; }
21446 if test `eval echo '${'$as_ac_var'}'` = yes; then
21447 cat >>confdefs.h <<_ACEOF
21448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21452 case " $LIBOBJS " in
21453 *" $ac_func.$ac_objext "* ) ;;
21454 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21462 if test $ac_cv_func_memchr = no; then
21465 for ac_header in bp-sym.h
21467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 ac_res=`eval echo '${'$as_ac_Header'}'`
21475 { echo "$as_me:$LINENO: result: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21478 # Is the header compilable?
21479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 $ac_includes_default
21488 #include <$ac_header>
21490 rm -f conftest.$ac_objext
21491 if { (ac_try="$ac_compile"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_compile") 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21505 { (case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_try") 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_try") 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 ac_header_compiler=yes
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_header_compiler=no
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21534 echo "${ECHO_T}$ac_header_compiler" >&6; }
21536 # Is the header present?
21537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <$ac_header>
21547 if { (ac_try="$ac_cpp conftest.$ac_ext"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } >/dev/null; then
21560 if test -s conftest.err; then
21561 ac_cpp_err=$ac_c_preproc_warn_flag
21562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21569 if test -z "$ac_cpp_err"; then
21570 ac_header_preproc=yes
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ac_header_preproc=no
21578 rm -f conftest.err conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21580 echo "${ECHO_T}$ac_header_preproc" >&6; }
21582 # So? What about this header?
21583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21589 ac_header_preproc=yes
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21605 ## ------------------------------------ ##
21606 ## Report this to bug-coreutils@gnu.org ##
21607 ## ------------------------------------ ##
21609 ) | sed "s/^/$as_me: WARNING: /" >&2
21612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 eval "$as_ac_Header=\$ac_header_preproc"
21619 ac_res=`eval echo '${'$as_ac_Header'}'`
21620 { echo "$as_me:$LINENO: result: $ac_res" >&5
21621 echo "${ECHO_T}$ac_res" >&6; }
21624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21625 cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21638 for ac_func in memcpy
21640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21654 #define $ac_func innocuous_$ac_func
21656 /* System header to define __stub macros and hopefully few prototypes,
21657 which can conflict with char $ac_func (); below.
21658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21659 <limits.h> exists even on freestanding compilers. */
21662 # include <limits.h>
21664 # include <assert.h>
21669 /* Override any GCC internal prototype to avoid an error.
21670 Use char because int might match the return type of a GCC
21671 builtin and then its argument prototype would still apply. */
21676 /* The GNU C library defines this for functions which it implements
21677 to always fail with ENOSYS. Some functions are actually named
21678 something starting with __ and the normal name is an alias. */
21679 #if defined __stub_$ac_func || defined __stub___$ac_func
21686 return $ac_func ();
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
21705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21706 { (case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_try") 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest$ac_exeext'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 eval "$as_ac_var=yes"
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 eval "$as_ac_var=no"
21733 rm -f core conftest.err conftest.$ac_objext \
21734 conftest$ac_exeext conftest.$ac_ext
21736 ac_res=`eval echo '${'$as_ac_var'}'`
21737 { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21739 if test `eval echo '${'$as_ac_var'}'` = yes; then
21740 cat >>confdefs.h <<_ACEOF
21741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21745 case " $LIBOBJS " in
21746 *" $ac_func.$ac_objext "* ) ;;
21747 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21755 if test $ac_cv_func_memcpy = no; then
21763 for ac_func in memmove
21765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21779 #define $ac_func innocuous_$ac_func
21781 /* System header to define __stub macros and hopefully few prototypes,
21782 which can conflict with char $ac_func (); below.
21783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21784 <limits.h> exists even on freestanding compilers. */
21787 # include <limits.h>
21789 # include <assert.h>
21794 /* Override any GCC internal prototype to avoid an error.
21795 Use char because int might match the return type of a GCC
21796 builtin and then its argument prototype would still apply. */
21801 /* The GNU C library defines this for functions which it implements
21802 to always fail with ENOSYS. Some functions are actually named
21803 something starting with __ and the normal name is an alias. */
21804 #if defined __stub_$ac_func || defined __stub___$ac_func
21811 return $ac_func ();
21816 rm -f conftest.$ac_objext conftest$ac_exeext
21817 if { (ac_try="$ac_link"
21818 case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_link") 2>conftest.er1
21825 grep -v '^ *+' conftest.er1 >conftest.err
21827 cat conftest.err >&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } &&
21830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21831 { (case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_try") 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; } &&
21840 { ac_try='test -s conftest$ac_exeext'
21841 { (case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_try") 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 eval "$as_ac_var=yes"
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 eval "$as_ac_var=no"
21858 rm -f core conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
21861 ac_res=`eval echo '${'$as_ac_var'}'`
21862 { echo "$as_me:$LINENO: result: $ac_res" >&5
21863 echo "${ECHO_T}$ac_res" >&6; }
21864 if test `eval echo '${'$as_ac_var'}'` = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21870 case " $LIBOBJS " in
21871 *" $ac_func.$ac_objext "* ) ;;
21872 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21880 if test $ac_cv_func_memmove = no; then
21892 for ac_func in mempcpy
21894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 cat >conftest.$ac_ext <<_ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21908 #define $ac_func innocuous_$ac_func
21910 /* System header to define __stub macros and hopefully few prototypes,
21911 which can conflict with char $ac_func (); below.
21912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21913 <limits.h> exists even on freestanding compilers. */
21916 # include <limits.h>
21918 # include <assert.h>
21923 /* Override any GCC internal prototype to avoid an error.
21924 Use char because int might match the return type of a GCC
21925 builtin and then its argument prototype would still apply. */
21930 /* The GNU C library defines this for functions which it implements
21931 to always fail with ENOSYS. Some functions are actually named
21932 something starting with __ and the normal name is an alias. */
21933 #if defined __stub_$ac_func || defined __stub___$ac_func
21940 return $ac_func ();
21945 rm -f conftest.$ac_objext conftest$ac_exeext
21946 if { (ac_try="$ac_link"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_link") 2>conftest.er1
21954 grep -v '^ *+' conftest.er1 >conftest.err
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; } &&
21969 { ac_try='test -s conftest$ac_exeext'
21970 { (case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_try") 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 eval "$as_ac_var=yes"
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 eval "$as_ac_var=no"
21987 rm -f core conftest.err conftest.$ac_objext \
21988 conftest$ac_exeext conftest.$ac_ext
21990 ac_res=`eval echo '${'$as_ac_var'}'`
21991 { echo "$as_me:$LINENO: result: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21993 if test `eval echo '${'$as_ac_var'}'` = yes; then
21994 cat >>confdefs.h <<_ACEOF
21995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21999 case " $LIBOBJS " in
22000 *" $ac_func.$ac_objext "* ) ;;
22001 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22009 if test $ac_cv_func_mempcpy = no; then
22015 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
22016 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
22017 if test "${ac_cv_have_decl_memrchr+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 $ac_includes_default
22031 char *p = (char *) memrchr;
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest.$ac_objext'
22064 { (case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 ac_cv_have_decl_memrchr=yes
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_have_decl_memrchr=no
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
22084 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
22085 if test $ac_cv_have_decl_memrchr = yes; then
22087 cat >>confdefs.h <<_ACEOF
22088 #define HAVE_DECL_MEMRCHR 1
22093 cat >>confdefs.h <<_ACEOF
22094 #define HAVE_DECL_MEMRCHR 0
22112 for ac_func in memrchr
22114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22120 cat >conftest.$ac_ext <<_ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22128 #define $ac_func innocuous_$ac_func
22130 /* System header to define __stub macros and hopefully few prototypes,
22131 which can conflict with char $ac_func (); below.
22132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22133 <limits.h> exists even on freestanding compilers. */
22136 # include <limits.h>
22138 # include <assert.h>
22143 /* Override any GCC internal prototype to avoid an error.
22144 Use char because int might match the return type of a GCC
22145 builtin and then its argument prototype would still apply. */
22150 /* The GNU C library defines this for functions which it implements
22151 to always fail with ENOSYS. Some functions are actually named
22152 something starting with __ and the normal name is an alias. */
22153 #if defined __stub_$ac_func || defined __stub___$ac_func
22160 return $ac_func ();
22165 rm -f conftest.$ac_objext conftest$ac_exeext
22166 if { (ac_try="$ac_link"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_link") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22180 { (case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_try") 2>&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; } &&
22189 { ac_try='test -s conftest$ac_exeext'
22190 { (case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_try") 2>&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 eval "$as_ac_var=yes"
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22204 eval "$as_ac_var=no"
22207 rm -f core conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22210 ac_res=`eval echo '${'$as_ac_var'}'`
22211 { echo "$as_me:$LINENO: result: $ac_res" >&5
22212 echo "${ECHO_T}$ac_res" >&6; }
22213 if test `eval echo '${'$as_ac_var'}'` = yes; then
22214 cat >>confdefs.h <<_ACEOF
22215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22219 case " $LIBOBJS " in
22220 *" $ac_func.$ac_objext "* ) ;;
22221 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22229 if test $ac_cv_func_memrchr = no; then
22235 for ac_func in memset
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22259 # include <limits.h>
22261 # include <assert.h>
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22283 return $ac_func ();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 eval "$as_ac_var=no"
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22333 ac_res=`eval echo '${'$as_ac_var'}'`
22334 { echo "$as_me:$LINENO: result: $ac_res" >&5
22335 echo "${ECHO_T}$ac_res" >&6; }
22336 if test `eval echo '${'$as_ac_var'}'` = yes; then
22337 cat >>confdefs.h <<_ACEOF
22338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22342 case " $LIBOBJS " in
22343 *" $ac_func.$ac_objext "* ) ;;
22344 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22352 if test $ac_cv_func_memset = no; then
22358 { echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
22359 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6; }
22360 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 # Arrange for deletion of the temporary directory this test might create.
22365 ac_clean_files="$ac_clean_files confdir-slash"
22366 if test "$cross_compiling" = yes; then
22367 gl_cv_func_mkdir_trailing_slash_bug=yes
22370 cat >conftest.$ac_ext <<_ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22377 # include <sys/types.h>
22378 # include <sys/stat.h>
22379 # include <stdlib.h>
22382 rmdir ("confdir-slash");
22383 exit (mkdir ("confdir-slash/", 0700));
22387 rm -f conftest$ac_exeext
22388 if { (ac_try="$ac_link"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_link") 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22398 { (case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_try") 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 gl_cv_func_mkdir_trailing_slash_bug=no
22409 echo "$as_me: program exited with status $ac_status" >&5
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ( exit $ac_status )
22414 gl_cv_func_mkdir_trailing_slash_bug=yes
22416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22423 { echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
22424 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
22426 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
22427 case " $LIBOBJS " in
22428 *" mkdir.$ac_objext "* ) ;;
22429 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
22434 cat >>confdefs.h <<\_ACEOF
22435 #define mkdir rpl_mkdir
22455 { echo "$as_me:$LINENO: checking for working mktime" >&5
22456 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22457 if test "${ac_cv_func_working_mktime+set}" = set; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 if test "$cross_compiling" = yes; then
22461 ac_cv_func_working_mktime=no
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 /* Test program from Paul Eggert and Tony Leneis. */
22470 #if TIME_WITH_SYS_TIME
22471 # include <sys/time.h>
22474 # if HAVE_SYS_TIME_H
22475 # include <sys/time.h>
22481 #include <stdlib.h>
22482 #include <unistd.h>
22485 # define alarm(X) /* empty */
22488 /* Work around redefinition to rpl_putenv by other config tests. */
22491 static time_t time_t_max;
22492 static time_t time_t_min;
22494 /* Values we'll use to set the TZ environment variable. */
22495 static char *tz_strings[] = {
22496 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22497 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22499 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22501 /* Fail if mktime fails to convert a date in the spring-forward gap.
22502 Based on a problem report from Andreas Jaeger. */
22504 spring_forward_gap ()
22506 /* glibc (up to about 1998-10-07) failed this test. */
22509 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22510 instead of "TZ=America/Vancouver" in order to detect the bug even
22511 on systems that don't support the Olson extension, or don't have the
22512 full zoneinfo tables installed. */
22513 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22522 if (mktime (&tm) == (time_t)-1)
22531 if ((lt = localtime (&now)) && mktime (lt) != now)
22539 mktime_test1 (now);
22540 mktime_test1 ((time_t) (time_t_max - now));
22541 mktime_test1 ((time_t) (time_t_min + now));
22547 /* Based on code from Ariel Faigon. */
22557 if (tm.tm_mon != 2 || tm.tm_mday != 31)
22567 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22568 now = mktime (&tm);
22569 if (now != (time_t) -1)
22571 struct tm *lt = localtime (&now);
22573 && lt->tm_year == tm.tm_year
22574 && lt->tm_mon == tm.tm_mon
22575 && lt->tm_mday == tm.tm_mday
22576 && lt->tm_hour == tm.tm_hour
22577 && lt->tm_min == tm.tm_min
22578 && lt->tm_sec == tm.tm_sec
22579 && lt->tm_yday == tm.tm_yday
22580 && lt->tm_wday == tm.tm_wday
22581 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22582 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22593 /* This test makes some buggy mktime implementations loop.
22594 Give up after 60 seconds; a mktime slower than that
22595 isn't worth using anyway. */
22598 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22601 if ((time_t) -1 < 0)
22602 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22604 delta = time_t_max / 997; /* a suitable prime number */
22605 for (i = 0; i < N_STRINGS; i++)
22608 putenv (tz_strings[i]);
22610 for (t = 0; t <= time_t_max - delta; t += delta)
22612 mktime_test ((time_t) 1);
22613 mktime_test ((time_t) (60 * 60));
22614 mktime_test ((time_t) (60 * 60 * 24));
22616 for (j = 1; 0 < j; j *= 2)
22618 bigtime_test (j - 1);
22621 spring_forward_gap ();
22625 rm -f conftest$ac_exeext
22626 if { (ac_try="$ac_link"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_link") 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22636 { (case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641 (eval "$ac_try") 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ac_cv_func_working_mktime=yes
22647 echo "$as_me: program exited with status $ac_status" >&5
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ( exit $ac_status )
22652 ac_cv_func_working_mktime=no
22654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22659 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22660 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22661 if test $ac_cv_func_working_mktime = no; then
22662 case " $LIBOBJS " in
22663 *" mktime.$ac_objext "* ) ;;
22664 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22672 if test $ac_cv_func_working_mktime = no; then
22674 cat >>confdefs.h <<\_ACEOF
22675 #define mktime rpl_mktime
22682 for ac_func in mkstemp
22684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22688 echo $ECHO_N "(cached) $ECHO_C" >&6
22690 cat >conftest.$ac_ext <<_ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h. */
22696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22698 #define $ac_func innocuous_$ac_func
22700 /* System header to define __stub macros and hopefully few prototypes,
22701 which can conflict with char $ac_func (); below.
22702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22703 <limits.h> exists even on freestanding compilers. */
22706 # include <limits.h>
22708 # include <assert.h>
22713 /* Override any GCC internal prototype to avoid an error.
22714 Use char because int might match the return type of a GCC
22715 builtin and then its argument prototype would still apply. */
22720 /* The GNU C library defines this for functions which it implements
22721 to always fail with ENOSYS. Some functions are actually named
22722 something starting with __ and the normal name is an alias. */
22723 #if defined __stub_$ac_func || defined __stub___$ac_func
22730 return $ac_func ();
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_link") 2>conftest.er1
22744 grep -v '^ *+' conftest.er1 >conftest.err
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22750 { (case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_try") 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; } &&
22759 { ac_try='test -s conftest$ac_exeext'
22760 { (case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_try") 2>&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; }; then
22769 eval "$as_ac_var=yes"
22771 echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22774 eval "$as_ac_var=no"
22777 rm -f core conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
22780 ac_res=`eval echo '${'$as_ac_var'}'`
22781 { echo "$as_me:$LINENO: result: $ac_res" >&5
22782 echo "${ECHO_T}$ac_res" >&6; }
22783 if test `eval echo '${'$as_ac_var'}'` = yes; then
22784 cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22789 case " $LIBOBJS " in
22790 *" $ac_func.$ac_objext "* ) ;;
22791 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22799 if test $ac_cv_func_mkstemp = no; then
22800 gl_cv_func_mkstemp_limitations=yes
22802 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
22803 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
22804 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 mkdir conftest.mkstemp
22809 if test "$cross_compiling" = yes; then
22810 gl_cv_func_mkstemp_limitations=yes
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22820 # include <stdlib.h>
22821 # include <unistd.h>
22825 for (i = 0; i < 70; i++)
22827 char template[] = "conftest.mkstemp/coXXXXXX";
22828 int fd = mkstemp (template);
22837 rm -f conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_link") 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22848 { (case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_try") 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 gl_cv_func_mkstemp_limitations=no
22859 echo "$as_me: program exited with status $ac_status" >&5
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ( exit $ac_status )
22864 gl_cv_func_mkstemp_limitations=yes
22866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22870 rm -rf conftest.mkstemp
22874 { echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
22875 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6; }
22878 if test $gl_cv_func_mkstemp_limitations = yes; then
22879 case " $LIBOBJS " in
22880 *" mkstemp.$ac_objext "* ) ;;
22881 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
22885 case " $LIBOBJS " in
22886 *" tempname.$ac_objext "* ) ;;
22887 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
22892 cat >>confdefs.h <<\_ACEOF
22893 #define mkstemp rpl_mkstemp
22907 for ac_func in __secure_getenv gettimeofday
22909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22923 #define $ac_func innocuous_$ac_func
22925 /* System header to define __stub macros and hopefully few prototypes,
22926 which can conflict with char $ac_func (); below.
22927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22928 <limits.h> exists even on freestanding compilers. */
22931 # include <limits.h>
22933 # include <assert.h>
22938 /* Override any GCC internal prototype to avoid an error.
22939 Use char because int might match the return type of a GCC
22940 builtin and then its argument prototype would still apply. */
22945 /* The GNU C library defines this for functions which it implements
22946 to always fail with ENOSYS. Some functions are actually named
22947 something starting with __ and the normal name is an alias. */
22948 #if defined __stub_$ac_func || defined __stub___$ac_func
22955 return $ac_func ();
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961 if { (ac_try="$ac_link"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_link") 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } &&
22974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22975 { (case "(($ac_try" in
22976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977 *) ac_try_echo=$ac_try;;
22979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22980 (eval "$ac_try") 2>&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; } &&
22984 { ac_try='test -s conftest$ac_exeext'
22985 { (case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_try") 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22994 eval "$as_ac_var=yes"
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 eval "$as_ac_var=no"
23002 rm -f core conftest.err conftest.$ac_objext \
23003 conftest$ac_exeext conftest.$ac_ext
23005 ac_res=`eval echo '${'$as_ac_var'}'`
23006 { echo "$as_me:$LINENO: result: $ac_res" >&5
23007 echo "${ECHO_T}$ac_res" >&6; }
23008 if test `eval echo '${'$as_ac_var'}'` = yes; then
23009 cat >>confdefs.h <<_ACEOF
23010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23020 { echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
23021 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6; }
23022 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 $ac_includes_default
23036 char *p = (char *) euidaccess;
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_compile") 2>conftest.er1
23053 grep -v '^ *+' conftest.er1 >conftest.err
23055 cat conftest.err >&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } &&
23058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23059 { (case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_try") 2>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } &&
23068 { ac_try='test -s conftest.$ac_objext'
23069 { (case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_try") 2>&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; }; then
23078 ac_cv_have_decl_euidaccess=yes
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_cv_have_decl_euidaccess=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
23089 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6; }
23090 if test $ac_cv_have_decl_euidaccess = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_EUIDACCESS 1
23098 cat >>confdefs.h <<_ACEOF
23099 #define HAVE_DECL_EUIDACCESS 0
23108 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
23109 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
23110 if test "${ac_cv_have_decl_setregid+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 $ac_includes_default
23124 char *p = (char *) setregid;
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } &&
23146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23147 { (case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_try") 2>&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; } &&
23156 { ac_try='test -s conftest.$ac_objext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_have_decl_setregid=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_cv_have_decl_setregid=no
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
23177 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
23178 if test $ac_cv_have_decl_setregid = yes; then
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_SETREGID 1
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_SETREGID 0
23194 { echo "$as_me:$LINENO: checking for getgroups" >&5
23195 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
23196 if test "${ac_cv_func_getgroups+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23207 #define getgroups innocuous_getgroups
23209 /* System header to define __stub macros and hopefully few prototypes,
23210 which can conflict with char getgroups (); below.
23211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23212 <limits.h> exists even on freestanding compilers. */
23215 # include <limits.h>
23217 # include <assert.h>
23222 /* Override any GCC internal prototype to avoid an error.
23223 Use char because int might match the return type of a GCC
23224 builtin and then its argument prototype would still apply. */
23229 /* The GNU C library defines this for functions which it implements
23230 to always fail with ENOSYS. Some functions are actually named
23231 something starting with __ and the normal name is an alias. */
23232 #if defined __stub_getgroups || defined __stub___getgroups
23239 return getgroups ();
23244 rm -f conftest.$ac_objext conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251 (eval "$ac_link") 2>conftest.er1
23253 grep -v '^ *+' conftest.er1 >conftest.err
23255 cat conftest.err >&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } &&
23258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23259 { (case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_try") 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest$ac_exeext'
23269 { (case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_try") 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_func_getgroups=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_func_getgroups=no
23286 rm -f core conftest.err conftest.$ac_objext \
23287 conftest$ac_exeext conftest.$ac_ext
23289 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23290 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
23293 # If we don't yet have getgroups, see if it's in -lbsd.
23294 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23296 if test $ac_cv_func_getgroups = no; then
23297 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23298 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
23299 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 ac_check_lib_save_LIBS=$LIBS
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 /* Override any GCC internal prototype to avoid an error.
23312 Use char because int might match the return type of a GCC
23313 builtin and then its argument prototype would still apply. */
23321 return getgroups ();
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (ac_try="$ac_link"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_link") 2>conftest.er1
23335 grep -v '^ *+' conftest.er1 >conftest.err
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } &&
23340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23341 { (case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346 (eval "$ac_try") 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest$ac_exeext'
23351 { (case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356 (eval "$ac_try") 2>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23360 ac_cv_lib_bsd_getgroups=yes
23362 echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23365 ac_cv_lib_bsd_getgroups=no
23368 rm -f core conftest.err conftest.$ac_objext \
23369 conftest$ac_exeext conftest.$ac_ext
23370 LIBS=$ac_check_lib_save_LIBS
23372 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23373 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
23374 if test $ac_cv_lib_bsd_getgroups = yes; then
23375 GETGROUPS_LIB=-lbsd
23380 # Run the program to test the functionality of the system-supplied
23381 # getgroups function only if there is such a function.
23382 if test $ac_cv_func_getgroups = yes; then
23383 { echo "$as_me:$LINENO: checking for working getgroups" >&5
23384 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
23385 if test "${ac_cv_func_getgroups_works+set}" = set; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 if test "$cross_compiling" = yes; then
23389 ac_cv_func_getgroups_works=no
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23401 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
23402 return getgroups (0, 0) == -1;
23407 rm -f conftest$ac_exeext
23408 if { (ac_try="$ac_link"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_link") 2>&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23418 { (case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_try") 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_func_getgroups_works=yes
23429 echo "$as_me: program exited with status $ac_status" >&5
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ( exit $ac_status )
23434 ac_cv_func_getgroups_works=no
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23442 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23443 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
23444 if test $ac_cv_func_getgroups_works = yes; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_GETGROUPS 1
23462 for ac_func in euidaccess
23464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23478 #define $ac_func innocuous_$ac_func
23480 /* System header to define __stub macros and hopefully few prototypes,
23481 which can conflict with char $ac_func (); below.
23482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23483 <limits.h> exists even on freestanding compilers. */
23486 # include <limits.h>
23488 # include <assert.h>
23493 /* Override any GCC internal prototype to avoid an error.
23494 Use char because int might match the return type of a GCC
23495 builtin and then its argument prototype would still apply. */
23500 /* The GNU C library defines this for functions which it implements
23501 to always fail with ENOSYS. Some functions are actually named
23502 something starting with __ and the normal name is an alias. */
23503 #if defined __stub_$ac_func || defined __stub___$ac_func
23510 return $ac_func ();
23515 rm -f conftest.$ac_objext conftest$ac_exeext
23516 if { (ac_try="$ac_link"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_link") 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
23529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23530 { (case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_try") 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; } &&
23539 { ac_try='test -s conftest$ac_exeext'
23540 { (case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_try") 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
23549 eval "$as_ac_var=yes"
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 eval "$as_ac_var=no"
23557 rm -f core conftest.err conftest.$ac_objext \
23558 conftest$ac_exeext conftest.$ac_ext
23560 ac_res=`eval echo '${'$as_ac_var'}'`
23561 { echo "$as_me:$LINENO: result: $ac_res" >&5
23562 echo "${ECHO_T}$ac_res" >&6; }
23563 if test `eval echo '${'$as_ac_var'}'` = yes; then
23564 cat >>confdefs.h <<_ACEOF
23565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23569 case " $LIBOBJS " in
23570 *" $ac_func.$ac_objext "* ) ;;
23571 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23579 if test $ac_cv_func_euidaccess = no; then
23593 # Solaris 9 needs -lgen to get the eaccess function.
23594 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
23595 # programs in the package would end up linked with that potentially-shared
23596 # library, inducing unnecessary run-time overhead.
23597 gl_saved_libs=$LIBS
23598 { echo "$as_me:$LINENO: checking for library containing eaccess" >&5
23599 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6; }
23600 if test "${ac_cv_search_eaccess+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 ac_func_search_save_LIBS=$LIBS
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23611 /* Override any GCC internal prototype to avoid an error.
23612 Use char because int might match the return type of a GCC
23613 builtin and then its argument prototype would still apply. */
23626 for ac_lib in '' gen; do
23627 if test -z "$ac_lib"; then
23628 ac_res="none required"
23631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_link") 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23648 { (case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_try") 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_try") 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_search_eaccess=$ac_res
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23675 rm -f core conftest.err conftest.$ac_objext \
23677 if test "${ac_cv_search_eaccess+set}" = set; then
23681 if test "${ac_cv_search_eaccess+set}" = set; then
23684 ac_cv_search_eaccess=no
23686 rm conftest.$ac_ext
23687 LIBS=$ac_func_search_save_LIBS
23689 { echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
23690 echo "${ECHO_T}$ac_cv_search_eaccess" >&6; }
23691 ac_res=$ac_cv_search_eaccess
23692 if test "$ac_res" != no; then
23693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23694 test "$ac_cv_search_eaccess" = "none required" ||
23695 LIB_EACCESS=$ac_cv_search_eaccess
23700 for ac_func in eaccess
23702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23716 #define $ac_func innocuous_$ac_func
23718 /* System header to define __stub macros and hopefully few prototypes,
23719 which can conflict with char $ac_func (); below.
23720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23721 <limits.h> exists even on freestanding compilers. */
23724 # include <limits.h>
23726 # include <assert.h>
23731 /* Override any GCC internal prototype to avoid an error.
23732 Use char because int might match the return type of a GCC
23733 builtin and then its argument prototype would still apply. */
23738 /* The GNU C library defines this for functions which it implements
23739 to always fail with ENOSYS. Some functions are actually named
23740 something starting with __ and the normal name is an alias. */
23741 #if defined __stub_$ac_func || defined __stub___$ac_func
23748 return $ac_func ();
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (ac_try="$ac_link"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760 (eval "$ac_link") 2>conftest.er1
23762 grep -v '^ *+' conftest.er1 >conftest.err
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
23767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23768 { (case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_try") 2>&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); }; } &&
23777 { ac_try='test -s conftest$ac_exeext'
23778 { (case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_try") 2>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 eval "$as_ac_var=yes"
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 eval "$as_ac_var=no"
23795 rm -f core conftest.err conftest.$ac_objext \
23796 conftest$ac_exeext conftest.$ac_ext
23798 ac_res=`eval echo '${'$as_ac_var'}'`
23799 { echo "$as_me:$LINENO: result: $ac_res" >&5
23800 echo "${ECHO_T}$ac_res" >&6; }
23801 if test `eval echo '${'$as_ac_var'}'` = yes; then
23802 cat >>confdefs.h <<_ACEOF
23803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23809 LIBS=$gl_saved_libs
23816 cat >>confdefs.h <<\_ACEOF
23817 #define PREFER_NONREENTRANT_EUIDACCESS 1
23823 for ac_func in readlink
23825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23831 cat >conftest.$ac_ext <<_ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23839 #define $ac_func innocuous_$ac_func
23841 /* System header to define __stub macros and hopefully few prototypes,
23842 which can conflict with char $ac_func (); below.
23843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23844 <limits.h> exists even on freestanding compilers. */
23847 # include <limits.h>
23849 # include <assert.h>
23854 /* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23861 /* The GNU C library defines this for functions which it implements
23862 to always fail with ENOSYS. Some functions are actually named
23863 something starting with __ and the normal name is an alias. */
23864 #if defined __stub_$ac_func || defined __stub___$ac_func
23871 return $ac_func ();
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (ac_try="$ac_link"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883 (eval "$ac_link") 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891 { (case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_try") 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest$ac_exeext'
23901 { (case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_try") 2>&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 eval "$as_ac_var=yes"
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 eval "$as_ac_var=no"
23918 rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
23921 ac_res=`eval echo '${'$as_ac_var'}'`
23922 { echo "$as_me:$LINENO: result: $ac_res" >&5
23923 echo "${ECHO_T}$ac_res" >&6; }
23924 if test `eval echo '${'$as_ac_var'}'` = yes; then
23925 cat >>confdefs.h <<_ACEOF
23926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23932 if test $ac_cv_func_readlink = no; then
23933 case " $LIBOBJS " in
23934 *" readlink.$ac_objext "* ) ;;
23935 *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
23946 for ac_func in rmdir
23948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23954 cat >conftest.$ac_ext <<_ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h. */
23960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23962 #define $ac_func innocuous_$ac_func
23964 /* System header to define __stub macros and hopefully few prototypes,
23965 which can conflict with char $ac_func (); below.
23966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23967 <limits.h> exists even on freestanding compilers. */
23970 # include <limits.h>
23972 # include <assert.h>
23977 /* Override any GCC internal prototype to avoid an error.
23978 Use char because int might match the return type of a GCC
23979 builtin and then its argument prototype would still apply. */
23984 /* The GNU C library defines this for functions which it implements
23985 to always fail with ENOSYS. Some functions are actually named
23986 something starting with __ and the normal name is an alias. */
23987 #if defined __stub_$ac_func || defined __stub___$ac_func
23994 return $ac_func ();
23999 rm -f conftest.$ac_objext conftest$ac_exeext
24000 if { (ac_try="$ac_link"
24001 case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_link") 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } &&
24013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24014 { (case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24019 (eval "$ac_try") 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest$ac_exeext'
24024 { (case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_try") 2>&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; }; then
24033 eval "$as_ac_var=yes"
24035 echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 eval "$as_ac_var=no"
24041 rm -f core conftest.err conftest.$ac_objext \
24042 conftest$ac_exeext conftest.$ac_ext
24044 ac_res=`eval echo '${'$as_ac_var'}'`
24045 { echo "$as_me:$LINENO: result: $ac_res" >&5
24046 echo "${ECHO_T}$ac_res" >&6; }
24047 if test `eval echo '${'$as_ac_var'}'` = yes; then
24048 cat >>confdefs.h <<_ACEOF
24049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24053 case " $LIBOBJS " in
24054 *" $ac_func.$ac_objext "* ) ;;
24055 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24066 for ac_func in rpmatch
24068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24082 #define $ac_func innocuous_$ac_func
24084 /* System header to define __stub macros and hopefully few prototypes,
24085 which can conflict with char $ac_func (); below.
24086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24087 <limits.h> exists even on freestanding compilers. */
24090 # include <limits.h>
24092 # include <assert.h>
24097 /* Override any GCC internal prototype to avoid an error.
24098 Use char because int might match the return type of a GCC
24099 builtin and then its argument prototype would still apply. */
24104 /* The GNU C library defines this for functions which it implements
24105 to always fail with ENOSYS. Some functions are actually named
24106 something starting with __ and the normal name is an alias. */
24107 #if defined __stub_$ac_func || defined __stub___$ac_func
24114 return $ac_func ();
24119 rm -f conftest.$ac_objext conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_link") 2>conftest.er1
24128 grep -v '^ *+' conftest.er1 >conftest.err
24130 cat conftest.err >&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } &&
24133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24134 { (case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_try") 2>&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; } &&
24143 { ac_try='test -s conftest$ac_exeext'
24144 { (case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_try") 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24153 eval "$as_ac_var=yes"
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 eval "$as_ac_var=no"
24161 rm -f core conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
24164 ac_res=`eval echo '${'$as_ac_var'}'`
24165 { echo "$as_me:$LINENO: result: $ac_res" >&5
24166 echo "${ECHO_T}$ac_res" >&6; }
24167 if test `eval echo '${'$as_ac_var'}'` = yes; then
24168 cat >>confdefs.h <<_ACEOF
24169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24173 case " $LIBOBJS " in
24174 *" $ac_func.$ac_objext "* ) ;;
24175 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24183 if test $ac_cv_func_rpmatch = no; then
24192 for ac_func in setenv unsetenv
24194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24208 #define $ac_func innocuous_$ac_func
24210 /* System header to define __stub macros and hopefully few prototypes,
24211 which can conflict with char $ac_func (); below.
24212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24213 <limits.h> exists even on freestanding compilers. */
24216 # include <limits.h>
24218 # include <assert.h>
24223 /* Override any GCC internal prototype to avoid an error.
24224 Use char because int might match the return type of a GCC
24225 builtin and then its argument prototype would still apply. */
24230 /* The GNU C library defines this for functions which it implements
24231 to always fail with ENOSYS. Some functions are actually named
24232 something starting with __ and the normal name is an alias. */
24233 #if defined __stub_$ac_func || defined __stub___$ac_func
24240 return $ac_func ();
24245 rm -f conftest.$ac_objext conftest$ac_exeext
24246 if { (ac_try="$ac_link"
24247 case "(($ac_try" in
24248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249 *) ac_try_echo=$ac_try;;
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252 (eval "$ac_link") 2>conftest.er1
24254 grep -v '^ *+' conftest.er1 >conftest.err
24256 cat conftest.err >&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } &&
24259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24260 { (case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_try") 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; } &&
24269 { ac_try='test -s conftest$ac_exeext'
24270 { (case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275 (eval "$ac_try") 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279 eval "$as_ac_var=yes"
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 eval "$as_ac_var=no"
24287 rm -f core conftest.err conftest.$ac_objext \
24288 conftest$ac_exeext conftest.$ac_ext
24290 ac_res=`eval echo '${'$as_ac_var'}'`
24291 { echo "$as_me:$LINENO: result: $ac_res" >&5
24292 echo "${ECHO_T}$ac_res" >&6; }
24293 if test `eval echo '${'$as_ac_var'}'` = yes; then
24294 cat >>confdefs.h <<_ACEOF
24295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24299 case " $LIBOBJS " in
24300 *" $ac_func.$ac_objext "* ) ;;
24301 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24309 if test $ac_cv_func_setenv = no; then
24319 for ac_header in search.h
24321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24326 echo $ECHO_N "(cached) $ECHO_C" >&6
24328 ac_res=`eval echo '${'$as_ac_Header'}'`
24329 { echo "$as_me:$LINENO: result: $ac_res" >&5
24330 echo "${ECHO_T}$ac_res" >&6; }
24332 # Is the header compilable?
24333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24335 cat >conftest.$ac_ext <<_ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h. */
24341 $ac_includes_default
24342 #include <$ac_header>
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
24358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24359 { (case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_try") 2>&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest.$ac_objext'
24369 { (case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374 (eval "$ac_try") 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 ac_header_compiler=yes
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 ac_header_compiler=no
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24388 echo "${ECHO_T}$ac_header_compiler" >&6; }
24390 # Is the header present?
24391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24399 #include <$ac_header>
24401 if { (ac_try="$ac_cpp conftest.$ac_ext"
24402 case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24409 grep -v '^ *+' conftest.er1 >conftest.err
24411 cat conftest.err >&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } >/dev/null; then
24414 if test -s conftest.err; then
24415 ac_cpp_err=$ac_c_preproc_warn_flag
24416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24423 if test -z "$ac_cpp_err"; then
24424 ac_header_preproc=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_header_preproc=no
24432 rm -f conftest.err conftest.$ac_ext
24433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24434 echo "${ECHO_T}$ac_header_preproc" >&6; }
24436 # So? What about this header?
24437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24443 ac_header_preproc=yes
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24459 ## ------------------------------------ ##
24460 ## Report this to bug-coreutils@gnu.org ##
24461 ## ------------------------------------ ##
24463 ) | sed "s/^/$as_me: WARNING: /" >&2
24466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 eval "$as_ac_Header=\$ac_header_preproc"
24473 ac_res=`eval echo '${'$as_ac_Header'}'`
24474 { echo "$as_me:$LINENO: result: $ac_res" >&5
24475 echo "${ECHO_T}$ac_res" >&6; }
24478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24479 cat >>confdefs.h <<_ACEOF
24480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24488 for ac_func in tsearch
24490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24504 #define $ac_func innocuous_$ac_func
24506 /* System header to define __stub macros and hopefully few prototypes,
24507 which can conflict with char $ac_func (); below.
24508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24509 <limits.h> exists even on freestanding compilers. */
24512 # include <limits.h>
24514 # include <assert.h>
24519 /* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24526 /* The GNU C library defines this for functions which it implements
24527 to always fail with ENOSYS. Some functions are actually named
24528 something starting with __ and the normal name is an alias. */
24529 #if defined __stub_$ac_func || defined __stub___$ac_func
24536 return $ac_func ();
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (ac_try="$ac_link"
24543 case "(($ac_try" in
24544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545 *) ac_try_echo=$ac_try;;
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548 (eval "$ac_link") 2>conftest.er1
24550 grep -v '^ *+' conftest.er1 >conftest.err
24552 cat conftest.err >&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } &&
24555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24556 { (case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_try") 2>&5
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; } &&
24565 { ac_try='test -s conftest$ac_exeext'
24566 { (case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_try") 2>&5
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24575 eval "$as_ac_var=yes"
24577 echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24580 eval "$as_ac_var=no"
24583 rm -f core conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
24586 ac_res=`eval echo '${'$as_ac_var'}'`
24587 { echo "$as_me:$LINENO: result: $ac_res" >&5
24588 echo "${ECHO_T}$ac_res" >&6; }
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24599 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24600 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24601 if test "${gt_cv_var_environ_declaration+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 #include <unistd.h>
24612 extern struct { int foo; } environ;
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
24635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24636 { (case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_try") 2>&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest.$ac_objext'
24646 { (case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_try") 2>&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 gt_cv_var_environ_declaration=no
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 gt_cv_var_environ_declaration=yes
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24667 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24668 if test $gt_cv_var_environ_declaration = yes; then
24670 cat >>confdefs.h <<\_ACEOF
24671 #define HAVE_ENVIRON_DECL 1
24678 if test $ac_cv_func_unsetenv = no; then
24688 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
24689 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
24690 if test "${gt_cv_var_environ_declaration+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 cat >conftest.$ac_ext <<_ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 #include <unistd.h>
24701 extern struct { int foo; } environ;
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_compile") 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
24724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24725 { (case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_try") 2>&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try='test -s conftest.$ac_objext'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_try") 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 gt_cv_var_environ_declaration=no
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 gt_cv_var_environ_declaration=yes
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24755 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
24756 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
24757 if test $gt_cv_var_environ_declaration = yes; then
24759 cat >>confdefs.h <<\_ACEOF
24760 #define HAVE_ENVIRON_DECL 1
24767 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
24768 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
24769 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24778 #include <stdlib.h>
24783 #if defined(__STDC__) || defined(__cplusplus)
24784 int unsetenv (const char *name);
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801 *) ac_try_echo=$ac_try;;
24803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24804 (eval "$ac_compile") 2>conftest.er1
24806 grep -v '^ *+' conftest.er1 >conftest.err
24808 cat conftest.err >&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); } &&
24811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817 (eval "$ac_try") 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; } &&
24821 { ac_try='test -s conftest.$ac_objext'
24822 { (case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_try") 2>&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; }; then
24831 gt_cv_func_unsetenv_ret='int'
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 gt_cv_func_unsetenv_ret='void'
24839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
24842 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
24843 if test $gt_cv_func_unsetenv_ret = 'void'; then
24845 cat >>confdefs.h <<\_ACEOF
24846 #define VOID_UNSETENV 1
24856 for ac_func in sig2str
24858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24872 #define $ac_func innocuous_$ac_func
24874 /* System header to define __stub macros and hopefully few prototypes,
24875 which can conflict with char $ac_func (); below.
24876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24877 <limits.h> exists even on freestanding compilers. */
24880 # include <limits.h>
24882 # include <assert.h>
24887 /* Override any GCC internal prototype to avoid an error.
24888 Use char because int might match the return type of a GCC
24889 builtin and then its argument prototype would still apply. */
24894 /* The GNU C library defines this for functions which it implements
24895 to always fail with ENOSYS. Some functions are actually named
24896 something starting with __ and the normal name is an alias. */
24897 #if defined __stub_$ac_func || defined __stub___$ac_func
24904 return $ac_func ();
24909 rm -f conftest.$ac_objext conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_link") 2>conftest.er1
24918 grep -v '^ *+' conftest.er1 >conftest.err
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } &&
24923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24924 { (case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929 (eval "$ac_try") 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest$ac_exeext'
24934 { (case "(($ac_try" in
24935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936 *) ac_try_echo=$ac_try;;
24938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939 (eval "$ac_try") 2>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 eval "$as_ac_var=yes"
24945 echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24948 eval "$as_ac_var=no"
24951 rm -f core conftest.err conftest.$ac_objext \
24952 conftest$ac_exeext conftest.$ac_ext
24954 ac_res=`eval echo '${'$as_ac_var'}'`
24955 { echo "$as_me:$LINENO: result: $ac_res" >&5
24956 echo "${ECHO_T}$ac_res" >&6; }
24957 if test `eval echo '${'$as_ac_var'}'` = yes; then
24958 cat >>confdefs.h <<_ACEOF
24959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24963 case " $LIBOBJS " in
24964 *" $ac_func.$ac_objext "* ) ;;
24965 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24973 if test $ac_cv_func_sig2str = no; then
24983 for ac_func in stpcpy
24985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24999 #define $ac_func innocuous_$ac_func
25001 /* System header to define __stub macros and hopefully few prototypes,
25002 which can conflict with char $ac_func (); below.
25003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25004 <limits.h> exists even on freestanding compilers. */
25007 # include <limits.h>
25009 # include <assert.h>
25014 /* Override any GCC internal prototype to avoid an error.
25015 Use char because int might match the return type of a GCC
25016 builtin and then its argument prototype would still apply. */
25021 /* The GNU C library defines this for functions which it implements
25022 to always fail with ENOSYS. Some functions are actually named
25023 something starting with __ and the normal name is an alias. */
25024 #if defined __stub_$ac_func || defined __stub___$ac_func
25031 return $ac_func ();
25036 rm -f conftest.$ac_objext conftest$ac_exeext
25037 if { (ac_try="$ac_link"
25038 case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_link") 2>conftest.er1
25045 grep -v '^ *+' conftest.er1 >conftest.err
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } &&
25050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25051 { (case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_try") 2>&5
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; } &&
25060 { ac_try='test -s conftest$ac_exeext'
25061 { (case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066 (eval "$ac_try") 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 eval "$as_ac_var=yes"
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25075 eval "$as_ac_var=no"
25078 rm -f core conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
25081 ac_res=`eval echo '${'$as_ac_var'}'`
25082 { echo "$as_me:$LINENO: result: $ac_res" >&5
25083 echo "${ECHO_T}$ac_res" >&6; }
25084 if test `eval echo '${'$as_ac_var'}'` = yes; then
25085 cat >>confdefs.h <<_ACEOF
25086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25090 case " $LIBOBJS " in
25091 *" $ac_func.$ac_objext "* ) ;;
25092 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25100 if test $ac_cv_func_stpcpy = no; then
25108 for ac_func in strcspn
25110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25114 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25124 #define $ac_func innocuous_$ac_func
25126 /* System header to define __stub macros and hopefully few prototypes,
25127 which can conflict with char $ac_func (); below.
25128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25129 <limits.h> exists even on freestanding compilers. */
25132 # include <limits.h>
25134 # include <assert.h>
25139 /* Override any GCC internal prototype to avoid an error.
25140 Use char because int might match the return type of a GCC
25141 builtin and then its argument prototype would still apply. */
25146 /* The GNU C library defines this for functions which it implements
25147 to always fail with ENOSYS. Some functions are actually named
25148 something starting with __ and the normal name is an alias. */
25149 #if defined __stub_$ac_func || defined __stub___$ac_func
25156 return $ac_func ();
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165 *) ac_try_echo=$ac_try;;
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168 (eval "$ac_link") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
25175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25176 { (case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_try") 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; } &&
25185 { ac_try='test -s conftest$ac_exeext'
25186 { (case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_try") 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 eval "$as_ac_var=yes"
25197 echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25200 eval "$as_ac_var=no"
25203 rm -f core conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25206 ac_res=`eval echo '${'$as_ac_var'}'`
25207 { echo "$as_me:$LINENO: result: $ac_res" >&5
25208 echo "${ECHO_T}$ac_res" >&6; }
25209 if test `eval echo '${'$as_ac_var'}'` = yes; then
25210 cat >>confdefs.h <<_ACEOF
25211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25215 case " $LIBOBJS " in
25216 *" $ac_func.$ac_objext "* ) ;;
25217 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25225 if test $ac_cv_func_strcspn = no; then
25229 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
25230 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
25231 if test "${ac_cv_have_decl_strdup+set}" = set; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25234 cat >conftest.$ac_ext <<_ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h. */
25240 $ac_includes_default
25245 char *p = (char *) strdup;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260 (eval "$ac_compile") 2>conftest.er1
25262 grep -v '^ *+' conftest.er1 >conftest.err
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } &&
25267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25268 { (case "(($ac_try" in
25269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270 *) ac_try_echo=$ac_try;;
25272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25273 (eval "$ac_try") 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } &&
25277 { ac_try='test -s conftest.$ac_objext'
25278 { (case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283 (eval "$ac_try") 2>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; }; then
25287 ac_cv_have_decl_strdup=yes
25289 echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 ac_cv_have_decl_strdup=no
25295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
25298 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
25299 if test $ac_cv_have_decl_strdup = yes; then
25301 cat >>confdefs.h <<_ACEOF
25302 #define HAVE_DECL_STRDUP 1
25307 cat >>confdefs.h <<_ACEOF
25308 #define HAVE_DECL_STRDUP 0
25319 for ac_func in strdup
25321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 cat >conftest.$ac_ext <<_ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25335 #define $ac_func innocuous_$ac_func
25337 /* System header to define __stub macros and hopefully few prototypes,
25338 which can conflict with char $ac_func (); below.
25339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25340 <limits.h> exists even on freestanding compilers. */
25343 # include <limits.h>
25345 # include <assert.h>
25350 /* Override any GCC internal prototype to avoid an error.
25351 Use char because int might match the return type of a GCC
25352 builtin and then its argument prototype would still apply. */
25357 /* The GNU C library defines this for functions which it implements
25358 to always fail with ENOSYS. Some functions are actually named
25359 something starting with __ and the normal name is an alias. */
25360 #if defined __stub_$ac_func || defined __stub___$ac_func
25367 return $ac_func ();
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>conftest.er1
25381 grep -v '^ *+' conftest.er1 >conftest.err
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } &&
25386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25387 { (case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_try") 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest$ac_exeext'
25397 { (case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_try") 2>&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 eval "$as_ac_var=yes"
25408 echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25411 eval "$as_ac_var=no"
25414 rm -f core conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
25417 ac_res=`eval echo '${'$as_ac_var'}'`
25418 { echo "$as_me:$LINENO: result: $ac_res" >&5
25419 echo "${ECHO_T}$ac_res" >&6; }
25420 if test `eval echo '${'$as_ac_var'}'` = yes; then
25421 cat >>confdefs.h <<_ACEOF
25422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25426 case " $LIBOBJS " in
25427 *" $ac_func.$ac_objext "* ) ;;
25428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25442 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
25443 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
25444 if test "${ac_cv_have_decl_strndup+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25458 char *p = (char *) strndup;
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_compile") 2>conftest.er1
25475 grep -v '^ *+' conftest.er1 >conftest.err
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } &&
25480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25481 { (case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486 (eval "$ac_try") 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest.$ac_objext'
25491 { (case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496 (eval "$ac_try") 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500 ac_cv_have_decl_strndup=yes
25502 echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25505 ac_cv_have_decl_strndup=no
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
25511 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
25512 if test $ac_cv_have_decl_strndup = yes; then
25514 cat >>confdefs.h <<_ACEOF
25515 #define HAVE_DECL_STRNDUP 1
25520 cat >>confdefs.h <<_ACEOF
25521 #define HAVE_DECL_STRNDUP 0
25538 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
25539 { echo "$as_me:$LINENO: checking for working strndup" >&5
25540 echo $ECHO_N "checking for working strndup... $ECHO_C" >&6; }
25541 if test "${gl_cv_func_strndup+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 if test "$cross_compiling" = yes; then
25545 { echo "$as_me:$LINENO: checking for strndup" >&5
25546 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
25547 if test "${ac_cv_func_strndup+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
25557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25558 #define strndup innocuous_strndup
25560 /* System header to define __stub macros and hopefully few prototypes,
25561 which can conflict with char strndup (); below.
25562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25563 <limits.h> exists even on freestanding compilers. */
25566 # include <limits.h>
25568 # include <assert.h>
25573 /* Override any GCC internal prototype to avoid an error.
25574 Use char because int might match the return type of a GCC
25575 builtin and then its argument prototype would still apply. */
25580 /* The GNU C library defines this for functions which it implements
25581 to always fail with ENOSYS. Some functions are actually named
25582 something starting with __ and the normal name is an alias. */
25583 #if defined __stub_strndup || defined __stub___strndup
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_link") 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } &&
25609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25610 { (case "(($ac_try" in
25611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612 *) ac_try_echo=$ac_try;;
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615 (eval "$ac_try") 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; } &&
25619 { ac_try='test -s conftest$ac_exeext'
25620 { (case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625 (eval "$ac_try") 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
25629 ac_cv_func_strndup=yes
25631 echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25634 ac_cv_func_strndup=no
25637 rm -f core conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext conftest.$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
25641 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
25642 if test $ac_cv_func_strndup = yes; then
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25656 $EGREP "too risky" >/dev/null 2>&1; then
25657 gl_cv_func_strndup=no
25659 gl_cv_func_strndup=yes
25664 gl_cv_func_strndup=no
25668 cat >conftest.$ac_ext <<_ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 #include <string.h>
25680 #ifndef HAVE_DECL_STRNDUP
25681 extern char *strndup (const char *, size_t);
25684 s = strndup ("some longer string", 15);
25686 s = strndup ("shorter string", 13);
25687 return s[13] != '\0';
25692 rm -f conftest$ac_exeext
25693 if { (ac_try="$ac_link"
25694 case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_link") 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25703 { (case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_try") 2>&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 gl_cv_func_strndup=yes
25714 echo "$as_me: program exited with status $ac_status" >&5
25715 echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25718 ( exit $ac_status )
25719 gl_cv_func_strndup=no
25721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25726 { echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
25727 echo "${ECHO_T}$gl_cv_func_strndup" >&6; }
25728 if test $gl_cv_func_strndup = yes; then
25730 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_STRNDUP 1
25735 case " $LIBOBJS " in
25736 *" strndup.$ac_objext "* ) ;;
25737 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
25742 cat >>confdefs.h <<\_ACEOF
25743 #define strndup rpl_strndup
25749 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
25750 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
25751 if test "${ac_cv_have_decl_strnlen+set}" = set; then
25752 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 cat >conftest.$ac_ext <<_ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h. */
25760 $ac_includes_default
25765 char *p = (char *) strnlen;
25773 rm -f conftest.$ac_objext
25774 if { (ac_try="$ac_compile"
25775 case "(($ac_try" in
25776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777 *) ac_try_echo=$ac_try;;
25779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780 (eval "$ac_compile") 2>conftest.er1
25782 grep -v '^ *+' conftest.er1 >conftest.err
25784 cat conftest.err >&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); } &&
25787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25788 { (case "(($ac_try" in
25789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25790 *) ac_try_echo=$ac_try;;
25792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25793 (eval "$ac_try") 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; } &&
25797 { ac_try='test -s conftest.$ac_objext'
25798 { (case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_try") 2>&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; }; then
25807 ac_cv_have_decl_strnlen=yes
25809 echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 ac_cv_have_decl_strnlen=no
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
25818 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
25819 if test $ac_cv_have_decl_strnlen = yes; then
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_DECL_STRNLEN 1
25827 cat >>confdefs.h <<_ACEOF
25828 #define HAVE_DECL_STRNLEN 0
25840 { echo "$as_me:$LINENO: checking for working strnlen" >&5
25841 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
25842 if test "${ac_cv_func_strnlen_working+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25845 if test "$cross_compiling" = yes; then
25846 ac_cv_func_strnlen_working=no
25848 cat >conftest.$ac_ext <<_ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 $ac_includes_default
25860 #define S_LEN (sizeof S - 1)
25862 /* At least one implementation is buggy: that of AIX 4.3 would
25863 give strnlen (S, 1) == 3. */
25866 for (i = 0; i < S_LEN + 1; ++i)
25868 int expected = i <= S_LEN ? i : S_LEN;
25869 if (strnlen (S, i) != expected)
25878 rm -f conftest$ac_exeext
25879 if { (ac_try="$ac_link"
25880 case "(($ac_try" in
25881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882 *) ac_try_echo=$ac_try;;
25884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25885 (eval "$ac_link") 2>&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25889 { (case "(($ac_try" in
25890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25891 *) ac_try_echo=$ac_try;;
25893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25894 (eval "$ac_try") 2>&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
25898 ac_cv_func_strnlen_working=yes
25900 echo "$as_me: program exited with status $ac_status" >&5
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25904 ( exit $ac_status )
25905 ac_cv_func_strnlen_working=no
25907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25912 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
25913 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
25914 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
25915 *" strnlen.$ac_objext "* ) ;;
25916 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
25921 if test $ac_cv_func_strnlen_working = no; then
25922 # This is necessary because automake-1.6.1 doens't understand
25923 # that the above use of AC_FUNC_STRNLEN means we may have to use
25925 #AC_LIBOBJ(strnlen)
25927 cat >>confdefs.h <<\_ACEOF
25928 #define strnlen rpl_strnlen
25941 for ac_func in strpbrk
25943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25949 cat >conftest.$ac_ext <<_ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25957 #define $ac_func innocuous_$ac_func
25959 /* System header to define __stub macros and hopefully few prototypes,
25960 which can conflict with char $ac_func (); below.
25961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25962 <limits.h> exists even on freestanding compilers. */
25965 # include <limits.h>
25967 # include <assert.h>
25972 /* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25979 /* The GNU C library defines this for functions which it implements
25980 to always fail with ENOSYS. Some functions are actually named
25981 something starting with __ and the normal name is an alias. */
25982 #if defined __stub_$ac_func || defined __stub___$ac_func
25989 return $ac_func ();
25994 rm -f conftest.$ac_objext conftest$ac_exeext
25995 if { (ac_try="$ac_link"
25996 case "(($ac_try" in
25997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998 *) ac_try_echo=$ac_try;;
26000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26001 (eval "$ac_link") 2>conftest.er1
26003 grep -v '^ *+' conftest.er1 >conftest.err
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
26008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26009 { (case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014 (eval "$ac_try") 2>&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; } &&
26018 { ac_try='test -s conftest$ac_exeext'
26019 { (case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_try") 2>&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 eval "$as_ac_var=yes"
26030 echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26033 eval "$as_ac_var=no"
26036 rm -f core conftest.err conftest.$ac_objext \
26037 conftest$ac_exeext conftest.$ac_ext
26039 ac_res=`eval echo '${'$as_ac_var'}'`
26040 { echo "$as_me:$LINENO: result: $ac_res" >&5
26041 echo "${ECHO_T}$ac_res" >&6; }
26042 if test `eval echo '${'$as_ac_var'}'` = yes; then
26043 cat >>confdefs.h <<_ACEOF
26044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26048 case " $LIBOBJS " in
26049 *" $ac_func.$ac_objext "* ) ;;
26050 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26058 if test $ac_cv_func_strpbrk = no; then
26063 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
26064 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
26065 if test "${gl_cv_func_mbrtowc+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 cat >conftest.$ac_ext <<_ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26079 char const s[] = "";
26082 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (ac_try="$ac_link"
26089 case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094 (eval "$ac_link") 2>conftest.er1
26096 grep -v '^ *+' conftest.er1 >conftest.err
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
26101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26102 { (case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107 (eval "$ac_try") 2>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; } &&
26111 { ac_try='test -s conftest$ac_exeext'
26112 { (case "(($ac_try" in
26113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114 *) ac_try_echo=$ac_try;;
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117 (eval "$ac_try") 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 gl_cv_func_mbrtowc=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 gl_cv_func_mbrtowc=no
26129 rm -f core conftest.err conftest.$ac_objext \
26130 conftest$ac_exeext conftest.$ac_ext
26132 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
26133 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
26134 if test $gl_cv_func_mbrtowc = yes; then
26136 cat >>confdefs.h <<\_ACEOF
26137 #define HAVE_MBRTOWC 1
26143 case " $LIBOBJS " in
26144 *" strstr.$ac_objext "* ) ;;
26145 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
26154 { echo "$as_me:$LINENO: checking for working strtod" >&5
26155 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
26156 if test "${ac_cv_func_strtod+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 if test "$cross_compiling" = yes; then
26160 ac_cv_func_strtod=no
26162 cat >conftest.$ac_ext <<_ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h. */
26169 $ac_includes_default
26177 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
26178 char *string = " +69";
26181 value = strtod (string, &term);
26182 if (value != 69 || term != (string + 4))
26187 /* Under Solaris 2.4, strtod returns the wrong value for the
26188 terminating character under some conditions. */
26189 char *string = "NaN";
26191 strtod (string, &term);
26192 if (term != string && *(term - 1) == 0)
26199 rm -f conftest$ac_exeext
26200 if { (ac_try="$ac_link"
26201 case "(($ac_try" in
26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_link") 2>&5
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26210 { (case "(($ac_try" in
26211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212 *) ac_try_echo=$ac_try;;
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215 (eval "$ac_try") 2>&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; }; then
26219 ac_cv_func_strtod=yes
26221 echo "$as_me: program exited with status $ac_status" >&5
26222 echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26225 ( exit $ac_status )
26226 ac_cv_func_strtod=no
26228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26233 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
26234 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
26235 if test $ac_cv_func_strtod = no; then
26236 case " $LIBOBJS " in
26237 *" strtod.$ac_objext "* ) ;;
26238 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26242 { echo "$as_me:$LINENO: checking for pow" >&5
26243 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
26244 if test "${ac_cv_func_pow+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26247 cat >conftest.$ac_ext <<_ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26253 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
26254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26255 #define pow innocuous_pow
26257 /* System header to define __stub macros and hopefully few prototypes,
26258 which can conflict with char pow (); below.
26259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26260 <limits.h> exists even on freestanding compilers. */
26263 # include <limits.h>
26265 # include <assert.h>
26270 /* Override any GCC internal prototype to avoid an error.
26271 Use char because int might match the return type of a GCC
26272 builtin and then its argument prototype would still apply. */
26277 /* The GNU C library defines this for functions which it implements
26278 to always fail with ENOSYS. Some functions are actually named
26279 something starting with __ and the normal name is an alias. */
26280 #if defined __stub_pow || defined __stub___pow
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (ac_try="$ac_link"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299 (eval "$ac_link") 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26307 { (case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_try") 2>&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest$ac_exeext'
26317 { (case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322 (eval "$ac_try") 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26334 rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext conftest.$ac_ext
26337 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
26338 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
26340 if test $ac_cv_func_pow = no; then
26341 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
26342 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
26343 if test "${ac_cv_lib_m_pow+set}" = set; then
26344 echo $ECHO_N "(cached) $ECHO_C" >&6
26346 ac_check_lib_save_LIBS=$LIBS
26348 cat >conftest.$ac_ext <<_ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26355 /* Override any GCC internal prototype to avoid an error.
26356 Use char because int might match the return type of a GCC
26357 builtin and then its argument prototype would still apply. */
26370 rm -f conftest.$ac_objext conftest$ac_exeext
26371 if { (ac_try="$ac_link"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_link") 2>conftest.er1
26379 grep -v '^ *+' conftest.er1 >conftest.err
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26385 { (case "(($ac_try" in
26386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387 *) ac_try_echo=$ac_try;;
26389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390 (eval "$ac_try") 2>&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest$ac_exeext'
26395 { (case "(($ac_try" in
26396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397 *) ac_try_echo=$ac_try;;
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400 (eval "$ac_try") 2>&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; }; then
26404 ac_cv_lib_m_pow=yes
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26412 rm -f core conftest.err conftest.$ac_objext \
26413 conftest$ac_exeext conftest.$ac_ext
26414 LIBS=$ac_check_lib_save_LIBS
26416 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
26417 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
26418 if test $ac_cv_lib_m_pow = yes; then
26421 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
26422 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26431 if test $ac_cv_func_strtod = no; then
26433 cat >>confdefs.h <<\_ACEOF
26434 #define strtod rpl_strtod
26444 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
26445 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
26446 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 #include <inttypes.h>
26457 inttypes_h_defines_strtoimax
26460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26461 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
26462 jm_cv_func_strtoimax_macro=yes
26464 jm_cv_func_strtoimax_macro=no
26469 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
26470 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
26472 if test "$jm_cv_func_strtoimax_macro" != yes; then
26474 for ac_func in strtoimax
26476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26490 #define $ac_func innocuous_$ac_func
26492 /* System header to define __stub macros and hopefully few prototypes,
26493 which can conflict with char $ac_func (); below.
26494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26495 <limits.h> exists even on freestanding compilers. */
26498 # include <limits.h>
26500 # include <assert.h>
26505 /* Override any GCC internal prototype to avoid an error.
26506 Use char because int might match the return type of a GCC
26507 builtin and then its argument prototype would still apply. */
26512 /* The GNU C library defines this for functions which it implements
26513 to always fail with ENOSYS. Some functions are actually named
26514 something starting with __ and the normal name is an alias. */
26515 #if defined __stub_$ac_func || defined __stub___$ac_func
26522 return $ac_func ();
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (ac_try="$ac_link"
26529 case "(($ac_try" in
26530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26531 *) ac_try_echo=$ac_try;;
26533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26534 (eval "$ac_link") 2>conftest.er1
26536 grep -v '^ *+' conftest.er1 >conftest.err
26538 cat conftest.err >&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); } &&
26541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26542 { (case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547 (eval "$ac_try") 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest$ac_exeext'
26552 { (case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_try") 2>&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); }; }; then
26561 eval "$as_ac_var=yes"
26563 echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 eval "$as_ac_var=no"
26569 rm -f core conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
26572 ac_res=`eval echo '${'$as_ac_var'}'`
26573 { echo "$as_me:$LINENO: result: $ac_res" >&5
26574 echo "${ECHO_T}$ac_res" >&6; }
26575 if test `eval echo '${'$as_ac_var'}'` = yes; then
26576 cat >>confdefs.h <<_ACEOF
26577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26581 case " $LIBOBJS " in
26582 *" $ac_func.$ac_objext "* ) ;;
26583 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26591 if test $ac_cv_func_strtoimax = no; then
26596 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
26598 test $ac_cv_type_long_long = yes \
26599 && ac_type='long long' \
26602 cat >>confdefs.h <<_ACEOF
26603 #define intmax_t $ac_type
26608 cat >>confdefs.h <<\_ACEOF
26609 #define HAVE_INTMAX_T 1
26614 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
26615 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
26616 if test "${ac_cv_have_decl_strtoll+set}" = set; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26619 cat >conftest.$ac_ext <<_ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h. */
26625 $ac_includes_default
26630 char *p = (char *) strtoll;
26638 rm -f conftest.$ac_objext
26639 if { (ac_try="$ac_compile"
26640 case "(($ac_try" in
26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645 (eval "$ac_compile") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
26652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26653 { (case "(($ac_try" in
26654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26655 *) ac_try_echo=$ac_try;;
26657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26658 (eval "$ac_try") 2>&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; } &&
26662 { ac_try='test -s conftest.$ac_objext'
26663 { (case "(($ac_try" in
26664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26665 *) ac_try_echo=$ac_try;;
26667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26668 (eval "$ac_try") 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
26672 ac_cv_have_decl_strtoll=yes
26674 echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26677 ac_cv_have_decl_strtoll=no
26680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
26683 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
26684 if test $ac_cv_have_decl_strtoll = yes; then
26686 cat >>confdefs.h <<_ACEOF
26687 #define HAVE_DECL_STRTOLL 1
26692 cat >>confdefs.h <<_ACEOF
26693 #define HAVE_DECL_STRTOLL 0
26707 if test "$ac_cv_type_long_long" = yes; then
26709 for ac_func in strtoll
26711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26725 #define $ac_func innocuous_$ac_func
26727 /* System header to define __stub macros and hopefully few prototypes,
26728 which can conflict with char $ac_func (); below.
26729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26730 <limits.h> exists even on freestanding compilers. */
26733 # include <limits.h>
26735 # include <assert.h>
26740 /* Override any GCC internal prototype to avoid an error.
26741 Use char because int might match the return type of a GCC
26742 builtin and then its argument prototype would still apply. */
26747 /* The GNU C library defines this for functions which it implements
26748 to always fail with ENOSYS. Some functions are actually named
26749 something starting with __ and the normal name is an alias. */
26750 #if defined __stub_$ac_func || defined __stub___$ac_func
26757 return $ac_func ();
26762 rm -f conftest.$ac_objext conftest$ac_exeext
26763 if { (ac_try="$ac_link"
26764 case "(($ac_try" in
26765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766 *) ac_try_echo=$ac_try;;
26768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26769 (eval "$ac_link") 2>conftest.er1
26771 grep -v '^ *+' conftest.er1 >conftest.err
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26777 { (case "(($ac_try" in
26778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779 *) ac_try_echo=$ac_try;;
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782 (eval "$ac_try") 2>&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; } &&
26786 { ac_try='test -s conftest$ac_exeext'
26787 { (case "(($ac_try" in
26788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789 *) ac_try_echo=$ac_try;;
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792 (eval "$ac_try") 2>&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; }; then
26796 eval "$as_ac_var=yes"
26798 echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801 eval "$as_ac_var=no"
26804 rm -f core conftest.err conftest.$ac_objext \
26805 conftest$ac_exeext conftest.$ac_ext
26807 ac_res=`eval echo '${'$as_ac_var'}'`
26808 { echo "$as_me:$LINENO: result: $ac_res" >&5
26809 echo "${ECHO_T}$ac_res" >&6; }
26810 if test `eval echo '${'$as_ac_var'}'` = yes; then
26811 cat >>confdefs.h <<_ACEOF
26812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26816 case " $LIBOBJS " in
26817 *" $ac_func.$ac_objext "* ) ;;
26818 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26826 if test $ac_cv_func_strtoll = no; then
26835 for ac_func in strtol
26837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26843 cat >conftest.$ac_ext <<_ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26851 #define $ac_func innocuous_$ac_func
26853 /* System header to define __stub macros and hopefully few prototypes,
26854 which can conflict with char $ac_func (); below.
26855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26856 <limits.h> exists even on freestanding compilers. */
26859 # include <limits.h>
26861 # include <assert.h>
26866 /* Override any GCC internal prototype to avoid an error.
26867 Use char because int might match the return type of a GCC
26868 builtin and then its argument prototype would still apply. */
26873 /* The GNU C library defines this for functions which it implements
26874 to always fail with ENOSYS. Some functions are actually named
26875 something starting with __ and the normal name is an alias. */
26876 #if defined __stub_$ac_func || defined __stub___$ac_func
26883 return $ac_func ();
26888 rm -f conftest.$ac_objext conftest$ac_exeext
26889 if { (ac_try="$ac_link"
26890 case "(($ac_try" in
26891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892 *) ac_try_echo=$ac_try;;
26894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26895 (eval "$ac_link") 2>conftest.er1
26897 grep -v '^ *+' conftest.er1 >conftest.err
26899 cat conftest.err >&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); } &&
26902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26903 { (case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_try") 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest$ac_exeext'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 eval "$as_ac_var=yes"
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 eval "$as_ac_var=no"
26930 rm -f core conftest.err conftest.$ac_objext \
26931 conftest$ac_exeext conftest.$ac_ext
26933 ac_res=`eval echo '${'$as_ac_var'}'`
26934 { echo "$as_me:$LINENO: result: $ac_res" >&5
26935 echo "${ECHO_T}$ac_res" >&6; }
26936 if test `eval echo '${'$as_ac_var'}'` = yes; then
26937 cat >>confdefs.h <<_ACEOF
26938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26942 case " $LIBOBJS " in
26943 *" $ac_func.$ac_objext "* ) ;;
26944 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26955 if test "$ac_cv_type_unsigned_long_long" = yes; then
26957 for ac_func in strtoull
26959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26973 #define $ac_func innocuous_$ac_func
26975 /* System header to define __stub macros and hopefully few prototypes,
26976 which can conflict with char $ac_func (); below.
26977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26978 <limits.h> exists even on freestanding compilers. */
26981 # include <limits.h>
26983 # include <assert.h>
26988 /* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
26995 /* The GNU C library defines this for functions which it implements
26996 to always fail with ENOSYS. Some functions are actually named
26997 something starting with __ and the normal name is an alias. */
26998 #if defined __stub_$ac_func || defined __stub___$ac_func
27005 return $ac_func ();
27010 rm -f conftest.$ac_objext conftest$ac_exeext
27011 if { (ac_try="$ac_link"
27012 case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_link") 2>conftest.er1
27019 grep -v '^ *+' conftest.er1 >conftest.err
27021 cat conftest.err >&5
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
27024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27025 { (case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_try") 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 eval "$as_ac_var=yes"
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 eval "$as_ac_var=no"
27052 rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
27055 ac_res=`eval echo '${'$as_ac_var'}'`
27056 { echo "$as_me:$LINENO: result: $ac_res" >&5
27057 echo "${ECHO_T}$ac_res" >&6; }
27058 if test `eval echo '${'$as_ac_var'}'` = yes; then
27059 cat >>confdefs.h <<_ACEOF
27060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27064 case " $LIBOBJS " in
27065 *" $ac_func.$ac_objext "* ) ;;
27066 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27074 if test $ac_cv_func_strtoull = no; then
27083 for ac_func in strtoul
27085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27099 #define $ac_func innocuous_$ac_func
27101 /* System header to define __stub macros and hopefully few prototypes,
27102 which can conflict with char $ac_func (); below.
27103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27104 <limits.h> exists even on freestanding compilers. */
27107 # include <limits.h>
27109 # include <assert.h>
27114 /* Override any GCC internal prototype to avoid an error.
27115 Use char because int might match the return type of a GCC
27116 builtin and then its argument prototype would still apply. */
27121 /* The GNU C library defines this for functions which it implements
27122 to always fail with ENOSYS. Some functions are actually named
27123 something starting with __ and the normal name is an alias. */
27124 #if defined __stub_$ac_func || defined __stub___$ac_func
27131 return $ac_func ();
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_link") 2>conftest.er1
27145 grep -v '^ *+' conftest.er1 >conftest.err
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
27150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27151 { (case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_try") 2>&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; } &&
27160 { ac_try='test -s conftest$ac_exeext'
27161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
27170 eval "$as_ac_var=yes"
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27175 eval "$as_ac_var=no"
27178 rm -f core conftest.err conftest.$ac_objext \
27179 conftest$ac_exeext conftest.$ac_ext
27181 ac_res=`eval echo '${'$as_ac_var'}'`
27182 { echo "$as_me:$LINENO: result: $ac_res" >&5
27183 echo "${ECHO_T}$ac_res" >&6; }
27184 if test `eval echo '${'$as_ac_var'}'` = yes; then
27185 cat >>confdefs.h <<_ACEOF
27186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27190 case " $LIBOBJS " in
27191 *" $ac_func.$ac_objext "* ) ;;
27192 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27205 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
27206 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
27207 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27210 cat >conftest.$ac_ext <<_ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h. */
27216 #include <inttypes.h>
27218 inttypes_h_defines_strtoumax
27221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27222 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
27223 jm_cv_func_strtoumax_macro=yes
27225 jm_cv_func_strtoumax_macro=no
27230 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
27231 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
27233 if test "$jm_cv_func_strtoumax_macro" != yes; then
27235 for ac_func in strtoumax
27237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27243 cat >conftest.$ac_ext <<_ACEOF
27246 cat confdefs.h >>conftest.$ac_ext
27247 cat >>conftest.$ac_ext <<_ACEOF
27248 /* end confdefs.h. */
27249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27251 #define $ac_func innocuous_$ac_func
27253 /* System header to define __stub macros and hopefully few prototypes,
27254 which can conflict with char $ac_func (); below.
27255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27256 <limits.h> exists even on freestanding compilers. */
27259 # include <limits.h>
27261 # include <assert.h>
27266 /* Override any GCC internal prototype to avoid an error.
27267 Use char because int might match the return type of a GCC
27268 builtin and then its argument prototype would still apply. */
27273 /* The GNU C library defines this for functions which it implements
27274 to always fail with ENOSYS. Some functions are actually named
27275 something starting with __ and the normal name is an alias. */
27276 #if defined __stub_$ac_func || defined __stub___$ac_func
27283 return $ac_func ();
27288 rm -f conftest.$ac_objext conftest$ac_exeext
27289 if { (ac_try="$ac_link"
27290 case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_link") 2>conftest.er1
27297 grep -v '^ *+' conftest.er1 >conftest.err
27299 cat conftest.err >&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } &&
27302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27303 { (case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_try") 2>&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; } &&
27312 { ac_try='test -s conftest$ac_exeext'
27313 { (case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_try") 2>&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; }; then
27322 eval "$as_ac_var=yes"
27324 echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27327 eval "$as_ac_var=no"
27330 rm -f core conftest.err conftest.$ac_objext \
27331 conftest$ac_exeext conftest.$ac_ext
27333 ac_res=`eval echo '${'$as_ac_var'}'`
27334 { echo "$as_me:$LINENO: result: $ac_res" >&5
27335 echo "${ECHO_T}$ac_res" >&6; }
27336 if test `eval echo '${'$as_ac_var'}'` = yes; then
27337 cat >>confdefs.h <<_ACEOF
27338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27342 case " $LIBOBJS " in
27343 *" $ac_func.$ac_objext "* ) ;;
27344 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27352 if test $ac_cv_func_strtoumax = no; then
27357 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
27359 test $ac_cv_type_unsigned_long_long = yes \
27360 && ac_type='unsigned long long' \
27361 || ac_type='unsigned long'
27363 cat >>confdefs.h <<_ACEOF
27364 #define uintmax_t $ac_type
27369 cat >>confdefs.h <<\_ACEOF
27370 #define HAVE_UINTMAX_T 1
27375 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
27376 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
27377 if test "${ac_cv_have_decl_strtoull+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27380 cat >conftest.$ac_ext <<_ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 $ac_includes_default
27391 char *p = (char *) strtoull;
27399 rm -f conftest.$ac_objext
27400 if { (ac_try="$ac_compile"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_compile") 2>conftest.er1
27408 grep -v '^ *+' conftest.er1 >conftest.err
27410 cat conftest.err >&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } &&
27413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest.$ac_objext'
27424 { (case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_try") 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; }; then
27433 ac_cv_have_decl_strtoull=yes
27435 echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27438 ac_cv_have_decl_strtoull=no
27441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
27444 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
27445 if test $ac_cv_have_decl_strtoull = yes; then
27447 cat >>confdefs.h <<_ACEOF
27448 #define HAVE_DECL_STRTOULL 1
27453 cat >>confdefs.h <<_ACEOF
27454 #define HAVE_DECL_STRTOULL 0
27472 for ac_func in strverscmp
27474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27480 cat >conftest.$ac_ext <<_ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27488 #define $ac_func innocuous_$ac_func
27490 /* System header to define __stub macros and hopefully few prototypes,
27491 which can conflict with char $ac_func (); below.
27492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27493 <limits.h> exists even on freestanding compilers. */
27496 # include <limits.h>
27498 # include <assert.h>
27503 /* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27510 /* The GNU C library defines this for functions which it implements
27511 to always fail with ENOSYS. Some functions are actually named
27512 something starting with __ and the normal name is an alias. */
27513 #if defined __stub_$ac_func || defined __stub___$ac_func
27520 return $ac_func ();
27525 rm -f conftest.$ac_objext conftest$ac_exeext
27526 if { (ac_try="$ac_link"
27527 case "(($ac_try" in
27528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529 *) ac_try_echo=$ac_try;;
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532 (eval "$ac_link") 2>conftest.er1
27534 grep -v '^ *+' conftest.er1 >conftest.err
27536 cat conftest.err >&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
27539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27540 { (case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545 (eval "$ac_try") 2>&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; } &&
27549 { ac_try='test -s conftest$ac_exeext'
27550 { (case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_try") 2>&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 eval "$as_ac_var=yes"
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 eval "$as_ac_var=no"
27567 rm -f core conftest.err conftest.$ac_objext \
27568 conftest$ac_exeext conftest.$ac_ext
27570 ac_res=`eval echo '${'$as_ac_var'}'`
27571 { echo "$as_me:$LINENO: result: $ac_res" >&5
27572 echo "${ECHO_T}$ac_res" >&6; }
27573 if test `eval echo '${'$as_ac_var'}'` = yes; then
27574 cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27579 case " $LIBOBJS " in
27580 *" $ac_func.$ac_objext "* ) ;;
27581 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27589 if test $ac_cv_func_strverscmp = no; then
27597 { echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
27598 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6; }
27599 if test "${gl_cv_func_tzset_clobber+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27603 if test "$cross_compiling" = yes; then
27604 gl_cv_func_tzset_clobber=yes
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27613 #if TIME_WITH_SYS_TIME
27614 # include <sys/time.h>
27617 # if HAVE_SYS_TIME_H
27618 # include <sys/time.h>
27623 #include <stdlib.h>
27628 time_t t1 = 853958121;
27630 putenv ("TZ=GMT0");
27631 p = localtime (&t1);
27633 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
27635 exit (p->tm_year != s.tm_year
27636 || p->tm_mon != s.tm_mon
27637 || p->tm_mday != s.tm_mday
27638 || p->tm_hour != s.tm_hour
27639 || p->tm_min != s.tm_min
27640 || p->tm_sec != s.tm_sec);
27644 rm -f conftest$ac_exeext
27645 if { (ac_try="$ac_link"
27646 case "(($ac_try" in
27647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648 *) ac_try_echo=$ac_try;;
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651 (eval "$ac_link") 2>&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27655 { (case "(($ac_try" in
27656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657 *) ac_try_echo=$ac_try;;
27659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660 (eval "$ac_try") 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 gl_cv_func_tzset_clobber=no
27666 echo "$as_me: program exited with status $ac_status" >&5
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 ( exit $ac_status )
27671 gl_cv_func_tzset_clobber=yes
27673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27678 { echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
27679 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6; }
27682 cat >>confdefs.h <<\_ACEOF
27683 #define HAVE_RUN_TZSET_TEST 1
27687 if test $gl_cv_func_tzset_clobber = yes; then
27689 case " $LIBOBJS " in
27690 *" gettimeofday.$ac_objext "* ) ;;
27691 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
27696 cat >>confdefs.h <<\_ACEOF
27697 #define gmtime rpl_gmtime
27701 cat >>confdefs.h <<\_ACEOF
27702 #define localtime rpl_localtime
27708 cat >>confdefs.h <<\_ACEOF
27709 #define tzset rpl_tzset
27713 cat >>confdefs.h <<\_ACEOF
27714 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
27721 { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
27722 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
27723 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
27724 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 cat >conftest.$ac_ext <<_ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27741 $EGREP "yes" >/dev/null 2>&1; then
27746 if test -n "$have_eoverflow"; then
27747 ac_cv_decl_EOVERFLOW=yes
27749 cat >conftest.$ac_ext <<_ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h. */
27756 #define _XOPEN_SOURCE_EXTENDED 1
27763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27764 $EGREP "yes" >/dev/null 2>&1; then
27769 if test -n "$have_eoverflow"; then
27770 if test "$cross_compiling" = yes; then
27771 # Depending upon the size, compute the lo and hi bounds.
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27779 #define _XOPEN_SOURCE_EXTENDED 1
27781 /* The following two lines are a workaround against an autoconf-2.52 bug. */
27783 #include <stdlib.h>
27788 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
27795 rm -f conftest.$ac_objext
27796 if { (ac_try="$ac_compile"
27797 case "(($ac_try" in
27798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799 *) ac_try_echo=$ac_try;;
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802 (eval "$ac_compile") 2>conftest.er1
27804 grep -v '^ *+' conftest.er1 >conftest.err
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
27809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27810 { (case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_try") 2>&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; } &&
27819 { ac_try='test -s conftest.$ac_objext'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; }; then
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27838 #define _XOPEN_SOURCE_EXTENDED 1
27840 /* The following two lines are a workaround against an autoconf-2.52 bug. */
27842 #include <stdlib.h>
27847 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
27854 rm -f conftest.$ac_objext
27855 if { (ac_try="$ac_compile"
27856 case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_compile") 2>conftest.er1
27863 grep -v '^ *+' conftest.er1 >conftest.err
27865 cat conftest.err >&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
27868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest.$ac_objext'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; }; then
27888 ac_hi=$ac_mid; break
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27893 ac_lo=`expr $ac_mid + 1`
27894 if test $ac_lo -le $ac_mid; then
27898 ac_mid=`expr 2 '*' $ac_mid + 1`
27901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 cat >conftest.$ac_ext <<_ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27914 #define _XOPEN_SOURCE_EXTENDED 1
27916 /* The following two lines are a workaround against an autoconf-2.52 bug. */
27918 #include <stdlib.h>
27923 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_compile") 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest.$ac_objext'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27973 #define _XOPEN_SOURCE_EXTENDED 1
27975 /* The following two lines are a workaround against an autoconf-2.52 bug. */
27977 #include <stdlib.h>
27982 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
27989 rm -f conftest.$ac_objext
27990 if { (ac_try="$ac_compile"
27991 case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_compile") 2>conftest.er1
27998 grep -v '^ *+' conftest.er1 >conftest.err
28000 cat conftest.err >&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); } &&
28003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; } &&
28013 { ac_try='test -s conftest.$ac_objext'
28014 { (case "(($ac_try" in
28015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016 *) ac_try_echo=$ac_try;;
28018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019 (eval "$ac_try") 2>&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; }; then
28023 ac_lo=$ac_mid; break
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28028 ac_hi=`expr '(' $ac_mid ')' - 1`
28029 if test $ac_mid -le $ac_hi; then
28033 ac_mid=`expr 2 '*' $ac_mid`
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28049 # Binary search between lo and hi bounds.
28050 while test "x$ac_lo" != "x$ac_hi"; do
28051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28052 cat >conftest.$ac_ext <<_ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28059 #define _XOPEN_SOURCE_EXTENDED 1
28061 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28063 #include <stdlib.h>
28068 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
28075 rm -f conftest.$ac_objext
28076 if { (ac_try="$ac_compile"
28077 case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_compile") 2>conftest.er1
28084 grep -v '^ *+' conftest.er1 >conftest.err
28086 cat conftest.err >&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } &&
28089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28090 { (case "(($ac_try" in
28091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092 *) ac_try_echo=$ac_try;;
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095 (eval "$ac_try") 2>&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; } &&
28099 { ac_try='test -s conftest.$ac_objext'
28100 { (case "(($ac_try" in
28101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28102 *) ac_try_echo=$ac_try;;
28104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28105 (eval "$ac_try") 2>&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; }; then
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28114 ac_lo=`expr '(' $ac_mid ')' + 1`
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28120 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28131 #define _XOPEN_SOURCE_EXTENDED 1
28133 /* The following two lines are a workaround against an autoconf-2.52 bug. */
28135 #include <stdlib.h>
28137 static long int longval () { return EOVERFLOW; }
28138 static unsigned long int ulongval () { return EOVERFLOW; }
28140 #include <stdlib.h>
28145 FILE *f = fopen ("conftest.val", "w");
28148 if ((EOVERFLOW) < 0)
28150 long int i = longval ();
28151 if (i != (EOVERFLOW))
28153 fprintf (f, "%ld\n", i);
28157 unsigned long int i = ulongval ();
28158 if (i != (EOVERFLOW))
28160 fprintf (f, "%lu\n", i);
28162 return ferror (f) || fclose (f) != 0;
28168 rm -f conftest$ac_exeext
28169 if { (ac_try="$ac_link"
28170 case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_link") 2>&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28179 { (case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_try") 2>&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; }; then
28188 ac_cv_decl_EOVERFLOW=`cat conftest.val`
28190 echo "$as_me: program exited with status $ac_status" >&5
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28199 ac_cv_decl_EOVERFLOW=E2BIG
28204 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
28205 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
28206 if test "$ac_cv_decl_EOVERFLOW" != yes; then
28208 cat >>confdefs.h <<_ACEOF
28209 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
28212 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
28217 { echo "$as_me:$LINENO: checking for signed" >&5
28218 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
28219 if test "${bh_cv_c_signed+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28222 cat >conftest.$ac_ext <<_ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h. */
28237 rm -f conftest.$ac_objext
28238 if { (ac_try="$ac_compile"
28239 case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_compile") 2>conftest.er1
28246 grep -v '^ *+' conftest.er1 >conftest.err
28248 cat conftest.err >&5
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); } &&
28251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28252 { (case "(($ac_try" in
28253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254 *) ac_try_echo=$ac_try;;
28256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257 (eval "$ac_try") 2>&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; } &&
28261 { ac_try='test -s conftest.$ac_objext'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28281 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
28282 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
28283 if test $bh_cv_c_signed = no; then
28285 cat >>confdefs.h <<\_ACEOF
28292 { echo "$as_me:$LINENO: checking for wchar_t" >&5
28293 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
28294 if test "${gt_cv_c_wchar_t+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28297 cat >conftest.$ac_ext <<_ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h. */
28303 #include <stddef.h>
28304 wchar_t foo = (wchar_t)'\0';
28313 rm -f conftest.$ac_objext
28314 if { (ac_try="$ac_compile"
28315 case "(($ac_try" in
28316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317 *) ac_try_echo=$ac_try;;
28319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320 (eval "$ac_compile") 2>conftest.er1
28322 grep -v '^ *+' conftest.er1 >conftest.err
28324 cat conftest.err >&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); } &&
28327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
28338 { (case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_try") 2>&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; }; then
28347 gt_cv_c_wchar_t=yes
28349 echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28357 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
28358 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
28359 if test $gt_cv_c_wchar_t = yes; then
28361 cat >>confdefs.h <<\_ACEOF
28362 #define HAVE_WCHAR_T 1
28368 { echo "$as_me:$LINENO: checking for wint_t" >&5
28369 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
28370 if test "${gt_cv_c_wint_t+set}" = set; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28373 cat >conftest.$ac_ext <<_ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h. */
28380 wint_t foo = (wchar_t)'\0';
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_compile") 2>conftest.er1
28398 grep -v '^ *+' conftest.er1 >conftest.err
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } &&
28403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28404 { (case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_try") 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest.$ac_objext'
28414 { (case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_try") 2>&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; }; then
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
28434 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
28435 if test $gt_cv_c_wint_t = yes; then
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_WINT_T 1
28446 { echo "$as_me:$LINENO: checking for intmax_t" >&5
28447 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
28448 if test "${gt_cv_c_intmax_t+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28458 #include <stddef.h>
28459 #include <stdlib.h>
28460 #if HAVE_STDINT_H_WITH_UINTMAX
28461 #include <stdint.h>
28463 #if HAVE_INTTYPES_H_WITH_UINTMAX
28464 #include <inttypes.h>
28475 rm -f conftest.$ac_objext
28476 if { (ac_try="$ac_compile"
28477 case "(($ac_try" in
28478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 *) ac_try_echo=$ac_try;;
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482 (eval "$ac_compile") 2>conftest.er1
28484 grep -v '^ *+' conftest.er1 >conftest.err
28486 cat conftest.err >&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); } &&
28489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28490 { (case "(($ac_try" in
28491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492 *) ac_try_echo=$ac_try;;
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495 (eval "$ac_try") 2>&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); }; } &&
28499 { ac_try='test -s conftest.$ac_objext'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; }; then
28509 gt_cv_c_intmax_t=yes
28511 echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28514 gt_cv_c_intmax_t=no
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
28520 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
28521 if test $gt_cv_c_intmax_t = yes; then
28523 cat >>confdefs.h <<\_ACEOF
28524 #define HAVE_INTMAX_T 1
28529 test $ac_cv_type_long_long = yes \
28530 && ac_type='long long' \
28533 cat >>confdefs.h <<_ACEOF
28534 #define intmax_t $ac_type
28542 for ac_func in vasnprintf
28544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28548 echo $ECHO_N "(cached) $ECHO_C" >&6
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28558 #define $ac_func innocuous_$ac_func
28560 /* System header to define __stub macros and hopefully few prototypes,
28561 which can conflict with char $ac_func (); below.
28562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28563 <limits.h> exists even on freestanding compilers. */
28566 # include <limits.h>
28568 # include <assert.h>
28573 /* Override any GCC internal prototype to avoid an error.
28574 Use char because int might match the return type of a GCC
28575 builtin and then its argument prototype would still apply. */
28580 /* The GNU C library defines this for functions which it implements
28581 to always fail with ENOSYS. Some functions are actually named
28582 something starting with __ and the normal name is an alias. */
28583 #if defined __stub_$ac_func || defined __stub___$ac_func
28590 return $ac_func ();
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_link") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 eval "$as_ac_var=yes"
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 eval "$as_ac_var=no"
28637 rm -f core conftest.err conftest.$ac_objext \
28638 conftest$ac_exeext conftest.$ac_ext
28640 ac_res=`eval echo '${'$as_ac_var'}'`
28641 { echo "$as_me:$LINENO: result: $ac_res" >&5
28642 echo "${ECHO_T}$ac_res" >&6; }
28643 if test `eval echo '${'$as_ac_var'}'` = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28649 case " $LIBOBJS " in
28650 *" $ac_func.$ac_objext "* ) ;;
28651 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28659 if test $ac_cv_func_vasnprintf = no; then
28660 case " $LIBOBJS " in
28661 *" printf-args.$ac_objext "* ) ;;
28662 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
28666 case " $LIBOBJS " in
28667 *" printf-parse.$ac_objext "* ) ;;
28668 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
28672 case " $LIBOBJS " in
28673 *" asnprintf.$ac_objext "* ) ;;
28674 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
28691 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28692 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
28693 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28702 $ac_includes_default
28703 typedef ptrdiff_t ac__type_new_;
28707 if ((ac__type_new_ *) 0)
28709 if (sizeof (ac__type_new_))
28715 rm -f conftest.$ac_objext
28716 if { (ac_try="$ac_compile"
28717 case "(($ac_try" in
28718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28719 *) ac_try_echo=$ac_try;;
28721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28722 (eval "$ac_compile") 2>conftest.er1
28724 grep -v '^ *+' conftest.er1 >conftest.err
28726 cat conftest.err >&5
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); } &&
28729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28730 { (case "(($ac_try" in
28731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_try") 2>&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); }; } &&
28739 { ac_try='test -s conftest.$ac_objext'
28740 { (case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_try") 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_cv_type_ptrdiff_t=yes
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28754 ac_cv_type_ptrdiff_t=no
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28759 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
28760 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
28761 if test $ac_cv_type_ptrdiff_t = yes; then
28763 cat >>confdefs.h <<_ACEOF
28764 #define HAVE_PTRDIFF_T 1
28780 for ac_func in snprintf wcslen
28782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28786 echo $ECHO_N "(cached) $ECHO_C" >&6
28788 cat >conftest.$ac_ext <<_ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28796 #define $ac_func innocuous_$ac_func
28798 /* System header to define __stub macros and hopefully few prototypes,
28799 which can conflict with char $ac_func (); below.
28800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28801 <limits.h> exists even on freestanding compilers. */
28804 # include <limits.h>
28806 # include <assert.h>
28811 /* Override any GCC internal prototype to avoid an error.
28812 Use char because int might match the return type of a GCC
28813 builtin and then its argument prototype would still apply. */
28818 /* The GNU C library defines this for functions which it implements
28819 to always fail with ENOSYS. Some functions are actually named
28820 something starting with __ and the normal name is an alias. */
28821 #if defined __stub_$ac_func || defined __stub___$ac_func
28828 return $ac_func ();
28833 rm -f conftest.$ac_objext conftest$ac_exeext
28834 if { (ac_try="$ac_link"
28835 case "(($ac_try" in
28836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837 *) ac_try_echo=$ac_try;;
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840 (eval "$ac_link") 2>conftest.er1
28842 grep -v '^ *+' conftest.er1 >conftest.err
28844 cat conftest.err >&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } &&
28847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28848 { (case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_try") 2>&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); }; } &&
28857 { ac_try='test -s conftest$ac_exeext'
28858 { (case "(($ac_try" in
28859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860 *) ac_try_echo=$ac_try;;
28862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28863 (eval "$ac_try") 2>&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 eval "$as_ac_var=yes"
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 eval "$as_ac_var=no"
28875 rm -f core conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
28878 ac_res=`eval echo '${'$as_ac_var'}'`
28879 { echo "$as_me:$LINENO: result: $ac_res" >&5
28880 echo "${ECHO_T}$ac_res" >&6; }
28881 if test `eval echo '${'$as_ac_var'}'` = yes; then
28882 cat >>confdefs.h <<_ACEOF
28883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28896 for ac_func in vasprintf
28898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28904 cat >conftest.$ac_ext <<_ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h. */
28910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28912 #define $ac_func innocuous_$ac_func
28914 /* System header to define __stub macros and hopefully few prototypes,
28915 which can conflict with char $ac_func (); below.
28916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28917 <limits.h> exists even on freestanding compilers. */
28920 # include <limits.h>
28922 # include <assert.h>
28927 /* Override any GCC internal prototype to avoid an error.
28928 Use char because int might match the return type of a GCC
28929 builtin and then its argument prototype would still apply. */
28934 /* The GNU C library defines this for functions which it implements
28935 to always fail with ENOSYS. Some functions are actually named
28936 something starting with __ and the normal name is an alias. */
28937 #if defined __stub_$ac_func || defined __stub___$ac_func
28944 return $ac_func ();
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_link") 2>conftest.er1
28958 grep -v '^ *+' conftest.er1 >conftest.err
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } &&
28963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28964 { (case "(($ac_try" in
28965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966 *) ac_try_echo=$ac_try;;
28968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969 (eval "$ac_try") 2>&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; } &&
28973 { ac_try='test -s conftest$ac_exeext'
28974 { (case "(($ac_try" in
28975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28976 *) ac_try_echo=$ac_try;;
28978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28979 (eval "$ac_try") 2>&5
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; }; then
28983 eval "$as_ac_var=yes"
28985 echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28988 eval "$as_ac_var=no"
28991 rm -f core conftest.err conftest.$ac_objext \
28992 conftest$ac_exeext conftest.$ac_ext
28994 ac_res=`eval echo '${'$as_ac_var'}'`
28995 { echo "$as_me:$LINENO: result: $ac_res" >&5
28996 echo "${ECHO_T}$ac_res" >&6; }
28997 if test `eval echo '${'$as_ac_var'}'` = yes; then
28998 cat >>confdefs.h <<_ACEOF
28999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29003 case " $LIBOBJS " in
29004 *" $ac_func.$ac_objext "* ) ;;
29005 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29013 if test $ac_cv_func_vasprintf = no; then
29014 case " $LIBOBJS " in
29015 *" asprintf.$ac_objext "* ) ;;
29016 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
29057 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
29058 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
29059 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29069 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29071 # include <string.h>
29074 # include <wchar.h>
29082 char *p = (char *) wcwidth;
29090 rm -f conftest.$ac_objext
29091 if { (ac_try="$ac_compile"
29092 case "(($ac_try" in
29093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094 *) ac_try_echo=$ac_try;;
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097 (eval "$ac_compile") 2>conftest.er1
29099 grep -v '^ *+' conftest.er1 >conftest.err
29101 cat conftest.err >&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); } &&
29104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29105 { (case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_try") 2>&5
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; } &&
29114 { ac_try='test -s conftest.$ac_objext'
29115 { (case "(($ac_try" in
29116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117 *) ac_try_echo=$ac_try;;
29119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120 (eval "$ac_try") 2>&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 ac_cv_have_decl_wcwidth=yes
29126 echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29129 ac_cv_have_decl_wcwidth=no
29132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
29135 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
29136 if test $ac_cv_have_decl_wcwidth = yes; then
29138 cat >>confdefs.h <<_ACEOF
29139 #define HAVE_DECL_WCWIDTH 1
29144 cat >>confdefs.h <<_ACEOF
29145 #define HAVE_DECL_WCWIDTH 0
29173 { echo "$as_me:$LINENO: checking for struct timespec" >&5
29174 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
29175 if test "${fu_cv_sys_struct_timespec+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 cat >conftest.$ac_ext <<_ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29185 # if TIME_WITH_SYS_TIME
29186 # include <sys/time.h>
29189 # if HAVE_SYS_TIME_H
29190 # include <sys/time.h>
29199 static struct timespec x; x.tv_sec = x.tv_nsec;
29204 rm -f conftest.$ac_objext
29205 if { (ac_try="$ac_compile"
29206 case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_compile") 2>conftest.er1
29213 grep -v '^ *+' conftest.er1 >conftest.err
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219 { (case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_try") 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_try") 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238 fu_cv_sys_struct_timespec=yes
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29243 fu_cv_sys_struct_timespec=no
29246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29249 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
29250 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
29252 if test $fu_cv_sys_struct_timespec = yes; then
29254 cat >>confdefs.h <<\_ACEOF
29255 #define HAVE_STRUCT_TIMESPEC 1
29263 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
29264 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
29265 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29280 char *p = (char *) nanosleep;
29288 rm -f conftest.$ac_objext
29289 if { (ac_try="$ac_compile"
29290 case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_compile") 2>conftest.er1
29297 grep -v '^ *+' conftest.er1 >conftest.err
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } &&
29302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29303 { (case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_try") 2>&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; } &&
29312 { ac_try='test -s conftest.$ac_objext'
29313 { (case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_try") 2>&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 ac_cv_have_decl_nanosleep=yes
29324 echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29327 ac_cv_have_decl_nanosleep=no
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
29333 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
29334 if test $ac_cv_have_decl_nanosleep = yes; then
29336 cat >>confdefs.h <<_ACEOF
29337 #define HAVE_DECL_NANOSLEEP 1
29342 cat >>confdefs.h <<_ACEOF
29343 #define HAVE_DECL_NANOSLEEP 0
29352 # getdate.y works with bison only.
29353 : ${YACC='bison -y'}
29356 { echo "$as_me:$LINENO: checking for compound literals" >&5
29357 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
29358 if test "${gl_cv_compound_literals+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29361 cat >conftest.$ac_ext <<_ACEOF
29364 cat confdefs.h >>conftest.$ac_ext
29365 cat >>conftest.$ac_ext <<_ACEOF
29366 /* end confdefs.h. */
29367 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
29371 struct s t = (struct s) { 3, 4 };
29376 rm -f conftest.$ac_objext
29377 if { (ac_try="$ac_compile"
29378 case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_compile") 2>conftest.er1
29385 grep -v '^ *+' conftest.er1 >conftest.err
29387 cat conftest.err >&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
29390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29391 { (case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_try") 2>&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest.$ac_objext'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 gl_cv_compound_literals=yes
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 gl_cv_compound_literals=no
29418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29420 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
29421 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
29422 if test $gl_cv_compound_literals = yes; then
29424 cat >>confdefs.h <<\_ACEOF
29425 #define HAVE_COMPOUND_LITERALS 1
29430 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29431 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29432 if test "${ac_cv_struct_tm+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 cat >conftest.$ac_ext <<_ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h. */
29441 #include <sys/types.h>
29447 struct tm *tp; tp->tm_sec;
29452 rm -f conftest.$ac_objext
29453 if { (ac_try="$ac_compile"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_compile") 2>conftest.er1
29461 grep -v '^ *+' conftest.er1 >conftest.err
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
29466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_struct_tm=time.h
29488 echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29491 ac_cv_struct_tm=sys/time.h
29494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29497 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29498 if test $ac_cv_struct_tm = sys/time.h; then
29500 cat >>confdefs.h <<\_ACEOF
29501 #define TM_IN_SYS_TIME 1
29509 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
29510 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
29512 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
29513 # programs in the package would end up linked with that potentially-shared
29514 # library, inducing unnecessary run-time overhead.
29515 gl_saved_libs=$LIBS
29516 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
29517 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
29518 if test "${ac_cv_search_clock_gettime+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 ac_func_search_save_LIBS=$LIBS
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29529 /* Override any GCC internal prototype to avoid an error.
29530 Use char because int might match the return type of a GCC
29531 builtin and then its argument prototype would still apply. */
29535 char clock_gettime ();
29539 return clock_gettime ();
29544 for ac_lib in '' rt posix4; do
29545 if test -z "$ac_lib"; then
29546 ac_res="none required"
29549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29551 rm -f conftest.$ac_objext conftest$ac_exeext
29552 if { (ac_try="$ac_link"
29553 case "(($ac_try" in
29554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29555 *) ac_try_echo=$ac_try;;
29557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29558 (eval "$ac_link") 2>conftest.er1
29560 grep -v '^ *+' conftest.er1 >conftest.err
29562 cat conftest.err >&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); } &&
29565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29566 { (case "(($ac_try" in
29567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29568 *) ac_try_echo=$ac_try;;
29570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29571 (eval "$ac_try") 2>&5
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; } &&
29575 { ac_try='test -s conftest$ac_exeext'
29576 { (case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_try") 2>&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 ac_cv_search_clock_gettime=$ac_res
29587 echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29593 rm -f core conftest.err conftest.$ac_objext \
29595 if test "${ac_cv_search_clock_gettime+set}" = set; then
29599 if test "${ac_cv_search_clock_gettime+set}" = set; then
29602 ac_cv_search_clock_gettime=no
29604 rm conftest.$ac_ext
29605 LIBS=$ac_func_search_save_LIBS
29607 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
29608 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
29609 ac_res=$ac_cv_search_clock_gettime
29610 if test "$ac_res" != no; then
29611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29612 test "$ac_cv_search_clock_gettime" = "none required" ||
29613 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
29619 for ac_func in clock_gettime clock_settime
29621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29627 cat >conftest.$ac_ext <<_ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29635 #define $ac_func innocuous_$ac_func
29637 /* System header to define __stub macros and hopefully few prototypes,
29638 which can conflict with char $ac_func (); below.
29639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29640 <limits.h> exists even on freestanding compilers. */
29643 # include <limits.h>
29645 # include <assert.h>
29650 /* Override any GCC internal prototype to avoid an error.
29651 Use char because int might match the return type of a GCC
29652 builtin and then its argument prototype would still apply. */
29657 /* The GNU C library defines this for functions which it implements
29658 to always fail with ENOSYS. Some functions are actually named
29659 something starting with __ and the normal name is an alias. */
29660 #if defined __stub_$ac_func || defined __stub___$ac_func
29667 return $ac_func ();
29672 rm -f conftest.$ac_objext conftest$ac_exeext
29673 if { (ac_try="$ac_link"
29674 case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_link") 2>conftest.er1
29681 grep -v '^ *+' conftest.er1 >conftest.err
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest$ac_exeext'
29697 { (case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_try") 2>&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29706 eval "$as_ac_var=yes"
29708 echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29711 eval "$as_ac_var=no"
29714 rm -f core conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
29717 ac_res=`eval echo '${'$as_ac_var'}'`
29718 { echo "$as_me:$LINENO: result: $ac_res" >&5
29719 echo "${ECHO_T}$ac_res" >&6; }
29720 if test `eval echo '${'$as_ac_var'}'` = yes; then
29721 cat >>confdefs.h <<_ACEOF
29722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29728 LIBS=$gl_saved_libs
29731 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
29732 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
29733 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29736 cat >conftest.$ac_ext <<_ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29747 static struct tm ac_aggr;
29748 if (ac_aggr.tm_gmtoff)
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_compile") 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
29768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29769 { (case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_try") 2>&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; } &&
29778 { ac_try='test -s conftest.$ac_objext'
29779 { (case "(($ac_try" in
29780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781 *) ac_try_echo=$ac_try;;
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784 (eval "$ac_try") 2>&5
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; }; then
29788 ac_cv_member_struct_tm_tm_gmtoff=yes
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29804 static struct tm ac_aggr;
29805 if (sizeof ac_aggr.tm_gmtoff)
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_compile") 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29826 { (case "(($ac_try" in
29827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828 *) ac_try_echo=$ac_try;;
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831 (eval "$ac_try") 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; } &&
29835 { ac_try='test -s conftest.$ac_objext'
29836 { (case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_try") 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; }; then
29845 ac_cv_member_struct_tm_tm_gmtoff=yes
29847 echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29850 ac_cv_member_struct_tm_tm_gmtoff=no
29853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29858 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
29859 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
29860 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
29862 cat >>confdefs.h <<\_ACEOF
29863 #define HAVE_TM_GMTOFF 1
29871 case " $LIBOBJS " in
29872 *" getdate.$ac_objext "* ) ;;
29873 *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
29883 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
29884 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
29885 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
29886 echo $ECHO_N "(cached) $ECHO_C" >&6
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29894 #include <sys/types.h>
29895 #include <$ac_cv_struct_tm>
29901 static struct tm ac_aggr;
29902 if (ac_aggr.tm_zone)
29908 rm -f conftest.$ac_objext
29909 if { (ac_try="$ac_compile"
29910 case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_compile") 2>conftest.er1
29917 grep -v '^ *+' conftest.er1 >conftest.err
29919 cat conftest.err >&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); } &&
29922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; } &&
29932 { ac_try='test -s conftest.$ac_objext'
29933 { (case "(($ac_try" in
29934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935 *) ac_try_echo=$ac_try;;
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938 (eval "$ac_try") 2>&5
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; }; then
29942 ac_cv_member_struct_tm_tm_zone=yes
29944 echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29947 cat >conftest.$ac_ext <<_ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h. */
29953 #include <sys/types.h>
29954 #include <$ac_cv_struct_tm>
29960 static struct tm ac_aggr;
29961 if (sizeof ac_aggr.tm_zone)
29967 rm -f conftest.$ac_objext
29968 if { (ac_try="$ac_compile"
29969 case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_compile") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
29981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29982 { (case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_try") 2>&5
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; } &&
29991 { ac_try='test -s conftest.$ac_objext'
29992 { (case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_try") 2>&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; }; then
30001 ac_cv_member_struct_tm_tm_zone=yes
30003 echo "$as_me: failed program was:" >&5
30004 sed 's/^/| /' conftest.$ac_ext >&5
30006 ac_cv_member_struct_tm_tm_zone=no
30009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30014 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
30015 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
30016 if test $ac_cv_member_struct_tm_tm_zone = yes; then
30018 cat >>confdefs.h <<_ACEOF
30019 #define HAVE_STRUCT_TM_TM_ZONE 1
30025 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
30027 cat >>confdefs.h <<\_ACEOF
30028 #define HAVE_TM_ZONE 1
30032 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
30033 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
30034 if test "${ac_cv_have_decl_tzname+set}" = set; then
30035 echo $ECHO_N "(cached) $ECHO_C" >&6
30037 cat >conftest.$ac_ext <<_ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h. */
30049 char *p = (char *) tzname;
30057 rm -f conftest.$ac_objext
30058 if { (ac_try="$ac_compile"
30059 case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_compile") 2>conftest.er1
30066 grep -v '^ *+' conftest.er1 >conftest.err
30068 cat conftest.err >&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } &&
30071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try='test -s conftest.$ac_objext'
30082 { (case "(($ac_try" in
30083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084 *) ac_try_echo=$ac_try;;
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087 (eval "$ac_try") 2>&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
30091 ac_cv_have_decl_tzname=yes
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30096 ac_cv_have_decl_tzname=no
30099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
30102 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
30103 if test $ac_cv_have_decl_tzname = yes; then
30105 cat >>confdefs.h <<_ACEOF
30106 #define HAVE_DECL_TZNAME 1
30111 cat >>confdefs.h <<_ACEOF
30112 #define HAVE_DECL_TZNAME 0
30119 { echo "$as_me:$LINENO: checking for tzname" >&5
30120 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
30121 if test "${ac_cv_var_tzname+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 cat >conftest.$ac_ext <<_ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30131 #if !HAVE_DECL_TZNAME
30132 extern char *tzname[];
30138 return tzname[0][0];
30143 rm -f conftest.$ac_objext conftest$ac_exeext
30144 if { (ac_try="$ac_link"
30145 case "(($ac_try" in
30146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30147 *) ac_try_echo=$ac_try;;
30149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30150 (eval "$ac_link") 2>conftest.er1
30152 grep -v '^ *+' conftest.er1 >conftest.err
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; } &&
30167 { ac_try='test -s conftest$ac_exeext'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_var_tzname=yes
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_cv_var_tzname=no
30185 rm -f core conftest.err conftest.$ac_objext \
30186 conftest$ac_exeext conftest.$ac_ext
30188 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
30189 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
30190 if test $ac_cv_var_tzname = yes; then
30192 cat >>confdefs.h <<\_ACEOF
30193 #define HAVE_TZNAME 1
30204 { echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
30205 echo $ECHO_N "checking for arithmetic hrtime_t... $ECHO_C" >&6; }
30206 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30209 cat >conftest.$ac_ext <<_ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h. */
30219 hrtime_t x = 0; return x/x;
30224 rm -f conftest.$ac_objext
30225 if { (ac_try="$ac_compile"
30226 case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_compile") 2>conftest.er1
30233 grep -v '^ *+' conftest.er1 >conftest.err
30235 cat conftest.err >&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } &&
30238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30239 { (case "(($ac_try" in
30240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30241 *) ac_try_echo=$ac_try;;
30243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30244 (eval "$ac_try") 2>&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); }; } &&
30248 { ac_try='test -s conftest.$ac_objext'
30249 { (case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_try") 2>&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; }; then
30258 gl_cv_arithmetic_hrtime_t=yes
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30263 gl_cv_arithmetic_hrtime_t=no
30266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30268 { echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
30269 echo "${ECHO_T}$gl_cv_arithmetic_hrtime_t" >&6; }
30270 if test $gl_cv_arithmetic_hrtime_t = yes; then
30272 cat >>confdefs.h <<\_ACEOF
30273 #define HAVE_ARITHMETIC_HRTIME_T 1
30292 { echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
30293 echo $ECHO_N "checking whether gethrtime is declared... $ECHO_C" >&6; }
30294 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30297 cat >conftest.$ac_ext <<_ACEOF
30300 cat confdefs.h >>conftest.$ac_ext
30301 cat >>conftest.$ac_ext <<_ACEOF
30302 /* end confdefs.h. */
30309 char *p = (char *) gethrtime;
30317 rm -f conftest.$ac_objext
30318 if { (ac_try="$ac_compile"
30319 case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30324 (eval "$ac_compile") 2>conftest.er1
30326 grep -v '^ *+' conftest.er1 >conftest.err
30328 cat conftest.err >&5
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); } &&
30331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30332 { (case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_try") 2>&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; } &&
30341 { ac_try='test -s conftest.$ac_objext'
30342 { (case "(($ac_try" in
30343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344 *) ac_try_echo=$ac_try;;
30346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30347 (eval "$ac_try") 2>&5
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; }; then
30351 ac_cv_have_decl_gethrtime=yes
30353 echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30356 ac_cv_have_decl_gethrtime=no
30359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
30362 echo "${ECHO_T}$ac_cv_have_decl_gethrtime" >&6; }
30363 if test $ac_cv_have_decl_gethrtime = yes; then
30365 cat >>confdefs.h <<_ACEOF
30366 #define HAVE_DECL_GETHRTIME 1
30371 cat >>confdefs.h <<_ACEOF
30372 #define HAVE_DECL_GETHRTIME 0
30379 case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
30382 case " $LIBOBJS " in
30383 *" gethrxtime.$ac_objext "* ) ;;
30384 *) LIBOBJS="$LIBOBJS gethrxtime.$ac_objext"
30400 if test $ac_cv_func_nanouptime != yes; then
30402 { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is defined" >&5
30403 echo $ECHO_N "checking whether CLOCK_MONOTONIC is defined... $ECHO_C" >&6; }
30404 if test "${gl_cv_have_CLOCK_MONOTONIC+set}" = set; then
30405 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 cat >conftest.$ac_ext <<_ACEOF
30410 cat confdefs.h >>conftest.$ac_ext
30411 cat >>conftest.$ac_ext <<_ACEOF
30412 /* end confdefs.h. */
30415 # ifdef CLOCK_MONOTONIC
30416 have_CLOCK_MONOTONIC
30420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30421 $EGREP "have_CLOCK_MONOTONIC" >/dev/null 2>&1; then
30422 gl_cv_have_CLOCK_MONOTONIC=yes
30424 gl_cv_have_CLOCK_MONOTONIC=no
30429 { echo "$as_me:$LINENO: result: $gl_cv_have_CLOCK_MONOTONIC" >&5
30430 echo "${ECHO_T}$gl_cv_have_CLOCK_MONOTONIC" >&6; }
30431 if test $gl_cv_have_CLOCK_MONOTONIC = yes; then
30432 LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
30440 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
30441 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
30442 case " $LIBOBJS " in
30443 *" getndelim2.$ac_objext "* ) ;;
30444 *) case " $LIBOBJS " in
30445 *" getndelim2.$ac_objext "* ) ;;
30446 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
30457 if test -z "$GETOPT_H"; then
30459 for ac_header in getopt.h
30461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30466 echo $ECHO_N "(cached) $ECHO_C" >&6
30468 ac_res=`eval echo '${'$as_ac_Header'}'`
30469 { echo "$as_me:$LINENO: result: $ac_res" >&5
30470 echo "${ECHO_T}$ac_res" >&6; }
30472 # Is the header compilable?
30473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30475 cat >conftest.$ac_ext <<_ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h. */
30481 $ac_includes_default
30482 #include <$ac_header>
30484 rm -f conftest.$ac_objext
30485 if { (ac_try="$ac_compile"
30486 case "(($ac_try" in
30487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 *) ac_try_echo=$ac_try;;
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 (eval "$ac_compile") 2>conftest.er1
30493 grep -v '^ *+' conftest.er1 >conftest.err
30495 cat conftest.err >&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } &&
30498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30499 { (case "(($ac_try" in
30500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501 *) ac_try_echo=$ac_try;;
30503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504 (eval "$ac_try") 2>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; } &&
30508 { ac_try='test -s conftest.$ac_objext'
30509 { (case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_try") 2>&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; }; then
30518 ac_header_compiler=yes
30520 echo "$as_me: failed program was:" >&5
30521 sed 's/^/| /' conftest.$ac_ext >&5
30523 ac_header_compiler=no
30526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30528 echo "${ECHO_T}$ac_header_compiler" >&6; }
30530 # Is the header present?
30531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30533 cat >conftest.$ac_ext <<_ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30539 #include <$ac_header>
30541 if { (ac_try="$ac_cpp conftest.$ac_ext"
30542 case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30549 grep -v '^ *+' conftest.er1 >conftest.err
30551 cat conftest.err >&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); } >/dev/null; then
30554 if test -s conftest.err; then
30555 ac_cpp_err=$ac_c_preproc_warn_flag
30556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30563 if test -z "$ac_cpp_err"; then
30564 ac_header_preproc=yes
30566 echo "$as_me: failed program was:" >&5
30567 sed 's/^/| /' conftest.$ac_ext >&5
30569 ac_header_preproc=no
30572 rm -f conftest.err conftest.$ac_ext
30573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30574 echo "${ECHO_T}$ac_header_preproc" >&6; }
30576 # So? What about this header?
30577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30583 ac_header_preproc=yes
30586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30599 ## ------------------------------------ ##
30600 ## Report this to bug-coreutils@gnu.org ##
30601 ## ------------------------------------ ##
30603 ) | sed "s/^/$as_me: WARNING: /" >&2
30606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30609 echo $ECHO_N "(cached) $ECHO_C" >&6
30611 eval "$as_ac_Header=\$ac_header_preproc"
30613 ac_res=`eval echo '${'$as_ac_Header'}'`
30614 { echo "$as_me:$LINENO: result: $ac_res" >&5
30615 echo "${ECHO_T}$ac_res" >&6; }
30618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30619 cat >>confdefs.h <<_ACEOF
30620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30631 if test -z "$GETOPT_H"; then
30633 for ac_func in getopt_long_only
30635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30649 #define $ac_func innocuous_$ac_func
30651 /* System header to define __stub macros and hopefully few prototypes,
30652 which can conflict with char $ac_func (); below.
30653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654 <limits.h> exists even on freestanding compilers. */
30657 # include <limits.h>
30659 # include <assert.h>
30664 /* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30671 /* The GNU C library defines this for functions which it implements
30672 to always fail with ENOSYS. Some functions are actually named
30673 something starting with __ and the normal name is an alias. */
30674 #if defined __stub_$ac_func || defined __stub___$ac_func
30681 return $ac_func ();
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
30695 grep -v '^ *+' conftest.er1 >conftest.err
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
30711 { (case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30720 eval "$as_ac_var=yes"
30722 echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30725 eval "$as_ac_var=no"
30728 rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
30731 ac_res=`eval echo '${'$as_ac_var'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30734 if test `eval echo '${'$as_ac_var'}'` = yes; then
30735 cat >>confdefs.h <<_ACEOF
30736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30746 if test -z "$GETOPT_H"; then
30747 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
30748 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
30749 if test "${ac_cv_have_decl_optreset+set}" = set; then
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
30752 cat >conftest.$ac_ext <<_ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30758 #include <getopt.h>
30764 char *p = (char *) optreset;
30772 rm -f conftest.$ac_objext
30773 if { (ac_try="$ac_compile"
30774 case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_compile") 2>conftest.er1
30781 grep -v '^ *+' conftest.er1 >conftest.err
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest.$ac_objext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_cv_have_decl_optreset=yes
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30811 ac_cv_have_decl_optreset=no
30814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
30817 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
30818 if test $ac_cv_have_decl_optreset = yes; then
30824 if test -z "$GETOPT_H"; then
30825 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
30826 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
30827 if test "${gl_cv_func_gnu_getopt+set}" = set; then
30828 echo $ECHO_N "(cached) $ECHO_C" >&6
30830 if test "$cross_compiling" = yes; then
30831 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
30832 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
30833 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
30834 echo $ECHO_N "(cached) $ECHO_C" >&6
30836 cat >conftest.$ac_ext <<_ACEOF
30839 cat confdefs.h >>conftest.$ac_ext
30840 cat >>conftest.$ac_ext <<_ACEOF
30841 /* end confdefs.h. */
30842 #include <getopt.h>
30847 #ifndef getopt_clip
30848 char *p = (char *) getopt_clip;
30856 rm -f conftest.$ac_objext
30857 if { (ac_try="$ac_compile"
30858 case "(($ac_try" in
30859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860 *) ac_try_echo=$ac_try;;
30862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863 (eval "$ac_compile") 2>conftest.er1
30865 grep -v '^ *+' conftest.er1 >conftest.err
30867 cat conftest.err >&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } &&
30870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30871 { (case "(($ac_try" in
30872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873 *) ac_try_echo=$ac_try;;
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876 (eval "$ac_try") 2>&5
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; } &&
30880 { ac_try='test -s conftest.$ac_objext'
30881 { (case "(($ac_try" in
30882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883 *) ac_try_echo=$ac_try;;
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886 (eval "$ac_try") 2>&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; }; then
30890 ac_cv_have_decl_getopt_clip=yes
30892 echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30895 ac_cv_have_decl_getopt_clip=no
30898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30900 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
30901 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
30902 if test $ac_cv_have_decl_getopt_clip = yes; then
30903 gl_cv_func_gnu_getopt=no
30905 gl_cv_func_gnu_getopt=yes
30909 cat >conftest.$ac_ext <<_ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30915 #include <getopt.h>
30921 myargv[0] = "conftest";
30924 return getopt (2, myargv, "+a") != '?';
30930 rm -f conftest$ac_exeext
30931 if { (ac_try="$ac_link"
30932 case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_link") 2>&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; }; then
30950 gl_cv_func_gnu_getopt=yes
30952 echo "$as_me: program exited with status $ac_status" >&5
30953 echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30956 ( exit $ac_status )
30957 gl_cv_func_gnu_getopt=no
30959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30964 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
30965 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
30966 if test "$gl_cv_func_gnu_getopt" = "no"; then
30971 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
30972 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
30973 if test "${ac_cv_have_decl_getenv+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30976 cat >conftest.$ac_ext <<_ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h. */
30982 $ac_includes_default
30987 char *p = (char *) getenv;
30995 rm -f conftest.$ac_objext
30996 if { (ac_try="$ac_compile"
30997 case "(($ac_try" in
30998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30999 *) ac_try_echo=$ac_try;;
31001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31002 (eval "$ac_compile") 2>conftest.er1
31004 grep -v '^ *+' conftest.er1 >conftest.err
31006 cat conftest.err >&5
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); } &&
31009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31010 { (case "(($ac_try" in
31011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_try") 2>&5
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; } &&
31019 { ac_try='test -s conftest.$ac_objext'
31020 { (case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_try") 2>&5
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); }; }; then
31029 ac_cv_have_decl_getenv=yes
31031 echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31034 ac_cv_have_decl_getenv=no
31037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
31040 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
31041 if test $ac_cv_have_decl_getenv = yes; then
31043 cat >>confdefs.h <<_ACEOF
31044 #define HAVE_DECL_GETENV 1
31049 cat >>confdefs.h <<_ACEOF
31050 #define HAVE_DECL_GETENV 0
31059 if test -n "$GETOPT_H"; then
31061 case " $LIBOBJS " in
31062 *" getopt.$ac_objext "* ) ;;
31063 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
31067 case " $LIBOBJS " in
31068 *" getopt1.$ac_objext "* ) ;;
31069 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
31076 cat >>confdefs.h <<\_ACEOF
31077 #define __GETOPT_PREFIX rpl_
31102 for ac_header in OS.h
31104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31111 ac_res=`eval echo '${'$as_ac_Header'}'`
31112 { echo "$as_me:$LINENO: result: $ac_res" >&5
31113 echo "${ECHO_T}$ac_res" >&6; }
31115 # Is the header compilable?
31116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31118 cat >conftest.$ac_ext <<_ACEOF
31121 cat confdefs.h >>conftest.$ac_ext
31122 cat >>conftest.$ac_ext <<_ACEOF
31123 /* end confdefs.h. */
31124 $ac_includes_default
31125 #include <$ac_header>
31127 rm -f conftest.$ac_objext
31128 if { (ac_try="$ac_compile"
31129 case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_compile") 2>conftest.er1
31136 grep -v '^ *+' conftest.er1 >conftest.err
31138 cat conftest.err >&5
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); } &&
31141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31142 { (case "(($ac_try" in
31143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144 *) ac_try_echo=$ac_try;;
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147 (eval "$ac_try") 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; } &&
31151 { ac_try='test -s conftest.$ac_objext'
31152 { (case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_try") 2>&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; }; then
31161 ac_header_compiler=yes
31163 echo "$as_me: failed program was:" >&5
31164 sed 's/^/| /' conftest.$ac_ext >&5
31166 ac_header_compiler=no
31169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31171 echo "${ECHO_T}$ac_header_compiler" >&6; }
31173 # Is the header present?
31174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31176 cat >conftest.$ac_ext <<_ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h. */
31182 #include <$ac_header>
31184 if { (ac_try="$ac_cpp conftest.$ac_ext"
31185 case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31192 grep -v '^ *+' conftest.er1 >conftest.err
31194 cat conftest.err >&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } >/dev/null; then
31197 if test -s conftest.err; then
31198 ac_cpp_err=$ac_c_preproc_warn_flag
31199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31206 if test -z "$ac_cpp_err"; then
31207 ac_header_preproc=yes
31209 echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31212 ac_header_preproc=no
31215 rm -f conftest.err conftest.$ac_ext
31216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31217 echo "${ECHO_T}$ac_header_preproc" >&6; }
31219 # So? What about this header?
31220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31226 ac_header_preproc=yes
31229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31242 ## ------------------------------------ ##
31243 ## Report this to bug-coreutils@gnu.org ##
31244 ## ------------------------------------ ##
31246 ) | sed "s/^/$as_me: WARNING: /" >&2
31249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31252 echo $ECHO_N "(cached) $ECHO_C" >&6
31254 eval "$as_ac_Header=\$ac_header_preproc"
31256 ac_res=`eval echo '${'$as_ac_Header'}'`
31257 { echo "$as_me:$LINENO: result: $ac_res" >&5
31258 echo "${ECHO_T}$ac_res" >&6; }
31261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31262 cat >>confdefs.h <<_ACEOF
31263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31271 for ac_func in getpagesize
31273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31287 #define $ac_func innocuous_$ac_func
31289 /* System header to define __stub macros and hopefully few prototypes,
31290 which can conflict with char $ac_func (); below.
31291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292 <limits.h> exists even on freestanding compilers. */
31295 # include <limits.h>
31297 # include <assert.h>
31302 /* Override any GCC internal prototype to avoid an error.
31303 Use char because int might match the return type of a GCC
31304 builtin and then its argument prototype would still apply. */
31309 /* The GNU C library defines this for functions which it implements
31310 to always fail with ENOSYS. Some functions are actually named
31311 something starting with __ and the normal name is an alias. */
31312 #if defined __stub_$ac_func || defined __stub___$ac_func
31319 return $ac_func ();
31324 rm -f conftest.$ac_objext conftest$ac_exeext
31325 if { (ac_try="$ac_link"
31326 case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_link") 2>conftest.er1
31333 grep -v '^ *+' conftest.er1 >conftest.err
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } &&
31338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339 { (case "(($ac_try" in
31340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341 *) ac_try_echo=$ac_try;;
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_try") 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try='test -s conftest$ac_exeext'
31349 { (case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_try") 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
31358 eval "$as_ac_var=yes"
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 eval "$as_ac_var=no"
31366 rm -f core conftest.err conftest.$ac_objext \
31367 conftest$ac_exeext conftest.$ac_ext
31369 ac_res=`eval echo '${'$as_ac_var'}'`
31370 { echo "$as_me:$LINENO: result: $ac_res" >&5
31371 echo "${ECHO_T}$ac_res" >&6; }
31372 if test `eval echo '${'$as_ac_var'}'` = yes; then
31373 cat >>confdefs.h <<_ACEOF
31374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31387 case " $LIBOBJS " in
31388 *" gettime.$ac_objext "* ) ;;
31389 *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
31407 case " $LIBOBJS " in
31408 *" getugroups.$ac_objext "* ) ;;
31409 *) LIBOBJS="$LIBOBJS getugroups.$ac_objext"
31414 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
31415 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
31416 if test "${ac_cv_type_getgroups+set}" = set; then
31417 echo $ECHO_N "(cached) $ECHO_C" >&6
31419 if test "$cross_compiling" = yes; then
31420 ac_cv_type_getgroups=cross
31422 cat >conftest.$ac_ext <<_ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h. */
31428 /* Thanks to Mike Rendell for this test. */
31429 $ac_includes_default
31432 #define MAX(x, y) ((x) > (y) ? (x) : (y))
31437 gid_t gidset[NGID];
31439 union { gid_t gval; long int lval; } val;
31442 for (i = 0; i < NGID; i++)
31443 gidset[i] = val.gval;
31444 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
31446 /* Exit non-zero if getgroups seems to require an array of ints. This
31447 happens when gid_t is short int but getgroups modifies an array
31449 return n > 0 && gidset[n] != val.gval;
31452 rm -f conftest$ac_exeext
31453 if { (ac_try="$ac_link"
31454 case "(($ac_try" in
31455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_link") 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31463 { (case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_try") 2>&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
31472 ac_cv_type_getgroups=gid_t
31474 echo "$as_me: program exited with status $ac_status" >&5
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31478 ( exit $ac_status )
31479 ac_cv_type_getgroups=int
31481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31485 if test $ac_cv_type_getgroups = cross; then
31486 cat >conftest.$ac_ext <<_ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h. */
31492 #include <unistd.h>
31495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31496 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
31497 ac_cv_type_getgroups=gid_t
31499 ac_cv_type_getgroups=int
31505 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
31506 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
31508 cat >>confdefs.h <<_ACEOF
31509 #define GETGROUPS_T $ac_cv_type_getgroups
31516 case " $LIBOBJS " in
31517 *" hard-locale.$ac_objext "* ) ;;
31518 *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext"
31525 case " $LIBOBJS " in
31526 *" hash.$ac_objext "* ) ;;
31527 *) LIBOBJS="$LIBOBJS hash.$ac_objext"
31536 case " $LIBOBJS " in
31537 *" hash-pjw.$ac_objext "* ) ;;
31538 *) LIBOBJS="$LIBOBJS hash-pjw.$ac_objext"
31546 case " $LIBOBJS " in
31547 *" human.$ac_objext "* ) ;;
31548 *) LIBOBJS="$LIBOBJS human.$ac_objext"
31560 case " $LIBOBJS " in
31561 *" idcache.$ac_objext "* ) ;;
31562 *) LIBOBJS="$LIBOBJS idcache.$ac_objext"
31572 case " $LIBOBJS " in
31573 *" imaxtostr.$ac_objext "* ) ;;
31574 *) LIBOBJS="$LIBOBJS imaxtostr.$ac_objext"
31578 case " $LIBOBJS " in
31579 *" offtostr.$ac_objext "* ) ;;
31580 *) LIBOBJS="$LIBOBJS offtostr.$ac_objext"
31584 case " $LIBOBJS " in
31585 *" umaxtostr.$ac_objext "* ) ;;
31586 *) LIBOBJS="$LIBOBJS umaxtostr.$ac_objext"
31603 case " $LIBOBJS " in
31604 *" linebuffer.$ac_objext "* ) ;;
31605 *) LIBOBJS="$LIBOBJS linebuffer.$ac_objext"
31620 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31621 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
31622 if test "${am_cv_langinfo_codeset+set}" = set; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31625 cat >conftest.$ac_ext <<_ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h. */
31631 #include <langinfo.h>
31635 char* cs = nl_langinfo(CODESET);
31640 rm -f conftest.$ac_objext conftest$ac_exeext
31641 if { (ac_try="$ac_link"
31642 case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_link") 2>conftest.er1
31649 grep -v '^ *+' conftest.er1 >conftest.err
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } &&
31654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655 { (case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest$ac_exeext'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
31674 am_cv_langinfo_codeset=yes
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31679 am_cv_langinfo_codeset=no
31682 rm -f core conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
31686 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31687 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
31688 if test $am_cv_langinfo_codeset = yes; then
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_LANGINFO_CODESET 1
31696 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
31697 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
31698 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31701 cat >conftest.$ac_ext <<_ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h. */
31707 $ac_includes_default
31711 #ifndef getc_unlocked
31712 char *p = (char *) getc_unlocked;
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735 { (case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_try") 2>&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_try") 2>&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 ac_cv_have_decl_getc_unlocked=yes
31756 echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31759 ac_cv_have_decl_getc_unlocked=no
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
31765 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
31766 if test $ac_cv_have_decl_getc_unlocked = yes; then
31768 cat >>confdefs.h <<_ACEOF
31769 #define HAVE_DECL_GETC_UNLOCKED 1
31774 cat >>confdefs.h <<_ACEOF
31775 #define HAVE_DECL_GETC_UNLOCKED 0
31785 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
31786 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
31787 if test "${ac_cv_gnu_library_2_1+set}" = set; then
31788 echo $ECHO_N "(cached) $ECHO_C" >&6
31790 cat >conftest.$ac_ext <<_ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31797 #include <features.h>
31798 #ifdef __GNU_LIBRARY__
31799 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
31805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31806 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
31807 ac_cv_gnu_library_2_1=yes
31809 ac_cv_gnu_library_2_1=no
31816 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
31817 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
31819 GLIBC21="$ac_cv_gnu_library_2_1"
31850 case " $LIBOBJS " in
31851 *" long-options.$ac_objext "* ) ;;
31852 *) LIBOBJS="$LIBOBJS long-options.$ac_objext"
31868 if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
31869 case " $LIBOBJS " in
31870 *" mbchar.$ac_objext "* ) ;;
31871 *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
31904 for ac_func in iswcntrl
31906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31910 echo $ECHO_N "(cached) $ECHO_C" >&6
31912 cat >conftest.$ac_ext <<_ACEOF
31915 cat confdefs.h >>conftest.$ac_ext
31916 cat >>conftest.$ac_ext <<_ACEOF
31917 /* end confdefs.h. */
31918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31920 #define $ac_func innocuous_$ac_func
31922 /* System header to define __stub macros and hopefully few prototypes,
31923 which can conflict with char $ac_func (); below.
31924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31925 <limits.h> exists even on freestanding compilers. */
31928 # include <limits.h>
31930 # include <assert.h>
31935 /* Override any GCC internal prototype to avoid an error.
31936 Use char because int might match the return type of a GCC
31937 builtin and then its argument prototype would still apply. */
31942 /* The GNU C library defines this for functions which it implements
31943 to always fail with ENOSYS. Some functions are actually named
31944 something starting with __ and the normal name is an alias. */
31945 #if defined __stub_$ac_func || defined __stub___$ac_func
31952 return $ac_func ();
31957 rm -f conftest.$ac_objext conftest$ac_exeext
31958 if { (ac_try="$ac_link"
31959 case "(($ac_try" in
31960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961 *) ac_try_echo=$ac_try;;
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964 (eval "$ac_link") 2>conftest.er1
31966 grep -v '^ *+' conftest.er1 >conftest.err
31968 cat conftest.err >&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } &&
31971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31972 { (case "(($ac_try" in
31973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31974 *) ac_try_echo=$ac_try;;
31976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31977 (eval "$ac_try") 2>&5
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); }; } &&
31981 { ac_try='test -s conftest$ac_exeext'
31982 { (case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987 (eval "$ac_try") 2>&5
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; }; then
31991 eval "$as_ac_var=yes"
31993 echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31996 eval "$as_ac_var=no"
31999 rm -f core conftest.err conftest.$ac_objext \
32000 conftest$ac_exeext conftest.$ac_ext
32002 ac_res=`eval echo '${'$as_ac_var'}'`
32003 { echo "$as_me:$LINENO: result: $ac_res" >&5
32004 echo "${ECHO_T}$ac_res" >&6; }
32005 if test `eval echo '${'$as_ac_var'}'` = yes; then
32006 cat >>confdefs.h <<_ACEOF
32007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32014 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
32015 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
32016 if test "${gl_cv_func_mbrtowc+set}" = set; then
32017 echo $ECHO_N "(cached) $ECHO_C" >&6
32019 cat >conftest.$ac_ext <<_ACEOF
32022 cat confdefs.h >>conftest.$ac_ext
32023 cat >>conftest.$ac_ext <<_ACEOF
32024 /* end confdefs.h. */
32030 char const s[] = "";
32033 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
32038 rm -f conftest.$ac_objext conftest$ac_exeext
32039 if { (ac_try="$ac_link"
32040 case "(($ac_try" in
32041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042 *) ac_try_echo=$ac_try;;
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_link") 2>conftest.er1
32047 grep -v '^ *+' conftest.er1 >conftest.err
32049 cat conftest.err >&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
32052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32053 { (case "(($ac_try" in
32054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055 *) ac_try_echo=$ac_try;;
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058 (eval "$ac_try") 2>&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest$ac_exeext'
32063 { (case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_try") 2>&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 gl_cv_func_mbrtowc=yes
32074 echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32077 gl_cv_func_mbrtowc=no
32080 rm -f core conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
32083 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
32084 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
32085 if test $gl_cv_func_mbrtowc = yes; then
32087 cat >>confdefs.h <<\_ACEOF
32088 #define HAVE_MBRTOWC 1
32094 { echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
32095 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6; }
32096 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 cat >conftest.$ac_ext <<_ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32107 # include <wchar.h>
32114 char *p = (char *) mbswidth;
32120 rm -f conftest.$ac_objext
32121 if { (ac_try="$ac_compile"
32122 case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_compile") 2>conftest.er1
32129 grep -v '^ *+' conftest.er1 >conftest.err
32131 cat conftest.err >&5
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } &&
32134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32135 { (case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_try") 2>&5
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; } &&
32144 { ac_try='test -s conftest.$ac_objext'
32145 { (case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_try") 2>&5
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; }; then
32154 ac_cv_have_decl_mbswidth=yes
32156 echo "$as_me: failed program was:" >&5
32157 sed 's/^/| /' conftest.$ac_ext >&5
32159 ac_cv_have_decl_mbswidth=no
32162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
32165 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; }
32166 if test $ac_cv_have_decl_mbswidth = yes; then
32172 cat >>confdefs.h <<_ACEOF
32173 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
32177 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
32178 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
32179 if test "${ac_cv_type_mbstate_t+set}" = set; then
32180 echo $ECHO_N "(cached) $ECHO_C" >&6
32182 cat >conftest.$ac_ext <<_ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32188 $ac_includes_default
32189 # include <wchar.h>
32193 mbstate_t x; return sizeof x;
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
32207 grep -v '^ *+' conftest.er1 >conftest.err
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; }; then
32232 ac_cv_type_mbstate_t=yes
32234 echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32237 ac_cv_type_mbstate_t=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32243 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
32244 if test $ac_cv_type_mbstate_t = yes; then
32246 cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_MBSTATE_T 1
32252 cat >>confdefs.h <<\_ACEOF
32253 #define mbstate_t int
32260 case " $LIBOBJS " in
32261 *" md5.$ac_objext "* ) ;;
32262 *) LIBOBJS="$LIBOBJS md5.$ac_objext"
32272 case " $LIBOBJS " in
32273 *" memcoll.$ac_objext "* ) ;;
32274 *) LIBOBJS="$LIBOBJS memcoll.$ac_objext"
32279 { echo "$as_me:$LINENO: checking for working strcoll" >&5
32280 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
32281 if test "${ac_cv_func_strcoll_works+set}" = set; then
32282 echo $ECHO_N "(cached) $ECHO_C" >&6
32284 if test "$cross_compiling" = yes; then
32285 ac_cv_func_strcoll_works=no
32287 cat >conftest.$ac_ext <<_ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h. */
32293 $ac_includes_default
32297 return (strcoll ("abc", "def") >= 0 ||
32298 strcoll ("ABC", "DEF") >= 0 ||
32299 strcoll ("123", "456") >= 0)
32304 rm -f conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_link") 2>&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; }; then
32324 ac_cv_func_strcoll_works=yes
32326 echo "$as_me: program exited with status $ac_status" >&5
32327 echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32330 ( exit $ac_status )
32331 ac_cv_func_strcoll_works=no
32333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32338 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
32339 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
32340 if test $ac_cv_func_strcoll_works = yes; then
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_STRCOLL 1
32351 case " $LIBOBJS " in
32352 *" mkancesdirs.$ac_objext "* ) ;;
32353 *) LIBOBJS="$LIBOBJS mkancesdirs.$ac_objext"
32370 for ac_header in unistd.h
32372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32377 echo $ECHO_N "(cached) $ECHO_C" >&6
32379 ac_res=`eval echo '${'$as_ac_Header'}'`
32380 { echo "$as_me:$LINENO: result: $ac_res" >&5
32381 echo "${ECHO_T}$ac_res" >&6; }
32383 # Is the header compilable?
32384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32386 cat >conftest.$ac_ext <<_ACEOF
32389 cat confdefs.h >>conftest.$ac_ext
32390 cat >>conftest.$ac_ext <<_ACEOF
32391 /* end confdefs.h. */
32392 $ac_includes_default
32393 #include <$ac_header>
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_compile") 2>conftest.er1
32404 grep -v '^ *+' conftest.er1 >conftest.err
32406 cat conftest.err >&5
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); } &&
32409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32410 { (case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_try") 2>&5
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest.$ac_objext'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 ac_header_compiler=yes
32431 echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32434 ac_header_compiler=no
32437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32439 echo "${ECHO_T}$ac_header_compiler" >&6; }
32441 # Is the header present?
32442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32444 cat >conftest.$ac_ext <<_ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h. */
32450 #include <$ac_header>
32452 if { (ac_try="$ac_cpp conftest.$ac_ext"
32453 case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32460 grep -v '^ *+' conftest.er1 >conftest.err
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } >/dev/null; then
32465 if test -s conftest.err; then
32466 ac_cpp_err=$ac_c_preproc_warn_flag
32467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32474 if test -z "$ac_cpp_err"; then
32475 ac_header_preproc=yes
32477 echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.$ac_ext >&5
32480 ac_header_preproc=no
32483 rm -f conftest.err conftest.$ac_ext
32484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32485 echo "${ECHO_T}$ac_header_preproc" >&6; }
32487 # So? What about this header?
32488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32494 ac_header_preproc=yes
32497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32510 ## ------------------------------------ ##
32511 ## Report this to bug-coreutils@gnu.org ##
32512 ## ------------------------------------ ##
32514 ) | sed "s/^/$as_me: WARNING: /" >&2
32517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32520 echo $ECHO_N "(cached) $ECHO_C" >&6
32522 eval "$as_ac_Header=\$ac_header_preproc"
32524 ac_res=`eval echo '${'$as_ac_Header'}'`
32525 { echo "$as_me:$LINENO: result: $ac_res" >&5
32526 echo "${ECHO_T}$ac_res" >&6; }
32529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32530 cat >>confdefs.h <<_ACEOF
32531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32538 { echo "$as_me:$LINENO: checking for working chown" >&5
32539 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
32540 if test "${ac_cv_func_chown_works+set}" = set; then
32541 echo $ECHO_N "(cached) $ECHO_C" >&6
32543 if test "$cross_compiling" = yes; then
32544 ac_cv_func_chown_works=no
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
32558 char *f = "conftest.chown";
32559 struct stat before, after;
32561 if (creat (f, 0600) < 0)
32563 if (stat (f, &before) < 0)
32565 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
32567 if (stat (f, &after) < 0)
32569 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
32575 rm -f conftest$ac_exeext
32576 if { (ac_try="$ac_link"
32577 case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_link") 2>&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32586 { (case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_try") 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; }; then
32595 ac_cv_func_chown_works=yes
32597 echo "$as_me: program exited with status $ac_status" >&5
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32601 ( exit $ac_status )
32602 ac_cv_func_chown_works=no
32604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32608 rm -f conftest.chown
32611 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
32612 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
32613 if test $ac_cv_func_chown_works = yes; then
32615 cat >>confdefs.h <<\_ACEOF
32616 #define HAVE_CHOWN 1
32622 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
32623 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
32624 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32628 if test "$cross_compiling" = yes; then
32629 gl_cv_func_chown_follows_symlink=yes
32632 cat >conftest.$ac_ext <<_ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h. */
32639 #include <unistd.h>
32640 #include <stdlib.h>
32646 char const *dangling_symlink = "conftest.dangle";
32648 unlink (dangling_symlink);
32649 if (symlink ("conftest.no-such", dangling_symlink))
32652 /* Exit successfully on a conforming system,
32653 i.e., where chown must fail with ENOENT. */
32654 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
32655 && errno == ENOENT));
32659 rm -f conftest$ac_exeext
32660 if { (ac_try="$ac_link"
32661 case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_link") 2>&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32670 { (case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675 (eval "$ac_try") 2>&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); }; }; then
32679 gl_cv_func_chown_follows_symlink=yes
32681 echo "$as_me: program exited with status $ac_status" >&5
32682 echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32685 ( exit $ac_status )
32686 gl_cv_func_chown_follows_symlink=no
32688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32695 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
32696 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
32698 if test $gl_cv_func_chown_follows_symlink = no; then
32700 cat >>confdefs.h <<\_ACEOF
32701 #define CHOWN_MODIFIES_SYMLINK 1
32711 if test $ac_cv_func_chown_works = no; then
32713 cat >>confdefs.h <<\_ACEOF
32714 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
32719 # If chown has either of the above problems, then we need the wrapper.
32720 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
32721 : # no wrapper needed
32723 case " $LIBOBJS " in
32724 *" chown.$ac_objext "* ) ;;
32725 *) LIBOBJS="$LIBOBJS chown.$ac_objext"
32730 cat >>confdefs.h <<\_ACEOF
32731 #define chown rpl_chown
32735 { echo "$as_me:$LINENO: checking for fchown" >&5
32736 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
32737 if test "${ac_cv_func_fchown+set}" = set; then
32738 echo $ECHO_N "(cached) $ECHO_C" >&6
32740 cat >conftest.$ac_ext <<_ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h. */
32746 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32748 #define fchown innocuous_fchown
32750 /* System header to define __stub macros and hopefully few prototypes,
32751 which can conflict with char fchown (); below.
32752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32753 <limits.h> exists even on freestanding compilers. */
32756 # include <limits.h>
32758 # include <assert.h>
32763 /* Override any GCC internal prototype to avoid an error.
32764 Use char because int might match the return type of a GCC
32765 builtin and then its argument prototype would still apply. */
32770 /* The GNU C library defines this for functions which it implements
32771 to always fail with ENOSYS. Some functions are actually named
32772 something starting with __ and the normal name is an alias. */
32773 #if defined __stub_fchown || defined __stub___fchown
32785 rm -f conftest.$ac_objext conftest$ac_exeext
32786 if { (ac_try="$ac_link"
32787 case "(($ac_try" in
32788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789 *) ac_try_echo=$ac_try;;
32791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32792 (eval "$ac_link") 2>conftest.er1
32794 grep -v '^ *+' conftest.er1 >conftest.err
32796 cat conftest.err >&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); } &&
32799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; } &&
32809 { ac_try='test -s conftest$ac_exeext'
32810 { (case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_try") 2>&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; }; then
32819 ac_cv_func_fchown=yes
32821 echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32824 ac_cv_func_fchown=no
32827 rm -f core conftest.err conftest.$ac_objext \
32828 conftest$ac_exeext conftest.$ac_ext
32830 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32831 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
32832 if test $ac_cv_func_fchown = yes; then
32835 case " $LIBOBJS " in
32836 *" fchown-stub.$ac_objext "* ) ;;
32837 *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
32846 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32847 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32848 if test "${ac_cv_header_stat_broken+set}" = set; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 cat >conftest.$ac_ext <<_ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 #include <sys/types.h>
32858 #include <sys/stat.h>
32860 #if defined S_ISBLK && defined S_IFDIR
32861 # if S_ISBLK (S_IFDIR)
32866 #if defined S_ISBLK && defined S_IFCHR
32867 # if S_ISBLK (S_IFCHR)
32872 #if defined S_ISLNK && defined S_IFREG
32873 # if S_ISLNK (S_IFREG)
32878 #if defined S_ISSOCK && defined S_IFREG
32879 # if S_ISSOCK (S_IFREG)
32885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32886 $EGREP "You lose" >/dev/null 2>&1; then
32887 ac_cv_header_stat_broken=yes
32889 ac_cv_header_stat_broken=no
32894 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32895 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32896 if test $ac_cv_header_stat_broken = yes; then
32898 cat >>confdefs.h <<\_ACEOF
32899 #define STAT_MACROS_BROKEN 1
32915 for ac_func in lchown
32917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32921 echo $ECHO_N "(cached) $ECHO_C" >&6
32923 cat >conftest.$ac_ext <<_ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h. */
32929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32931 #define $ac_func innocuous_$ac_func
32933 /* System header to define __stub macros and hopefully few prototypes,
32934 which can conflict with char $ac_func (); below.
32935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32936 <limits.h> exists even on freestanding compilers. */
32939 # include <limits.h>
32941 # include <assert.h>
32946 /* Override any GCC internal prototype to avoid an error.
32947 Use char because int might match the return type of a GCC
32948 builtin and then its argument prototype would still apply. */
32953 /* The GNU C library defines this for functions which it implements
32954 to always fail with ENOSYS. Some functions are actually named
32955 something starting with __ and the normal name is an alias. */
32956 #if defined __stub_$ac_func || defined __stub___$ac_func
32963 return $ac_func ();
32968 rm -f conftest.$ac_objext conftest$ac_exeext
32969 if { (ac_try="$ac_link"
32970 case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_link") 2>conftest.er1
32977 grep -v '^ *+' conftest.er1 >conftest.err
32979 cat conftest.err >&5
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); } &&
32982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest$ac_exeext'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; }; then
33002 eval "$as_ac_var=yes"
33004 echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33007 eval "$as_ac_var=no"
33010 rm -f core conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
33013 ac_res=`eval echo '${'$as_ac_var'}'`
33014 { echo "$as_me:$LINENO: result: $ac_res" >&5
33015 echo "${ECHO_T}$ac_res" >&6; }
33016 if test `eval echo '${'$as_ac_var'}'` = yes; then
33017 cat >>confdefs.h <<_ACEOF
33018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33022 case " $LIBOBJS " in
33023 *" $ac_func.$ac_objext "* ) ;;
33024 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33035 case " $LIBOBJS " in
33036 *" dirchownmod.$ac_objext "* ) ;;
33037 *) LIBOBJS="$LIBOBJS dirchownmod.$ac_objext"
33041 case " $LIBOBJS " in
33042 *" mkdir-p.$ac_objext "* ) ;;
33043 *) LIBOBJS="$LIBOBJS mkdir-p.$ac_objext"
33053 case " $LIBOBJS " in
33054 *" modechange.$ac_objext "* ) ;;
33055 *) LIBOBJS="$LIBOBJS modechange.$ac_objext"
33066 for ac_func in listmntent getmntinfo
33068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33074 cat >conftest.$ac_ext <<_ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h. */
33080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33082 #define $ac_func innocuous_$ac_func
33084 /* System header to define __stub macros and hopefully few prototypes,
33085 which can conflict with char $ac_func (); below.
33086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33087 <limits.h> exists even on freestanding compilers. */
33090 # include <limits.h>
33092 # include <assert.h>
33097 /* Override any GCC internal prototype to avoid an error.
33098 Use char because int might match the return type of a GCC
33099 builtin and then its argument prototype would still apply. */
33104 /* The GNU C library defines this for functions which it implements
33105 to always fail with ENOSYS. Some functions are actually named
33106 something starting with __ and the normal name is an alias. */
33107 #if defined __stub_$ac_func || defined __stub___$ac_func
33114 return $ac_func ();
33119 rm -f conftest.$ac_objext conftest$ac_exeext
33120 if { (ac_try="$ac_link"
33121 case "(($ac_try" in
33122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33123 *) ac_try_echo=$ac_try;;
33125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33126 (eval "$ac_link") 2>conftest.er1
33128 grep -v '^ *+' conftest.er1 >conftest.err
33130 cat conftest.err >&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } &&
33133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33134 { (case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_try") 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; } &&
33143 { ac_try='test -s conftest$ac_exeext'
33144 { (case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_try") 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; }; then
33153 eval "$as_ac_var=yes"
33155 echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33158 eval "$as_ac_var=no"
33161 rm -f core conftest.err conftest.$ac_objext \
33162 conftest$ac_exeext conftest.$ac_ext
33164 ac_res=`eval echo '${'$as_ac_var'}'`
33165 { echo "$as_me:$LINENO: result: $ac_res" >&5
33166 echo "${ECHO_T}$ac_res" >&6; }
33167 if test `eval echo '${'$as_ac_var'}'` = yes; then
33168 cat >>confdefs.h <<_ACEOF
33169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33182 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
33183 # NGROUPS (as the array dimension for a struct member) without a definition.
33185 for ac_header in sys/ucred.h
33187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33193 cat >conftest.$ac_ext <<_ACEOF
33196 cat confdefs.h >>conftest.$ac_ext
33197 cat >>conftest.$ac_ext <<_ACEOF
33198 /* end confdefs.h. */
33201 #include <$ac_header>
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_compile") 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; } &&
33227 { ac_try='test -s conftest.$ac_objext'
33228 { (case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_try") 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
33237 eval "$as_ac_Header=yes"
33239 echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33242 eval "$as_ac_Header=no"
33245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247 ac_res=`eval echo '${'$as_ac_Header'}'`
33248 { echo "$as_me:$LINENO: result: $ac_res" >&5
33249 echo "${ECHO_T}$ac_res" >&6; }
33250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33251 cat >>confdefs.h <<_ACEOF
33252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33261 for ac_header in sys/mount.h
33263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33267 echo $ECHO_N "(cached) $ECHO_C" >&6
33269 cat >conftest.$ac_ext <<_ACEOF
33272 cat confdefs.h >>conftest.$ac_ext
33273 cat >>conftest.$ac_ext <<_ACEOF
33274 /* end confdefs.h. */
33275 $ac_includes_default
33276 #if HAVE_SYS_PARAM_H
33277 #include <sys/param.h>
33280 #include <$ac_header>
33282 rm -f conftest.$ac_objext
33283 if { (ac_try="$ac_compile"
33284 case "(($ac_try" in
33285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286 *) ac_try_echo=$ac_try;;
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289 (eval "$ac_compile") 2>conftest.er1
33291 grep -v '^ *+' conftest.er1 >conftest.err
33293 cat conftest.err >&5
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); } &&
33296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33297 { (case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_try") 2>&5
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; } &&
33306 { ac_try='test -s conftest.$ac_objext'
33307 { (case "(($ac_try" in
33308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309 *) ac_try_echo=$ac_try;;
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312 (eval "$ac_try") 2>&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316 eval "$as_ac_Header=yes"
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33321 eval "$as_ac_Header=no"
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326 ac_res=`eval echo '${'$as_ac_Header'}'`
33327 { echo "$as_me:$LINENO: result: $ac_res" >&5
33328 echo "${ECHO_T}$ac_res" >&6; }
33329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33330 cat >>confdefs.h <<_ACEOF
33331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33341 for ac_header in mntent.h sys/fs_types.h
33343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33348 echo $ECHO_N "(cached) $ECHO_C" >&6
33350 ac_res=`eval echo '${'$as_ac_Header'}'`
33351 { echo "$as_me:$LINENO: result: $ac_res" >&5
33352 echo "${ECHO_T}$ac_res" >&6; }
33354 # Is the header compilable?
33355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33357 cat >conftest.$ac_ext <<_ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h. */
33363 $ac_includes_default
33364 #include <$ac_header>
33366 rm -f conftest.$ac_objext
33367 if { (ac_try="$ac_compile"
33368 case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_compile") 2>conftest.er1
33375 grep -v '^ *+' conftest.er1 >conftest.err
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
33380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33381 { (case "(($ac_try" in
33382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383 *) ac_try_echo=$ac_try;;
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386 (eval "$ac_try") 2>&5
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; } &&
33390 { ac_try='test -s conftest.$ac_objext'
33391 { (case "(($ac_try" in
33392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_try") 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_header_compiler=yes
33402 echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_header_compiler=no
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33410 echo "${ECHO_T}$ac_header_compiler" >&6; }
33412 # Is the header present?
33413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33415 cat >conftest.$ac_ext <<_ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 #include <$ac_header>
33423 if { (ac_try="$ac_cpp conftest.$ac_ext"
33424 case "(($ac_try" in
33425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33426 *) ac_try_echo=$ac_try;;
33428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33431 grep -v '^ *+' conftest.er1 >conftest.err
33433 cat conftest.err >&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); } >/dev/null; then
33436 if test -s conftest.err; then
33437 ac_cpp_err=$ac_c_preproc_warn_flag
33438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33445 if test -z "$ac_cpp_err"; then
33446 ac_header_preproc=yes
33448 echo "$as_me: failed program was:" >&5
33449 sed 's/^/| /' conftest.$ac_ext >&5
33451 ac_header_preproc=no
33454 rm -f conftest.err conftest.$ac_ext
33455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33456 echo "${ECHO_T}$ac_header_preproc" >&6; }
33458 # So? What about this header?
33459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33465 ac_header_preproc=yes
33468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33481 ## ------------------------------------ ##
33482 ## Report this to bug-coreutils@gnu.org ##
33483 ## ------------------------------------ ##
33485 ) | sed "s/^/$as_me: WARNING: /" >&2
33488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33491 echo $ECHO_N "(cached) $ECHO_C" >&6
33493 eval "$as_ac_Header=\$ac_header_preproc"
33495 ac_res=`eval echo '${'$as_ac_Header'}'`
33496 { echo "$as_me:$LINENO: result: $ac_res" >&5
33497 echo "${ECHO_T}$ac_res" >&6; }
33500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33501 cat >>confdefs.h <<_ACEOF
33502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33509 getfsstat_includes="\
33510 $ac_includes_default
33511 #if HAVE_SYS_PARAM_H
33512 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33514 #if HAVE_SYS_UCRED_H
33515 # include <grp.h> /* needed for definition of NGROUPS */
33516 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33518 #if HAVE_SYS_MOUNT_H
33519 # include <sys/mount.h>
33521 #if HAVE_SYS_FS_TYPES_H
33522 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33525 { echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33526 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6; }
33527 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 cat >conftest.$ac_ext <<_ACEOF
33533 cat confdefs.h >>conftest.$ac_ext
33534 cat >>conftest.$ac_ext <<_ACEOF
33535 /* end confdefs.h. */
33536 $getfsstat_includes
33541 static struct fsstat ac_aggr;
33542 if (ac_aggr.f_fstypename)
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_compile") 2>conftest.er1
33557 grep -v '^ *+' conftest.er1 >conftest.err
33559 cat conftest.err >&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); } &&
33562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33563 { (case "(($ac_try" in
33564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565 *) ac_try_echo=$ac_try;;
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568 (eval "$ac_try") 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; } &&
33572 { ac_try='test -s conftest.$ac_objext'
33573 { (case "(($ac_try" in
33574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575 *) ac_try_echo=$ac_try;;
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578 (eval "$ac_try") 2>&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; }; then
33582 ac_cv_member_struct_fsstat_f_fstypename=yes
33584 echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33587 cat >conftest.$ac_ext <<_ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h. */
33593 $getfsstat_includes
33598 static struct fsstat ac_aggr;
33599 if (sizeof ac_aggr.f_fstypename)
33605 rm -f conftest.$ac_objext
33606 if { (ac_try="$ac_compile"
33607 case "(($ac_try" in
33608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609 *) ac_try_echo=$ac_try;;
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612 (eval "$ac_compile") 2>conftest.er1
33614 grep -v '^ *+' conftest.er1 >conftest.err
33616 cat conftest.err >&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } &&
33619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33620 { (case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_try") 2>&5
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; } &&
33629 { ac_try='test -s conftest.$ac_objext'
33630 { (case "(($ac_try" in
33631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632 *) ac_try_echo=$ac_try;;
33634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635 (eval "$ac_try") 2>&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); }; }; then
33639 ac_cv_member_struct_fsstat_f_fstypename=yes
33641 echo "$as_me: failed program was:" >&5
33642 sed 's/^/| /' conftest.$ac_ext >&5
33644 ac_cv_member_struct_fsstat_f_fstypename=no
33647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33653 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
33654 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33656 cat >>confdefs.h <<_ACEOF
33657 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33664 # Determine how to get the list of mounted file systems.
33665 ac_list_mounted_fs=
33667 # If the getmntent function is available but not in the standard library,
33668 # make sure LIBS contains the appropriate -l option.
33669 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33670 # -lseq on Dynix/PTX, -lgen on Unixware.
33671 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33672 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33673 if test "${ac_cv_search_getmntent+set}" = set; then
33674 echo $ECHO_N "(cached) $ECHO_C" >&6
33676 ac_func_search_save_LIBS=$LIBS
33677 cat >conftest.$ac_ext <<_ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h. */
33684 /* Override any GCC internal prototype to avoid an error.
33685 Use char because int might match the return type of a GCC
33686 builtin and then its argument prototype would still apply. */
33694 return getmntent ();
33699 for ac_lib in '' sun seq gen; do
33700 if test -z "$ac_lib"; then
33701 ac_res="none required"
33704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33706 rm -f conftest.$ac_objext conftest$ac_exeext
33707 if { (ac_try="$ac_link"
33708 case "(($ac_try" in
33709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33710 *) ac_try_echo=$ac_try;;
33712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33713 (eval "$ac_link") 2>conftest.er1
33715 grep -v '^ *+' conftest.er1 >conftest.err
33717 cat conftest.err >&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } &&
33720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33721 { (case "(($ac_try" in
33722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33723 *) ac_try_echo=$ac_try;;
33725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33726 (eval "$ac_try") 2>&5
33728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729 (exit $ac_status); }; } &&
33730 { ac_try='test -s conftest$ac_exeext'
33731 { (case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_try") 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_search_getmntent=$ac_res
33742 echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33748 rm -f core conftest.err conftest.$ac_objext \
33750 if test "${ac_cv_search_getmntent+set}" = set; then
33754 if test "${ac_cv_search_getmntent+set}" = set; then
33757 ac_cv_search_getmntent=no
33759 rm conftest.$ac_ext
33760 LIBS=$ac_func_search_save_LIBS
33762 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33763 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33764 ac_res=$ac_cv_search_getmntent
33765 if test "$ac_res" != no; then
33766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33771 for ac_func in getmntent
33773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h. */
33785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33787 #define $ac_func innocuous_$ac_func
33789 /* System header to define __stub macros and hopefully few prototypes,
33790 which can conflict with char $ac_func (); below.
33791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33792 <limits.h> exists even on freestanding compilers. */
33795 # include <limits.h>
33797 # include <assert.h>
33802 /* Override any GCC internal prototype to avoid an error.
33803 Use char because int might match the return type of a GCC
33804 builtin and then its argument prototype would still apply. */
33809 /* The GNU C library defines this for functions which it implements
33810 to always fail with ENOSYS. Some functions are actually named
33811 something starting with __ and the normal name is an alias. */
33812 #if defined __stub_$ac_func || defined __stub___$ac_func
33819 return $ac_func ();
33824 rm -f conftest.$ac_objext conftest$ac_exeext
33825 if { (ac_try="$ac_link"
33826 case "(($ac_try" in
33827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828 *) ac_try_echo=$ac_try;;
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831 (eval "$ac_link") 2>conftest.er1
33833 grep -v '^ *+' conftest.er1 >conftest.err
33835 cat conftest.err >&5
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); } &&
33838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; } &&
33848 { ac_try='test -s conftest$ac_exeext'
33849 { (case "(($ac_try" in
33850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851 *) ac_try_echo=$ac_try;;
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854 (eval "$ac_try") 2>&5
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); }; }; then
33858 eval "$as_ac_var=yes"
33860 echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33863 eval "$as_ac_var=no"
33866 rm -f core conftest.err conftest.$ac_objext \
33867 conftest$ac_exeext conftest.$ac_ext
33869 ac_res=`eval echo '${'$as_ac_var'}'`
33870 { echo "$as_me:$LINENO: result: $ac_res" >&5
33871 echo "${ECHO_T}$ac_res" >&6; }
33872 if test `eval echo '${'$as_ac_var'}'` = yes; then
33873 cat >>confdefs.h <<_ACEOF
33874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33882 # This test must precede the ones for getmntent because Unicos-9 is
33883 # reported to have the getmntent function, but its support is incompatible
33884 # with other getmntent implementations.
33886 # NOTE: Normally, I wouldn't use a check for system type as I've done for
33887 # `CRAY' below since that goes against the whole autoconf philosophy. But
33888 # I think there is too great a chance that some non-Cray system has a
33889 # function named listmntent to risk the false positive.
33891 if test -z "$ac_list_mounted_fs"; then
33893 { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
33894 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
33895 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33898 fu_cv_sys_mounted_cray_listmntent=no
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33911 $EGREP "yes" >/dev/null 2>&1; then
33912 test $ac_cv_func_listmntent = yes \
33913 && fu_cv_sys_mounted_cray_listmntent=yes
33922 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
33923 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
33924 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
33925 ac_list_mounted_fs=found
33927 cat >>confdefs.h <<\_ACEOF
33928 #define MOUNTED_LISTMNTENT 1
33934 if test -z "$ac_list_mounted_fs"; then
33936 { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
33937 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
33938 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33941 cat >conftest.$ac_ext <<_ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h. */
33947 #include <fshelp.h>
33949 if { (ac_try="$ac_cpp conftest.$ac_ext"
33950 case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33957 grep -v '^ *+' conftest.er1 >conftest.err
33959 cat conftest.err >&5
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } >/dev/null; then
33962 if test -s conftest.err; then
33963 ac_cpp_err=$ac_c_preproc_warn_flag
33964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33971 if test -z "$ac_cpp_err"; then
33972 fu_cv_sys_mounted_vmount=yes
33974 echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33977 fu_cv_sys_mounted_vmount=no
33980 rm -f conftest.err conftest.$ac_ext
33983 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
33984 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
33985 if test $fu_cv_sys_mounted_vmount = yes; then
33986 ac_list_mounted_fs=found
33988 cat >>confdefs.h <<\_ACEOF
33989 #define MOUNTED_VMOUNT 1
33995 if test $ac_cv_func_getmntent = yes; then
33997 # This system has the getmntent function.
33998 # Determine whether it's the one-argument variant or the two-argument one.
34000 if test -z "$ac_list_mounted_fs"; then
34001 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34002 { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34003 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
34004 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34014 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34017 #include <mntent.h>
34018 #if !defined MOUNTED
34019 # if defined _PATH_MOUNTED /* GNU libc */
34020 # define MOUNTED _PATH_MOUNTED
34022 # if defined MNT_MNTTAB /* HP-UX. */
34023 # define MOUNTED MNT_MNTTAB
34025 # if defined MNTTABNAME /* Dynix. */
34026 # define MOUNTED MNTTABNAME
34033 struct mntent *mnt = 0; char *table = MOUNTED;
34038 rm -f conftest.$ac_objext
34039 if { (ac_try="$ac_compile"
34040 case "(($ac_try" in
34041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34042 *) ac_try_echo=$ac_try;;
34044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34045 (eval "$ac_compile") 2>conftest.er1
34047 grep -v '^ *+' conftest.er1 >conftest.err
34049 cat conftest.err >&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); } &&
34052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34053 { (case "(($ac_try" in
34054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055 *) ac_try_echo=$ac_try;;
34057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34058 (eval "$ac_try") 2>&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; } &&
34062 { ac_try='test -s conftest.$ac_objext'
34063 { (case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_try") 2>&5
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); }; }; then
34072 fu_cv_sys_mounted_getmntent1=yes
34074 echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34077 fu_cv_sys_mounted_getmntent1=no
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34083 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34084 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
34085 if test $fu_cv_sys_mounted_getmntent1 = yes; then
34086 ac_list_mounted_fs=found
34088 cat >>confdefs.h <<\_ACEOF
34089 #define MOUNTED_GETMNTENT1 1
34095 if test -z "$ac_list_mounted_fs"; then
34097 { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34098 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
34099 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34100 echo $ECHO_N "(cached) $ECHO_C" >&6
34102 cat >conftest.$ac_ext <<_ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h. */
34108 #include <sys/mnttab.h>
34111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34112 $EGREP "getmntent" >/dev/null 2>&1; then
34113 fu_cv_sys_mounted_getmntent2=yes
34115 fu_cv_sys_mounted_getmntent2=no
34121 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34122 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
34123 if test $fu_cv_sys_mounted_getmntent2 = yes; then
34124 ac_list_mounted_fs=found
34126 cat >>confdefs.h <<\_ACEOF
34127 #define MOUNTED_GETMNTENT2 1
34135 if test -z "$ac_list_mounted_fs"; then
34136 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34137 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34139 { echo "$as_me:$LINENO: checking for getfsstat function" >&5
34140 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
34141 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34142 echo $ECHO_N "(cached) $ECHO_C" >&6
34144 cat >conftest.$ac_ext <<_ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h. */
34151 #include <sys/types.h>
34152 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34153 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34155 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34157 $getfsstat_includes
34162 struct statfs *stats;
34163 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34164 char *t = FS_TYPE (*stats);
34169 rm -f conftest.$ac_objext conftest$ac_exeext
34170 if { (ac_try="$ac_link"
34171 case "(($ac_try" in
34172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173 *) ac_try_echo=$ac_try;;
34175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176 (eval "$ac_link") 2>conftest.er1
34178 grep -v '^ *+' conftest.er1 >conftest.err
34180 cat conftest.err >&5
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); } &&
34183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34184 { (case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_try") 2>&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; } &&
34193 { ac_try='test -s conftest$ac_exeext'
34194 { (case "(($ac_try" in
34195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196 *) ac_try_echo=$ac_try;;
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199 (eval "$ac_try") 2>&5
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); }; }; then
34203 fu_cv_sys_mounted_getfsstat=yes
34205 echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34208 fu_cv_sys_mounted_getfsstat=no
34211 rm -f core conftest.err conftest.$ac_objext \
34212 conftest$ac_exeext conftest.$ac_ext
34215 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34216 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6; }
34217 if test $fu_cv_sys_mounted_getfsstat = yes; then
34218 ac_list_mounted_fs=found
34220 cat >>confdefs.h <<\_ACEOF
34221 #define MOUNTED_GETFSSTAT 1
34227 if test -z "$ac_list_mounted_fs"; then
34229 { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34230 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
34231 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34232 echo $ECHO_N "(cached) $ECHO_C" >&6
34234 cat >conftest.$ac_ext <<_ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h. */
34241 #include <sys/statfs.h>
34242 #include <sys/fstyp.h>
34243 #include <mnttab.h>
34245 if { (ac_try="$ac_cpp conftest.$ac_ext"
34246 case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34253 grep -v '^ *+' conftest.er1 >conftest.err
34255 cat conftest.err >&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } >/dev/null; then
34258 if test -s conftest.err; then
34259 ac_cpp_err=$ac_c_preproc_warn_flag
34260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34267 if test -z "$ac_cpp_err"; then
34268 fu_cv_sys_mounted_fread_fstyp=yes
34270 echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34273 fu_cv_sys_mounted_fread_fstyp=no
34276 rm -f conftest.err conftest.$ac_ext
34279 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34280 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
34281 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34282 ac_list_mounted_fs=found
34284 cat >>confdefs.h <<\_ACEOF
34285 #define MOUNTED_FREAD_FSTYP 1
34291 if test -z "$ac_list_mounted_fs"; then
34292 # 4.4BSD and DEC OSF/1.
34293 { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34294 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
34295 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34296 echo $ECHO_N "(cached) $ECHO_C" >&6
34299 test "$ac_cv_func_getmntinfo" = yes \
34300 && fu_cv_sys_mounted_getmntinfo=yes \
34301 || fu_cv_sys_mounted_getmntinfo=no
34305 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34306 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
34307 if test $fu_cv_sys_mounted_getmntinfo = yes; then
34308 ac_list_mounted_fs=found
34310 cat >>confdefs.h <<\_ACEOF
34311 #define MOUNTED_GETMNTINFO 1
34317 if test -z "$ac_list_mounted_fs"; then
34319 { echo "$as_me:$LINENO: checking for getmnt function" >&5
34320 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
34321 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34322 echo $ECHO_N "(cached) $ECHO_C" >&6
34324 cat >conftest.$ac_ext <<_ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h. */
34331 #include <sys/fs_types.h>
34332 #include <sys/mount.h>
34334 if { (ac_try="$ac_cpp conftest.$ac_ext"
34335 case "(($ac_try" in
34336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34337 *) ac_try_echo=$ac_try;;
34339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34342 grep -v '^ *+' conftest.er1 >conftest.err
34344 cat conftest.err >&5
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); } >/dev/null; then
34347 if test -s conftest.err; then
34348 ac_cpp_err=$ac_c_preproc_warn_flag
34349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34356 if test -z "$ac_cpp_err"; then
34357 fu_cv_sys_mounted_getmnt=yes
34359 echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34362 fu_cv_sys_mounted_getmnt=no
34365 rm -f conftest.err conftest.$ac_ext
34368 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34369 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
34370 if test $fu_cv_sys_mounted_getmnt = yes; then
34371 ac_list_mounted_fs=found
34373 cat >>confdefs.h <<\_ACEOF
34374 #define MOUNTED_GETMNT 1
34380 if test -z "$ac_list_mounted_fs"; then
34384 for ac_func in next_dev fs_stat_dev
34386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34392 cat >conftest.$ac_ext <<_ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h. */
34398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34400 #define $ac_func innocuous_$ac_func
34402 /* System header to define __stub macros and hopefully few prototypes,
34403 which can conflict with char $ac_func (); below.
34404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34405 <limits.h> exists even on freestanding compilers. */
34408 # include <limits.h>
34410 # include <assert.h>
34415 /* Override any GCC internal prototype to avoid an error.
34416 Use char because int might match the return type of a GCC
34417 builtin and then its argument prototype would still apply. */
34422 /* The GNU C library defines this for functions which it implements
34423 to always fail with ENOSYS. Some functions are actually named
34424 something starting with __ and the normal name is an alias. */
34425 #if defined __stub_$ac_func || defined __stub___$ac_func
34432 return $ac_func ();
34437 rm -f conftest.$ac_objext conftest$ac_exeext
34438 if { (ac_try="$ac_link"
34439 case "(($ac_try" in
34440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441 *) ac_try_echo=$ac_try;;
34443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444 (eval "$ac_link") 2>conftest.er1
34446 grep -v '^ *+' conftest.er1 >conftest.err
34448 cat conftest.err >&5
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); } &&
34451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34452 { (case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_try") 2>&5
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; } &&
34461 { ac_try='test -s conftest$ac_exeext'
34462 { (case "(($ac_try" in
34463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464 *) ac_try_echo=$ac_try;;
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467 (eval "$ac_try") 2>&5
34469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470 (exit $ac_status); }; }; then
34471 eval "$as_ac_var=yes"
34473 echo "$as_me: failed program was:" >&5
34474 sed 's/^/| /' conftest.$ac_ext >&5
34476 eval "$as_ac_var=no"
34479 rm -f core conftest.err conftest.$ac_objext \
34480 conftest$ac_exeext conftest.$ac_ext
34482 ac_res=`eval echo '${'$as_ac_var'}'`
34483 { echo "$as_me:$LINENO: result: $ac_res" >&5
34484 echo "${ECHO_T}$ac_res" >&6; }
34485 if test `eval echo '${'$as_ac_var'}'` = yes; then
34486 cat >>confdefs.h <<_ACEOF
34487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34494 for ac_header in fs_info.h
34496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34501 echo $ECHO_N "(cached) $ECHO_C" >&6
34503 ac_res=`eval echo '${'$as_ac_Header'}'`
34504 { echo "$as_me:$LINENO: result: $ac_res" >&5
34505 echo "${ECHO_T}$ac_res" >&6; }
34507 # Is the header compilable?
34508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34510 cat >conftest.$ac_ext <<_ACEOF
34513 cat confdefs.h >>conftest.$ac_ext
34514 cat >>conftest.$ac_ext <<_ACEOF
34515 /* end confdefs.h. */
34516 $ac_includes_default
34517 #include <$ac_header>
34519 rm -f conftest.$ac_objext
34520 if { (ac_try="$ac_compile"
34521 case "(($ac_try" in
34522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34523 *) ac_try_echo=$ac_try;;
34525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34526 (eval "$ac_compile") 2>conftest.er1
34528 grep -v '^ *+' conftest.er1 >conftest.err
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
34533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34534 { (case "(($ac_try" in
34535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536 *) ac_try_echo=$ac_try;;
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539 (eval "$ac_try") 2>&5
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); }; } &&
34543 { ac_try='test -s conftest.$ac_objext'
34544 { (case "(($ac_try" in
34545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546 *) ac_try_echo=$ac_try;;
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549 (eval "$ac_try") 2>&5
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; }; then
34553 ac_header_compiler=yes
34555 echo "$as_me: failed program was:" >&5
34556 sed 's/^/| /' conftest.$ac_ext >&5
34558 ac_header_compiler=no
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34563 echo "${ECHO_T}$ac_header_compiler" >&6; }
34565 # Is the header present?
34566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34568 cat >conftest.$ac_ext <<_ACEOF
34571 cat confdefs.h >>conftest.$ac_ext
34572 cat >>conftest.$ac_ext <<_ACEOF
34573 /* end confdefs.h. */
34574 #include <$ac_header>
34576 if { (ac_try="$ac_cpp conftest.$ac_ext"
34577 case "(($ac_try" in
34578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34579 *) ac_try_echo=$ac_try;;
34581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34584 grep -v '^ *+' conftest.er1 >conftest.err
34586 cat conftest.err >&5
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } >/dev/null; then
34589 if test -s conftest.err; then
34590 ac_cpp_err=$ac_c_preproc_warn_flag
34591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34598 if test -z "$ac_cpp_err"; then
34599 ac_header_preproc=yes
34601 echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34604 ac_header_preproc=no
34607 rm -f conftest.err conftest.$ac_ext
34608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34609 echo "${ECHO_T}$ac_header_preproc" >&6; }
34611 # So? What about this header?
34612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34618 ac_header_preproc=yes
34621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34634 ## ------------------------------------ ##
34635 ## Report this to bug-coreutils@gnu.org ##
34636 ## ------------------------------------ ##
34638 ) | sed "s/^/$as_me: WARNING: /" >&2
34641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34644 echo $ECHO_N "(cached) $ECHO_C" >&6
34646 eval "$as_ac_Header=\$ac_header_preproc"
34648 ac_res=`eval echo '${'$as_ac_Header'}'`
34649 { echo "$as_me:$LINENO: result: $ac_res" >&5
34650 echo "${ECHO_T}$ac_res" >&6; }
34653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34654 cat >>confdefs.h <<_ACEOF
34655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34662 { echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34663 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6; }
34664 if test $ac_cv_header_fs_info_h = yes \
34665 && test $ac_cv_func_next_dev = yes \
34666 && test $ac_cv_func_fs_stat_dev = yes; then
34671 { echo "$as_me:$LINENO: result: $fu_result" >&5
34672 echo "${ECHO_T}$fu_result" >&6; }
34673 if test $fu_result = yes; then
34674 ac_list_mounted_fs=found
34676 cat >>confdefs.h <<\_ACEOF
34677 #define MOUNTED_FS_STAT_DEV 1
34683 if test -z "$ac_list_mounted_fs"; then
34685 { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34686 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
34687 if test "${fu_cv_sys_mounted_fread+set}" = set; then
34688 echo $ECHO_N "(cached) $ECHO_C" >&6
34690 cat >conftest.$ac_ext <<_ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h. */
34696 #include <mnttab.h>
34698 if { (ac_try="$ac_cpp conftest.$ac_ext"
34699 case "(($ac_try" in
34700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701 *) ac_try_echo=$ac_try;;
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34706 grep -v '^ *+' conftest.er1 >conftest.err
34708 cat conftest.err >&5
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); } >/dev/null; then
34711 if test -s conftest.err; then
34712 ac_cpp_err=$ac_c_preproc_warn_flag
34713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34720 if test -z "$ac_cpp_err"; then
34721 fu_cv_sys_mounted_fread=yes
34723 echo "$as_me: failed program was:" >&5
34724 sed 's/^/| /' conftest.$ac_ext >&5
34726 fu_cv_sys_mounted_fread=no
34729 rm -f conftest.err conftest.$ac_ext
34732 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
34733 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
34734 if test $fu_cv_sys_mounted_fread = yes; then
34735 ac_list_mounted_fs=found
34737 cat >>confdefs.h <<\_ACEOF
34738 #define MOUNTED_FREAD 1
34744 if test -z "$ac_list_mounted_fs"; then
34745 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
34746 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
34747 { (exit 1); exit 1; }; }
34748 # FIXME -- no need to abort building the whole package
34749 # Can't build mountlist.c or anything that needs its functions
34752 if test $ac_list_mounted_fs = found; then
34753 gl_cv_list_mounted_fs=yes
34755 gl_cv_list_mounted_fs=no
34760 if test $gl_cv_list_mounted_fs = yes; then
34761 case " $LIBOBJS " in
34762 *" mountlist.$ac_objext "* ) ;;
34763 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
34769 for ac_header in sys/mntent.h
34771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34778 ac_res=`eval echo '${'$as_ac_Header'}'`
34779 { echo "$as_me:$LINENO: result: $ac_res" >&5
34780 echo "${ECHO_T}$ac_res" >&6; }
34782 # Is the header compilable?
34783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34785 cat >conftest.$ac_ext <<_ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h. */
34791 $ac_includes_default
34792 #include <$ac_header>
34794 rm -f conftest.$ac_objext
34795 if { (ac_try="$ac_compile"
34796 case "(($ac_try" in
34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798 *) ac_try_echo=$ac_try;;
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801 (eval "$ac_compile") 2>conftest.er1
34803 grep -v '^ *+' conftest.er1 >conftest.err
34805 cat conftest.err >&5
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } &&
34808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34809 { (case "(($ac_try" in
34810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34811 *) ac_try_echo=$ac_try;;
34813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34814 (eval "$ac_try") 2>&5
34816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817 (exit $ac_status); }; } &&
34818 { ac_try='test -s conftest.$ac_objext'
34819 { (case "(($ac_try" in
34820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34821 *) ac_try_echo=$ac_try;;
34823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34824 (eval "$ac_try") 2>&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; }; then
34828 ac_header_compiler=yes
34830 echo "$as_me: failed program was:" >&5
34831 sed 's/^/| /' conftest.$ac_ext >&5
34833 ac_header_compiler=no
34836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34838 echo "${ECHO_T}$ac_header_compiler" >&6; }
34840 # Is the header present?
34841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34843 cat >conftest.$ac_ext <<_ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 #include <$ac_header>
34851 if { (ac_try="$ac_cpp conftest.$ac_ext"
34852 case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34859 grep -v '^ *+' conftest.er1 >conftest.err
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } >/dev/null; then
34864 if test -s conftest.err; then
34865 ac_cpp_err=$ac_c_preproc_warn_flag
34866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34873 if test -z "$ac_cpp_err"; then
34874 ac_header_preproc=yes
34876 echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34879 ac_header_preproc=no
34882 rm -f conftest.err conftest.$ac_ext
34883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34884 echo "${ECHO_T}$ac_header_preproc" >&6; }
34886 # So? What about this header?
34887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34893 ac_header_preproc=yes
34896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34909 ## ------------------------------------ ##
34910 ## Report this to bug-coreutils@gnu.org ##
34911 ## ------------------------------------ ##
34913 ) | sed "s/^/$as_me: WARNING: /" >&2
34916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34919 echo $ECHO_N "(cached) $ECHO_C" >&6
34921 eval "$as_ac_Header=\$ac_header_preproc"
34923 ac_res=`eval echo '${'$as_ac_Header'}'`
34924 { echo "$as_me:$LINENO: result: $ac_res" >&5
34925 echo "${ECHO_T}$ac_res" >&6; }
34928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34929 cat >>confdefs.h <<_ACEOF
34930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34938 { echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
34939 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6; }
34940 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
34941 echo $ECHO_N "(cached) $ECHO_C" >&6
34944 cat >conftest.$ac_ext <<_ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h. */
34951 #include <sys/param.h>
34952 #include <sys/types.h>
34953 #include <sys/mount.h>
34958 struct statfs s; int i = sizeof s.f_fstypename;
34963 rm -f conftest.$ac_objext
34964 if { (ac_try="$ac_compile"
34965 case "(($ac_try" in
34966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34967 *) ac_try_echo=$ac_try;;
34969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34970 (eval "$ac_compile") 2>conftest.er1
34972 grep -v '^ *+' conftest.er1 >conftest.err
34974 cat conftest.err >&5
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); } &&
34977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34978 { (case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_try") 2>&5
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; } &&
34987 { ac_try='test -s conftest.$ac_objext'
34988 { (case "(($ac_try" in
34989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34990 *) ac_try_echo=$ac_try;;
34992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34993 (eval "$ac_try") 2>&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; }; then
34997 fu_cv_sys_f_fstypename_in_statfs=yes
34999 echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35002 fu_cv_sys_f_fstypename_in_statfs=no
35006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35010 { echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
35011 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6; }
35013 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
35015 cat >>confdefs.h <<\_ACEOF
35016 #define HAVE_F_FSTYPENAME_IN_STATFS 1
35026 { echo "$as_me:$LINENO: checking for obstacks" >&5
35027 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
35028 if test "${ac_cv_func_obstack+set}" = set; then
35029 echo $ECHO_N "(cached) $ECHO_C" >&6
35031 cat >conftest.$ac_ext <<_ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h. */
35037 #include "obstack.h"
35041 struct obstack *mem; obstack_free(mem,(char *) 0)
35046 rm -f conftest.$ac_objext conftest$ac_exeext
35047 if { (ac_try="$ac_link"
35048 case "(($ac_try" in
35049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35050 *) ac_try_echo=$ac_try;;
35052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35053 (eval "$ac_link") 2>conftest.er1
35055 grep -v '^ *+' conftest.er1 >conftest.err
35057 cat conftest.err >&5
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); } &&
35060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35061 { (case "(($ac_try" in
35062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35063 *) ac_try_echo=$ac_try;;
35065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35066 (eval "$ac_try") 2>&5
35068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; } &&
35070 { ac_try='test -s conftest$ac_exeext'
35071 { (case "(($ac_try" in
35072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35073 *) ac_try_echo=$ac_try;;
35075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35076 (eval "$ac_try") 2>&5
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); }; }; then
35080 ac_cv_func_obstack=yes
35082 echo "$as_me: failed program was:" >&5
35083 sed 's/^/| /' conftest.$ac_ext >&5
35085 ac_cv_func_obstack=no
35088 rm -f core conftest.err conftest.$ac_objext \
35089 conftest$ac_exeext conftest.$ac_ext
35091 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35092 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
35093 if test $ac_cv_func_obstack = yes; then
35095 cat >>confdefs.h <<\_ACEOF
35096 #define HAVE_OBSTACK 1
35100 case " $LIBOBJS " in
35101 *" obstack.$ac_objext "* ) ;;
35102 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
35108 if test $ac_cv_func_obstack = no; then
35127 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
35128 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
35129 if test "${gl_cv_var__system_configuration+set}" = set; then
35130 echo $ECHO_N "(cached) $ECHO_C" >&6
35132 cat >conftest.$ac_ext <<_ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h. */
35138 #include <sys/systemcfg.h>
35143 double x = _system_configuration.physmem;
35148 rm -f conftest.$ac_objext conftest$ac_exeext
35149 if { (ac_try="$ac_link"
35150 case "(($ac_try" in
35151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152 *) ac_try_echo=$ac_try;;
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155 (eval "$ac_link") 2>conftest.er1
35157 grep -v '^ *+' conftest.er1 >conftest.err
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } &&
35162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35163 { (case "(($ac_try" in
35164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165 *) ac_try_echo=$ac_try;;
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168 (eval "$ac_try") 2>&5
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; } &&
35172 { ac_try='test -s conftest$ac_exeext'
35173 { (case "(($ac_try" in
35174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175 *) ac_try_echo=$ac_try;;
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178 (eval "$ac_try") 2>&5
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; }; then
35182 gl_cv_var__system_configuration=yes
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35187 gl_cv_var__system_configuration=no
35190 rm -f core conftest.err conftest.$ac_objext \
35191 conftest$ac_exeext conftest.$ac_ext
35193 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
35194 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
35196 if test $gl_cv_var__system_configuration = yes; then
35198 cat >>confdefs.h <<\_ACEOF
35199 #define HAVE__SYSTEM_CONFIGURATION 1
35207 case " $LIBOBJS " in
35208 *" physmem.$ac_objext "* ) ;;
35209 *) LIBOBJS="$LIBOBJS physmem.$ac_objext"
35214 # Prerequisites of lib/physmem.c.
35223 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
35224 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
35227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35231 echo $ECHO_N "(cached) $ECHO_C" >&6
35233 cat >conftest.$ac_ext <<_ACEOF
35236 cat confdefs.h >>conftest.$ac_ext
35237 cat >>conftest.$ac_ext <<_ACEOF
35238 /* end confdefs.h. */
35239 $ac_includes_default
35241 #include <$ac_header>
35243 rm -f conftest.$ac_objext
35244 if { (ac_try="$ac_compile"
35245 case "(($ac_try" in
35246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247 *) ac_try_echo=$ac_try;;
35249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250 (eval "$ac_compile") 2>conftest.er1
35252 grep -v '^ *+' conftest.er1 >conftest.err
35254 cat conftest.err >&5
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); } &&
35257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35258 { (case "(($ac_try" in
35259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260 *) ac_try_echo=$ac_try;;
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263 (eval "$ac_try") 2>&5
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); }; } &&
35267 { ac_try='test -s conftest.$ac_objext'
35268 { (case "(($ac_try" in
35269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35270 *) ac_try_echo=$ac_try;;
35272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35273 (eval "$ac_try") 2>&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35277 eval "$as_ac_Header=yes"
35279 echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35282 eval "$as_ac_Header=no"
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 ac_res=`eval echo '${'$as_ac_Header'}'`
35288 { echo "$as_me:$LINENO: result: $ac_res" >&5
35289 echo "${ECHO_T}$ac_res" >&6; }
35290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35291 cat >>confdefs.h <<_ACEOF
35292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35306 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
35308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35314 cat >conftest.$ac_ext <<_ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h. */
35320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35322 #define $ac_func innocuous_$ac_func
35324 /* System header to define __stub macros and hopefully few prototypes,
35325 which can conflict with char $ac_func (); below.
35326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35327 <limits.h> exists even on freestanding compilers. */
35330 # include <limits.h>
35332 # include <assert.h>
35337 /* Override any GCC internal prototype to avoid an error.
35338 Use char because int might match the return type of a GCC
35339 builtin and then its argument prototype would still apply. */
35344 /* The GNU C library defines this for functions which it implements
35345 to always fail with ENOSYS. Some functions are actually named
35346 something starting with __ and the normal name is an alias. */
35347 #if defined __stub_$ac_func || defined __stub___$ac_func
35354 return $ac_func ();
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (ac_try="$ac_link"
35361 case "(($ac_try" in
35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363 *) ac_try_echo=$ac_try;;
35365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366 (eval "$ac_link") 2>conftest.er1
35368 grep -v '^ *+' conftest.er1 >conftest.err
35370 cat conftest.err >&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } &&
35373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35374 { (case "(($ac_try" in
35375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35376 *) ac_try_echo=$ac_try;;
35378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35379 (eval "$ac_try") 2>&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); }; } &&
35383 { ac_try='test -s conftest$ac_exeext'
35384 { (case "(($ac_try" in
35385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386 *) ac_try_echo=$ac_try;;
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389 (eval "$ac_try") 2>&5
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; }; then
35393 eval "$as_ac_var=yes"
35395 echo "$as_me: failed program was:" >&5
35396 sed 's/^/| /' conftest.$ac_ext >&5
35398 eval "$as_ac_var=no"
35401 rm -f core conftest.err conftest.$ac_objext \
35402 conftest$ac_exeext conftest.$ac_ext
35404 ac_res=`eval echo '${'$as_ac_var'}'`
35405 { echo "$as_me:$LINENO: result: $ac_res" >&5
35406 echo "${ECHO_T}$ac_res" >&6; }
35407 if test `eval echo '${'$as_ac_var'}'` = yes; then
35408 cat >>confdefs.h <<_ACEOF
35409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35419 case " $LIBOBJS " in
35420 *" posixtm.$ac_objext "* ) ;;
35421 *) LIBOBJS="$LIBOBJS posixtm.$ac_objext"
35426 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
35427 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
35428 if test "${ac_cv_struct_tm+set}" = set; then
35429 echo $ECHO_N "(cached) $ECHO_C" >&6
35431 cat >conftest.$ac_ext <<_ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h. */
35437 #include <sys/types.h>
35443 struct tm *tp; tp->tm_sec;
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452 *) ac_try_echo=$ac_try;;
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455 (eval "$ac_compile") 2>conftest.er1
35457 grep -v '^ *+' conftest.er1 >conftest.err
35459 cat conftest.err >&5
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); } &&
35462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35463 { (case "(($ac_try" in
35464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35465 *) ac_try_echo=$ac_try;;
35467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35468 (eval "$ac_try") 2>&5
35470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471 (exit $ac_status); }; } &&
35472 { ac_try='test -s conftest.$ac_objext'
35473 { (case "(($ac_try" in
35474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35475 *) ac_try_echo=$ac_try;;
35477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35478 (eval "$ac_try") 2>&5
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; }; then
35482 ac_cv_struct_tm=time.h
35484 echo "$as_me: failed program was:" >&5
35485 sed 's/^/| /' conftest.$ac_ext >&5
35487 ac_cv_struct_tm=sys/time.h
35490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
35493 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
35494 if test $ac_cv_struct_tm = sys/time.h; then
35496 cat >>confdefs.h <<\_ACEOF
35497 #define TM_IN_SYS_TIME 1
35505 case " $LIBOBJS " in
35506 *" posixver.$ac_objext "* ) ;;
35507 *) LIBOBJS="$LIBOBJS posixver.$ac_objext"
35516 case " $LIBOBJS " in
35517 *" quotearg.$ac_objext "* ) ;;
35518 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
35539 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35540 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35541 if test "${ac_cv_type_mbstate_t+set}" = set; then
35542 echo $ECHO_N "(cached) $ECHO_C" >&6
35544 cat >conftest.$ac_ext <<_ACEOF
35547 cat confdefs.h >>conftest.$ac_ext
35548 cat >>conftest.$ac_ext <<_ACEOF
35549 /* end confdefs.h. */
35550 $ac_includes_default
35551 # include <wchar.h>
35555 mbstate_t x; return sizeof x;
35560 rm -f conftest.$ac_objext
35561 if { (ac_try="$ac_compile"
35562 case "(($ac_try" in
35563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35564 *) ac_try_echo=$ac_try;;
35566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35567 (eval "$ac_compile") 2>conftest.er1
35569 grep -v '^ *+' conftest.er1 >conftest.err
35571 cat conftest.err >&5
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); } &&
35574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35575 { (case "(($ac_try" in
35576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35577 *) ac_try_echo=$ac_try;;
35579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35580 (eval "$ac_try") 2>&5
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; } &&
35584 { ac_try='test -s conftest.$ac_objext'
35585 { (case "(($ac_try" in
35586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35587 *) ac_try_echo=$ac_try;;
35589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35590 (eval "$ac_try") 2>&5
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; }; then
35594 ac_cv_type_mbstate_t=yes
35596 echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35599 ac_cv_type_mbstate_t=no
35602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35604 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35605 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35606 if test $ac_cv_type_mbstate_t = yes; then
35608 cat >>confdefs.h <<\_ACEOF
35609 #define HAVE_MBSTATE_T 1
35614 cat >>confdefs.h <<\_ACEOF
35615 #define mbstate_t int
35620 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
35621 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
35622 if test "${gl_cv_func_mbrtowc+set}" = set; then
35623 echo $ECHO_N "(cached) $ECHO_C" >&6
35625 cat >conftest.$ac_ext <<_ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h. */
35636 char const s[] = "";
35639 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
35644 rm -f conftest.$ac_objext conftest$ac_exeext
35645 if { (ac_try="$ac_link"
35646 case "(($ac_try" in
35647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648 *) ac_try_echo=$ac_try;;
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651 (eval "$ac_link") 2>conftest.er1
35653 grep -v '^ *+' conftest.er1 >conftest.err
35655 cat conftest.err >&5
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); } &&
35658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35659 { (case "(($ac_try" in
35660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35661 *) ac_try_echo=$ac_try;;
35663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35664 (eval "$ac_try") 2>&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; } &&
35668 { ac_try='test -s conftest$ac_exeext'
35669 { (case "(($ac_try" in
35670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671 *) ac_try_echo=$ac_try;;
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674 (eval "$ac_try") 2>&5
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); }; }; then
35678 gl_cv_func_mbrtowc=yes
35680 echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35683 gl_cv_func_mbrtowc=no
35686 rm -f core conftest.err conftest.$ac_objext \
35687 conftest$ac_exeext conftest.$ac_ext
35689 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
35690 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
35691 if test $gl_cv_func_mbrtowc = yes; then
35693 cat >>confdefs.h <<\_ACEOF
35694 #define HAVE_MBRTOWC 1
35702 case " $LIBOBJS " in
35703 *" quote.$ac_objext "* ) ;;
35704 *) LIBOBJS="$LIBOBJS quote.$ac_objext"
35712 case " $LIBOBJS " in
35713 *" readtokens.$ac_objext "* ) ;;
35714 *) LIBOBJS="$LIBOBJS readtokens.$ac_objext"
35722 { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
35723 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; }
35724 if test "${gl_cv_func_free+set}" = set; then
35725 echo $ECHO_N "(cached) $ECHO_C" >&6
35727 cat >conftest.$ac_ext <<_ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h. */
35733 #include <unistd.h>
35737 #if _POSIX_VERSION < 199009L && \
35738 (defined unix || defined _unix || defined _unix_ \
35739 || defined __unix || defined __unix__)
35740 #error "'free (NULL)' is not known to work"
35746 rm -f conftest.$ac_objext
35747 if { (ac_try="$ac_compile"
35748 case "(($ac_try" in
35749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750 *) ac_try_echo=$ac_try;;
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753 (eval "$ac_compile") 2>conftest.er1
35755 grep -v '^ *+' conftest.er1 >conftest.err
35757 cat conftest.err >&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
35760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35761 { (case "(($ac_try" in
35762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35763 *) ac_try_echo=$ac_try;;
35765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35766 (eval "$ac_try") 2>&5
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; } &&
35770 { ac_try='test -s conftest.$ac_objext'
35771 { (case "(($ac_try" in
35772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35773 *) ac_try_echo=$ac_try;;
35775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35776 (eval "$ac_try") 2>&5
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); }; }; then
35780 gl_cv_func_free=yes
35782 echo "$as_me: failed program was:" >&5
35783 sed 's/^/| /' conftest.$ac_ext >&5
35788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35790 { echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
35791 echo "${ECHO_T}$gl_cv_func_free" >&6; }
35793 if test $gl_cv_func_free = no; then
35794 case " $LIBOBJS " in
35795 *" free.$ac_objext "* ) ;;
35796 *) LIBOBJS="$LIBOBJS free.$ac_objext"
35801 cat >>confdefs.h <<\_ACEOF
35802 #define free rpl_free
35815 case " $LIBOBJS " in
35816 *" readutmp.$ac_objext "* ) ;;
35817 *) LIBOBJS="$LIBOBJS readutmp.$ac_objext"
35840 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
35841 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
35842 if test "${ac_cv_have_decl_getutent+set}" = set; then
35843 echo $ECHO_N "(cached) $ECHO_C" >&6
35845 cat >conftest.$ac_ext <<_ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h. */
35861 char *p = (char *) getutent;
35869 rm -f conftest.$ac_objext
35870 if { (ac_try="$ac_compile"
35871 case "(($ac_try" in
35872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35873 *) ac_try_echo=$ac_try;;
35875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35876 (eval "$ac_compile") 2>conftest.er1
35878 grep -v '^ *+' conftest.er1 >conftest.err
35880 cat conftest.err >&5
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); } &&
35883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35884 { (case "(($ac_try" in
35885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35886 *) ac_try_echo=$ac_try;;
35888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35889 (eval "$ac_try") 2>&5
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; } &&
35893 { ac_try='test -s conftest.$ac_objext'
35894 { (case "(($ac_try" in
35895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896 *) ac_try_echo=$ac_try;;
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899 (eval "$ac_try") 2>&5
35901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); }; }; then
35903 ac_cv_have_decl_getutent=yes
35905 echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35908 ac_cv_have_decl_getutent=no
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35913 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
35914 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
35915 if test $ac_cv_have_decl_getutent = yes; then
35917 cat >>confdefs.h <<_ACEOF
35918 #define HAVE_DECL_GETUTENT 1
35923 cat >>confdefs.h <<_ACEOF
35924 #define HAVE_DECL_GETUTENT 0
35931 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
35933 $ac_includes_default
35934 #ifdef HAVE_UTMPX_H
35935 # include <utmpx.h>
35941 { echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
35942 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6; }
35943 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
35944 echo $ECHO_N "(cached) $ECHO_C" >&6
35946 cat >conftest.$ac_ext <<_ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h. */
35957 static struct utmpx ac_aggr;
35958 if (ac_aggr.ut_user)
35964 rm -f conftest.$ac_objext
35965 if { (ac_try="$ac_compile"
35966 case "(($ac_try" in
35967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968 *) ac_try_echo=$ac_try;;
35970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35971 (eval "$ac_compile") 2>conftest.er1
35973 grep -v '^ *+' conftest.er1 >conftest.err
35975 cat conftest.err >&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } &&
35978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35979 { (case "(($ac_try" in
35980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35981 *) ac_try_echo=$ac_try;;
35983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35984 (eval "$ac_try") 2>&5
35986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 (exit $ac_status); }; } &&
35988 { ac_try='test -s conftest.$ac_objext'
35989 { (case "(($ac_try" in
35990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991 *) ac_try_echo=$ac_try;;
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994 (eval "$ac_try") 2>&5
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); }; }; then
35998 ac_cv_member_struct_utmpx_ut_user=yes
36000 echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36003 cat >conftest.$ac_ext <<_ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h. */
36014 static struct utmpx ac_aggr;
36015 if (sizeof ac_aggr.ut_user)
36021 rm -f conftest.$ac_objext
36022 if { (ac_try="$ac_compile"
36023 case "(($ac_try" in
36024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025 *) ac_try_echo=$ac_try;;
36027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36028 (eval "$ac_compile") 2>conftest.er1
36030 grep -v '^ *+' conftest.er1 >conftest.err
36032 cat conftest.err >&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); } &&
36035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36036 { (case "(($ac_try" in
36037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038 *) ac_try_echo=$ac_try;;
36040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36041 (eval "$ac_try") 2>&5
36043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36044 (exit $ac_status); }; } &&
36045 { ac_try='test -s conftest.$ac_objext'
36046 { (case "(($ac_try" in
36047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36048 *) ac_try_echo=$ac_try;;
36050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36051 (eval "$ac_try") 2>&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); }; }; then
36055 ac_cv_member_struct_utmpx_ut_user=yes
36057 echo "$as_me: failed program was:" >&5
36058 sed 's/^/| /' conftest.$ac_ext >&5
36060 ac_cv_member_struct_utmpx_ut_user=no
36063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
36069 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6; }
36070 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
36072 cat >>confdefs.h <<_ACEOF
36073 #define HAVE_STRUCT_UTMPX_UT_USER 1
36079 { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
36080 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
36081 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
36082 echo $ECHO_N "(cached) $ECHO_C" >&6
36084 cat >conftest.$ac_ext <<_ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h. */
36095 static struct utmp ac_aggr;
36096 if (ac_aggr.ut_user)
36102 rm -f conftest.$ac_objext
36103 if { (ac_try="$ac_compile"
36104 case "(($ac_try" in
36105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36106 *) ac_try_echo=$ac_try;;
36108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36109 (eval "$ac_compile") 2>conftest.er1
36111 grep -v '^ *+' conftest.er1 >conftest.err
36113 cat conftest.err >&5
36114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115 (exit $ac_status); } &&
36116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36117 { (case "(($ac_try" in
36118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36119 *) ac_try_echo=$ac_try;;
36121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36122 (eval "$ac_try") 2>&5
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); }; } &&
36126 { ac_try='test -s conftest.$ac_objext'
36127 { (case "(($ac_try" in
36128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129 *) ac_try_echo=$ac_try;;
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132 (eval "$ac_try") 2>&5
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 ac_cv_member_struct_utmp_ut_user=yes
36138 echo "$as_me: failed program was:" >&5
36139 sed 's/^/| /' conftest.$ac_ext >&5
36141 cat >conftest.$ac_ext <<_ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h. */
36152 static struct utmp ac_aggr;
36153 if (sizeof ac_aggr.ut_user)
36159 rm -f conftest.$ac_objext
36160 if { (ac_try="$ac_compile"
36161 case "(($ac_try" in
36162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163 *) ac_try_echo=$ac_try;;
36165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36166 (eval "$ac_compile") 2>conftest.er1
36168 grep -v '^ *+' conftest.er1 >conftest.err
36170 cat conftest.err >&5
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); } &&
36173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36174 { (case "(($ac_try" in
36175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176 *) ac_try_echo=$ac_try;;
36178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36179 (eval "$ac_try") 2>&5
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; } &&
36183 { ac_try='test -s conftest.$ac_objext'
36184 { (case "(($ac_try" in
36185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186 *) ac_try_echo=$ac_try;;
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189 (eval "$ac_try") 2>&5
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; }; then
36193 ac_cv_member_struct_utmp_ut_user=yes
36195 echo "$as_me: failed program was:" >&5
36196 sed 's/^/| /' conftest.$ac_ext >&5
36198 ac_cv_member_struct_utmp_ut_user=no
36201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36206 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
36207 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
36208 if test $ac_cv_member_struct_utmp_ut_user = yes; then
36210 cat >>confdefs.h <<_ACEOF
36211 #define HAVE_STRUCT_UTMP_UT_USER 1
36217 { echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
36218 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6; }
36219 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
36220 echo $ECHO_N "(cached) $ECHO_C" >&6
36222 cat >conftest.$ac_ext <<_ACEOF
36225 cat confdefs.h >>conftest.$ac_ext
36226 cat >>conftest.$ac_ext <<_ACEOF
36227 /* end confdefs.h. */
36233 static struct utmpx ac_aggr;
36234 if (ac_aggr.ut_name)
36240 rm -f conftest.$ac_objext
36241 if { (ac_try="$ac_compile"
36242 case "(($ac_try" in
36243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244 *) ac_try_echo=$ac_try;;
36246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247 (eval "$ac_compile") 2>conftest.er1
36249 grep -v '^ *+' conftest.er1 >conftest.err
36251 cat conftest.err >&5
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); } &&
36254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36255 { (case "(($ac_try" in
36256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36257 *) ac_try_echo=$ac_try;;
36259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36260 (eval "$ac_try") 2>&5
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); }; } &&
36264 { ac_try='test -s conftest.$ac_objext'
36265 { (case "(($ac_try" in
36266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267 *) ac_try_echo=$ac_try;;
36269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36270 (eval "$ac_try") 2>&5
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; }; then
36274 ac_cv_member_struct_utmpx_ut_name=yes
36276 echo "$as_me: failed program was:" >&5
36277 sed 's/^/| /' conftest.$ac_ext >&5
36279 cat >conftest.$ac_ext <<_ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36290 static struct utmpx ac_aggr;
36291 if (sizeof ac_aggr.ut_name)
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301 *) ac_try_echo=$ac_try;;
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304 (eval "$ac_compile") 2>conftest.er1
36306 grep -v '^ *+' conftest.er1 >conftest.err
36308 cat conftest.err >&5
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } &&
36311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36312 { (case "(($ac_try" in
36313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36314 *) ac_try_echo=$ac_try;;
36316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36317 (eval "$ac_try") 2>&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; } &&
36321 { ac_try='test -s conftest.$ac_objext'
36322 { (case "(($ac_try" in
36323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324 *) ac_try_echo=$ac_try;;
36326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327 (eval "$ac_try") 2>&5
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); }; }; then
36331 ac_cv_member_struct_utmpx_ut_name=yes
36333 echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36336 ac_cv_member_struct_utmpx_ut_name=no
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36344 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
36345 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6; }
36346 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
36348 cat >>confdefs.h <<_ACEOF
36349 #define HAVE_STRUCT_UTMPX_UT_NAME 1
36355 { echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
36356 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6; }
36357 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
36358 echo $ECHO_N "(cached) $ECHO_C" >&6
36360 cat >conftest.$ac_ext <<_ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h. */
36371 static struct utmp ac_aggr;
36372 if (ac_aggr.ut_name)
36378 rm -f conftest.$ac_objext
36379 if { (ac_try="$ac_compile"
36380 case "(($ac_try" in
36381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36382 *) ac_try_echo=$ac_try;;
36384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36385 (eval "$ac_compile") 2>conftest.er1
36387 grep -v '^ *+' conftest.er1 >conftest.err
36389 cat conftest.err >&5
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); } &&
36392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36393 { (case "(($ac_try" in
36394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395 *) ac_try_echo=$ac_try;;
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398 (eval "$ac_try") 2>&5
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); }; } &&
36402 { ac_try='test -s conftest.$ac_objext'
36403 { (case "(($ac_try" in
36404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405 *) ac_try_echo=$ac_try;;
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408 (eval "$ac_try") 2>&5
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; }; then
36412 ac_cv_member_struct_utmp_ut_name=yes
36414 echo "$as_me: failed program was:" >&5
36415 sed 's/^/| /' conftest.$ac_ext >&5
36417 cat >conftest.$ac_ext <<_ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h. */
36428 static struct utmp ac_aggr;
36429 if (sizeof ac_aggr.ut_name)
36435 rm -f conftest.$ac_objext
36436 if { (ac_try="$ac_compile"
36437 case "(($ac_try" in
36438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36439 *) ac_try_echo=$ac_try;;
36441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36442 (eval "$ac_compile") 2>conftest.er1
36444 grep -v '^ *+' conftest.er1 >conftest.err
36446 cat conftest.err >&5
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); } &&
36449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36450 { (case "(($ac_try" in
36451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452 *) ac_try_echo=$ac_try;;
36454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36455 (eval "$ac_try") 2>&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; } &&
36459 { ac_try='test -s conftest.$ac_objext'
36460 { (case "(($ac_try" in
36461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462 *) ac_try_echo=$ac_try;;
36464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465 (eval "$ac_try") 2>&5
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; }; then
36469 ac_cv_member_struct_utmp_ut_name=yes
36471 echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36474 ac_cv_member_struct_utmp_ut_name=no
36477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36482 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
36483 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6; }
36484 if test $ac_cv_member_struct_utmp_ut_name = yes; then
36486 cat >>confdefs.h <<_ACEOF
36487 #define HAVE_STRUCT_UTMP_UT_NAME 1
36493 { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
36494 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
36495 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
36496 echo $ECHO_N "(cached) $ECHO_C" >&6
36498 cat >conftest.$ac_ext <<_ACEOF
36501 cat confdefs.h >>conftest.$ac_ext
36502 cat >>conftest.$ac_ext <<_ACEOF
36503 /* end confdefs.h. */
36509 static struct utmpx ac_aggr;
36510 if (ac_aggr.ut_type)
36516 rm -f conftest.$ac_objext
36517 if { (ac_try="$ac_compile"
36518 case "(($ac_try" in
36519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36520 *) ac_try_echo=$ac_try;;
36522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36523 (eval "$ac_compile") 2>conftest.er1
36525 grep -v '^ *+' conftest.er1 >conftest.err
36527 cat conftest.err >&5
36528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529 (exit $ac_status); } &&
36530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36531 { (case "(($ac_try" in
36532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36533 *) ac_try_echo=$ac_try;;
36535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36536 (eval "$ac_try") 2>&5
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); }; } &&
36540 { ac_try='test -s conftest.$ac_objext'
36541 { (case "(($ac_try" in
36542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36543 *) ac_try_echo=$ac_try;;
36545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36546 (eval "$ac_try") 2>&5
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); }; }; then
36550 ac_cv_member_struct_utmpx_ut_type=yes
36552 echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36555 cat >conftest.$ac_ext <<_ACEOF
36558 cat confdefs.h >>conftest.$ac_ext
36559 cat >>conftest.$ac_ext <<_ACEOF
36560 /* end confdefs.h. */
36566 static struct utmpx ac_aggr;
36567 if (sizeof ac_aggr.ut_type)
36573 rm -f conftest.$ac_objext
36574 if { (ac_try="$ac_compile"
36575 case "(($ac_try" in
36576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577 *) ac_try_echo=$ac_try;;
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580 (eval "$ac_compile") 2>conftest.er1
36582 grep -v '^ *+' conftest.er1 >conftest.err
36584 cat conftest.err >&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } &&
36587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36588 { (case "(($ac_try" in
36589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36590 *) ac_try_echo=$ac_try;;
36592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36593 (eval "$ac_try") 2>&5
36595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596 (exit $ac_status); }; } &&
36597 { ac_try='test -s conftest.$ac_objext'
36598 { (case "(($ac_try" in
36599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36600 *) ac_try_echo=$ac_try;;
36602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36603 (eval "$ac_try") 2>&5
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; }; then
36607 ac_cv_member_struct_utmpx_ut_type=yes
36609 echo "$as_me: failed program was:" >&5
36610 sed 's/^/| /' conftest.$ac_ext >&5
36612 ac_cv_member_struct_utmpx_ut_type=no
36615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36620 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
36621 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
36622 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
36624 cat >>confdefs.h <<_ACEOF
36625 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
36631 { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
36632 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
36633 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
36634 echo $ECHO_N "(cached) $ECHO_C" >&6
36636 cat >conftest.$ac_ext <<_ACEOF
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h. */
36647 static struct utmp ac_aggr;
36648 if (ac_aggr.ut_type)
36654 rm -f conftest.$ac_objext
36655 if { (ac_try="$ac_compile"
36656 case "(($ac_try" in
36657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36658 *) ac_try_echo=$ac_try;;
36660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36661 (eval "$ac_compile") 2>conftest.er1
36663 grep -v '^ *+' conftest.er1 >conftest.err
36665 cat conftest.err >&5
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); } &&
36668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36669 { (case "(($ac_try" in
36670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36671 *) ac_try_echo=$ac_try;;
36673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36674 (eval "$ac_try") 2>&5
36676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677 (exit $ac_status); }; } &&
36678 { ac_try='test -s conftest.$ac_objext'
36679 { (case "(($ac_try" in
36680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36681 *) ac_try_echo=$ac_try;;
36683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36684 (eval "$ac_try") 2>&5
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; }; then
36688 ac_cv_member_struct_utmp_ut_type=yes
36690 echo "$as_me: failed program was:" >&5
36691 sed 's/^/| /' conftest.$ac_ext >&5
36693 cat >conftest.$ac_ext <<_ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h. */
36704 static struct utmp ac_aggr;
36705 if (sizeof ac_aggr.ut_type)
36711 rm -f conftest.$ac_objext
36712 if { (ac_try="$ac_compile"
36713 case "(($ac_try" in
36714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715 *) ac_try_echo=$ac_try;;
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718 (eval "$ac_compile") 2>conftest.er1
36720 grep -v '^ *+' conftest.er1 >conftest.err
36722 cat conftest.err >&5
36723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724 (exit $ac_status); } &&
36725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36726 { (case "(($ac_try" in
36727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728 *) ac_try_echo=$ac_try;;
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731 (eval "$ac_try") 2>&5
36733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734 (exit $ac_status); }; } &&
36735 { ac_try='test -s conftest.$ac_objext'
36736 { (case "(($ac_try" in
36737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738 *) ac_try_echo=$ac_try;;
36740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36741 (eval "$ac_try") 2>&5
36743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744 (exit $ac_status); }; }; then
36745 ac_cv_member_struct_utmp_ut_type=yes
36747 echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36750 ac_cv_member_struct_utmp_ut_type=no
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36758 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
36759 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
36760 if test $ac_cv_member_struct_utmp_ut_type = yes; then
36762 cat >>confdefs.h <<_ACEOF
36763 #define HAVE_STRUCT_UTMP_UT_TYPE 1
36769 { echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
36770 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6; }
36771 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
36772 echo $ECHO_N "(cached) $ECHO_C" >&6
36774 cat >conftest.$ac_ext <<_ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h. */
36785 static struct utmpx ac_aggr;
36786 if (ac_aggr.ut_pid)
36792 rm -f conftest.$ac_objext
36793 if { (ac_try="$ac_compile"
36794 case "(($ac_try" in
36795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796 *) ac_try_echo=$ac_try;;
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799 (eval "$ac_compile") 2>conftest.er1
36801 grep -v '^ *+' conftest.er1 >conftest.err
36803 cat conftest.err >&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); } &&
36806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36807 { (case "(($ac_try" in
36808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809 *) ac_try_echo=$ac_try;;
36811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36812 (eval "$ac_try") 2>&5
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; } &&
36816 { ac_try='test -s conftest.$ac_objext'
36817 { (case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822 (eval "$ac_try") 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36826 ac_cv_member_struct_utmpx_ut_pid=yes
36828 echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36831 cat >conftest.$ac_ext <<_ACEOF
36834 cat confdefs.h >>conftest.$ac_ext
36835 cat >>conftest.$ac_ext <<_ACEOF
36836 /* end confdefs.h. */
36842 static struct utmpx ac_aggr;
36843 if (sizeof ac_aggr.ut_pid)
36849 rm -f conftest.$ac_objext
36850 if { (ac_try="$ac_compile"
36851 case "(($ac_try" in
36852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36853 *) ac_try_echo=$ac_try;;
36855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36856 (eval "$ac_compile") 2>conftest.er1
36858 grep -v '^ *+' conftest.er1 >conftest.err
36860 cat conftest.err >&5
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); } &&
36863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36864 { (case "(($ac_try" in
36865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866 *) ac_try_echo=$ac_try;;
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869 (eval "$ac_try") 2>&5
36871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872 (exit $ac_status); }; } &&
36873 { ac_try='test -s conftest.$ac_objext'
36874 { (case "(($ac_try" in
36875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36876 *) ac_try_echo=$ac_try;;
36878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36879 (eval "$ac_try") 2>&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 ac_cv_member_struct_utmpx_ut_pid=yes
36885 echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36888 ac_cv_member_struct_utmpx_ut_pid=no
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
36897 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6; }
36898 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
36900 cat >>confdefs.h <<_ACEOF
36901 #define HAVE_STRUCT_UTMPX_UT_PID 1
36907 { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
36908 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
36909 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36912 cat >conftest.$ac_ext <<_ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h. */
36923 static struct utmp ac_aggr;
36924 if (ac_aggr.ut_pid)
36930 rm -f conftest.$ac_objext
36931 if { (ac_try="$ac_compile"
36932 case "(($ac_try" in
36933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934 *) ac_try_echo=$ac_try;;
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937 (eval "$ac_compile") 2>conftest.er1
36939 grep -v '^ *+' conftest.er1 >conftest.err
36941 cat conftest.err >&5
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } &&
36944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36945 { (case "(($ac_try" in
36946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947 *) ac_try_echo=$ac_try;;
36949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36950 (eval "$ac_try") 2>&5
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; } &&
36954 { ac_try='test -s conftest.$ac_objext'
36955 { (case "(($ac_try" in
36956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36957 *) ac_try_echo=$ac_try;;
36959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36960 (eval "$ac_try") 2>&5
36962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963 (exit $ac_status); }; }; then
36964 ac_cv_member_struct_utmp_ut_pid=yes
36966 echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36969 cat >conftest.$ac_ext <<_ACEOF
36972 cat confdefs.h >>conftest.$ac_ext
36973 cat >>conftest.$ac_ext <<_ACEOF
36974 /* end confdefs.h. */
36980 static struct utmp ac_aggr;
36981 if (sizeof ac_aggr.ut_pid)
36987 rm -f conftest.$ac_objext
36988 if { (ac_try="$ac_compile"
36989 case "(($ac_try" in
36990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991 *) ac_try_echo=$ac_try;;
36993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36994 (eval "$ac_compile") 2>conftest.er1
36996 grep -v '^ *+' conftest.er1 >conftest.err
36998 cat conftest.err >&5
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); } &&
37001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37002 { (case "(($ac_try" in
37003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004 *) ac_try_echo=$ac_try;;
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007 (eval "$ac_try") 2>&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; } &&
37011 { ac_try='test -s conftest.$ac_objext'
37012 { (case "(($ac_try" in
37013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014 *) ac_try_echo=$ac_try;;
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017 (eval "$ac_try") 2>&5
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); }; }; then
37021 ac_cv_member_struct_utmp_ut_pid=yes
37023 echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37026 ac_cv_member_struct_utmp_ut_pid=no
37029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37034 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
37035 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
37036 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
37038 cat >>confdefs.h <<_ACEOF
37039 #define HAVE_STRUCT_UTMP_UT_PID 1
37045 { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
37046 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
37047 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
37048 echo $ECHO_N "(cached) $ECHO_C" >&6
37050 cat >conftest.$ac_ext <<_ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37061 static struct utmpx ac_aggr;
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075 (eval "$ac_compile") 2>conftest.er1
37077 grep -v '^ *+' conftest.er1 >conftest.err
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } &&
37082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37083 { (case "(($ac_try" in
37084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37085 *) ac_try_echo=$ac_try;;
37087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37088 (eval "$ac_try") 2>&5
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; } &&
37092 { ac_try='test -s conftest.$ac_objext'
37093 { (case "(($ac_try" in
37094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37095 *) ac_try_echo=$ac_try;;
37097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37098 (eval "$ac_try") 2>&5
37100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101 (exit $ac_status); }; }; then
37102 ac_cv_member_struct_utmpx_ut_id=yes
37104 echo "$as_me: failed program was:" >&5
37105 sed 's/^/| /' conftest.$ac_ext >&5
37107 cat >conftest.$ac_ext <<_ACEOF
37110 cat confdefs.h >>conftest.$ac_ext
37111 cat >>conftest.$ac_ext <<_ACEOF
37112 /* end confdefs.h. */
37118 static struct utmpx ac_aggr;
37119 if (sizeof ac_aggr.ut_id)
37125 rm -f conftest.$ac_objext
37126 if { (ac_try="$ac_compile"
37127 case "(($ac_try" in
37128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37129 *) ac_try_echo=$ac_try;;
37131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37132 (eval "$ac_compile") 2>conftest.er1
37134 grep -v '^ *+' conftest.er1 >conftest.err
37136 cat conftest.err >&5
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); } &&
37139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37140 { (case "(($ac_try" in
37141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142 *) ac_try_echo=$ac_try;;
37144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37145 (eval "$ac_try") 2>&5
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); }; } &&
37149 { ac_try='test -s conftest.$ac_objext'
37150 { (case "(($ac_try" in
37151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152 *) ac_try_echo=$ac_try;;
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155 (eval "$ac_try") 2>&5
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); }; }; then
37159 ac_cv_member_struct_utmpx_ut_id=yes
37161 echo "$as_me: failed program was:" >&5
37162 sed 's/^/| /' conftest.$ac_ext >&5
37164 ac_cv_member_struct_utmpx_ut_id=no
37167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
37173 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
37174 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
37176 cat >>confdefs.h <<_ACEOF
37177 #define HAVE_STRUCT_UTMPX_UT_ID 1
37183 { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
37184 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
37185 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
37186 echo $ECHO_N "(cached) $ECHO_C" >&6
37188 cat >conftest.$ac_ext <<_ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h. */
37199 static struct utmp ac_aggr;
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210 *) ac_try_echo=$ac_try;;
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213 (eval "$ac_compile") 2>conftest.er1
37215 grep -v '^ *+' conftest.er1 >conftest.err
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } &&
37220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37221 { (case "(($ac_try" in
37222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37223 *) ac_try_echo=$ac_try;;
37225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37226 (eval "$ac_try") 2>&5
37228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229 (exit $ac_status); }; } &&
37230 { ac_try='test -s conftest.$ac_objext'
37231 { (case "(($ac_try" in
37232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37233 *) ac_try_echo=$ac_try;;
37235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37236 (eval "$ac_try") 2>&5
37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 (exit $ac_status); }; }; then
37240 ac_cv_member_struct_utmp_ut_id=yes
37242 echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37245 cat >conftest.$ac_ext <<_ACEOF
37248 cat confdefs.h >>conftest.$ac_ext
37249 cat >>conftest.$ac_ext <<_ACEOF
37250 /* end confdefs.h. */
37256 static struct utmp ac_aggr;
37257 if (sizeof ac_aggr.ut_id)
37263 rm -f conftest.$ac_objext
37264 if { (ac_try="$ac_compile"
37265 case "(($ac_try" in
37266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37267 *) ac_try_echo=$ac_try;;
37269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37270 (eval "$ac_compile") 2>conftest.er1
37272 grep -v '^ *+' conftest.er1 >conftest.err
37274 cat conftest.err >&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); } &&
37277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37278 { (case "(($ac_try" in
37279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37280 *) ac_try_echo=$ac_try;;
37282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37283 (eval "$ac_try") 2>&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); }; } &&
37287 { ac_try='test -s conftest.$ac_objext'
37288 { (case "(($ac_try" in
37289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37290 *) ac_try_echo=$ac_try;;
37292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37293 (eval "$ac_try") 2>&5
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); }; }; then
37297 ac_cv_member_struct_utmp_ut_id=yes
37299 echo "$as_me: failed program was:" >&5
37300 sed 's/^/| /' conftest.$ac_ext >&5
37302 ac_cv_member_struct_utmp_ut_id=no
37305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
37311 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
37312 if test $ac_cv_member_struct_utmp_ut_id = yes; then
37314 cat >>confdefs.h <<_ACEOF
37315 #define HAVE_STRUCT_UTMP_UT_ID 1
37321 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
37322 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6; }
37323 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
37324 echo $ECHO_N "(cached) $ECHO_C" >&6
37326 cat >conftest.$ac_ext <<_ACEOF
37329 cat confdefs.h >>conftest.$ac_ext
37330 cat >>conftest.$ac_ext <<_ACEOF
37331 /* end confdefs.h. */
37337 static struct utmpx ac_aggr;
37338 if (ac_aggr.ut_exit)
37344 rm -f conftest.$ac_objext
37345 if { (ac_try="$ac_compile"
37346 case "(($ac_try" in
37347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37348 *) ac_try_echo=$ac_try;;
37350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37351 (eval "$ac_compile") 2>conftest.er1
37353 grep -v '^ *+' conftest.er1 >conftest.err
37355 cat conftest.err >&5
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); } &&
37358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37359 { (case "(($ac_try" in
37360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37361 *) ac_try_echo=$ac_try;;
37363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37364 (eval "$ac_try") 2>&5
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); }; } &&
37368 { ac_try='test -s conftest.$ac_objext'
37369 { (case "(($ac_try" in
37370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37371 *) ac_try_echo=$ac_try;;
37373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37374 (eval "$ac_try") 2>&5
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 ac_cv_member_struct_utmpx_ut_exit=yes
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 cat >conftest.$ac_ext <<_ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h. */
37394 static struct utmpx ac_aggr;
37395 if (sizeof ac_aggr.ut_exit)
37401 rm -f conftest.$ac_objext
37402 if { (ac_try="$ac_compile"
37403 case "(($ac_try" in
37404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405 *) ac_try_echo=$ac_try;;
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408 (eval "$ac_compile") 2>conftest.er1
37410 grep -v '^ *+' conftest.er1 >conftest.err
37412 cat conftest.err >&5
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
37415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37416 { (case "(($ac_try" in
37417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37418 *) ac_try_echo=$ac_try;;
37420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37421 (eval "$ac_try") 2>&5
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest.$ac_objext'
37426 { (case "(($ac_try" in
37427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428 *) ac_try_echo=$ac_try;;
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431 (eval "$ac_try") 2>&5
37433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434 (exit $ac_status); }; }; then
37435 ac_cv_member_struct_utmpx_ut_exit=yes
37437 echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37440 ac_cv_member_struct_utmpx_ut_exit=no
37443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37448 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
37449 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6; }
37450 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
37452 cat >>confdefs.h <<_ACEOF
37453 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
37459 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
37460 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
37461 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
37462 echo $ECHO_N "(cached) $ECHO_C" >&6
37464 cat >conftest.$ac_ext <<_ACEOF
37467 cat confdefs.h >>conftest.$ac_ext
37468 cat >>conftest.$ac_ext <<_ACEOF
37469 /* end confdefs.h. */
37475 static struct utmp ac_aggr;
37476 if (ac_aggr.ut_exit)
37482 rm -f conftest.$ac_objext
37483 if { (ac_try="$ac_compile"
37484 case "(($ac_try" in
37485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37486 *) ac_try_echo=$ac_try;;
37488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37489 (eval "$ac_compile") 2>conftest.er1
37491 grep -v '^ *+' conftest.er1 >conftest.err
37493 cat conftest.err >&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); } &&
37496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37497 { (case "(($ac_try" in
37498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499 *) ac_try_echo=$ac_try;;
37501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37502 (eval "$ac_try") 2>&5
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; } &&
37506 { ac_try='test -s conftest.$ac_objext'
37507 { (case "(($ac_try" in
37508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37509 *) ac_try_echo=$ac_try;;
37511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37512 (eval "$ac_try") 2>&5
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; }; then
37516 ac_cv_member_struct_utmp_ut_exit=yes
37518 echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37521 cat >conftest.$ac_ext <<_ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h. */
37532 static struct utmp ac_aggr;
37533 if (sizeof ac_aggr.ut_exit)
37539 rm -f conftest.$ac_objext
37540 if { (ac_try="$ac_compile"
37541 case "(($ac_try" in
37542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543 *) ac_try_echo=$ac_try;;
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546 (eval "$ac_compile") 2>conftest.er1
37548 grep -v '^ *+' conftest.er1 >conftest.err
37550 cat conftest.err >&5
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } &&
37553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37554 { (case "(($ac_try" in
37555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37556 *) ac_try_echo=$ac_try;;
37558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37559 (eval "$ac_try") 2>&5
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); }; } &&
37563 { ac_try='test -s conftest.$ac_objext'
37564 { (case "(($ac_try" in
37565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566 *) ac_try_echo=$ac_try;;
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569 (eval "$ac_try") 2>&5
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); }; }; then
37573 ac_cv_member_struct_utmp_ut_exit=yes
37575 echo "$as_me: failed program was:" >&5
37576 sed 's/^/| /' conftest.$ac_ext >&5
37578 ac_cv_member_struct_utmp_ut_exit=no
37581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37586 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
37587 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
37588 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
37590 cat >>confdefs.h <<_ACEOF
37591 #define HAVE_STRUCT_UTMP_UT_EXIT 1
37598 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
37599 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6; }
37600 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
37601 echo $ECHO_N "(cached) $ECHO_C" >&6
37603 cat >conftest.$ac_ext <<_ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h. */
37614 static struct utmpx ac_aggr;
37615 if (ac_aggr.ut_exit.ut_exit)
37621 rm -f conftest.$ac_objext
37622 if { (ac_try="$ac_compile"
37623 case "(($ac_try" in
37624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625 *) ac_try_echo=$ac_try;;
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628 (eval "$ac_compile") 2>conftest.er1
37630 grep -v '^ *+' conftest.er1 >conftest.err
37632 cat conftest.err >&5
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); } &&
37635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37636 { (case "(($ac_try" in
37637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638 *) ac_try_echo=$ac_try;;
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641 (eval "$ac_try") 2>&5
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); }; } &&
37645 { ac_try='test -s conftest.$ac_objext'
37646 { (case "(($ac_try" in
37647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37648 *) ac_try_echo=$ac_try;;
37650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37651 (eval "$ac_try") 2>&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; }; then
37655 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37657 echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37660 cat >conftest.$ac_ext <<_ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h. */
37671 static struct utmpx ac_aggr;
37672 if (sizeof ac_aggr.ut_exit.ut_exit)
37678 rm -f conftest.$ac_objext
37679 if { (ac_try="$ac_compile"
37680 case "(($ac_try" in
37681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682 *) ac_try_echo=$ac_try;;
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685 (eval "$ac_compile") 2>conftest.er1
37687 grep -v '^ *+' conftest.er1 >conftest.err
37689 cat conftest.err >&5
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); } &&
37692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37693 { (case "(($ac_try" in
37694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37695 *) ac_try_echo=$ac_try;;
37697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37698 (eval "$ac_try") 2>&5
37700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701 (exit $ac_status); }; } &&
37702 { ac_try='test -s conftest.$ac_objext'
37703 { (case "(($ac_try" in
37704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37705 *) ac_try_echo=$ac_try;;
37707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37708 (eval "$ac_try") 2>&5
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37714 echo "$as_me: failed program was:" >&5
37715 sed 's/^/| /' conftest.$ac_ext >&5
37717 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
37720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37725 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
37726 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
37727 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
37729 cat >>confdefs.h <<_ACEOF
37730 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
37736 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
37737 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6; }
37738 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
37739 echo $ECHO_N "(cached) $ECHO_C" >&6
37741 cat >conftest.$ac_ext <<_ACEOF
37744 cat confdefs.h >>conftest.$ac_ext
37745 cat >>conftest.$ac_ext <<_ACEOF
37746 /* end confdefs.h. */
37752 static struct utmp ac_aggr;
37753 if (ac_aggr.ut_exit.ut_exit)
37759 rm -f conftest.$ac_objext
37760 if { (ac_try="$ac_compile"
37761 case "(($ac_try" in
37762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37763 *) ac_try_echo=$ac_try;;
37765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37766 (eval "$ac_compile") 2>conftest.er1
37768 grep -v '^ *+' conftest.er1 >conftest.err
37770 cat conftest.err >&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); } &&
37773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37774 { (case "(($ac_try" in
37775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776 *) ac_try_echo=$ac_try;;
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779 (eval "$ac_try") 2>&5
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); }; } &&
37783 { ac_try='test -s conftest.$ac_objext'
37784 { (case "(($ac_try" in
37785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37786 *) ac_try_echo=$ac_try;;
37788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37789 (eval "$ac_try") 2>&5
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); }; }; then
37793 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37795 echo "$as_me: failed program was:" >&5
37796 sed 's/^/| /' conftest.$ac_ext >&5
37798 cat >conftest.$ac_ext <<_ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h. */
37809 static struct utmp ac_aggr;
37810 if (sizeof ac_aggr.ut_exit.ut_exit)
37816 rm -f conftest.$ac_objext
37817 if { (ac_try="$ac_compile"
37818 case "(($ac_try" in
37819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820 *) ac_try_echo=$ac_try;;
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823 (eval "$ac_compile") 2>conftest.er1
37825 grep -v '^ *+' conftest.er1 >conftest.err
37827 cat conftest.err >&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } &&
37830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37831 { (case "(($ac_try" in
37832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37833 *) ac_try_echo=$ac_try;;
37835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37836 (eval "$ac_try") 2>&5
37838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); }; } &&
37840 { ac_try='test -s conftest.$ac_objext'
37841 { (case "(($ac_try" in
37842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37843 *) ac_try_echo=$ac_try;;
37845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37846 (eval "$ac_try") 2>&5
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); }; }; then
37850 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37852 echo "$as_me: failed program was:" >&5
37853 sed 's/^/| /' conftest.$ac_ext >&5
37855 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
37858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37863 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
37864 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
37865 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
37867 cat >>confdefs.h <<_ACEOF
37868 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
37874 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
37875 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6; }
37876 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
37877 echo $ECHO_N "(cached) $ECHO_C" >&6
37879 cat >conftest.$ac_ext <<_ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h. */
37890 static struct utmpx ac_aggr;
37891 if (ac_aggr.ut_exit.e_exit)
37897 rm -f conftest.$ac_objext
37898 if { (ac_try="$ac_compile"
37899 case "(($ac_try" in
37900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901 *) ac_try_echo=$ac_try;;
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904 (eval "$ac_compile") 2>conftest.er1
37906 grep -v '^ *+' conftest.er1 >conftest.err
37908 cat conftest.err >&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } &&
37911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37912 { (case "(($ac_try" in
37913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37914 *) ac_try_echo=$ac_try;;
37916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37917 (eval "$ac_try") 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; } &&
37921 { ac_try='test -s conftest.$ac_objext'
37922 { (case "(($ac_try" in
37923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37924 *) ac_try_echo=$ac_try;;
37926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37927 (eval "$ac_try") 2>&5
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
37933 echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37936 cat >conftest.$ac_ext <<_ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h. */
37947 static struct utmpx ac_aggr;
37948 if (sizeof ac_aggr.ut_exit.e_exit)
37954 rm -f conftest.$ac_objext
37955 if { (ac_try="$ac_compile"
37956 case "(($ac_try" in
37957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37958 *) ac_try_echo=$ac_try;;
37960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37961 (eval "$ac_compile") 2>conftest.er1
37963 grep -v '^ *+' conftest.er1 >conftest.err
37965 cat conftest.err >&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } &&
37968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37969 { (case "(($ac_try" in
37970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971 *) ac_try_echo=$ac_try;;
37973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37974 (eval "$ac_try") 2>&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; } &&
37978 { ac_try='test -s conftest.$ac_objext'
37979 { (case "(($ac_try" in
37980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37981 *) ac_try_echo=$ac_try;;
37983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37984 (eval "$ac_try") 2>&5
37986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987 (exit $ac_status); }; }; then
37988 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
37990 echo "$as_me: failed program was:" >&5
37991 sed 's/^/| /' conftest.$ac_ext >&5
37993 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
37996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38001 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
38002 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
38003 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
38005 cat >>confdefs.h <<_ACEOF
38006 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
38012 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
38013 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6; }
38014 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
38015 echo $ECHO_N "(cached) $ECHO_C" >&6
38017 cat >conftest.$ac_ext <<_ACEOF
38020 cat confdefs.h >>conftest.$ac_ext
38021 cat >>conftest.$ac_ext <<_ACEOF
38022 /* end confdefs.h. */
38028 static struct utmp ac_aggr;
38029 if (ac_aggr.ut_exit.e_exit)
38035 rm -f conftest.$ac_objext
38036 if { (ac_try="$ac_compile"
38037 case "(($ac_try" in
38038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039 *) ac_try_echo=$ac_try;;
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042 (eval "$ac_compile") 2>conftest.er1
38044 grep -v '^ *+' conftest.er1 >conftest.err
38046 cat conftest.err >&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); } &&
38049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38050 { (case "(($ac_try" in
38051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052 *) ac_try_echo=$ac_try;;
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055 (eval "$ac_try") 2>&5
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest.$ac_objext'
38060 { (case "(($ac_try" in
38061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062 *) ac_try_echo=$ac_try;;
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065 (eval "$ac_try") 2>&5
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); }; }; then
38069 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38071 echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38074 cat >conftest.$ac_ext <<_ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h. */
38085 static struct utmp ac_aggr;
38086 if (sizeof ac_aggr.ut_exit.e_exit)
38092 rm -f conftest.$ac_objext
38093 if { (ac_try="$ac_compile"
38094 case "(($ac_try" in
38095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38096 *) ac_try_echo=$ac_try;;
38098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38099 (eval "$ac_compile") 2>conftest.er1
38101 grep -v '^ *+' conftest.er1 >conftest.err
38103 cat conftest.err >&5
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); } &&
38106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38107 { (case "(($ac_try" in
38108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38109 *) ac_try_echo=$ac_try;;
38111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38112 (eval "$ac_try") 2>&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; } &&
38116 { ac_try='test -s conftest.$ac_objext'
38117 { (case "(($ac_try" in
38118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38119 *) ac_try_echo=$ac_try;;
38121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38122 (eval "$ac_try") 2>&5
38124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38125 (exit $ac_status); }; }; then
38126 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38128 echo "$as_me: failed program was:" >&5
38129 sed 's/^/| /' conftest.$ac_ext >&5
38131 ac_cv_member_struct_utmp_ut_exit_e_exit=no
38134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38139 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
38140 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
38141 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
38143 cat >>confdefs.h <<_ACEOF
38144 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
38151 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
38152 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6; }
38153 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
38154 echo $ECHO_N "(cached) $ECHO_C" >&6
38156 cat >conftest.$ac_ext <<_ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h. */
38167 static struct utmpx ac_aggr;
38168 if (ac_aggr.ut_exit.ut_termination)
38174 rm -f conftest.$ac_objext
38175 if { (ac_try="$ac_compile"
38176 case "(($ac_try" in
38177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38178 *) ac_try_echo=$ac_try;;
38180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38181 (eval "$ac_compile") 2>conftest.er1
38183 grep -v '^ *+' conftest.er1 >conftest.err
38185 cat conftest.err >&5
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); } &&
38188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38189 { (case "(($ac_try" in
38190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191 *) ac_try_echo=$ac_try;;
38193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38194 (eval "$ac_try") 2>&5
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); }; } &&
38198 { ac_try='test -s conftest.$ac_objext'
38199 { (case "(($ac_try" in
38200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38201 *) ac_try_echo=$ac_try;;
38203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38204 (eval "$ac_try") 2>&5
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; }; then
38208 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38210 echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38213 cat >conftest.$ac_ext <<_ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h. */
38224 static struct utmpx ac_aggr;
38225 if (sizeof ac_aggr.ut_exit.ut_termination)
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235 *) ac_try_echo=$ac_try;;
38237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38238 (eval "$ac_compile") 2>conftest.er1
38240 grep -v '^ *+' conftest.er1 >conftest.err
38242 cat conftest.err >&5
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); } &&
38245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38246 { (case "(($ac_try" in
38247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248 *) ac_try_echo=$ac_try;;
38250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251 (eval "$ac_try") 2>&5
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); }; } &&
38255 { ac_try='test -s conftest.$ac_objext'
38256 { (case "(($ac_try" in
38257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258 *) ac_try_echo=$ac_try;;
38260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261 (eval "$ac_try") 2>&5
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38265 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38267 echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38270 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
38273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38278 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
38279 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
38280 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
38282 cat >>confdefs.h <<_ACEOF
38283 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
38289 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
38290 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6; }
38291 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
38292 echo $ECHO_N "(cached) $ECHO_C" >&6
38294 cat >conftest.$ac_ext <<_ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h. */
38305 static struct utmp ac_aggr;
38306 if (ac_aggr.ut_exit.ut_termination)
38312 rm -f conftest.$ac_objext
38313 if { (ac_try="$ac_compile"
38314 case "(($ac_try" in
38315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38316 *) ac_try_echo=$ac_try;;
38318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38319 (eval "$ac_compile") 2>conftest.er1
38321 grep -v '^ *+' conftest.er1 >conftest.err
38323 cat conftest.err >&5
38324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325 (exit $ac_status); } &&
38326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38327 { (case "(($ac_try" in
38328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329 *) ac_try_echo=$ac_try;;
38331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38332 (eval "$ac_try") 2>&5
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; } &&
38336 { ac_try='test -s conftest.$ac_objext'
38337 { (case "(($ac_try" in
38338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38339 *) ac_try_echo=$ac_try;;
38341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38342 (eval "$ac_try") 2>&5
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; }; then
38346 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38348 echo "$as_me: failed program was:" >&5
38349 sed 's/^/| /' conftest.$ac_ext >&5
38351 cat >conftest.$ac_ext <<_ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h. */
38362 static struct utmp ac_aggr;
38363 if (sizeof ac_aggr.ut_exit.ut_termination)
38369 rm -f conftest.$ac_objext
38370 if { (ac_try="$ac_compile"
38371 case "(($ac_try" in
38372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38373 *) ac_try_echo=$ac_try;;
38375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38376 (eval "$ac_compile") 2>conftest.er1
38378 grep -v '^ *+' conftest.er1 >conftest.err
38380 cat conftest.err >&5
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); } &&
38383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38384 { (case "(($ac_try" in
38385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38386 *) ac_try_echo=$ac_try;;
38388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38389 (eval "$ac_try") 2>&5
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); }; } &&
38393 { ac_try='test -s conftest.$ac_objext'
38394 { (case "(($ac_try" in
38395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38396 *) ac_try_echo=$ac_try;;
38398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38399 (eval "$ac_try") 2>&5
38401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402 (exit $ac_status); }; }; then
38403 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38405 echo "$as_me: failed program was:" >&5
38406 sed 's/^/| /' conftest.$ac_ext >&5
38408 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
38411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38416 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
38417 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
38418 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
38420 cat >>confdefs.h <<_ACEOF
38421 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
38427 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
38428 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6; }
38429 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 cat >conftest.$ac_ext <<_ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h. */
38443 static struct utmpx ac_aggr;
38444 if (ac_aggr.ut_exit.e_termination)
38450 rm -f conftest.$ac_objext
38451 if { (ac_try="$ac_compile"
38452 case "(($ac_try" in
38453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454 *) ac_try_echo=$ac_try;;
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457 (eval "$ac_compile") 2>conftest.er1
38459 grep -v '^ *+' conftest.er1 >conftest.err
38461 cat conftest.err >&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } &&
38464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38465 { (case "(($ac_try" in
38466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38467 *) ac_try_echo=$ac_try;;
38469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38470 (eval "$ac_try") 2>&5
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); }; } &&
38474 { ac_try='test -s conftest.$ac_objext'
38475 { (case "(($ac_try" in
38476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477 *) ac_try_echo=$ac_try;;
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480 (eval "$ac_try") 2>&5
38482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483 (exit $ac_status); }; }; then
38484 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38486 echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38489 cat >conftest.$ac_ext <<_ACEOF
38492 cat confdefs.h >>conftest.$ac_ext
38493 cat >>conftest.$ac_ext <<_ACEOF
38494 /* end confdefs.h. */
38500 static struct utmpx ac_aggr;
38501 if (sizeof ac_aggr.ut_exit.e_termination)
38507 rm -f conftest.$ac_objext
38508 if { (ac_try="$ac_compile"
38509 case "(($ac_try" in
38510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511 *) ac_try_echo=$ac_try;;
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514 (eval "$ac_compile") 2>conftest.er1
38516 grep -v '^ *+' conftest.er1 >conftest.err
38518 cat conftest.err >&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } &&
38521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38522 { (case "(($ac_try" in
38523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524 *) ac_try_echo=$ac_try;;
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527 (eval "$ac_try") 2>&5
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); }; } &&
38531 { ac_try='test -s conftest.$ac_objext'
38532 { (case "(($ac_try" in
38533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38534 *) ac_try_echo=$ac_try;;
38536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38537 (eval "$ac_try") 2>&5
38539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540 (exit $ac_status); }; }; then
38541 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38543 echo "$as_me: failed program was:" >&5
38544 sed 's/^/| /' conftest.$ac_ext >&5
38546 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
38549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38554 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
38555 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
38556 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
38558 cat >>confdefs.h <<_ACEOF
38559 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
38565 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
38566 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6; }
38567 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
38568 echo $ECHO_N "(cached) $ECHO_C" >&6
38570 cat >conftest.$ac_ext <<_ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38581 static struct utmp ac_aggr;
38582 if (ac_aggr.ut_exit.e_termination)
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592 *) ac_try_echo=$ac_try;;
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595 (eval "$ac_compile") 2>conftest.er1
38597 grep -v '^ *+' conftest.er1 >conftest.err
38599 cat conftest.err >&5
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); } &&
38602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38603 { (case "(($ac_try" in
38604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38605 *) ac_try_echo=$ac_try;;
38607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38608 (eval "$ac_try") 2>&5
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); }; } &&
38612 { ac_try='test -s conftest.$ac_objext'
38613 { (case "(($ac_try" in
38614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615 *) ac_try_echo=$ac_try;;
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_try") 2>&5
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); }; }; then
38622 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38624 echo "$as_me: failed program was:" >&5
38625 sed 's/^/| /' conftest.$ac_ext >&5
38627 cat >conftest.$ac_ext <<_ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h. */
38638 static struct utmp ac_aggr;
38639 if (sizeof ac_aggr.ut_exit.e_termination)
38645 rm -f conftest.$ac_objext
38646 if { (ac_try="$ac_compile"
38647 case "(($ac_try" in
38648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38649 *) ac_try_echo=$ac_try;;
38651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38652 (eval "$ac_compile") 2>conftest.er1
38654 grep -v '^ *+' conftest.er1 >conftest.err
38656 cat conftest.err >&5
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); } &&
38659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38660 { (case "(($ac_try" in
38661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38662 *) ac_try_echo=$ac_try;;
38664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38665 (eval "$ac_try") 2>&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); }; } &&
38669 { ac_try='test -s conftest.$ac_objext'
38670 { (case "(($ac_try" in
38671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38672 *) ac_try_echo=$ac_try;;
38674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38675 (eval "$ac_try") 2>&5
38677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678 (exit $ac_status); }; }; then
38679 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38681 echo "$as_me: failed program was:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38684 ac_cv_member_struct_utmp_ut_exit_e_termination=no
38687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38692 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
38693 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
38694 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
38696 cat >>confdefs.h <<_ACEOF
38697 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
38717 # Check whether --with-included-regex was given.
38718 if test "${with_included_regex+set}" = set; then
38719 withval=$with_included_regex;
38723 case $with_included_regex in #(
38724 yes|no) ac_use_included_regex=$with_included_regex
38727 # If the system regex support is good enough that it passes the
38728 # following run test, then default to *not* using the included regex.c.
38729 # If cross compiling, assume the test would fail and use the included
38730 # regex.c. The first failing regular expression is from `Spencer ere
38731 # test #75' in grep-2.3.
38732 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
38733 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
38734 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
38735 echo $ECHO_N "(cached) $ECHO_C" >&6
38737 if test "$cross_compiling" = yes; then
38738 gl_cv_func_re_compile_pattern_working=no
38740 cat >conftest.$ac_ext <<_ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 $ac_includes_default
38747 #include <limits.h>
38753 static struct re_pattern_buffer regex;
38754 unsigned char folded_chars[UCHAR_MAX + 1];
38757 struct re_registers regs;
38758 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
38759 memset (®ex, 0, sizeof (regex));
38760 for (i = 0; i <= UCHAR_MAX; i++)
38761 folded_chars[i] = i;
38762 regex.translate = folded_chars;
38763 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
38764 /* This should fail with _Invalid character class name_ error. */
38768 /* This should succeed, but does not for e.g. glibc-2.1.3. */
38769 memset (®ex, 0, sizeof (regex));
38770 s = re_compile_pattern ("{1", 2, ®ex);
38775 /* The following example is derived from a problem report
38776 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
38777 memset (®ex, 0, sizeof (regex));
38778 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
38782 /* This should match, but does not for e.g. glibc-2.2.1. */
38783 if (re_match (®ex, "an", 2, 0, ®s) != 2)
38786 memset (®ex, 0, sizeof (regex));
38787 s = re_compile_pattern ("x", 1, ®ex);
38791 /* The version of regex.c in e.g. GNU libc-2.2.93 did not
38792 work with a negative RANGE argument. */
38793 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
38796 /* The version of regex.c in older versions of gnulib
38797 ignored RE_ICASE. Detect that problem too. */
38798 memset (®ex, 0, sizeof (regex));
38799 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
38800 s = re_compile_pattern ("x", 1, ®ex);
38804 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
38807 /* REG_STARTEND was added to glibc on 2004-01-15.
38808 Reject older versions. */
38809 if (! REG_STARTEND)
38812 /* Reject hosts whose regoff_t values are too narrow.
38813 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
38815 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
38816 || sizeof (regoff_t) < sizeof (ssize_t))
38824 rm -f conftest$ac_exeext
38825 if { (ac_try="$ac_link"
38826 case "(($ac_try" in
38827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38828 *) ac_try_echo=$ac_try;;
38830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38831 (eval "$ac_link") 2>&5
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38835 { (case "(($ac_try" in
38836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837 *) ac_try_echo=$ac_try;;
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840 (eval "$ac_try") 2>&5
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); }; }; then
38844 gl_cv_func_re_compile_pattern_working=yes
38846 echo "$as_me: program exited with status $ac_status" >&5
38847 echo "$as_me: failed program was:" >&5
38848 sed 's/^/| /' conftest.$ac_ext >&5
38850 ( exit $ac_status )
38851 gl_cv_func_re_compile_pattern_working=no
38853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38858 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
38859 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
38860 case $gl_cv_func_re_compile_pattern_working in #(
38861 yes) ac_use_included_regex=no;; #(
38862 no) ac_use_included_regex=yes;;
38865 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
38866 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
38867 { (exit 1); exit 1; }; }
38871 if test $ac_use_included_regex = yes; then
38873 cat >>confdefs.h <<\_ACEOF
38874 #define _REGEX_LARGE_OFFSETS 1
38878 cat >>confdefs.h <<\_ACEOF
38879 #define re_syntax_options rpl_re_syntax_options
38883 cat >>confdefs.h <<\_ACEOF
38884 #define re_set_syntax rpl_re_set_syntax
38888 cat >>confdefs.h <<\_ACEOF
38889 #define re_compile_pattern rpl_re_compile_pattern
38893 cat >>confdefs.h <<\_ACEOF
38894 #define re_compile_fastmap rpl_re_compile_fastmap
38898 cat >>confdefs.h <<\_ACEOF
38899 #define re_search rpl_re_search
38903 cat >>confdefs.h <<\_ACEOF
38904 #define re_search_2 rpl_re_search_2
38908 cat >>confdefs.h <<\_ACEOF
38909 #define re_match rpl_re_match
38913 cat >>confdefs.h <<\_ACEOF
38914 #define re_match_2 rpl_re_match_2
38918 cat >>confdefs.h <<\_ACEOF
38919 #define re_set_registers rpl_re_set_registers
38923 cat >>confdefs.h <<\_ACEOF
38924 #define re_comp rpl_re_comp
38928 cat >>confdefs.h <<\_ACEOF
38929 #define re_exec rpl_re_exec
38933 cat >>confdefs.h <<\_ACEOF
38934 #define regcomp rpl_regcomp
38938 cat >>confdefs.h <<\_ACEOF
38939 #define regexec rpl_regexec
38943 cat >>confdefs.h <<\_ACEOF
38944 #define regerror rpl_regerror
38948 cat >>confdefs.h <<\_ACEOF
38949 #define regfree rpl_regfree
38952 case " $LIBOBJS " in
38953 *" regex.$ac_objext "* ) ;;
38954 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
38984 { echo "$as_me:$LINENO: checking whether isblank is declared" >&5
38985 echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
38986 if test "${ac_cv_have_decl_isblank+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38989 cat >conftest.$ac_ext <<_ACEOF
38992 cat confdefs.h >>conftest.$ac_ext
38993 cat >>conftest.$ac_ext <<_ACEOF
38994 /* end confdefs.h. */
39001 char *p = (char *) isblank;
39009 rm -f conftest.$ac_objext
39010 if { (ac_try="$ac_compile"
39011 case "(($ac_try" in
39012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39013 *) ac_try_echo=$ac_try;;
39015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39016 (eval "$ac_compile") 2>conftest.er1
39018 grep -v '^ *+' conftest.er1 >conftest.err
39020 cat conftest.err >&5
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); } &&
39023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39024 { (case "(($ac_try" in
39025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39026 *) ac_try_echo=$ac_try;;
39028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39029 (eval "$ac_try") 2>&5
39031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); }; } &&
39033 { ac_try='test -s conftest.$ac_objext'
39034 { (case "(($ac_try" in
39035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39036 *) ac_try_echo=$ac_try;;
39038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39039 (eval "$ac_try") 2>&5
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); }; }; then
39043 ac_cv_have_decl_isblank=yes
39045 echo "$as_me: failed program was:" >&5
39046 sed 's/^/| /' conftest.$ac_ext >&5
39048 ac_cv_have_decl_isblank=no
39051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39053 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
39054 echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
39055 if test $ac_cv_have_decl_isblank = yes; then
39057 cat >>confdefs.h <<_ACEOF
39058 #define HAVE_DECL_ISBLANK 1
39063 cat >>confdefs.h <<_ACEOF
39064 #define HAVE_DECL_ISBLANK 0
39076 case " $LIBOBJS " in
39077 *" safe-read.$ac_objext "* ) ;;
39078 *) LIBOBJS="$LIBOBJS safe-read.$ac_objext"
39089 case " $LIBOBJS " in
39090 *" safe-write.$ac_objext "* ) ;;
39091 *) LIBOBJS="$LIBOBJS safe-write.$ac_objext"
39104 case " $LIBOBJS " in
39105 *" same.$ac_objext "* ) ;;
39106 *) LIBOBJS="$LIBOBJS same.$ac_objext"
39121 case " $LIBOBJS " in
39122 *" savedir.$ac_objext "* ) ;;
39123 *) LIBOBJS="$LIBOBJS savedir.$ac_objext"
39132 case " $LIBOBJS " in
39133 *" save-cwd.$ac_objext "* ) ;;
39134 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
39151 case " $LIBOBJS " in
39152 *" settime.$ac_objext "* ) ;;
39153 *) LIBOBJS="$LIBOBJS settime.$ac_objext"
39171 case " $LIBOBJS " in
39172 *" sha1.$ac_objext "* ) ;;
39173 *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
39183 case " $LIBOBJS " in
39184 *" sha256.$ac_objext "* ) ;;
39185 *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
39195 case " $LIBOBJS " in
39196 *" sha512.$ac_objext "* ) ;;
39197 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
39211 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
39212 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
39213 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
39214 echo $ECHO_N "(cached) $ECHO_C" >&6
39216 cat >conftest.$ac_ext <<_ACEOF
39219 cat confdefs.h >>conftest.$ac_ext
39220 cat >>conftest.$ac_ext <<_ACEOF
39221 /* end confdefs.h. */
39222 #include <sys/types.h>
39223 #include <sys/stat.h>
39228 static struct stat ac_aggr;
39229 if (ac_aggr.st_atim.tv_nsec)
39235 rm -f conftest.$ac_objext
39236 if { (ac_try="$ac_compile"
39237 case "(($ac_try" in
39238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239 *) ac_try_echo=$ac_try;;
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242 (eval "$ac_compile") 2>conftest.er1
39244 grep -v '^ *+' conftest.er1 >conftest.err
39246 cat conftest.err >&5
39247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248 (exit $ac_status); } &&
39249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39250 { (case "(($ac_try" in
39251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39252 *) ac_try_echo=$ac_try;;
39254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39255 (eval "$ac_try") 2>&5
39257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258 (exit $ac_status); }; } &&
39259 { ac_try='test -s conftest.$ac_objext'
39260 { (case "(($ac_try" in
39261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39262 *) ac_try_echo=$ac_try;;
39264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39265 (eval "$ac_try") 2>&5
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; }; then
39269 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39271 echo "$as_me: failed program was:" >&5
39272 sed 's/^/| /' conftest.$ac_ext >&5
39274 cat >conftest.$ac_ext <<_ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h. */
39280 #include <sys/types.h>
39281 #include <sys/stat.h>
39286 static struct stat ac_aggr;
39287 if (sizeof ac_aggr.st_atim.tv_nsec)
39293 rm -f conftest.$ac_objext
39294 if { (ac_try="$ac_compile"
39295 case "(($ac_try" in
39296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39297 *) ac_try_echo=$ac_try;;
39299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39300 (eval "$ac_compile") 2>conftest.er1
39302 grep -v '^ *+' conftest.er1 >conftest.err
39304 cat conftest.err >&5
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); } &&
39307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39308 { (case "(($ac_try" in
39309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39310 *) ac_try_echo=$ac_try;;
39312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39313 (eval "$ac_try") 2>&5
39315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316 (exit $ac_status); }; } &&
39317 { ac_try='test -s conftest.$ac_objext'
39318 { (case "(($ac_try" in
39319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39320 *) ac_try_echo=$ac_try;;
39322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39323 (eval "$ac_try") 2>&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; }; then
39327 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
39329 echo "$as_me: failed program was:" >&5
39330 sed 's/^/| /' conftest.$ac_ext >&5
39332 ac_cv_member_struct_stat_st_atim_tv_nsec=no
39335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
39341 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
39342 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
39344 cat >>confdefs.h <<_ACEOF
39345 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39348 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
39349 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
39350 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
39351 echo $ECHO_N "(cached) $ECHO_C" >&6
39353 cat >conftest.$ac_ext <<_ACEOF
39356 cat confdefs.h >>conftest.$ac_ext
39357 cat >>conftest.$ac_ext <<_ACEOF
39358 /* end confdefs.h. */
39360 #include <sys/types.h>
39361 #if TIME_WITH_SYS_TIME
39362 # include <sys/time.h>
39365 # if HAVE_SYS_TIME_H
39366 # include <sys/time.h>
39371 #include <sys/stat.h>
39372 struct timespec ts;
39385 rm -f conftest.$ac_objext
39386 if { (ac_try="$ac_compile"
39387 case "(($ac_try" in
39388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39389 *) ac_try_echo=$ac_try;;
39391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39392 (eval "$ac_compile") 2>conftest.er1
39394 grep -v '^ *+' conftest.er1 >conftest.err
39396 cat conftest.err >&5
39397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398 (exit $ac_status); } &&
39399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39400 { (case "(($ac_try" in
39401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39402 *) ac_try_echo=$ac_try;;
39404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39405 (eval "$ac_try") 2>&5
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); }; } &&
39409 { ac_try='test -s conftest.$ac_objext'
39410 { (case "(($ac_try" in
39411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39412 *) ac_try_echo=$ac_try;;
39414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39415 (eval "$ac_try") 2>&5
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); }; }; then
39419 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39421 echo "$as_me: failed program was:" >&5
39422 sed 's/^/| /' conftest.$ac_ext >&5
39424 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39429 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39430 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39431 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39433 cat >>confdefs.h <<\_ACEOF
39434 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
39439 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
39440 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
39441 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
39442 echo $ECHO_N "(cached) $ECHO_C" >&6
39444 cat >conftest.$ac_ext <<_ACEOF
39447 cat confdefs.h >>conftest.$ac_ext
39448 cat >>conftest.$ac_ext <<_ACEOF
39449 /* end confdefs.h. */
39450 #include <sys/types.h>
39451 #include <sys/stat.h>
39456 static struct stat ac_aggr;
39457 if (ac_aggr.st_atimespec.tv_nsec)
39463 rm -f conftest.$ac_objext
39464 if { (ac_try="$ac_compile"
39465 case "(($ac_try" in
39466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39467 *) ac_try_echo=$ac_try;;
39469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39470 (eval "$ac_compile") 2>conftest.er1
39472 grep -v '^ *+' conftest.er1 >conftest.err
39474 cat conftest.err >&5
39475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39476 (exit $ac_status); } &&
39477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39478 { (case "(($ac_try" in
39479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480 *) ac_try_echo=$ac_try;;
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483 (eval "$ac_try") 2>&5
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
39488 { (case "(($ac_try" in
39489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39490 *) ac_try_echo=$ac_try;;
39492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39493 (eval "$ac_try") 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39499 echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39502 cat >conftest.$ac_ext <<_ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h. */
39508 #include <sys/types.h>
39509 #include <sys/stat.h>
39514 static struct stat ac_aggr;
39515 if (sizeof ac_aggr.st_atimespec.tv_nsec)
39521 rm -f conftest.$ac_objext
39522 if { (ac_try="$ac_compile"
39523 case "(($ac_try" in
39524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39525 *) ac_try_echo=$ac_try;;
39527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39528 (eval "$ac_compile") 2>conftest.er1
39530 grep -v '^ *+' conftest.er1 >conftest.err
39532 cat conftest.err >&5
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); } &&
39535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39536 { (case "(($ac_try" in
39537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39538 *) ac_try_echo=$ac_try;;
39540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39541 (eval "$ac_try") 2>&5
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest.$ac_objext'
39546 { (case "(($ac_try" in
39547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39548 *) ac_try_echo=$ac_try;;
39550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39551 (eval "$ac_try") 2>&5
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); }; }; then
39555 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
39557 echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39560 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
39563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
39569 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
39570 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
39572 cat >>confdefs.h <<_ACEOF
39573 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39578 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
39579 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
39580 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
39581 echo $ECHO_N "(cached) $ECHO_C" >&6
39583 cat >conftest.$ac_ext <<_ACEOF
39586 cat confdefs.h >>conftest.$ac_ext
39587 cat >>conftest.$ac_ext <<_ACEOF
39588 /* end confdefs.h. */
39589 #include <sys/types.h>
39590 #include <sys/stat.h>
39595 static struct stat ac_aggr;
39596 if (ac_aggr.st_atimensec)
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606 *) ac_try_echo=$ac_try;;
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609 (eval "$ac_compile") 2>conftest.er1
39611 grep -v '^ *+' conftest.er1 >conftest.err
39613 cat conftest.err >&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
39616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39617 { (case "(($ac_try" in
39618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619 *) ac_try_echo=$ac_try;;
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622 (eval "$ac_try") 2>&5
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); }; } &&
39626 { ac_try='test -s conftest.$ac_objext'
39627 { (case "(($ac_try" in
39628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39629 *) ac_try_echo=$ac_try;;
39631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39632 (eval "$ac_try") 2>&5
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); }; }; then
39636 ac_cv_member_struct_stat_st_atimensec=yes
39638 echo "$as_me: failed program was:" >&5
39639 sed 's/^/| /' conftest.$ac_ext >&5
39641 cat >conftest.$ac_ext <<_ACEOF
39644 cat confdefs.h >>conftest.$ac_ext
39645 cat >>conftest.$ac_ext <<_ACEOF
39646 /* end confdefs.h. */
39647 #include <sys/types.h>
39648 #include <sys/stat.h>
39653 static struct stat ac_aggr;
39654 if (sizeof ac_aggr.st_atimensec)
39660 rm -f conftest.$ac_objext
39661 if { (ac_try="$ac_compile"
39662 case "(($ac_try" in
39663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39664 *) ac_try_echo=$ac_try;;
39666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39667 (eval "$ac_compile") 2>conftest.er1
39669 grep -v '^ *+' conftest.er1 >conftest.err
39671 cat conftest.err >&5
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); } &&
39674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39675 { (case "(($ac_try" in
39676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39677 *) ac_try_echo=$ac_try;;
39679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39680 (eval "$ac_try") 2>&5
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); }; } &&
39684 { ac_try='test -s conftest.$ac_objext'
39685 { (case "(($ac_try" in
39686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687 *) ac_try_echo=$ac_try;;
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690 (eval "$ac_try") 2>&5
39692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693 (exit $ac_status); }; }; then
39694 ac_cv_member_struct_stat_st_atimensec=yes
39696 echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39699 ac_cv_member_struct_stat_st_atimensec=no
39702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
39708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
39709 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
39711 cat >>confdefs.h <<_ACEOF
39712 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39717 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
39718 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
39719 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
39720 echo $ECHO_N "(cached) $ECHO_C" >&6
39722 cat >conftest.$ac_ext <<_ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h. */
39728 #include <sys/types.h>
39729 #include <sys/stat.h>
39734 static struct stat ac_aggr;
39735 if (ac_aggr.st_atim.st__tim.tv_nsec)
39741 rm -f conftest.$ac_objext
39742 if { (ac_try="$ac_compile"
39743 case "(($ac_try" in
39744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39745 *) ac_try_echo=$ac_try;;
39747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39748 (eval "$ac_compile") 2>conftest.er1
39750 grep -v '^ *+' conftest.er1 >conftest.err
39752 cat conftest.err >&5
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); } &&
39755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39756 { (case "(($ac_try" in
39757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39758 *) ac_try_echo=$ac_try;;
39760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39761 (eval "$ac_try") 2>&5
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); }; } &&
39765 { ac_try='test -s conftest.$ac_objext'
39766 { (case "(($ac_try" in
39767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768 *) ac_try_echo=$ac_try;;
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771 (eval "$ac_try") 2>&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); }; }; then
39775 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39777 echo "$as_me: failed program was:" >&5
39778 sed 's/^/| /' conftest.$ac_ext >&5
39780 cat >conftest.$ac_ext <<_ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h. */
39786 #include <sys/types.h>
39787 #include <sys/stat.h>
39792 static struct stat ac_aggr;
39793 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
39799 rm -f conftest.$ac_objext
39800 if { (ac_try="$ac_compile"
39801 case "(($ac_try" in
39802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803 *) ac_try_echo=$ac_try;;
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806 (eval "$ac_compile") 2>conftest.er1
39808 grep -v '^ *+' conftest.er1 >conftest.err
39810 cat conftest.err >&5
39811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); } &&
39813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39814 { (case "(($ac_try" in
39815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816 *) ac_try_echo=$ac_try;;
39818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39819 (eval "$ac_try") 2>&5
39821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822 (exit $ac_status); }; } &&
39823 { ac_try='test -s conftest.$ac_objext'
39824 { (case "(($ac_try" in
39825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39826 *) ac_try_echo=$ac_try;;
39828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39829 (eval "$ac_try") 2>&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); }; }; then
39833 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
39835 echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.$ac_ext >&5
39838 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
39841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
39847 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
39848 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
39850 cat >>confdefs.h <<_ACEOF
39851 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39856 { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
39857 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
39858 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
39859 echo $ECHO_N "(cached) $ECHO_C" >&6
39861 cat >conftest.$ac_ext <<_ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h. */
39867 #include <sys/types.h>
39868 #include <sys/stat.h>
39873 static struct stat ac_aggr;
39874 if (ac_aggr.st_spare1)
39880 rm -f conftest.$ac_objext
39881 if { (ac_try="$ac_compile"
39882 case "(($ac_try" in
39883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39884 *) ac_try_echo=$ac_try;;
39886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39887 (eval "$ac_compile") 2>conftest.er1
39889 grep -v '^ *+' conftest.er1 >conftest.err
39891 cat conftest.err >&5
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); } &&
39894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39895 { (case "(($ac_try" in
39896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897 *) ac_try_echo=$ac_try;;
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900 (eval "$ac_try") 2>&5
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); }; } &&
39904 { ac_try='test -s conftest.$ac_objext'
39905 { (case "(($ac_try" in
39906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39907 *) ac_try_echo=$ac_try;;
39909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39910 (eval "$ac_try") 2>&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; }; then
39914 ac_cv_member_struct_stat_st_spare1=yes
39916 echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39919 cat >conftest.$ac_ext <<_ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h. */
39925 #include <sys/types.h>
39926 #include <sys/stat.h>
39931 static struct stat ac_aggr;
39932 if (sizeof ac_aggr.st_spare1)
39938 rm -f conftest.$ac_objext
39939 if { (ac_try="$ac_compile"
39940 case "(($ac_try" in
39941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942 *) ac_try_echo=$ac_try;;
39944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945 (eval "$ac_compile") 2>conftest.er1
39947 grep -v '^ *+' conftest.er1 >conftest.err
39949 cat conftest.err >&5
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); } &&
39952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39953 { (case "(($ac_try" in
39954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39955 *) ac_try_echo=$ac_try;;
39957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39958 (eval "$ac_try") 2>&5
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; } &&
39962 { ac_try='test -s conftest.$ac_objext'
39963 { (case "(($ac_try" in
39964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965 *) ac_try_echo=$ac_try;;
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968 (eval "$ac_try") 2>&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); }; }; then
39972 ac_cv_member_struct_stat_st_spare1=yes
39974 echo "$as_me: failed program was:" >&5
39975 sed 's/^/| /' conftest.$ac_ext >&5
39977 ac_cv_member_struct_stat_st_spare1=no
39980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
39986 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
39987 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
39989 cat >>confdefs.h <<_ACEOF
39990 #define HAVE_STRUCT_STAT_ST_SPARE1 1
40010 if test $ac_cv_type_long_long_int = yes; then
40011 HAVE_LONG_LONG_INT=1
40013 HAVE_LONG_LONG_INT=0
40023 if test $ac_cv_header_wchar_h = yes; then
40030 if test $ac_cv_header_inttypes_h = yes; then
40037 if test $ac_cv_header_sys_types_h = yes; then
40044 if test $ac_cv_header_stdint_h = yes; then
40045 { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
40046 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
40047 if test "${gl_cv_absolute_stdint_h+set}" = set; then
40048 echo $ECHO_N "(cached) $ECHO_C" >&6
40055 if test $ac_cv_header_stdint_h = yes; then
40056 cat >conftest.$ac_ext <<_ACEOF
40059 cat confdefs.h >>conftest.$ac_ext
40060 cat >>conftest.$ac_ext <<_ACEOF
40061 /* end confdefs.h. */
40062 #include <stdint.h>
40064 gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40065 sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
40069 { echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
40070 echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
40071 cat >>confdefs.h <<_ACEOF
40072 #define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
40076 ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
40079 ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
40085 if test $ac_cv_header_stdint_h = yes; then
40086 { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
40087 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
40088 if test "${gl_cv_header_working_stdint_h+set}" = set; then
40089 echo $ECHO_N "(cached) $ECHO_C" >&6
40091 gl_cv_header_working_stdint_h=no
40092 cat >conftest.$ac_ext <<_ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h. */
40100 #include <stddef.h>
40101 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
40102 #include ABSOLUTE_STDINT_H
40104 int8_t a1 = INT8_MAX;
40107 int16_t a2 = INT16_MAX;
40110 int32_t a3 = INT32_MAX;
40113 int64_t a4 = INT64_MAX;
40116 uint8_t b1 = UINT8_MAX;
40118 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
40121 uint16_t b2 = UINT16_MAX;
40124 uint32_t b3 = UINT32_MAX;
40127 uint64_t b4 = UINT64_MAX;
40129 int_least8_t c1 = INT8_C (0x7f);
40130 int_least16_t c2 = INT16_C (0x7fff);
40131 int_least32_t c3 = INT32_C (0x7fffffff);
40132 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
40133 uint_least8_t d1 = UINT8_C (0xff);
40134 uint_least16_t d2 = UINT16_C (0xffff);
40135 uint_least32_t d3 = UINT32_C (0xffffffff);
40136 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
40137 int_fast8_t e1 = INT_FAST8_MAX;
40138 int_fast16_t e2 = INT_FAST16_MAX;
40139 int_fast32_t e3 = INT_FAST32_MAX;
40140 int_fast64_t e4 = INT_FAST64_MAX;
40141 uint_fast8_t f1 = UINT_FAST8_MAX;
40142 uint_fast16_t f2 = UINT_FAST16_MAX;
40143 uint_fast32_t f3 = UINT_FAST32_MAX;
40144 uint_fast64_t f4 = UINT_FAST64_MAX;
40146 intptr_t g = INTPTR_MAX;
40149 uintptr_t h = UINTPTR_MAX;
40151 intmax_t i = INTMAX_MAX;
40152 uintmax_t j = UINTMAX_MAX;
40154 int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
40155 int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
40156 int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
40157 int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
40158 int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
40160 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
40162 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
40163 int check_UINT16_C:
40164 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
40166 /* Detect bugs in OpenBSD 3.9 stdint.h. */
40168 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
40171 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
40174 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
40177 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
40179 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
40180 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
40181 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
40182 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
40183 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
40184 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
40185 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
40186 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
40187 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
40188 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
40189 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
40200 rm -f conftest.$ac_objext
40201 if { (ac_try="$ac_compile"
40202 case "(($ac_try" in
40203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40204 *) ac_try_echo=$ac_try;;
40206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40207 (eval "$ac_compile") 2>conftest.er1
40209 grep -v '^ *+' conftest.er1 >conftest.err
40211 cat conftest.err >&5
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); } &&
40214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40215 { (case "(($ac_try" in
40216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40217 *) ac_try_echo=$ac_try;;
40219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40220 (eval "$ac_try") 2>&5
40222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); }; } &&
40224 { ac_try='test -s conftest.$ac_objext'
40225 { (case "(($ac_try" in
40226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40227 *) ac_try_echo=$ac_try;;
40229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40230 (eval "$ac_try") 2>&5
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); }; }; then
40234 gl_cv_header_working_stdint_h=yes
40236 echo "$as_me: failed program was:" >&5
40237 sed 's/^/| /' conftest.$ac_ext >&5
40242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40244 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
40245 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
40247 if test "$gl_cv_header_working_stdint_h" != yes; then
40251 for ac_header in sys/inttypes.h sys/bitypes.h
40253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40258 echo $ECHO_N "(cached) $ECHO_C" >&6
40260 ac_res=`eval echo '${'$as_ac_Header'}'`
40261 { echo "$as_me:$LINENO: result: $ac_res" >&5
40262 echo "${ECHO_T}$ac_res" >&6; }
40264 # Is the header compilable?
40265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40267 cat >conftest.$ac_ext <<_ACEOF
40270 cat confdefs.h >>conftest.$ac_ext
40271 cat >>conftest.$ac_ext <<_ACEOF
40272 /* end confdefs.h. */
40273 $ac_includes_default
40274 #include <$ac_header>
40276 rm -f conftest.$ac_objext
40277 if { (ac_try="$ac_compile"
40278 case "(($ac_try" in
40279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280 *) ac_try_echo=$ac_try;;
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283 (eval "$ac_compile") 2>conftest.er1
40285 grep -v '^ *+' conftest.er1 >conftest.err
40287 cat conftest.err >&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); } &&
40290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40291 { (case "(($ac_try" in
40292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293 *) ac_try_echo=$ac_try;;
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296 (eval "$ac_try") 2>&5
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); }; } &&
40300 { ac_try='test -s conftest.$ac_objext'
40301 { (case "(($ac_try" in
40302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303 *) ac_try_echo=$ac_try;;
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306 (eval "$ac_try") 2>&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); }; }; then
40310 ac_header_compiler=yes
40312 echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40315 ac_header_compiler=no
40318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40320 echo "${ECHO_T}$ac_header_compiler" >&6; }
40322 # Is the header present?
40323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40325 cat >conftest.$ac_ext <<_ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h. */
40331 #include <$ac_header>
40333 if { (ac_try="$ac_cpp conftest.$ac_ext"
40334 case "(($ac_try" in
40335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40336 *) ac_try_echo=$ac_try;;
40338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40341 grep -v '^ *+' conftest.er1 >conftest.err
40343 cat conftest.err >&5
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); } >/dev/null; then
40346 if test -s conftest.err; then
40347 ac_cpp_err=$ac_c_preproc_warn_flag
40348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40355 if test -z "$ac_cpp_err"; then
40356 ac_header_preproc=yes
40358 echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40361 ac_header_preproc=no
40364 rm -f conftest.err conftest.$ac_ext
40365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40366 echo "${ECHO_T}$ac_header_preproc" >&6; }
40368 # So? What about this header?
40369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40375 ac_header_preproc=yes
40378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40391 ## ------------------------------------ ##
40392 ## Report this to bug-coreutils@gnu.org ##
40393 ## ------------------------------------ ##
40395 ) | sed "s/^/$as_me: WARNING: /" >&2
40398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40401 echo $ECHO_N "(cached) $ECHO_C" >&6
40403 eval "$as_ac_Header=\$ac_header_preproc"
40405 ac_res=`eval echo '${'$as_ac_Header'}'`
40406 { echo "$as_me:$LINENO: result: $ac_res" >&5
40407 echo "${ECHO_T}$ac_res" >&6; }
40410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40411 cat >>confdefs.h <<_ACEOF
40412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40419 if test $ac_cv_header_sys_inttypes_h = yes; then
40420 HAVE_SYS_INTTYPES_H=1
40422 HAVE_SYS_INTTYPES_H=0
40425 if test $ac_cv_header_sys_bitypes_h = yes; then
40426 HAVE_SYS_BITYPES_H=1
40428 HAVE_SYS_BITYPES_H=0
40440 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
40441 { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
40442 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
40443 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
40444 echo $ECHO_N "(cached) $ECHO_C" >&6
40446 if test "$cross_compiling" = yes; then
40447 # Depending upon the size, compute the lo and hi bounds.
40448 cat >conftest.$ac_ext <<_ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h. */
40455 #include <stddef.h>
40456 #include <signal.h>
40458 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40460 # include <stdio.h>
40462 # include <wchar.h>
40465 #include <limits.h>
40469 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
40476 rm -f conftest.$ac_objext
40477 if { (ac_try="$ac_compile"
40478 case "(($ac_try" in
40479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480 *) ac_try_echo=$ac_try;;
40482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40483 (eval "$ac_compile") 2>conftest.er1
40485 grep -v '^ *+' conftest.er1 >conftest.err
40487 cat conftest.err >&5
40488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40489 (exit $ac_status); } &&
40490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40491 { (case "(($ac_try" in
40492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40493 *) ac_try_echo=$ac_try;;
40495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40496 (eval "$ac_try") 2>&5
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); }; } &&
40500 { ac_try='test -s conftest.$ac_objext'
40501 { (case "(($ac_try" in
40502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40503 *) ac_try_echo=$ac_try;;
40505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40506 (eval "$ac_try") 2>&5
40508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40509 (exit $ac_status); }; }; then
40512 cat >conftest.$ac_ext <<_ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h. */
40519 #include <stddef.h>
40520 #include <signal.h>
40522 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40524 # include <stdio.h>
40526 # include <wchar.h>
40529 #include <limits.h>
40533 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40540 rm -f conftest.$ac_objext
40541 if { (ac_try="$ac_compile"
40542 case "(($ac_try" in
40543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40544 *) ac_try_echo=$ac_try;;
40546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40547 (eval "$ac_compile") 2>conftest.er1
40549 grep -v '^ *+' conftest.er1 >conftest.err
40551 cat conftest.err >&5
40552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553 (exit $ac_status); } &&
40554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40555 { (case "(($ac_try" in
40556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40557 *) ac_try_echo=$ac_try;;
40559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40560 (eval "$ac_try") 2>&5
40562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40563 (exit $ac_status); }; } &&
40564 { ac_try='test -s conftest.$ac_objext'
40565 { (case "(($ac_try" in
40566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567 *) ac_try_echo=$ac_try;;
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570 (eval "$ac_try") 2>&5
40572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573 (exit $ac_status); }; }; then
40574 ac_hi=$ac_mid; break
40576 echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40579 ac_lo=`expr $ac_mid + 1`
40580 if test $ac_lo -le $ac_mid; then
40584 ac_mid=`expr 2 '*' $ac_mid + 1`
40587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40590 echo "$as_me: failed program was:" >&5
40591 sed 's/^/| /' conftest.$ac_ext >&5
40593 cat >conftest.$ac_ext <<_ACEOF
40596 cat confdefs.h >>conftest.$ac_ext
40597 cat >>conftest.$ac_ext <<_ACEOF
40598 /* end confdefs.h. */
40600 #include <stddef.h>
40601 #include <signal.h>
40603 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40605 # include <stdio.h>
40607 # include <wchar.h>
40610 #include <limits.h>
40614 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
40621 rm -f conftest.$ac_objext
40622 if { (ac_try="$ac_compile"
40623 case "(($ac_try" in
40624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40625 *) ac_try_echo=$ac_try;;
40627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40628 (eval "$ac_compile") 2>conftest.er1
40630 grep -v '^ *+' conftest.er1 >conftest.err
40632 cat conftest.err >&5
40633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634 (exit $ac_status); } &&
40635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40636 { (case "(($ac_try" in
40637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40638 *) ac_try_echo=$ac_try;;
40640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40641 (eval "$ac_try") 2>&5
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } &&
40645 { ac_try='test -s conftest.$ac_objext'
40646 { (case "(($ac_try" in
40647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648 *) ac_try_echo=$ac_try;;
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651 (eval "$ac_try") 2>&5
40653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40654 (exit $ac_status); }; }; then
40657 cat >conftest.$ac_ext <<_ACEOF
40660 cat confdefs.h >>conftest.$ac_ext
40661 cat >>conftest.$ac_ext <<_ACEOF
40662 /* end confdefs.h. */
40664 #include <stddef.h>
40665 #include <signal.h>
40667 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40669 # include <stdio.h>
40671 # include <wchar.h>
40674 #include <limits.h>
40678 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40685 rm -f conftest.$ac_objext
40686 if { (ac_try="$ac_compile"
40687 case "(($ac_try" in
40688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40689 *) ac_try_echo=$ac_try;;
40691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40692 (eval "$ac_compile") 2>conftest.er1
40694 grep -v '^ *+' conftest.er1 >conftest.err
40696 cat conftest.err >&5
40697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698 (exit $ac_status); } &&
40699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40700 { (case "(($ac_try" in
40701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40702 *) ac_try_echo=$ac_try;;
40704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40705 (eval "$ac_try") 2>&5
40707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708 (exit $ac_status); }; } &&
40709 { ac_try='test -s conftest.$ac_objext'
40710 { (case "(($ac_try" in
40711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40712 *) ac_try_echo=$ac_try;;
40714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40715 (eval "$ac_try") 2>&5
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); }; }; then
40719 ac_lo=$ac_mid; break
40721 echo "$as_me: failed program was:" >&5
40722 sed 's/^/| /' conftest.$ac_ext >&5
40724 ac_hi=`expr '(' $ac_mid ')' - 1`
40725 if test $ac_mid -le $ac_hi; then
40729 ac_mid=`expr 2 '*' $ac_mid`
40732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40735 echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40745 # Binary search between lo and hi bounds.
40746 while test "x$ac_lo" != "x$ac_hi"; do
40747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40748 cat >conftest.$ac_ext <<_ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h. */
40755 #include <stddef.h>
40756 #include <signal.h>
40758 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40760 # include <stdio.h>
40762 # include <wchar.h>
40765 #include <limits.h>
40769 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40776 rm -f conftest.$ac_objext
40777 if { (ac_try="$ac_compile"
40778 case "(($ac_try" in
40779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40780 *) ac_try_echo=$ac_try;;
40782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40783 (eval "$ac_compile") 2>conftest.er1
40785 grep -v '^ *+' conftest.er1 >conftest.err
40787 cat conftest.err >&5
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); } &&
40790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40791 { (case "(($ac_try" in
40792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40793 *) ac_try_echo=$ac_try;;
40795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40796 (eval "$ac_try") 2>&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); }; } &&
40800 { ac_try='test -s conftest.$ac_objext'
40801 { (case "(($ac_try" in
40802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40803 *) ac_try_echo=$ac_try;;
40805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40806 (eval "$ac_try") 2>&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; }; then
40812 echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40815 ac_lo=`expr '(' $ac_mid ')' + 1`
40818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40821 ?*) result=$ac_lo;;
40822 '') result=unknown ;;
40825 cat >conftest.$ac_ext <<_ACEOF
40828 cat confdefs.h >>conftest.$ac_ext
40829 cat >>conftest.$ac_ext <<_ACEOF
40830 /* end confdefs.h. */
40832 #include <stddef.h>
40833 #include <signal.h>
40835 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40837 # include <stdio.h>
40839 # include <wchar.h>
40842 #include <limits.h>
40843 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40844 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40846 #include <stdlib.h>
40851 FILE *f = fopen ("conftest.val", "w");
40854 if ((sizeof ($gltype) * CHAR_BIT) < 0)
40856 long int i = longval ();
40857 if (i != (sizeof ($gltype) * CHAR_BIT))
40859 fprintf (f, "%ld\n", i);
40863 unsigned long int i = ulongval ();
40864 if (i != (sizeof ($gltype) * CHAR_BIT))
40866 fprintf (f, "%lu\n", i);
40868 return ferror (f) || fclose (f) != 0;
40874 rm -f conftest$ac_exeext
40875 if { (ac_try="$ac_link"
40876 case "(($ac_try" in
40877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40878 *) ac_try_echo=$ac_try;;
40880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40881 (eval "$ac_link") 2>&5
40883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40885 { (case "(($ac_try" in
40886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40887 *) ac_try_echo=$ac_try;;
40889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40890 (eval "$ac_try") 2>&5
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); }; }; then
40894 result=`cat conftest.val`
40896 echo "$as_me: program exited with status $ac_status" >&5
40897 echo "$as_me: failed program was:" >&5
40898 sed 's/^/| /' conftest.$ac_ext >&5
40900 ( exit $ac_status )
40903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40906 eval gl_cv_bitsizeof_${gltype}=\$result
40909 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
40910 { echo "$as_me:$LINENO: result: $ac_res" >&5
40911 echo "${ECHO_T}$ac_res" >&6; }
40912 eval result=\$gl_cv_bitsizeof_${gltype}
40913 if test $result = unknown; then
40916 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40917 cat >>confdefs.h <<_ACEOF
40918 #define BITSIZEOF_${GLTYPE} $result
40921 eval BITSIZEOF_${GLTYPE}=\$result
40930 for gltype in sig_atomic_t wchar_t wint_t ; do
40931 { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40932 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
40933 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40934 echo $ECHO_N "(cached) $ECHO_C" >&6
40936 cat >conftest.$ac_ext <<_ACEOF
40939 cat confdefs.h >>conftest.$ac_ext
40940 cat >>conftest.$ac_ext <<_ACEOF
40941 /* end confdefs.h. */
40943 #include <stddef.h>
40944 #include <signal.h>
40946 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
40948 # include <stdio.h>
40950 # include <wchar.h>
40953 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40962 rm -f conftest.$ac_objext
40963 if { (ac_try="$ac_compile"
40964 case "(($ac_try" in
40965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40966 *) ac_try_echo=$ac_try;;
40968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40969 (eval "$ac_compile") 2>conftest.er1
40971 grep -v '^ *+' conftest.er1 >conftest.err
40973 cat conftest.err >&5
40974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975 (exit $ac_status); } &&
40976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40977 { (case "(($ac_try" in
40978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40979 *) ac_try_echo=$ac_try;;
40981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40982 (eval "$ac_try") 2>&5
40984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40985 (exit $ac_status); }; } &&
40986 { ac_try='test -s conftest.$ac_objext'
40987 { (case "(($ac_try" in
40988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40989 *) ac_try_echo=$ac_try;;
40991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40992 (eval "$ac_try") 2>&5
40994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995 (exit $ac_status); }; }; then
40998 echo "$as_me: failed program was:" >&5
40999 sed 's/^/| /' conftest.$ac_ext >&5
41004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41005 eval gl_cv_type_${gltype}_signed=\$result
41008 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
41009 { echo "$as_me:$LINENO: result: $ac_res" >&5
41010 echo "${ECHO_T}$ac_res" >&6; }
41011 eval result=\$gl_cv_type_${gltype}_signed
41012 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41013 if test "$result" = yes; then
41014 cat >>confdefs.h <<_ACEOF
41015 #define HAVE_SIGNED_${GLTYPE} 1
41018 eval HAVE_SIGNED_${GLTYPE}=1
41020 eval HAVE_SIGNED_${GLTYPE}=0
41025 gl_cv_type_ptrdiff_t_signed=yes
41026 gl_cv_type_size_t_signed=no
41034 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
41035 { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
41036 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
41037 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
41038 echo $ECHO_N "(cached) $ECHO_C" >&6
41040 eval gl_cv_type_${gltype}_suffix=no
41041 eval result=\$gl_cv_type_${gltype}_signed
41042 if test "$result" = yes; then
41047 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
41049 '') gltype1='int';;
41050 l) gltype1='long int';;
41051 ll) gltype1='long long int';;
41052 i64) gltype1='__int64';;
41053 u) gltype1='unsigned int';;
41054 ul) gltype1='unsigned long int';;
41055 ull) gltype1='unsigned long long int';;
41056 ui64)gltype1='unsigned __int64';;
41058 cat >conftest.$ac_ext <<_ACEOF
41061 cat confdefs.h >>conftest.$ac_ext
41062 cat >>conftest.$ac_ext <<_ACEOF
41063 /* end confdefs.h. */
41065 #include <stddef.h>
41066 #include <signal.h>
41068 /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
41070 # include <stdio.h>
41072 # include <wchar.h>
41075 extern $gltype foo;
41076 extern $gltype1 foo;
41085 rm -f conftest.$ac_objext
41086 if { (ac_try="$ac_compile"
41087 case "(($ac_try" in
41088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41089 *) ac_try_echo=$ac_try;;
41091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41092 (eval "$ac_compile") 2>conftest.er1
41094 grep -v '^ *+' conftest.er1 >conftest.err
41096 cat conftest.err >&5
41097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); } &&
41099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41100 { (case "(($ac_try" in
41101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41102 *) ac_try_echo=$ac_try;;
41104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41105 (eval "$ac_try") 2>&5
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); }; } &&
41109 { ac_try='test -s conftest.$ac_objext'
41110 { (case "(($ac_try" in
41111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41112 *) ac_try_echo=$ac_try;;
41114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41115 (eval "$ac_try") 2>&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); }; }; then
41119 eval gl_cv_type_${gltype}_suffix=\$glsuf
41121 echo "$as_me: failed program was:" >&5
41122 sed 's/^/| /' conftest.$ac_ext >&5
41127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41128 eval test \"\$gl_cv_type_${gltype}_suffix\" != no && break
41131 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
41132 { echo "$as_me:$LINENO: result: $ac_res" >&5
41133 echo "${ECHO_T}$ac_res" >&6; }
41134 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
41135 eval result=\$gl_cv_type_${gltype}_suffix
41136 test "$result" = no && result=
41137 eval ${GLTYPE}_SUFFIX=\$result
41138 cat >>confdefs.h <<_ACEOF
41139 #define ${GLTYPE}_SUFFIX $result
41152 case " $LIBOBJS " in
41153 *" fopen-safer.$ac_objext "* ) ;;
41154 *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext"
41161 case " $LIBOBJS " in
41162 *" mkstemp-safer.$ac_objext "* ) ;;
41163 *) LIBOBJS="$LIBOBJS mkstemp-safer.$ac_objext"
41170 case " $LIBOBJS " in
41171 *" strcasecmp.$ac_objext "* ) ;;
41172 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
41177 cat >>confdefs.h <<\_ACEOF
41178 #define strcasecmp rpl_strcasecmp
41188 for ac_func in strncasecmp
41190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41194 echo $ECHO_N "(cached) $ECHO_C" >&6
41196 cat >conftest.$ac_ext <<_ACEOF
41199 cat confdefs.h >>conftest.$ac_ext
41200 cat >>conftest.$ac_ext <<_ACEOF
41201 /* end confdefs.h. */
41202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41204 #define $ac_func innocuous_$ac_func
41206 /* System header to define __stub macros and hopefully few prototypes,
41207 which can conflict with char $ac_func (); below.
41208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41209 <limits.h> exists even on freestanding compilers. */
41212 # include <limits.h>
41214 # include <assert.h>
41219 /* Override any GCC internal prototype to avoid an error.
41220 Use char because int might match the return type of a GCC
41221 builtin and then its argument prototype would still apply. */
41226 /* The GNU C library defines this for functions which it implements
41227 to always fail with ENOSYS. Some functions are actually named
41228 something starting with __ and the normal name is an alias. */
41229 #if defined __stub_$ac_func || defined __stub___$ac_func
41236 return $ac_func ();
41241 rm -f conftest.$ac_objext conftest$ac_exeext
41242 if { (ac_try="$ac_link"
41243 case "(($ac_try" in
41244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41245 *) ac_try_echo=$ac_try;;
41247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41248 (eval "$ac_link") 2>conftest.er1
41250 grep -v '^ *+' conftest.er1 >conftest.err
41252 cat conftest.err >&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); } &&
41255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41256 { (case "(($ac_try" in
41257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41258 *) ac_try_echo=$ac_try;;
41260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41261 (eval "$ac_try") 2>&5
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); }; } &&
41265 { ac_try='test -s conftest$ac_exeext'
41266 { (case "(($ac_try" in
41267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268 *) ac_try_echo=$ac_try;;
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271 (eval "$ac_try") 2>&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); }; }; then
41275 eval "$as_ac_var=yes"
41277 echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41280 eval "$as_ac_var=no"
41283 rm -f core conftest.err conftest.$ac_objext \
41284 conftest$ac_exeext conftest.$ac_ext
41286 ac_res=`eval echo '${'$as_ac_var'}'`
41287 { echo "$as_me:$LINENO: result: $ac_res" >&5
41288 echo "${ECHO_T}$ac_res" >&6; }
41289 if test `eval echo '${'$as_ac_var'}'` = yes; then
41290 cat >>confdefs.h <<_ACEOF
41291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41295 case " $LIBOBJS " in
41296 *" $ac_func.$ac_objext "* ) ;;
41297 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
41305 if test $ac_cv_func_strncasecmp = no; then
41312 { echo "$as_me:$LINENO: checking for inline" >&5
41313 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
41314 if test "${ac_cv_c_inline+set}" = set; then
41315 echo $ECHO_N "(cached) $ECHO_C" >&6
41318 for ac_kw in inline __inline__ __inline; do
41319 cat >conftest.$ac_ext <<_ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h. */
41325 #ifndef __cplusplus
41327 static $ac_kw foo_t static_foo () {return 0; }
41328 $ac_kw foo_t foo () {return 0; }
41332 rm -f conftest.$ac_objext
41333 if { (ac_try="$ac_compile"
41334 case "(($ac_try" in
41335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41336 *) ac_try_echo=$ac_try;;
41338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41339 (eval "$ac_compile") 2>conftest.er1
41341 grep -v '^ *+' conftest.er1 >conftest.err
41343 cat conftest.err >&5
41344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); } &&
41346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41347 { (case "(($ac_try" in
41348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349 *) ac_try_echo=$ac_try;;
41351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41352 (eval "$ac_try") 2>&5
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); }; } &&
41356 { ac_try='test -s conftest.$ac_objext'
41357 { (case "(($ac_try" in
41358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41359 *) ac_try_echo=$ac_try;;
41361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41362 (eval "$ac_try") 2>&5
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); }; }; then
41366 ac_cv_c_inline=$ac_kw
41368 echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41375 test "$ac_cv_c_inline" != no && break
41379 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
41380 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
41383 case $ac_cv_c_inline in
41386 case $ac_cv_c_inline in
41388 *) ac_val=$ac_cv_c_inline;;
41390 cat >>confdefs.h <<_ACEOF
41391 #ifndef __cplusplus
41392 #define inline $ac_val
41400 case " $LIBOBJS " in
41401 *" strintcmp.$ac_objext "* ) ;;
41402 *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
41411 case " $LIBOBJS " in
41412 *" strnumcmp.$ac_objext "* ) ;;
41413 *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
41422 case " $LIBOBJS " in
41423 *" stripslash.$ac_objext "* ) ;;
41424 *) LIBOBJS="$LIBOBJS stripslash.$ac_objext"
41436 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
41437 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
41438 if test "${gl_cv_time_r_posix+set}" = set; then
41439 echo $ECHO_N "(cached) $ECHO_C" >&6
41441 cat >conftest.$ac_ext <<_ACEOF
41444 cat confdefs.h >>conftest.$ac_ext
41445 cat >>conftest.$ac_ext <<_ACEOF
41446 /* end confdefs.h. */
41451 /* We don't need to append 'restrict's to the argument types,
41452 even though the POSIX signature has the 'restrict's,
41453 since C99 says they can't affect type compatibility. */
41454 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
41459 rm -f conftest.$ac_objext
41460 if { (ac_try="$ac_compile"
41461 case "(($ac_try" in
41462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41463 *) ac_try_echo=$ac_try;;
41465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41466 (eval "$ac_compile") 2>conftest.er1
41468 grep -v '^ *+' conftest.er1 >conftest.err
41470 cat conftest.err >&5
41471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472 (exit $ac_status); } &&
41473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41474 { (case "(($ac_try" in
41475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41476 *) ac_try_echo=$ac_try;;
41478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41479 (eval "$ac_try") 2>&5
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } &&
41483 { ac_try='test -s conftest.$ac_objext'
41484 { (case "(($ac_try" in
41485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41486 *) ac_try_echo=$ac_try;;
41488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41489 (eval "$ac_try") 2>&5
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); }; }; then
41493 gl_cv_time_r_posix=yes
41495 echo "$as_me: failed program was:" >&5
41496 sed 's/^/| /' conftest.$ac_ext >&5
41498 gl_cv_time_r_posix=no
41501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41503 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
41504 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
41505 if test $gl_cv_time_r_posix = yes; then
41507 cat >>confdefs.h <<\_ACEOF
41508 #define HAVE_TIME_R_POSIX 1
41512 case " $LIBOBJS " in
41513 *" time_r.$ac_objext "* ) ;;
41514 *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
41528 case " $LIBOBJS " in
41529 *" dup-safer.$ac_objext "* ) ;;
41530 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
41534 case " $LIBOBJS " in
41535 *" fd-safer.$ac_objext "* ) ;;
41536 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
41540 case " $LIBOBJS " in
41541 *" pipe-safer.$ac_objext "* ) ;;
41542 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
41557 case " $LIBOBJS " in
41558 *" unlinkdir.$ac_objext "* ) ;;
41559 *) LIBOBJS="$LIBOBJS unlinkdir.$ac_objext"
41564 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
41565 # and Cygwin never let anyone (even root) unlink directories.
41566 # If anyone knows of another system for which unlink can never
41567 # remove a directory, please report it to <bug-coreutils@gnu.org>.
41568 # Unfortunately this is difficult to test for, since it requires root access
41569 # and might create garbage in the file system,
41570 # so the code below simply relies on the kernel name and version number.
41573 *-*-linux-* | *-*-linux | \
41574 *-*-freebsd2.2* | *-*-freebsd3-9* | *-*-freebsd1-90-9* | \
41577 cat >>confdefs.h <<\_ACEOF
41578 #define UNLINK_CANNOT_UNLINK_DIR 1
41585 case " $LIBOBJS " in
41586 *" userspec.$ac_objext "* ) ;;
41587 *) LIBOBJS="$LIBOBJS userspec.$ac_objext"
41600 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
41601 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
41602 if test "${gl_cv_func_working_utimes+set}" = set; then
41603 echo $ECHO_N "(cached) $ECHO_C" >&6
41606 if test "$cross_compiling" = yes; then
41607 gl_cv_func_working_utimes=no
41609 cat >conftest.$ac_ext <<_ACEOF
41612 cat confdefs.h >>conftest.$ac_ext
41613 cat >>conftest.$ac_ext <<_ACEOF
41614 /* end confdefs.h. */
41616 #include <sys/types.h>
41617 #include <sys/stat.h>
41619 #include <sys/time.h>
41621 #include <unistd.h>
41622 #include <stdlib.h>
41629 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
41631 char const *file = "conftest.utimes";
41636 int ok = ((f = fopen (file, "w"))
41638 && utimes (file, timeval) == 0
41639 && lstat (file, &sbuf) == 0
41640 && sbuf.st_atime == timeval[0].tv_sec
41641 && sbuf.st_mtime == timeval[1].tv_sec);
41647 ((f = fopen (file, "w"))
41649 && time (&now) != (time_t)-1
41650 && utimes (file, NULL) == 0
41651 && lstat (file, &sbuf) == 0
41652 && now - sbuf.st_atime <= 2
41653 && now - sbuf.st_mtime <= 2);
41658 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
41660 && utimes (file, NULL) == 0);
41667 rm -f conftest$ac_exeext
41668 if { (ac_try="$ac_link"
41669 case "(($ac_try" in
41670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41671 *) ac_try_echo=$ac_try;;
41673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41674 (eval "$ac_link") 2>&5
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41678 { (case "(($ac_try" in
41679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41680 *) ac_try_echo=$ac_try;;
41682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41683 (eval "$ac_try") 2>&5
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); }; }; then
41687 gl_cv_func_working_utimes=yes
41689 echo "$as_me: program exited with status $ac_status" >&5
41690 echo "$as_me: failed program was:" >&5
41691 sed 's/^/| /' conftest.$ac_ext >&5
41693 ( exit $ac_status )
41694 gl_cv_func_working_utimes=no
41696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41701 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
41702 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
41704 if test $gl_cv_func_working_utimes = yes; then
41706 cat >>confdefs.h <<\_ACEOF
41707 #define HAVE_WORKING_UTIMES 1
41714 case " $LIBOBJS " in
41715 *" utimecmp.$ac_objext "* ) ;;
41716 *) LIBOBJS="$LIBOBJS utimecmp.$ac_objext"
41737 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
41738 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
41739 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
41740 echo $ECHO_N "(cached) $ECHO_C" >&6
41742 cat >conftest.$ac_ext <<_ACEOF
41745 cat confdefs.h >>conftest.$ac_ext
41746 cat >>conftest.$ac_ext <<_ACEOF
41747 /* end confdefs.h. */
41749 #ifdef TIME_WITH_SYS_TIME
41750 # include <sys/time.h>
41753 # ifdef HAVE_SYS_TIME_H
41754 # include <sys/time.h>
41759 #ifdef HAVE_UTIME_H
41760 # include <utime.h>
41766 static struct utimbuf x; x.actime = x.modtime;
41771 rm -f conftest.$ac_objext
41772 if { (ac_try="$ac_compile"
41773 case "(($ac_try" in
41774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41775 *) ac_try_echo=$ac_try;;
41777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41778 (eval "$ac_compile") 2>conftest.er1
41780 grep -v '^ *+' conftest.er1 >conftest.err
41782 cat conftest.err >&5
41783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); } &&
41785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41786 { (case "(($ac_try" in
41787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41788 *) ac_try_echo=$ac_try;;
41790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41791 (eval "$ac_try") 2>&5
41793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794 (exit $ac_status); }; } &&
41795 { ac_try='test -s conftest.$ac_objext'
41796 { (case "(($ac_try" in
41797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41798 *) ac_try_echo=$ac_try;;
41800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41801 (eval "$ac_try") 2>&5
41803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804 (exit $ac_status); }; }; then
41805 fu_cv_sys_struct_utimbuf=yes
41807 echo "$as_me: failed program was:" >&5
41808 sed 's/^/| /' conftest.$ac_ext >&5
41810 fu_cv_sys_struct_utimbuf=no
41813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41816 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
41817 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
41819 if test $fu_cv_sys_struct_utimbuf = yes; then
41821 cat >>confdefs.h <<\_ACEOF
41822 #define HAVE_STRUCT_UTIMBUF 1
41833 case " $LIBOBJS " in
41834 *" utimens.$ac_objext "* ) ;;
41835 *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
41855 case " $LIBOBJS " in
41856 *" xmalloc.$ac_objext "* ) ;;
41857 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
41873 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
41874 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
41875 if test "${gl_cv_func_getcwd_null+set}" = set; then
41876 echo $ECHO_N "(cached) $ECHO_C" >&6
41878 if test "$cross_compiling" = yes; then
41879 gl_cv_func_getcwd_null=no
41881 cat >conftest.$ac_ext <<_ACEOF
41884 cat confdefs.h >>conftest.$ac_ext
41885 cat >>conftest.$ac_ext <<_ACEOF
41886 /* end confdefs.h. */
41888 # include <stdlib.h>
41889 # include <unistd.h>
41896 if (chdir ("/") != 0)
41900 char *f = getcwd (NULL, 0);
41901 exit (! (f && f[0] == '/' && !f[1]));
41905 rm -f conftest$ac_exeext
41906 if { (ac_try="$ac_link"
41907 case "(($ac_try" in
41908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41909 *) ac_try_echo=$ac_try;;
41911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41912 (eval "$ac_link") 2>&5
41914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41916 { (case "(($ac_try" in
41917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41918 *) ac_try_echo=$ac_try;;
41920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41921 (eval "$ac_try") 2>&5
41923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); }; }; then
41925 gl_cv_func_getcwd_null=yes
41927 echo "$as_me: program exited with status $ac_status" >&5
41928 echo "$as_me: failed program was:" >&5
41929 sed 's/^/| /' conftest.$ac_ext >&5
41931 ( exit $ac_status )
41932 gl_cv_func_getcwd_null=no
41934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41939 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
41940 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
41942 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
41943 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
41944 if test "${ac_cv_have_decl_getcwd+set}" = set; then
41945 echo $ECHO_N "(cached) $ECHO_C" >&6
41947 cat >conftest.$ac_ext <<_ACEOF
41950 cat confdefs.h >>conftest.$ac_ext
41951 cat >>conftest.$ac_ext <<_ACEOF
41952 /* end confdefs.h. */
41953 $ac_includes_default
41958 char *p = (char *) getcwd;
41966 rm -f conftest.$ac_objext
41967 if { (ac_try="$ac_compile"
41968 case "(($ac_try" in
41969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41970 *) ac_try_echo=$ac_try;;
41972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41973 (eval "$ac_compile") 2>conftest.er1
41975 grep -v '^ *+' conftest.er1 >conftest.err
41977 cat conftest.err >&5
41978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979 (exit $ac_status); } &&
41980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41981 { (case "(($ac_try" in
41982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41983 *) ac_try_echo=$ac_try;;
41985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41986 (eval "$ac_try") 2>&5
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); }; } &&
41990 { ac_try='test -s conftest.$ac_objext'
41991 { (case "(($ac_try" in
41992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41993 *) ac_try_echo=$ac_try;;
41995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41996 (eval "$ac_try") 2>&5
41998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999 (exit $ac_status); }; }; then
42000 ac_cv_have_decl_getcwd=yes
42002 echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42005 ac_cv_have_decl_getcwd=no
42008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42010 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
42011 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
42012 if test $ac_cv_have_decl_getcwd = yes; then
42014 cat >>confdefs.h <<_ACEOF
42015 #define HAVE_DECL_GETCWD 1
42020 cat >>confdefs.h <<_ACEOF
42021 #define HAVE_DECL_GETCWD 0
42032 case $gl_cv_func_getcwd_null in
42040 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
42041 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
42042 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
42043 echo $ECHO_N "(cached) $ECHO_C" >&6
42045 # Arrange for deletion of the temporary directory this test creates.
42046 ac_clean_files="$ac_clean_files confdir3"
42047 if test "$cross_compiling" = yes; then
42048 gl_cv_func_getcwd_path_max=no
42050 cat >conftest.$ac_ext <<_ACEOF
42053 cat confdefs.h >>conftest.$ac_ext
42054 cat >>conftest.$ac_ext <<_ACEOF
42055 /* end confdefs.h. */
42058 #include <stdlib.h>
42059 #include <unistd.h>
42060 #include <string.h>
42061 #include <limits.h>
42062 #include <sys/stat.h>
42063 #include <sys/types.h>
42067 # define AT_FDCWD 0
42069 #ifdef ENAMETOOLONG
42070 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
42072 # define is_ENAMETOOLONG(x) 0
42075 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
42079 # define S_IRWXU 0700
42082 /* The length of this name must be 8. */
42083 #define DIR_NAME "confdir3"
42084 #define DIR_NAME_LEN 8
42085 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
42087 /* The length of "../". */
42088 #define DOTDOTSLASH_LEN 3
42090 /* Leftover bytes in the buffer, to work around library or OS bugs. */
42091 #define BUF_SLOP 20
42097 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
42098 at least not on a local file system. And if we were to start worrying
42099 about remote file systems, we'd have to enable the wrapper function
42100 all of the time, just to be safe. That's not worth the cost. */
42102 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
42103 - DIR_NAME_SIZE - BUF_SLOP) \
42105 /* FIXME: Assuming there's a system for which this is true,
42106 this should be done in a compile test. */
42109 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
42110 + DIR_NAME_SIZE + BUF_SLOP];
42111 char *cwd = getcwd (buf, PATH_MAX);
42112 size_t initial_cwd_len;
42115 size_t n_chdirs = 0;
42120 cwd_len = initial_cwd_len = strlen (cwd);
42124 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
42127 cwd_len += DIR_NAME_SIZE;
42128 /* If mkdir or chdir fails, it could be that this system cannot create
42129 any file with an absolute name longer than PATH_MAX, such as cygwin.
42130 If so, leave fail as 0, because the current working directory can't
42131 be too long for getcwd if it can't even be created. For other
42132 errors, be pessimistic and consider that as a failure, too. */
42133 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
42135 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
42140 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
42142 c = getcwd (buf, PATH_MAX);
42143 if (!c && errno == ENOENT)
42148 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
42155 if (dotdot_max <= cwd_len - initial_cwd_len)
42157 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
42159 c = getcwd (buf, cwd_len + 1);
42162 if (! (errno == ERANGE || errno == ENOENT
42163 || is_ENAMETOOLONG (errno)))
42168 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
42176 if (c && strlen (c) != cwd_len)
42184 /* Leaving behind such a deep directory is not polite.
42185 So clean up here, right away, even though the driving
42186 shell script would also clean up. */
42190 /* Try rmdir first, in case the chdir failed. */
42192 for (i = 0; i <= n_chdirs; i++)
42194 if (chdir ("..") < 0)
42205 rm -f conftest$ac_exeext
42206 if { (ac_try="$ac_link"
42207 case "(($ac_try" in
42208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42209 *) ac_try_echo=$ac_try;;
42211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42212 (eval "$ac_link") 2>&5
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42216 { (case "(($ac_try" in
42217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42218 *) ac_try_echo=$ac_try;;
42220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42221 (eval "$ac_try") 2>&5
42223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224 (exit $ac_status); }; }; then
42225 gl_cv_func_getcwd_path_max=yes
42227 echo "$as_me: program exited with status $ac_status" >&5
42228 echo "$as_me: failed program was:" >&5
42229 sed 's/^/| /' conftest.$ac_ext >&5
42231 ( exit $ac_status )
42233 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
42234 *) gl_cv_func_getcwd_path_max=no;;
42237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42243 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
42244 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
42245 case $gl_cv_func_getcwd_path_max in
42248 cat >>confdefs.h <<\_ACEOF
42249 #define HAVE_PARTLY_WORKING_GETCWD 1
42260 for ac_func in getpagesize
42262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42266 echo $ECHO_N "(cached) $ECHO_C" >&6
42268 cat >conftest.$ac_ext <<_ACEOF
42271 cat confdefs.h >>conftest.$ac_ext
42272 cat >>conftest.$ac_ext <<_ACEOF
42273 /* end confdefs.h. */
42274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42276 #define $ac_func innocuous_$ac_func
42278 /* System header to define __stub macros and hopefully few prototypes,
42279 which can conflict with char $ac_func (); below.
42280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42281 <limits.h> exists even on freestanding compilers. */
42284 # include <limits.h>
42286 # include <assert.h>
42291 /* Override any GCC internal prototype to avoid an error.
42292 Use char because int might match the return type of a GCC
42293 builtin and then its argument prototype would still apply. */
42298 /* The GNU C library defines this for functions which it implements
42299 to always fail with ENOSYS. Some functions are actually named
42300 something starting with __ and the normal name is an alias. */
42301 #if defined __stub_$ac_func || defined __stub___$ac_func
42308 return $ac_func ();
42313 rm -f conftest.$ac_objext conftest$ac_exeext
42314 if { (ac_try="$ac_link"
42315 case "(($ac_try" in
42316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317 *) ac_try_echo=$ac_try;;
42319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42320 (eval "$ac_link") 2>conftest.er1
42322 grep -v '^ *+' conftest.er1 >conftest.err
42324 cat conftest.err >&5
42325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326 (exit $ac_status); } &&
42327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42328 { (case "(($ac_try" in
42329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330 *) ac_try_echo=$ac_try;;
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333 (eval "$ac_try") 2>&5
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); }; } &&
42337 { ac_try='test -s conftest$ac_exeext'
42338 { (case "(($ac_try" in
42339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42340 *) ac_try_echo=$ac_try;;
42342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42343 (eval "$ac_try") 2>&5
42345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346 (exit $ac_status); }; }; then
42347 eval "$as_ac_var=yes"
42349 echo "$as_me: failed program was:" >&5
42350 sed 's/^/| /' conftest.$ac_ext >&5
42352 eval "$as_ac_var=no"
42355 rm -f core conftest.err conftest.$ac_objext \
42356 conftest$ac_exeext conftest.$ac_ext
42358 ac_res=`eval echo '${'$as_ac_var'}'`
42359 { echo "$as_me:$LINENO: result: $ac_res" >&5
42360 echo "${ECHO_T}$ac_res" >&6; }
42361 if test `eval echo '${'$as_ac_var'}'` = yes; then
42362 cat >>confdefs.h <<_ACEOF
42363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42369 { echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
42370 echo $ECHO_N "checking whether getcwd aborts when 4k < cwd_length < 16k... $ECHO_C" >&6; }
42371 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
42372 echo $ECHO_N "(cached) $ECHO_C" >&6
42374 # Remove any remnants of a previous test.
42375 rm -rf confdir-14B---
42376 # Arrange for deletion of the temporary directory this test creates.
42377 ac_clean_files="$ac_clean_files confdir-14B---"
42378 if test "$cross_compiling" = yes; then
42379 gl_cv_func_getcwd_abort_bug=yes
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42388 #include <stdlib.h>
42389 #include <unistd.h>
42390 #include <limits.h>
42391 #include <string.h>
42392 #include <sys/stat.h>
42394 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
42398 # define S_IRWXU 0700
42401 /* FIXME: skip the run-test altogether on systems without getpagesize. */
42402 #if ! HAVE_GETPAGESIZE
42403 # define getpagesize() 0
42406 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
42407 the 16kB pagesize on ia64 linux. Those conditions make the code below
42408 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
42409 #define TARGET_LEN (5 * 1024)
42414 char const *dir_name = "confdir-14B---";
42416 size_t initial_cwd_len;
42418 size_t desired_depth;
42421 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
42422 this relative expensive and invasive test if that's not true. */
42423 if (getpagesize () <= PATH_MAX)
42426 cwd = getcwd (NULL, 0);
42430 initial_cwd_len = strlen (cwd);
42432 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
42433 / (1 + strlen (dir_name)));
42434 for (d = 0; d < desired_depth; d++)
42436 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
42438 fail = 3; /* Unable to construct deep hierarchy. */
42443 /* If libc has the bug in question, this invocation of getcwd
42444 results in a failed assertion. */
42445 cwd = getcwd (NULL, 0);
42447 fail = 4; /* getcwd failed. This is ok, and expected. */
42450 /* Call rmdir first, in case the above chdir failed. */
42454 if (chdir ("..") < 0)
42463 rm -f conftest$ac_exeext
42464 if { (ac_try="$ac_link"
42465 case "(($ac_try" in
42466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42467 *) ac_try_echo=$ac_try;;
42469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42470 (eval "$ac_link") 2>&5
42472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42474 { (case "(($ac_try" in
42475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42476 *) ac_try_echo=$ac_try;;
42478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42479 (eval "$ac_try") 2>&5
42481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42482 (exit $ac_status); }; }; then
42483 gl_cv_func_getcwd_abort_bug=no
42485 echo "$as_me: program exited with status $ac_status" >&5
42486 echo "$as_me: failed program was:" >&5
42487 sed 's/^/| /' conftest.$ac_ext >&5
42489 ( exit $ac_status )
42490 gl_cv_func_getcwd_abort_bug=yes
42492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42498 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
42499 echo "${ECHO_T}$gl_cv_func_getcwd_abort_bug" >&6; }
42500 if test $gl_cv_func_getcwd_abort_bug = yes; then
42507 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
42510 case " $LIBOBJS " in
42511 *" getcwd.$ac_objext "* ) ;;
42512 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
42517 cat >>confdefs.h <<\_ACEOF
42518 #define __GETCWD_PREFIX rpl_
42530 case " $LIBOBJS " in
42531 *" xgetcwd.$ac_objext "* ) ;;
42532 *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
42541 case " $LIBOBJS " in
42542 *" xnanosleep.$ac_objext "* ) ;;
42543 *) LIBOBJS="$LIBOBJS xnanosleep.$ac_objext"
42550 case " $LIBOBJS " in
42551 *" xreadlink.$ac_objext "* ) ;;
42552 *) LIBOBJS="$LIBOBJS xreadlink.$ac_objext"
42561 case " $LIBOBJS " in
42562 *" xstrtod.$ac_objext "* ) ;;
42563 *) LIBOBJS="$LIBOBJS xstrtod.$ac_objext"
42572 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
42573 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
42574 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
42575 echo $ECHO_N "(cached) $ECHO_C" >&6
42577 cat >conftest.$ac_ext <<_ACEOF
42580 cat confdefs.h >>conftest.$ac_ext
42581 cat >>conftest.$ac_ext <<_ACEOF
42582 /* end confdefs.h. */
42583 $ac_includes_default
42588 char *p = (char *) strtoimax;
42596 rm -f conftest.$ac_objext
42597 if { (ac_try="$ac_compile"
42598 case "(($ac_try" in
42599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42600 *) ac_try_echo=$ac_try;;
42602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42603 (eval "$ac_compile") 2>conftest.er1
42605 grep -v '^ *+' conftest.er1 >conftest.err
42607 cat conftest.err >&5
42608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609 (exit $ac_status); } &&
42610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42611 { (case "(($ac_try" in
42612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42613 *) ac_try_echo=$ac_try;;
42615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42616 (eval "$ac_try") 2>&5
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); }; } &&
42620 { ac_try='test -s conftest.$ac_objext'
42621 { (case "(($ac_try" in
42622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42623 *) ac_try_echo=$ac_try;;
42625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42626 (eval "$ac_try") 2>&5
42628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629 (exit $ac_status); }; }; then
42630 ac_cv_have_decl_strtoimax=yes
42632 echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42635 ac_cv_have_decl_strtoimax=no
42638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
42641 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
42642 if test $ac_cv_have_decl_strtoimax = yes; then
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_DECL_STRTOIMAX 1
42650 cat >>confdefs.h <<_ACEOF
42651 #define HAVE_DECL_STRTOIMAX 0
42658 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
42659 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
42660 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
42661 echo $ECHO_N "(cached) $ECHO_C" >&6
42663 cat >conftest.$ac_ext <<_ACEOF
42666 cat confdefs.h >>conftest.$ac_ext
42667 cat >>conftest.$ac_ext <<_ACEOF
42668 /* end confdefs.h. */
42669 $ac_includes_default
42674 char *p = (char *) strtoumax;
42682 rm -f conftest.$ac_objext
42683 if { (ac_try="$ac_compile"
42684 case "(($ac_try" in
42685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42686 *) ac_try_echo=$ac_try;;
42688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42689 (eval "$ac_compile") 2>conftest.er1
42691 grep -v '^ *+' conftest.er1 >conftest.err
42693 cat conftest.err >&5
42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695 (exit $ac_status); } &&
42696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42697 { (case "(($ac_try" in
42698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42699 *) ac_try_echo=$ac_try;;
42701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42702 (eval "$ac_try") 2>&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); }; } &&
42706 { ac_try='test -s conftest.$ac_objext'
42707 { (case "(($ac_try" in
42708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42709 *) ac_try_echo=$ac_try;;
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712 (eval "$ac_try") 2>&5
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); }; }; then
42716 ac_cv_have_decl_strtoumax=yes
42718 echo "$as_me: failed program was:" >&5
42719 sed 's/^/| /' conftest.$ac_ext >&5
42721 ac_cv_have_decl_strtoumax=no
42724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
42727 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
42728 if test $ac_cv_have_decl_strtoumax = yes; then
42730 cat >>confdefs.h <<_ACEOF
42731 #define HAVE_DECL_STRTOUMAX 1
42736 cat >>confdefs.h <<_ACEOF
42737 #define HAVE_DECL_STRTOUMAX 0
42760 case " $LIBOBJS " in
42761 *" xstrtol.$ac_objext "* ) ;;
42762 *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext"
42766 case " $LIBOBJS " in
42767 *" xstrtoul.$ac_objext "* ) ;;
42768 *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext"
42778 case " $LIBOBJS " in
42779 *" xstrtold.$ac_objext "* ) ;;
42780 *) LIBOBJS="$LIBOBJS xstrtold.$ac_objext"
42787 case " $LIBOBJS " in
42788 *" yesno.$ac_objext "* ) ;;
42789 *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
42796 { echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
42797 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6; }
42798 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
42799 echo $ECHO_N "(cached) $ECHO_C" >&6
42801 if test "$cross_compiling" = yes; then
42802 ac_cv_func_calloc_0_nonnull=no
42804 cat >conftest.$ac_ext <<_ACEOF
42807 cat confdefs.h >>conftest.$ac_ext
42808 cat >>conftest.$ac_ext <<_ACEOF
42809 /* end confdefs.h. */
42810 $ac_includes_default
42814 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
42819 rm -f conftest$ac_exeext
42820 if { (ac_try="$ac_link"
42821 case "(($ac_try" in
42822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42823 *) ac_try_echo=$ac_try;;
42825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42826 (eval "$ac_link") 2>&5
42828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42830 { (case "(($ac_try" in
42831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42832 *) ac_try_echo=$ac_try;;
42834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42835 (eval "$ac_try") 2>&5
42837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838 (exit $ac_status); }; }; then
42839 ac_cv_func_calloc_0_nonnull=yes
42841 echo "$as_me: program exited with status $ac_status" >&5
42842 echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42845 ( exit $ac_status )
42846 ac_cv_func_calloc_0_nonnull=no
42848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42853 { echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
42854 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6; }
42855 if test $ac_cv_func_calloc_0_nonnull = yes; then
42857 cat >>confdefs.h <<\_ACEOF
42858 #define HAVE_CALLOC 1
42862 cat >>confdefs.h <<\_ACEOF
42863 #define HAVE_CALLOC 0
42866 case " $LIBOBJS " in
42867 *" calloc.$ac_objext "* ) ;;
42868 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
42873 cat >>confdefs.h <<\_ACEOF
42874 #define calloc rpl_calloc
42881 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
42882 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
42883 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
42884 echo $ECHO_N "(cached) $ECHO_C" >&6
42886 cat >conftest.$ac_ext <<_ACEOF
42889 cat confdefs.h >>conftest.$ac_ext
42890 cat >>conftest.$ac_ext <<_ACEOF
42891 /* end confdefs.h. */
42892 $ac_includes_default
42896 #ifndef clearerr_unlocked
42897 char *p = (char *) clearerr_unlocked;
42905 rm -f conftest.$ac_objext
42906 if { (ac_try="$ac_compile"
42907 case "(($ac_try" in
42908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42909 *) ac_try_echo=$ac_try;;
42911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42912 (eval "$ac_compile") 2>conftest.er1
42914 grep -v '^ *+' conftest.er1 >conftest.err
42916 cat conftest.err >&5
42917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918 (exit $ac_status); } &&
42919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42920 { (case "(($ac_try" in
42921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42922 *) ac_try_echo=$ac_try;;
42924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42925 (eval "$ac_try") 2>&5
42927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928 (exit $ac_status); }; } &&
42929 { ac_try='test -s conftest.$ac_objext'
42930 { (case "(($ac_try" in
42931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42932 *) ac_try_echo=$ac_try;;
42934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42935 (eval "$ac_try") 2>&5
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); }; }; then
42939 ac_cv_have_decl_clearerr_unlocked=yes
42941 echo "$as_me: failed program was:" >&5
42942 sed 's/^/| /' conftest.$ac_ext >&5
42944 ac_cv_have_decl_clearerr_unlocked=no
42947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42949 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
42950 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
42951 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
42953 cat >>confdefs.h <<_ACEOF
42954 #define HAVE_DECL_CLEARERR_UNLOCKED 1
42959 cat >>confdefs.h <<_ACEOF
42960 #define HAVE_DECL_CLEARERR_UNLOCKED 0
42967 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
42968 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
42969 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
42970 echo $ECHO_N "(cached) $ECHO_C" >&6
42972 cat >conftest.$ac_ext <<_ACEOF
42975 cat confdefs.h >>conftest.$ac_ext
42976 cat >>conftest.$ac_ext <<_ACEOF
42977 /* end confdefs.h. */
42978 $ac_includes_default
42982 #ifndef feof_unlocked
42983 char *p = (char *) feof_unlocked;
42991 rm -f conftest.$ac_objext
42992 if { (ac_try="$ac_compile"
42993 case "(($ac_try" in
42994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42995 *) ac_try_echo=$ac_try;;
42997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42998 (eval "$ac_compile") 2>conftest.er1
43000 grep -v '^ *+' conftest.er1 >conftest.err
43002 cat conftest.err >&5
43003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); } &&
43005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43006 { (case "(($ac_try" in
43007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43008 *) ac_try_echo=$ac_try;;
43010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43011 (eval "$ac_try") 2>&5
43013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014 (exit $ac_status); }; } &&
43015 { ac_try='test -s conftest.$ac_objext'
43016 { (case "(($ac_try" in
43017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43018 *) ac_try_echo=$ac_try;;
43020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43021 (eval "$ac_try") 2>&5
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; }; then
43025 ac_cv_have_decl_feof_unlocked=yes
43027 echo "$as_me: failed program was:" >&5
43028 sed 's/^/| /' conftest.$ac_ext >&5
43030 ac_cv_have_decl_feof_unlocked=no
43033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43035 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
43036 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
43037 if test $ac_cv_have_decl_feof_unlocked = yes; then
43039 cat >>confdefs.h <<_ACEOF
43040 #define HAVE_DECL_FEOF_UNLOCKED 1
43045 cat >>confdefs.h <<_ACEOF
43046 #define HAVE_DECL_FEOF_UNLOCKED 0
43053 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
43054 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
43055 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
43056 echo $ECHO_N "(cached) $ECHO_C" >&6
43058 cat >conftest.$ac_ext <<_ACEOF
43061 cat confdefs.h >>conftest.$ac_ext
43062 cat >>conftest.$ac_ext <<_ACEOF
43063 /* end confdefs.h. */
43064 $ac_includes_default
43068 #ifndef ferror_unlocked
43069 char *p = (char *) ferror_unlocked;
43077 rm -f conftest.$ac_objext
43078 if { (ac_try="$ac_compile"
43079 case "(($ac_try" in
43080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43081 *) ac_try_echo=$ac_try;;
43083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43084 (eval "$ac_compile") 2>conftest.er1
43086 grep -v '^ *+' conftest.er1 >conftest.err
43088 cat conftest.err >&5
43089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090 (exit $ac_status); } &&
43091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43092 { (case "(($ac_try" in
43093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43094 *) ac_try_echo=$ac_try;;
43096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43097 (eval "$ac_try") 2>&5
43099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100 (exit $ac_status); }; } &&
43101 { ac_try='test -s conftest.$ac_objext'
43102 { (case "(($ac_try" in
43103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43104 *) ac_try_echo=$ac_try;;
43106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43107 (eval "$ac_try") 2>&5
43109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110 (exit $ac_status); }; }; then
43111 ac_cv_have_decl_ferror_unlocked=yes
43113 echo "$as_me: failed program was:" >&5
43114 sed 's/^/| /' conftest.$ac_ext >&5
43116 ac_cv_have_decl_ferror_unlocked=no
43119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43121 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
43122 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
43123 if test $ac_cv_have_decl_ferror_unlocked = yes; then
43125 cat >>confdefs.h <<_ACEOF
43126 #define HAVE_DECL_FERROR_UNLOCKED 1
43131 cat >>confdefs.h <<_ACEOF
43132 #define HAVE_DECL_FERROR_UNLOCKED 0
43139 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
43140 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
43141 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
43142 echo $ECHO_N "(cached) $ECHO_C" >&6
43144 cat >conftest.$ac_ext <<_ACEOF
43147 cat confdefs.h >>conftest.$ac_ext
43148 cat >>conftest.$ac_ext <<_ACEOF
43149 /* end confdefs.h. */
43150 $ac_includes_default
43154 #ifndef fgets_unlocked
43155 char *p = (char *) fgets_unlocked;
43163 rm -f conftest.$ac_objext
43164 if { (ac_try="$ac_compile"
43165 case "(($ac_try" in
43166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43167 *) ac_try_echo=$ac_try;;
43169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43170 (eval "$ac_compile") 2>conftest.er1
43172 grep -v '^ *+' conftest.er1 >conftest.err
43174 cat conftest.err >&5
43175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176 (exit $ac_status); } &&
43177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43178 { (case "(($ac_try" in
43179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43180 *) ac_try_echo=$ac_try;;
43182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43183 (eval "$ac_try") 2>&5
43185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 (exit $ac_status); }; } &&
43187 { ac_try='test -s conftest.$ac_objext'
43188 { (case "(($ac_try" in
43189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190 *) ac_try_echo=$ac_try;;
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193 (eval "$ac_try") 2>&5
43195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196 (exit $ac_status); }; }; then
43197 ac_cv_have_decl_fgets_unlocked=yes
43199 echo "$as_me: failed program was:" >&5
43200 sed 's/^/| /' conftest.$ac_ext >&5
43202 ac_cv_have_decl_fgets_unlocked=no
43205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
43208 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
43209 if test $ac_cv_have_decl_fgets_unlocked = yes; then
43211 cat >>confdefs.h <<_ACEOF
43212 #define HAVE_DECL_FGETS_UNLOCKED 1
43217 cat >>confdefs.h <<_ACEOF
43218 #define HAVE_DECL_FGETS_UNLOCKED 0
43225 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
43226 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
43227 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
43228 echo $ECHO_N "(cached) $ECHO_C" >&6
43230 cat >conftest.$ac_ext <<_ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h. */
43236 $ac_includes_default
43240 #ifndef fputc_unlocked
43241 char *p = (char *) fputc_unlocked;
43249 rm -f conftest.$ac_objext
43250 if { (ac_try="$ac_compile"
43251 case "(($ac_try" in
43252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43253 *) ac_try_echo=$ac_try;;
43255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43256 (eval "$ac_compile") 2>conftest.er1
43258 grep -v '^ *+' conftest.er1 >conftest.err
43260 cat conftest.err >&5
43261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262 (exit $ac_status); } &&
43263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43264 { (case "(($ac_try" in
43265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43266 *) ac_try_echo=$ac_try;;
43268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43269 (eval "$ac_try") 2>&5
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); }; } &&
43273 { ac_try='test -s conftest.$ac_objext'
43274 { (case "(($ac_try" in
43275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43276 *) ac_try_echo=$ac_try;;
43278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43279 (eval "$ac_try") 2>&5
43281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43282 (exit $ac_status); }; }; then
43283 ac_cv_have_decl_fputc_unlocked=yes
43285 echo "$as_me: failed program was:" >&5
43286 sed 's/^/| /' conftest.$ac_ext >&5
43288 ac_cv_have_decl_fputc_unlocked=no
43291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
43294 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
43295 if test $ac_cv_have_decl_fputc_unlocked = yes; then
43297 cat >>confdefs.h <<_ACEOF
43298 #define HAVE_DECL_FPUTC_UNLOCKED 1
43303 cat >>confdefs.h <<_ACEOF
43304 #define HAVE_DECL_FPUTC_UNLOCKED 0
43311 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
43312 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
43313 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
43314 echo $ECHO_N "(cached) $ECHO_C" >&6
43316 cat >conftest.$ac_ext <<_ACEOF
43319 cat confdefs.h >>conftest.$ac_ext
43320 cat >>conftest.$ac_ext <<_ACEOF
43321 /* end confdefs.h. */
43322 $ac_includes_default
43326 #ifndef fread_unlocked
43327 char *p = (char *) fread_unlocked;
43335 rm -f conftest.$ac_objext
43336 if { (ac_try="$ac_compile"
43337 case "(($ac_try" in
43338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43339 *) ac_try_echo=$ac_try;;
43341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43342 (eval "$ac_compile") 2>conftest.er1
43344 grep -v '^ *+' conftest.er1 >conftest.err
43346 cat conftest.err >&5
43347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348 (exit $ac_status); } &&
43349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43350 { (case "(($ac_try" in
43351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43352 *) ac_try_echo=$ac_try;;
43354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43355 (eval "$ac_try") 2>&5
43357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358 (exit $ac_status); }; } &&
43359 { ac_try='test -s conftest.$ac_objext'
43360 { (case "(($ac_try" in
43361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43362 *) ac_try_echo=$ac_try;;
43364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43365 (eval "$ac_try") 2>&5
43367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43368 (exit $ac_status); }; }; then
43369 ac_cv_have_decl_fread_unlocked=yes
43371 echo "$as_me: failed program was:" >&5
43372 sed 's/^/| /' conftest.$ac_ext >&5
43374 ac_cv_have_decl_fread_unlocked=no
43377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
43380 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
43381 if test $ac_cv_have_decl_fread_unlocked = yes; then
43383 cat >>confdefs.h <<_ACEOF
43384 #define HAVE_DECL_FREAD_UNLOCKED 1
43389 cat >>confdefs.h <<_ACEOF
43390 #define HAVE_DECL_FREAD_UNLOCKED 0
43397 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
43398 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
43399 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
43400 echo $ECHO_N "(cached) $ECHO_C" >&6
43402 cat >conftest.$ac_ext <<_ACEOF
43405 cat confdefs.h >>conftest.$ac_ext
43406 cat >>conftest.$ac_ext <<_ACEOF
43407 /* end confdefs.h. */
43408 $ac_includes_default
43412 #ifndef fwrite_unlocked
43413 char *p = (char *) fwrite_unlocked;
43421 rm -f conftest.$ac_objext
43422 if { (ac_try="$ac_compile"
43423 case "(($ac_try" in
43424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425 *) ac_try_echo=$ac_try;;
43427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43428 (eval "$ac_compile") 2>conftest.er1
43430 grep -v '^ *+' conftest.er1 >conftest.err
43432 cat conftest.err >&5
43433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434 (exit $ac_status); } &&
43435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43436 { (case "(($ac_try" in
43437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438 *) ac_try_echo=$ac_try;;
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441 (eval "$ac_try") 2>&5
43443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444 (exit $ac_status); }; } &&
43445 { ac_try='test -s conftest.$ac_objext'
43446 { (case "(($ac_try" in
43447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43448 *) ac_try_echo=$ac_try;;
43450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43451 (eval "$ac_try") 2>&5
43453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454 (exit $ac_status); }; }; then
43455 ac_cv_have_decl_fwrite_unlocked=yes
43457 echo "$as_me: failed program was:" >&5
43458 sed 's/^/| /' conftest.$ac_ext >&5
43460 ac_cv_have_decl_fwrite_unlocked=no
43463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
43466 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
43467 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
43469 cat >>confdefs.h <<_ACEOF
43470 #define HAVE_DECL_FWRITE_UNLOCKED 1
43475 cat >>confdefs.h <<_ACEOF
43476 #define HAVE_DECL_FWRITE_UNLOCKED 0
43483 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
43484 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
43485 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
43486 echo $ECHO_N "(cached) $ECHO_C" >&6
43488 cat >conftest.$ac_ext <<_ACEOF
43491 cat confdefs.h >>conftest.$ac_ext
43492 cat >>conftest.$ac_ext <<_ACEOF
43493 /* end confdefs.h. */
43494 $ac_includes_default
43498 #ifndef getchar_unlocked
43499 char *p = (char *) getchar_unlocked;
43507 rm -f conftest.$ac_objext
43508 if { (ac_try="$ac_compile"
43509 case "(($ac_try" in
43510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43511 *) ac_try_echo=$ac_try;;
43513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43514 (eval "$ac_compile") 2>conftest.er1
43516 grep -v '^ *+' conftest.er1 >conftest.err
43518 cat conftest.err >&5
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); } &&
43521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43522 { (case "(($ac_try" in
43523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524 *) ac_try_echo=$ac_try;;
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527 (eval "$ac_try") 2>&5
43529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43530 (exit $ac_status); }; } &&
43531 { ac_try='test -s conftest.$ac_objext'
43532 { (case "(($ac_try" in
43533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43534 *) ac_try_echo=$ac_try;;
43536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43537 (eval "$ac_try") 2>&5
43539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43540 (exit $ac_status); }; }; then
43541 ac_cv_have_decl_getchar_unlocked=yes
43543 echo "$as_me: failed program was:" >&5
43544 sed 's/^/| /' conftest.$ac_ext >&5
43546 ac_cv_have_decl_getchar_unlocked=no
43549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
43552 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
43553 if test $ac_cv_have_decl_getchar_unlocked = yes; then
43555 cat >>confdefs.h <<_ACEOF
43556 #define HAVE_DECL_GETCHAR_UNLOCKED 1
43561 cat >>confdefs.h <<_ACEOF
43562 #define HAVE_DECL_GETCHAR_UNLOCKED 0
43569 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
43570 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
43571 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
43572 echo $ECHO_N "(cached) $ECHO_C" >&6
43574 cat >conftest.$ac_ext <<_ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h. */
43580 $ac_includes_default
43584 #ifndef putchar_unlocked
43585 char *p = (char *) putchar_unlocked;
43593 rm -f conftest.$ac_objext
43594 if { (ac_try="$ac_compile"
43595 case "(($ac_try" in
43596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43597 *) ac_try_echo=$ac_try;;
43599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43600 (eval "$ac_compile") 2>conftest.er1
43602 grep -v '^ *+' conftest.er1 >conftest.err
43604 cat conftest.err >&5
43605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); } &&
43607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43608 { (case "(($ac_try" in
43609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43610 *) ac_try_echo=$ac_try;;
43612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43613 (eval "$ac_try") 2>&5
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); }; } &&
43617 { ac_try='test -s conftest.$ac_objext'
43618 { (case "(($ac_try" in
43619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43620 *) ac_try_echo=$ac_try;;
43622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43623 (eval "$ac_try") 2>&5
43625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626 (exit $ac_status); }; }; then
43627 ac_cv_have_decl_putchar_unlocked=yes
43629 echo "$as_me: failed program was:" >&5
43630 sed 's/^/| /' conftest.$ac_ext >&5
43632 ac_cv_have_decl_putchar_unlocked=no
43635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
43638 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
43639 if test $ac_cv_have_decl_putchar_unlocked = yes; then
43641 cat >>confdefs.h <<_ACEOF
43642 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
43647 cat >>confdefs.h <<_ACEOF
43648 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
43659 cat >>confdefs.h <<\_ACEOF
43660 #define USE_UNLOCKED_IO 1
43727 case " $LIBOBJS " in
43728 *" strftime.$ac_objext "* ) ;;
43729 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
43734 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
43763 cat >>confdefs.h <<\_ACEOF
43764 #define my_strftime nstrftime
43770 for ac_header in stdlib.h
43772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43777 echo $ECHO_N "(cached) $ECHO_C" >&6
43779 ac_res=`eval echo '${'$as_ac_Header'}'`
43780 { echo "$as_me:$LINENO: result: $ac_res" >&5
43781 echo "${ECHO_T}$ac_res" >&6; }
43783 # Is the header compilable?
43784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43786 cat >conftest.$ac_ext <<_ACEOF
43789 cat confdefs.h >>conftest.$ac_ext
43790 cat >>conftest.$ac_ext <<_ACEOF
43791 /* end confdefs.h. */
43792 $ac_includes_default
43793 #include <$ac_header>
43795 rm -f conftest.$ac_objext
43796 if { (ac_try="$ac_compile"
43797 case "(($ac_try" in
43798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43799 *) ac_try_echo=$ac_try;;
43801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43802 (eval "$ac_compile") 2>conftest.er1
43804 grep -v '^ *+' conftest.er1 >conftest.err
43806 cat conftest.err >&5
43807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808 (exit $ac_status); } &&
43809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43810 { (case "(($ac_try" in
43811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43812 *) ac_try_echo=$ac_try;;
43814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43815 (eval "$ac_try") 2>&5
43817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43818 (exit $ac_status); }; } &&
43819 { ac_try='test -s conftest.$ac_objext'
43820 { (case "(($ac_try" in
43821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43822 *) ac_try_echo=$ac_try;;
43824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43825 (eval "$ac_try") 2>&5
43827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; }; then
43829 ac_header_compiler=yes
43831 echo "$as_me: failed program was:" >&5
43832 sed 's/^/| /' conftest.$ac_ext >&5
43834 ac_header_compiler=no
43837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43839 echo "${ECHO_T}$ac_header_compiler" >&6; }
43841 # Is the header present?
43842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43844 cat >conftest.$ac_ext <<_ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h. */
43850 #include <$ac_header>
43852 if { (ac_try="$ac_cpp conftest.$ac_ext"
43853 case "(($ac_try" in
43854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43855 *) ac_try_echo=$ac_try;;
43857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43860 grep -v '^ *+' conftest.er1 >conftest.err
43862 cat conftest.err >&5
43863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864 (exit $ac_status); } >/dev/null; then
43865 if test -s conftest.err; then
43866 ac_cpp_err=$ac_c_preproc_warn_flag
43867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43874 if test -z "$ac_cpp_err"; then
43875 ac_header_preproc=yes
43877 echo "$as_me: failed program was:" >&5
43878 sed 's/^/| /' conftest.$ac_ext >&5
43880 ac_header_preproc=no
43883 rm -f conftest.err conftest.$ac_ext
43884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43885 echo "${ECHO_T}$ac_header_preproc" >&6; }
43887 # So? What about this header?
43888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43894 ac_header_preproc=yes
43897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43910 ## ------------------------------------ ##
43911 ## Report this to bug-coreutils@gnu.org ##
43912 ## ------------------------------------ ##
43914 ) | sed "s/^/$as_me: WARNING: /" >&2
43917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43920 echo $ECHO_N "(cached) $ECHO_C" >&6
43922 eval "$as_ac_Header=\$ac_header_preproc"
43924 ac_res=`eval echo '${'$as_ac_Header'}'`
43925 { echo "$as_me:$LINENO: result: $ac_res" >&5
43926 echo "${ECHO_T}$ac_res" >&6; }
43929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43930 cat >>confdefs.h <<_ACEOF
43931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43938 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
43939 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
43940 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
43941 echo $ECHO_N "(cached) $ECHO_C" >&6
43943 if test "$cross_compiling" = yes; then
43944 ac_cv_func_malloc_0_nonnull=no
43946 cat >conftest.$ac_ext <<_ACEOF
43949 cat confdefs.h >>conftest.$ac_ext
43950 cat >>conftest.$ac_ext <<_ACEOF
43951 /* end confdefs.h. */
43952 #if STDC_HEADERS || HAVE_STDLIB_H
43953 # include <stdlib.h>
43961 return ! malloc (0);
43966 rm -f conftest$ac_exeext
43967 if { (ac_try="$ac_link"
43968 case "(($ac_try" in
43969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43970 *) ac_try_echo=$ac_try;;
43972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43973 (eval "$ac_link") 2>&5
43975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43977 { (case "(($ac_try" in
43978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43979 *) ac_try_echo=$ac_try;;
43981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43982 (eval "$ac_try") 2>&5
43984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; }; then
43986 ac_cv_func_malloc_0_nonnull=yes
43988 echo "$as_me: program exited with status $ac_status" >&5
43989 echo "$as_me: failed program was:" >&5
43990 sed 's/^/| /' conftest.$ac_ext >&5
43992 ( exit $ac_status )
43993 ac_cv_func_malloc_0_nonnull=no
43995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44000 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
44001 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
44002 if test $ac_cv_func_malloc_0_nonnull = yes; then
44004 cat >>confdefs.h <<\_ACEOF
44005 #define HAVE_MALLOC 1
44009 cat >>confdefs.h <<\_ACEOF
44010 #define HAVE_MALLOC 0
44013 case " $LIBOBJS " in
44014 *" malloc.$ac_objext "* ) ;;
44015 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
44020 cat >>confdefs.h <<\_ACEOF
44021 #define malloc rpl_malloc
44028 { echo "$as_me:$LINENO: checking for working memcmp" >&5
44029 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
44030 if test "${ac_cv_func_memcmp_working+set}" = set; then
44031 echo $ECHO_N "(cached) $ECHO_C" >&6
44033 if test "$cross_compiling" = yes; then
44034 ac_cv_func_memcmp_working=no
44036 cat >conftest.$ac_ext <<_ACEOF
44039 cat confdefs.h >>conftest.$ac_ext
44040 cat >>conftest.$ac_ext <<_ACEOF
44041 /* end confdefs.h. */
44042 $ac_includes_default
44047 /* Some versions of memcmp are not 8-bit clean. */
44048 char c0 = '\100', c1 = '\200', c2 = '\201';
44049 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
44052 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
44053 or more and with at least one buffer not starting on a 4-byte boundary.
44054 William Lewis provided this test program. */
44059 for (i = 0; i < 4; i++)
44063 strcpy (a, "--------01111111");
44064 strcpy (b, "--------10000000");
44065 if (memcmp (a, b, 16) >= 0)
44075 rm -f conftest$ac_exeext
44076 if { (ac_try="$ac_link"
44077 case "(($ac_try" in
44078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44079 *) ac_try_echo=$ac_try;;
44081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44082 (eval "$ac_link") 2>&5
44084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44086 { (case "(($ac_try" in
44087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44088 *) ac_try_echo=$ac_try;;
44090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44091 (eval "$ac_try") 2>&5
44093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44094 (exit $ac_status); }; }; then
44095 ac_cv_func_memcmp_working=yes
44097 echo "$as_me: program exited with status $ac_status" >&5
44098 echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44101 ( exit $ac_status )
44102 ac_cv_func_memcmp_working=no
44104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44109 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
44110 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
44111 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
44112 *" memcmp.$ac_objext "* ) ;;
44113 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
44120 if test $ac_cv_func_memcmp_working = no; then
44122 cat >>confdefs.h <<\_ACEOF
44123 #define memcmp rpl_memcmp
44146 nanosleep_save_libs=$LIBS
44148 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
44149 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
44150 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
44151 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
44152 if test "${ac_cv_search_nanosleep+set}" = set; then
44153 echo $ECHO_N "(cached) $ECHO_C" >&6
44155 ac_func_search_save_LIBS=$LIBS
44156 cat >conftest.$ac_ext <<_ACEOF
44159 cat confdefs.h >>conftest.$ac_ext
44160 cat >>conftest.$ac_ext <<_ACEOF
44161 /* end confdefs.h. */
44163 /* Override any GCC internal prototype to avoid an error.
44164 Use char because int might match the return type of a GCC
44165 builtin and then its argument prototype would still apply. */
44173 return nanosleep ();
44178 for ac_lib in '' rt posix4; do
44179 if test -z "$ac_lib"; then
44180 ac_res="none required"
44183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
44185 rm -f conftest.$ac_objext conftest$ac_exeext
44186 if { (ac_try="$ac_link"
44187 case "(($ac_try" in
44188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44189 *) ac_try_echo=$ac_try;;
44191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44192 (eval "$ac_link") 2>conftest.er1
44194 grep -v '^ *+' conftest.er1 >conftest.err
44196 cat conftest.err >&5
44197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198 (exit $ac_status); } &&
44199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44200 { (case "(($ac_try" in
44201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44202 *) ac_try_echo=$ac_try;;
44204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44205 (eval "$ac_try") 2>&5
44207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44208 (exit $ac_status); }; } &&
44209 { ac_try='test -s conftest$ac_exeext'
44210 { (case "(($ac_try" in
44211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44212 *) ac_try_echo=$ac_try;;
44214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44215 (eval "$ac_try") 2>&5
44217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218 (exit $ac_status); }; }; then
44219 ac_cv_search_nanosleep=$ac_res
44221 echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44227 rm -f core conftest.err conftest.$ac_objext \
44229 if test "${ac_cv_search_nanosleep+set}" = set; then
44233 if test "${ac_cv_search_nanosleep+set}" = set; then
44236 ac_cv_search_nanosleep=no
44238 rm conftest.$ac_ext
44239 LIBS=$ac_func_search_save_LIBS
44241 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
44242 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
44243 ac_res=$ac_cv_search_nanosleep
44244 if test "$ac_res" != no; then
44245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44246 test "$ac_cv_search_nanosleep" = "none required" ||
44247 LIB_NANOSLEEP=$ac_cv_search_nanosleep
44252 { echo "$as_me:$LINENO: checking for nanosleep" >&5
44253 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
44254 if test "${gl_cv_func_nanosleep+set}" = set; then
44255 echo $ECHO_N "(cached) $ECHO_C" >&6
44258 cat >conftest.$ac_ext <<_ACEOF
44261 cat confdefs.h >>conftest.$ac_ext
44262 cat >>conftest.$ac_ext <<_ACEOF
44263 /* end confdefs.h. */
44265 # if TIME_WITH_SYS_TIME
44266 # include <sys/time.h>
44269 # if HAVE_SYS_TIME_H
44270 # include <sys/time.h>
44279 struct timespec ts_sleep, ts_remaining;
44280 ts_sleep.tv_sec = 0;
44281 ts_sleep.tv_nsec = 1;
44282 return nanosleep (&ts_sleep, &ts_remaining) < 0;
44286 rm -f conftest.$ac_objext conftest$ac_exeext
44287 if { (ac_try="$ac_link"
44288 case "(($ac_try" in
44289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290 *) ac_try_echo=$ac_try;;
44292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44293 (eval "$ac_link") 2>conftest.er1
44295 grep -v '^ *+' conftest.er1 >conftest.err
44297 cat conftest.err >&5
44298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299 (exit $ac_status); } &&
44300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44301 { (case "(($ac_try" in
44302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44303 *) ac_try_echo=$ac_try;;
44305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44306 (eval "$ac_try") 2>&5
44308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309 (exit $ac_status); }; } &&
44310 { ac_try='test -s conftest$ac_exeext'
44311 { (case "(($ac_try" in
44312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44313 *) ac_try_echo=$ac_try;;
44315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44316 (eval "$ac_try") 2>&5
44318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44319 (exit $ac_status); }; }; then
44320 gl_cv_func_nanosleep=yes
44322 echo "$as_me: failed program was:" >&5
44323 sed 's/^/| /' conftest.$ac_ext >&5
44325 gl_cv_func_nanosleep=no
44328 rm -f core conftest.err conftest.$ac_objext \
44329 conftest$ac_exeext conftest.$ac_ext
44332 { echo "$as_me:$LINENO: result: $gl_cv_func_nanosleep" >&5
44333 echo "${ECHO_T}$gl_cv_func_nanosleep" >&6; }
44334 if test $gl_cv_func_nanosleep = no; then
44335 case " $LIBOBJS " in
44336 *" nanosleep.$ac_objext "* ) ;;
44337 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
44342 cat >>confdefs.h <<\_ACEOF
44343 #define nanosleep rpl_nanosleep
44362 LIBS=$nanosleep_save_libs
44364 { echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
44365 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6; }
44366 if test "${jm_cv_func_svid_putenv+set}" = set; then
44367 echo $ECHO_N "(cached) $ECHO_C" >&6
44369 if test "$cross_compiling" = yes; then
44370 jm_cv_func_svid_putenv=no
44372 cat >conftest.$ac_ext <<_ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h. */
44382 /* Put it in env. */
44383 if (putenv ("CONFTEST_putenv=val"))
44386 /* Try to remove it. */
44387 if (putenv ("CONFTEST_putenv"))
44390 /* Make sure it was deleted. */
44391 if (getenv ("CONFTEST_putenv") != 0)
44398 rm -f conftest$ac_exeext
44399 if { (ac_try="$ac_link"
44400 case "(($ac_try" in
44401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44402 *) ac_try_echo=$ac_try;;
44404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44405 (eval "$ac_link") 2>&5
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44409 { (case "(($ac_try" in
44410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44411 *) ac_try_echo=$ac_try;;
44413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44414 (eval "$ac_try") 2>&5
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); }; }; then
44418 jm_cv_func_svid_putenv=yes
44420 echo "$as_me: program exited with status $ac_status" >&5
44421 echo "$as_me: failed program was:" >&5
44422 sed 's/^/| /' conftest.$ac_ext >&5
44424 ( exit $ac_status )
44425 jm_cv_func_svid_putenv=no
44427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44433 { echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
44434 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6; }
44435 if test $jm_cv_func_svid_putenv = no; then
44436 case " $LIBOBJS " in
44437 *" putenv.$ac_objext "* ) ;;
44438 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
44443 cat >>confdefs.h <<\_ACEOF
44444 #define putenv rpl_putenv
44450 for ac_header in stdlib.h
44452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44457 echo $ECHO_N "(cached) $ECHO_C" >&6
44459 ac_res=`eval echo '${'$as_ac_Header'}'`
44460 { echo "$as_me:$LINENO: result: $ac_res" >&5
44461 echo "${ECHO_T}$ac_res" >&6; }
44463 # Is the header compilable?
44464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44466 cat >conftest.$ac_ext <<_ACEOF
44469 cat confdefs.h >>conftest.$ac_ext
44470 cat >>conftest.$ac_ext <<_ACEOF
44471 /* end confdefs.h. */
44472 $ac_includes_default
44473 #include <$ac_header>
44475 rm -f conftest.$ac_objext
44476 if { (ac_try="$ac_compile"
44477 case "(($ac_try" in
44478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44479 *) ac_try_echo=$ac_try;;
44481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44482 (eval "$ac_compile") 2>conftest.er1
44484 grep -v '^ *+' conftest.er1 >conftest.err
44486 cat conftest.err >&5
44487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488 (exit $ac_status); } &&
44489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44490 { (case "(($ac_try" in
44491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44492 *) ac_try_echo=$ac_try;;
44494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44495 (eval "$ac_try") 2>&5
44497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; } &&
44499 { ac_try='test -s conftest.$ac_objext'
44500 { (case "(($ac_try" in
44501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44502 *) ac_try_echo=$ac_try;;
44504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44505 (eval "$ac_try") 2>&5
44507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508 (exit $ac_status); }; }; then
44509 ac_header_compiler=yes
44511 echo "$as_me: failed program was:" >&5
44512 sed 's/^/| /' conftest.$ac_ext >&5
44514 ac_header_compiler=no
44517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44519 echo "${ECHO_T}$ac_header_compiler" >&6; }
44521 # Is the header present?
44522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44524 cat >conftest.$ac_ext <<_ACEOF
44527 cat confdefs.h >>conftest.$ac_ext
44528 cat >>conftest.$ac_ext <<_ACEOF
44529 /* end confdefs.h. */
44530 #include <$ac_header>
44532 if { (ac_try="$ac_cpp conftest.$ac_ext"
44533 case "(($ac_try" in
44534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44535 *) ac_try_echo=$ac_try;;
44537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44540 grep -v '^ *+' conftest.er1 >conftest.err
44542 cat conftest.err >&5
44543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544 (exit $ac_status); } >/dev/null; then
44545 if test -s conftest.err; then
44546 ac_cpp_err=$ac_c_preproc_warn_flag
44547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44554 if test -z "$ac_cpp_err"; then
44555 ac_header_preproc=yes
44557 echo "$as_me: failed program was:" >&5
44558 sed 's/^/| /' conftest.$ac_ext >&5
44560 ac_header_preproc=no
44563 rm -f conftest.err conftest.$ac_ext
44564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44565 echo "${ECHO_T}$ac_header_preproc" >&6; }
44567 # So? What about this header?
44568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44574 ac_header_preproc=yes
44577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44590 ## ------------------------------------ ##
44591 ## Report this to bug-coreutils@gnu.org ##
44592 ## ------------------------------------ ##
44594 ) | sed "s/^/$as_me: WARNING: /" >&2
44597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44600 echo $ECHO_N "(cached) $ECHO_C" >&6
44602 eval "$as_ac_Header=\$ac_header_preproc"
44604 ac_res=`eval echo '${'$as_ac_Header'}'`
44605 { echo "$as_me:$LINENO: result: $ac_res" >&5
44606 echo "${ECHO_T}$ac_res" >&6; }
44609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44610 cat >>confdefs.h <<_ACEOF
44611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44618 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
44619 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
44620 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
44621 echo $ECHO_N "(cached) $ECHO_C" >&6
44623 if test "$cross_compiling" = yes; then
44624 ac_cv_func_realloc_0_nonnull=no
44626 cat >conftest.$ac_ext <<_ACEOF
44629 cat confdefs.h >>conftest.$ac_ext
44630 cat >>conftest.$ac_ext <<_ACEOF
44631 /* end confdefs.h. */
44632 #if STDC_HEADERS || HAVE_STDLIB_H
44633 # include <stdlib.h>
44641 return ! realloc (0, 0);
44646 rm -f conftest$ac_exeext
44647 if { (ac_try="$ac_link"
44648 case "(($ac_try" in
44649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44650 *) ac_try_echo=$ac_try;;
44652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44653 (eval "$ac_link") 2>&5
44655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44657 { (case "(($ac_try" in
44658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44659 *) ac_try_echo=$ac_try;;
44661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44662 (eval "$ac_try") 2>&5
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); }; }; then
44666 ac_cv_func_realloc_0_nonnull=yes
44668 echo "$as_me: program exited with status $ac_status" >&5
44669 echo "$as_me: failed program was:" >&5
44670 sed 's/^/| /' conftest.$ac_ext >&5
44672 ( exit $ac_status )
44673 ac_cv_func_realloc_0_nonnull=no
44675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44680 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
44681 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
44682 if test $ac_cv_func_realloc_0_nonnull = yes; then
44684 cat >>confdefs.h <<\_ACEOF
44685 #define HAVE_REALLOC 1
44689 cat >>confdefs.h <<\_ACEOF
44690 #define HAVE_REALLOC 0
44693 case " $LIBOBJS " in
44694 *" realloc.$ac_objext "* ) ;;
44695 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
44700 cat >>confdefs.h <<\_ACEOF
44701 #define realloc rpl_realloc
44708 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
44709 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
44710 if test "${ac_cv_func_utime_null+set}" = set; then
44711 echo $ECHO_N "(cached) $ECHO_C" >&6
44713 rm -f conftest.data; >conftest.data
44714 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
44715 if test "$cross_compiling" = yes; then
44716 ac_cv_func_utime_null=no
44718 cat >conftest.$ac_ext <<_ACEOF
44721 cat confdefs.h >>conftest.$ac_ext
44722 cat >>conftest.$ac_ext <<_ACEOF
44723 /* end confdefs.h. */
44724 $ac_includes_default
44729 return ! (stat ("conftest.data", &s) == 0
44730 && utime ("conftest.data", 0) == 0
44731 && stat ("conftest.data", &t) == 0
44732 && t.st_mtime >= s.st_mtime
44733 && t.st_mtime - s.st_mtime < 120);
44738 rm -f conftest$ac_exeext
44739 if { (ac_try="$ac_link"
44740 case "(($ac_try" in
44741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44742 *) ac_try_echo=$ac_try;;
44744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44745 (eval "$ac_link") 2>&5
44747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44749 { (case "(($ac_try" in
44750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44751 *) ac_try_echo=$ac_try;;
44753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44754 (eval "$ac_try") 2>&5
44756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44757 (exit $ac_status); }; }; then
44758 ac_cv_func_utime_null=yes
44760 echo "$as_me: program exited with status $ac_status" >&5
44761 echo "$as_me: failed program was:" >&5
44762 sed 's/^/| /' conftest.$ac_ext >&5
44764 ( exit $ac_status )
44765 ac_cv_func_utime_null=no
44767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44772 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
44773 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
44774 if test $ac_cv_func_utime_null = yes; then
44776 cat >>confdefs.h <<\_ACEOF
44777 #define HAVE_UTIME_NULL 1
44781 rm -f conftest.data
44785 if test $ac_cv_func_utime_null = no; then
44786 case " $LIBOBJS " in
44787 *" utime.$ac_objext "* ) ;;
44788 *) LIBOBJS="$LIBOBJS utime.$ac_objext"
44793 cat >>confdefs.h <<\_ACEOF
44794 #define utime rpl_utime
44805 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
44806 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
44807 if test "${ac_cv_func_utimes_null+set}" = set; then
44808 echo $ECHO_N "(cached) $ECHO_C" >&6
44810 rm -f conftest.data; > conftest.data
44811 if test "$cross_compiling" = yes; then
44812 ac_cv_func_utimes_null=no
44814 cat >conftest.$ac_ext <<_ACEOF
44817 cat confdefs.h >>conftest.$ac_ext
44818 cat >>conftest.$ac_ext <<_ACEOF
44819 /* end confdefs.h. */
44821 /* In case stat has been defined to rpl_stat, undef it here. */
44823 #include <sys/types.h>
44824 #include <sys/stat.h>
44825 #include <sys/time.h>
44829 return ! (stat ("conftest.data", &s) == 0
44830 && utimes ("conftest.data", 0) == 0
44831 && stat ("conftest.data", &t) == 0
44832 && t.st_mtime >= s.st_mtime
44833 && t.st_mtime - s.st_mtime < 120));
44836 rm -f conftest$ac_exeext
44837 if { (ac_try="$ac_link"
44838 case "(($ac_try" in
44839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44840 *) ac_try_echo=$ac_try;;
44842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44843 (eval "$ac_link") 2>&5
44845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44847 { (case "(($ac_try" in
44848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44849 *) ac_try_echo=$ac_try;;
44851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44852 (eval "$ac_try") 2>&5
44854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855 (exit $ac_status); }; }; then
44856 ac_cv_func_utimes_null=yes
44858 echo "$as_me: program exited with status $ac_status" >&5
44859 echo "$as_me: failed program was:" >&5
44860 sed 's/^/| /' conftest.$ac_ext >&5
44862 ( exit $ac_status )
44863 ac_cv_func_utimes_null=no
44865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44869 rm -f core core.* *.core
44871 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
44872 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
44874 if test $ac_cv_func_utimes_null = yes; then
44876 cat >>confdefs.h <<\_ACEOF
44877 #define HAVE_UTIMES_NULL 1
44895 { echo "$as_me:$LINENO: checking whether rename is broken" >&5
44896 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6; }
44897 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
44898 echo $ECHO_N "(cached) $ECHO_C" >&6
44901 rm -rf conftest.d1 conftest.d2
44902 mkdir conftest.d1 ||
44903 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
44904 echo "$as_me: error: cannot create temporary directory" >&2;}
44905 { (exit 1); exit 1; }; }
44906 if test "$cross_compiling" = yes; then
44907 vb_cv_func_rename_trailing_slash_bug=yes
44909 cat >conftest.$ac_ext <<_ACEOF
44912 cat confdefs.h >>conftest.$ac_ext
44913 cat >>conftest.$ac_ext <<_ACEOF
44914 /* end confdefs.h. */
44916 # include <stdio.h>
44917 # include <stdlib.h>
44921 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
44925 rm -f conftest$ac_exeext
44926 if { (ac_try="$ac_link"
44927 case "(($ac_try" in
44928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44929 *) ac_try_echo=$ac_try;;
44931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44932 (eval "$ac_link") 2>&5
44934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44936 { (case "(($ac_try" in
44937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44938 *) ac_try_echo=$ac_try;;
44940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44941 (eval "$ac_try") 2>&5
44943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44944 (exit $ac_status); }; }; then
44945 vb_cv_func_rename_trailing_slash_bug=no
44947 echo "$as_me: program exited with status $ac_status" >&5
44948 echo "$as_me: failed program was:" >&5
44949 sed 's/^/| /' conftest.$ac_ext >&5
44951 ( exit $ac_status )
44952 vb_cv_func_rename_trailing_slash_bug=yes
44954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44959 rm -rf conftest.d1 conftest.d2
44962 { echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
44963 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6; }
44964 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
44965 case " $LIBOBJS " in
44966 *" rename.$ac_objext "* ) ;;
44967 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
44972 cat >>confdefs.h <<\_ACEOF
44973 #define rename rpl_rename
44977 cat >>confdefs.h <<\_ACEOF
44978 #define RENAME_TRAILING_SLASH_BUG 1
44992 # No system provides these functions; compile them unconditionally.
44993 case " $LIBOBJS " in
44994 *" mkdirat.$ac_objext "* ) ;;
44995 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
44999 case " $LIBOBJS " in
45000 *" fchmodat.$ac_objext "* ) ;;
45001 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
45006 case " $LIBOBJS " in
45007 *" openat-die.$ac_objext "* ) ;;
45008 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
45026 for ac_func in openat
45028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45032 echo $ECHO_N "(cached) $ECHO_C" >&6
45034 cat >conftest.$ac_ext <<_ACEOF
45037 cat confdefs.h >>conftest.$ac_ext
45038 cat >>conftest.$ac_ext <<_ACEOF
45039 /* end confdefs.h. */
45040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45042 #define $ac_func innocuous_$ac_func
45044 /* System header to define __stub macros and hopefully few prototypes,
45045 which can conflict with char $ac_func (); below.
45046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45047 <limits.h> exists even on freestanding compilers. */
45050 # include <limits.h>
45052 # include <assert.h>
45057 /* Override any GCC internal prototype to avoid an error.
45058 Use char because int might match the return type of a GCC
45059 builtin and then its argument prototype would still apply. */
45064 /* The GNU C library defines this for functions which it implements
45065 to always fail with ENOSYS. Some functions are actually named
45066 something starting with __ and the normal name is an alias. */
45067 #if defined __stub_$ac_func || defined __stub___$ac_func
45074 return $ac_func ();
45079 rm -f conftest.$ac_objext conftest$ac_exeext
45080 if { (ac_try="$ac_link"
45081 case "(($ac_try" in
45082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45083 *) ac_try_echo=$ac_try;;
45085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45086 (eval "$ac_link") 2>conftest.er1
45088 grep -v '^ *+' conftest.er1 >conftest.err
45090 cat conftest.err >&5
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); } &&
45093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45094 { (case "(($ac_try" in
45095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45096 *) ac_try_echo=$ac_try;;
45098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45099 (eval "$ac_try") 2>&5
45101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102 (exit $ac_status); }; } &&
45103 { ac_try='test -s conftest$ac_exeext'
45104 { (case "(($ac_try" in
45105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45106 *) ac_try_echo=$ac_try;;
45108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45109 (eval "$ac_try") 2>&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); }; }; then
45113 eval "$as_ac_var=yes"
45115 echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45118 eval "$as_ac_var=no"
45121 rm -f core conftest.err conftest.$ac_objext \
45122 conftest$ac_exeext conftest.$ac_ext
45124 ac_res=`eval echo '${'$as_ac_var'}'`
45125 { echo "$as_me:$LINENO: result: $ac_res" >&5
45126 echo "${ECHO_T}$ac_res" >&6; }
45127 if test `eval echo '${'$as_ac_var'}'` = yes; then
45128 cat >>confdefs.h <<_ACEOF
45129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45133 case " $LIBOBJS " in
45134 *" $ac_func.$ac_objext "* ) ;;
45135 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45143 case $ac_cv_func_openat in
45147 cat >>confdefs.h <<\_ACEOF
45148 #define __OPENAT_PREFIX rpl_
45159 case " $LIBOBJS " in
45160 *" fts.$ac_objext "* ) ;;
45161 *) LIBOBJS="$LIBOBJS fts.$ac_objext"
45168 # Checks for header files.
45181 case " $LIBOBJS " in
45182 *" memcasecmp.$ac_objext "* ) ;;
45183 *) LIBOBJS="$LIBOBJS memcasecmp.$ac_objext"
45190 case " $LIBOBJS " in
45191 *" argmatch.$ac_objext "* ) ;;
45192 *) LIBOBJS="$LIBOBJS argmatch.$ac_objext"
45199 case " $LIBOBJS " in
45200 *" cycle-check.$ac_objext "* ) ;;
45201 *) LIBOBJS="$LIBOBJS cycle-check.$ac_objext"
45210 case " $LIBOBJS " in
45211 *" euidaccess-stat.$ac_objext "* ) ;;
45212 *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
45218 # We don't yet use c-stack.c.
45219 # AC_REQUIRE([gl_C_STACK])
45380 for ac_func in dirfd
45382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45386 echo $ECHO_N "(cached) $ECHO_C" >&6
45388 cat >conftest.$ac_ext <<_ACEOF
45391 cat confdefs.h >>conftest.$ac_ext
45392 cat >>conftest.$ac_ext <<_ACEOF
45393 /* end confdefs.h. */
45394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45396 #define $ac_func innocuous_$ac_func
45398 /* System header to define __stub macros and hopefully few prototypes,
45399 which can conflict with char $ac_func (); below.
45400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45401 <limits.h> exists even on freestanding compilers. */
45404 # include <limits.h>
45406 # include <assert.h>
45411 /* Override any GCC internal prototype to avoid an error.
45412 Use char because int might match the return type of a GCC
45413 builtin and then its argument prototype would still apply. */
45418 /* The GNU C library defines this for functions which it implements
45419 to always fail with ENOSYS. Some functions are actually named
45420 something starting with __ and the normal name is an alias. */
45421 #if defined __stub_$ac_func || defined __stub___$ac_func
45428 return $ac_func ();
45433 rm -f conftest.$ac_objext conftest$ac_exeext
45434 if { (ac_try="$ac_link"
45435 case "(($ac_try" in
45436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45437 *) ac_try_echo=$ac_try;;
45439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45440 (eval "$ac_link") 2>conftest.er1
45442 grep -v '^ *+' conftest.er1 >conftest.err
45444 cat conftest.err >&5
45445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45446 (exit $ac_status); } &&
45447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45448 { (case "(($ac_try" in
45449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45450 *) ac_try_echo=$ac_try;;
45452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45453 (eval "$ac_try") 2>&5
45455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); }; } &&
45457 { ac_try='test -s conftest$ac_exeext'
45458 { (case "(($ac_try" in
45459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45460 *) ac_try_echo=$ac_try;;
45462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45463 (eval "$ac_try") 2>&5
45465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); }; }; then
45467 eval "$as_ac_var=yes"
45469 echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45472 eval "$as_ac_var=no"
45475 rm -f core conftest.err conftest.$ac_objext \
45476 conftest$ac_exeext conftest.$ac_ext
45478 ac_res=`eval echo '${'$as_ac_var'}'`
45479 { echo "$as_me:$LINENO: result: $ac_res" >&5
45480 echo "${ECHO_T}$ac_res" >&6; }
45481 if test `eval echo '${'$as_ac_var'}'` = yes; then
45482 cat >>confdefs.h <<_ACEOF
45483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45489 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
45490 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
45491 if test "${ac_cv_have_decl_dirfd+set}" = set; then
45492 echo $ECHO_N "(cached) $ECHO_C" >&6
45494 cat >conftest.$ac_ext <<_ACEOF
45497 cat confdefs.h >>conftest.$ac_ext
45498 cat >>conftest.$ac_ext <<_ACEOF
45499 /* end confdefs.h. */
45500 #include <sys/types.h>
45501 #include <dirent.h>
45507 char *p = (char *) dirfd;
45515 rm -f conftest.$ac_objext
45516 if { (ac_try="$ac_compile"
45517 case "(($ac_try" in
45518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45519 *) ac_try_echo=$ac_try;;
45521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45522 (eval "$ac_compile") 2>conftest.er1
45524 grep -v '^ *+' conftest.er1 >conftest.err
45526 cat conftest.err >&5
45527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45528 (exit $ac_status); } &&
45529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45530 { (case "(($ac_try" in
45531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45532 *) ac_try_echo=$ac_try;;
45534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45535 (eval "$ac_try") 2>&5
45537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538 (exit $ac_status); }; } &&
45539 { ac_try='test -s conftest.$ac_objext'
45540 { (case "(($ac_try" in
45541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45542 *) ac_try_echo=$ac_try;;
45544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45545 (eval "$ac_try") 2>&5
45547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); }; }; then
45549 ac_cv_have_decl_dirfd=yes
45551 echo "$as_me: failed program was:" >&5
45552 sed 's/^/| /' conftest.$ac_ext >&5
45554 ac_cv_have_decl_dirfd=no
45557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
45560 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
45561 if test $ac_cv_have_decl_dirfd = yes; then
45563 cat >>confdefs.h <<_ACEOF
45564 #define HAVE_DECL_DIRFD 1
45569 cat >>confdefs.h <<_ACEOF
45570 #define HAVE_DECL_DIRFD 0
45578 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
45579 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
45580 if test "${gl_cv_func_dirfd_macro+set}" = set; then
45581 echo $ECHO_N "(cached) $ECHO_C" >&6
45583 cat >conftest.$ac_ext <<_ACEOF
45586 cat confdefs.h >>conftest.$ac_ext
45587 cat >>conftest.$ac_ext <<_ACEOF
45588 /* end confdefs.h. */
45590 #include <sys/types.h>
45591 #include <dirent.h>
45593 dirent_header_defines_dirfd
45596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45597 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
45598 gl_cv_func_dirfd_macro=yes
45600 gl_cv_func_dirfd_macro=no
45605 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
45606 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
45608 # Use the replacement only if we have no function, macro,
45609 # or declaration with that name.
45610 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
45613 for ac_func in dirfd
45615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45619 echo $ECHO_N "(cached) $ECHO_C" >&6
45621 cat >conftest.$ac_ext <<_ACEOF
45624 cat confdefs.h >>conftest.$ac_ext
45625 cat >>conftest.$ac_ext <<_ACEOF
45626 /* end confdefs.h. */
45627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45629 #define $ac_func innocuous_$ac_func
45631 /* System header to define __stub macros and hopefully few prototypes,
45632 which can conflict with char $ac_func (); below.
45633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45634 <limits.h> exists even on freestanding compilers. */
45637 # include <limits.h>
45639 # include <assert.h>
45644 /* Override any GCC internal prototype to avoid an error.
45645 Use char because int might match the return type of a GCC
45646 builtin and then its argument prototype would still apply. */
45651 /* The GNU C library defines this for functions which it implements
45652 to always fail with ENOSYS. Some functions are actually named
45653 something starting with __ and the normal name is an alias. */
45654 #if defined __stub_$ac_func || defined __stub___$ac_func
45661 return $ac_func ();
45666 rm -f conftest.$ac_objext conftest$ac_exeext
45667 if { (ac_try="$ac_link"
45668 case "(($ac_try" in
45669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45670 *) ac_try_echo=$ac_try;;
45672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45673 (eval "$ac_link") 2>conftest.er1
45675 grep -v '^ *+' conftest.er1 >conftest.err
45677 cat conftest.err >&5
45678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45679 (exit $ac_status); } &&
45680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45681 { (case "(($ac_try" in
45682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45683 *) ac_try_echo=$ac_try;;
45685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45686 (eval "$ac_try") 2>&5
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; } &&
45690 { ac_try='test -s conftest$ac_exeext'
45691 { (case "(($ac_try" in
45692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45693 *) ac_try_echo=$ac_try;;
45695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45696 (eval "$ac_try") 2>&5
45698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45699 (exit $ac_status); }; }; then
45700 eval "$as_ac_var=yes"
45702 echo "$as_me: failed program was:" >&5
45703 sed 's/^/| /' conftest.$ac_ext >&5
45705 eval "$as_ac_var=no"
45708 rm -f core conftest.err conftest.$ac_objext \
45709 conftest$ac_exeext conftest.$ac_ext
45711 ac_res=`eval echo '${'$as_ac_var'}'`
45712 { echo "$as_me:$LINENO: result: $ac_res" >&5
45713 echo "${ECHO_T}$ac_res" >&6; }
45714 if test `eval echo '${'$as_ac_var'}'` = yes; then
45715 cat >>confdefs.h <<_ACEOF
45716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45720 case " $LIBOBJS " in
45721 *" $ac_func.$ac_objext "* ) ;;
45722 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45730 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
45731 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
45732 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
45733 echo $ECHO_N "(cached) $ECHO_C" >&6
45736 dirfd_save_CFLAGS=$CFLAGS
45737 for ac_expr in d_fd dd_fd; do
45739 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
45740 cat >conftest.$ac_ext <<_ACEOF
45743 cat confdefs.h >>conftest.$ac_ext
45744 cat >>conftest.$ac_ext <<_ACEOF
45745 /* end confdefs.h. */
45746 #include <sys/types.h>
45747 #include <dirent.h>
45751 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
45756 rm -f conftest.$ac_objext
45757 if { (ac_try="$ac_compile"
45758 case "(($ac_try" in
45759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45760 *) ac_try_echo=$ac_try;;
45762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45763 (eval "$ac_compile") 2>conftest.er1
45765 grep -v '^ *+' conftest.er1 >conftest.err
45767 cat conftest.err >&5
45768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45769 (exit $ac_status); } &&
45770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45771 { (case "(($ac_try" in
45772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45773 *) ac_try_echo=$ac_try;;
45775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45776 (eval "$ac_try") 2>&5
45778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45779 (exit $ac_status); }; } &&
45780 { ac_try='test -s conftest.$ac_objext'
45781 { (case "(($ac_try" in
45782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45783 *) ac_try_echo=$ac_try;;
45785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45786 (eval "$ac_try") 2>&5
45788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45789 (exit $ac_status); }; }; then
45793 echo "$as_me: failed program was:" >&5
45794 sed 's/^/| /' conftest.$ac_ext >&5
45799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45800 CFLAGS=$dirfd_save_CFLAGS
45801 test "$dir_fd_found" = yes && break
45803 test "$dir_fd_found" = yes || ac_expr=no_such_member
45805 gl_cv_sys_dir_fd_member_name=$ac_expr
45809 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
45810 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
45811 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
45813 cat >>confdefs.h <<_ACEOF
45814 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
45824 case " $LIBOBJS " in
45825 *" acl.$ac_objext "* ) ;;
45826 *) LIBOBJS="$LIBOBJS acl.$ac_objext"
45832 for ac_header in sys/acl.h
45834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45839 echo $ECHO_N "(cached) $ECHO_C" >&6
45841 ac_res=`eval echo '${'$as_ac_Header'}'`
45842 { echo "$as_me:$LINENO: result: $ac_res" >&5
45843 echo "${ECHO_T}$ac_res" >&6; }
45845 # Is the header compilable?
45846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45848 cat >conftest.$ac_ext <<_ACEOF
45851 cat confdefs.h >>conftest.$ac_ext
45852 cat >>conftest.$ac_ext <<_ACEOF
45853 /* end confdefs.h. */
45854 $ac_includes_default
45855 #include <$ac_header>
45857 rm -f conftest.$ac_objext
45858 if { (ac_try="$ac_compile"
45859 case "(($ac_try" in
45860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45861 *) ac_try_echo=$ac_try;;
45863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45864 (eval "$ac_compile") 2>conftest.er1
45866 grep -v '^ *+' conftest.er1 >conftest.err
45868 cat conftest.err >&5
45869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45870 (exit $ac_status); } &&
45871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45872 { (case "(($ac_try" in
45873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45874 *) ac_try_echo=$ac_try;;
45876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45877 (eval "$ac_try") 2>&5
45879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45880 (exit $ac_status); }; } &&
45881 { ac_try='test -s conftest.$ac_objext'
45882 { (case "(($ac_try" in
45883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45884 *) ac_try_echo=$ac_try;;
45886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45887 (eval "$ac_try") 2>&5
45889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45890 (exit $ac_status); }; }; then
45891 ac_header_compiler=yes
45893 echo "$as_me: failed program was:" >&5
45894 sed 's/^/| /' conftest.$ac_ext >&5
45896 ac_header_compiler=no
45899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45901 echo "${ECHO_T}$ac_header_compiler" >&6; }
45903 # Is the header present?
45904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45906 cat >conftest.$ac_ext <<_ACEOF
45909 cat confdefs.h >>conftest.$ac_ext
45910 cat >>conftest.$ac_ext <<_ACEOF
45911 /* end confdefs.h. */
45912 #include <$ac_header>
45914 if { (ac_try="$ac_cpp conftest.$ac_ext"
45915 case "(($ac_try" in
45916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45917 *) ac_try_echo=$ac_try;;
45919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45922 grep -v '^ *+' conftest.er1 >conftest.err
45924 cat conftest.err >&5
45925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45926 (exit $ac_status); } >/dev/null; then
45927 if test -s conftest.err; then
45928 ac_cpp_err=$ac_c_preproc_warn_flag
45929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45936 if test -z "$ac_cpp_err"; then
45937 ac_header_preproc=yes
45939 echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45942 ac_header_preproc=no
45945 rm -f conftest.err conftest.$ac_ext
45946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45947 echo "${ECHO_T}$ac_header_preproc" >&6; }
45949 # So? What about this header?
45950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45956 ac_header_preproc=yes
45959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45972 ## ------------------------------------ ##
45973 ## Report this to bug-coreutils@gnu.org ##
45974 ## ------------------------------------ ##
45976 ) | sed "s/^/$as_me: WARNING: /" >&2
45979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45982 echo $ECHO_N "(cached) $ECHO_C" >&6
45984 eval "$as_ac_Header=\$ac_header_preproc"
45986 ac_res=`eval echo '${'$as_ac_Header'}'`
45987 { echo "$as_me:$LINENO: result: $ac_res" >&5
45988 echo "${ECHO_T}$ac_res" >&6; }
45991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45992 cat >>confdefs.h <<_ACEOF
45993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46000 if test "$ac_cv_header_sys_acl_h" = yes; then
46006 cat >>confdefs.h <<_ACEOF
46007 #define USE_ACL $use_acl
46013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46017 echo $ECHO_N "(cached) $ECHO_C" >&6
46019 cat >conftest.$ac_ext <<_ACEOF
46022 cat confdefs.h >>conftest.$ac_ext
46023 cat >>conftest.$ac_ext <<_ACEOF
46024 /* end confdefs.h. */
46025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46027 #define $ac_func innocuous_$ac_func
46029 /* System header to define __stub macros and hopefully few prototypes,
46030 which can conflict with char $ac_func (); below.
46031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46032 <limits.h> exists even on freestanding compilers. */
46035 # include <limits.h>
46037 # include <assert.h>
46042 /* Override any GCC internal prototype to avoid an error.
46043 Use char because int might match the return type of a GCC
46044 builtin and then its argument prototype would still apply. */
46049 /* The GNU C library defines this for functions which it implements
46050 to always fail with ENOSYS. Some functions are actually named
46051 something starting with __ and the normal name is an alias. */
46052 #if defined __stub_$ac_func || defined __stub___$ac_func
46059 return $ac_func ();
46064 rm -f conftest.$ac_objext conftest$ac_exeext
46065 if { (ac_try="$ac_link"
46066 case "(($ac_try" in
46067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46068 *) ac_try_echo=$ac_try;;
46070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46071 (eval "$ac_link") 2>conftest.er1
46073 grep -v '^ *+' conftest.er1 >conftest.err
46075 cat conftest.err >&5
46076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46077 (exit $ac_status); } &&
46078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46079 { (case "(($ac_try" in
46080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46081 *) ac_try_echo=$ac_try;;
46083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46084 (eval "$ac_try") 2>&5
46086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46087 (exit $ac_status); }; } &&
46088 { ac_try='test -s conftest$ac_exeext'
46089 { (case "(($ac_try" in
46090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46091 *) ac_try_echo=$ac_try;;
46093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46094 (eval "$ac_try") 2>&5
46096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097 (exit $ac_status); }; }; then
46098 eval "$as_ac_var=yes"
46100 echo "$as_me: failed program was:" >&5
46101 sed 's/^/| /' conftest.$ac_ext >&5
46103 eval "$as_ac_var=no"
46106 rm -f core conftest.err conftest.$ac_objext \
46107 conftest$ac_exeext conftest.$ac_ext
46109 ac_res=`eval echo '${'$as_ac_var'}'`
46110 { echo "$as_me:$LINENO: result: $ac_res" >&5
46111 echo "${ECHO_T}$ac_res" >&6; }
46112 if test `eval echo '${'$as_ac_var'}'` = yes; then
46113 cat >>confdefs.h <<_ACEOF
46114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46120 ac_save_LIBS="$LIBS"
46121 { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
46122 echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; }
46123 if test "${ac_cv_search_acl_get_file+set}" = set; then
46124 echo $ECHO_N "(cached) $ECHO_C" >&6
46126 ac_func_search_save_LIBS=$LIBS
46127 cat >conftest.$ac_ext <<_ACEOF
46130 cat confdefs.h >>conftest.$ac_ext
46131 cat >>conftest.$ac_ext <<_ACEOF
46132 /* end confdefs.h. */
46134 /* Override any GCC internal prototype to avoid an error.
46135 Use char because int might match the return type of a GCC
46136 builtin and then its argument prototype would still apply. */
46140 char acl_get_file ();
46144 return acl_get_file ();
46149 for ac_lib in '' acl; do
46150 if test -z "$ac_lib"; then
46151 ac_res="none required"
46154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
46156 rm -f conftest.$ac_objext conftest$ac_exeext
46157 if { (ac_try="$ac_link"
46158 case "(($ac_try" in
46159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46160 *) ac_try_echo=$ac_try;;
46162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46163 (eval "$ac_link") 2>conftest.er1
46165 grep -v '^ *+' conftest.er1 >conftest.err
46167 cat conftest.err >&5
46168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46169 (exit $ac_status); } &&
46170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46171 { (case "(($ac_try" in
46172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46173 *) ac_try_echo=$ac_try;;
46175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46176 (eval "$ac_try") 2>&5
46178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46179 (exit $ac_status); }; } &&
46180 { ac_try='test -s conftest$ac_exeext'
46181 { (case "(($ac_try" in
46182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46183 *) ac_try_echo=$ac_try;;
46185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46186 (eval "$ac_try") 2>&5
46188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46189 (exit $ac_status); }; }; then
46190 ac_cv_search_acl_get_file=$ac_res
46192 echo "$as_me: failed program was:" >&5
46193 sed 's/^/| /' conftest.$ac_ext >&5
46198 rm -f core conftest.err conftest.$ac_objext \
46200 if test "${ac_cv_search_acl_get_file+set}" = set; then
46204 if test "${ac_cv_search_acl_get_file+set}" = set; then
46207 ac_cv_search_acl_get_file=no
46209 rm conftest.$ac_ext
46210 LIBS=$ac_func_search_save_LIBS
46212 { echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
46213 echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; }
46214 ac_res=$ac_cv_search_acl_get_file
46215 if test "$ac_res" != no; then
46216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46217 test "$ac_cv_search_acl_get_file" = "none required" ||
46218 LIB_ACL=$ac_cv_search_acl_get_file
46223 for ac_header in acl/libacl.h
46225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46230 echo $ECHO_N "(cached) $ECHO_C" >&6
46232 ac_res=`eval echo '${'$as_ac_Header'}'`
46233 { echo "$as_me:$LINENO: result: $ac_res" >&5
46234 echo "${ECHO_T}$ac_res" >&6; }
46236 # Is the header compilable?
46237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46239 cat >conftest.$ac_ext <<_ACEOF
46242 cat confdefs.h >>conftest.$ac_ext
46243 cat >>conftest.$ac_ext <<_ACEOF
46244 /* end confdefs.h. */
46245 $ac_includes_default
46246 #include <$ac_header>
46248 rm -f conftest.$ac_objext
46249 if { (ac_try="$ac_compile"
46250 case "(($ac_try" in
46251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46252 *) ac_try_echo=$ac_try;;
46254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46255 (eval "$ac_compile") 2>conftest.er1
46257 grep -v '^ *+' conftest.er1 >conftest.err
46259 cat conftest.err >&5
46260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261 (exit $ac_status); } &&
46262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46263 { (case "(($ac_try" in
46264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265 *) ac_try_echo=$ac_try;;
46267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46268 (eval "$ac_try") 2>&5
46270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46271 (exit $ac_status); }; } &&
46272 { ac_try='test -s conftest.$ac_objext'
46273 { (case "(($ac_try" in
46274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46275 *) ac_try_echo=$ac_try;;
46277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46278 (eval "$ac_try") 2>&5
46280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281 (exit $ac_status); }; }; then
46282 ac_header_compiler=yes
46284 echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46287 ac_header_compiler=no
46290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46292 echo "${ECHO_T}$ac_header_compiler" >&6; }
46294 # Is the header present?
46295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46297 cat >conftest.$ac_ext <<_ACEOF
46300 cat confdefs.h >>conftest.$ac_ext
46301 cat >>conftest.$ac_ext <<_ACEOF
46302 /* end confdefs.h. */
46303 #include <$ac_header>
46305 if { (ac_try="$ac_cpp conftest.$ac_ext"
46306 case "(($ac_try" in
46307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46308 *) ac_try_echo=$ac_try;;
46310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46313 grep -v '^ *+' conftest.er1 >conftest.err
46315 cat conftest.err >&5
46316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317 (exit $ac_status); } >/dev/null; then
46318 if test -s conftest.err; then
46319 ac_cpp_err=$ac_c_preproc_warn_flag
46320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46327 if test -z "$ac_cpp_err"; then
46328 ac_header_preproc=yes
46330 echo "$as_me: failed program was:" >&5
46331 sed 's/^/| /' conftest.$ac_ext >&5
46333 ac_header_preproc=no
46336 rm -f conftest.err conftest.$ac_ext
46337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46338 echo "${ECHO_T}$ac_header_preproc" >&6; }
46340 # So? What about this header?
46341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46347 ac_header_preproc=yes
46350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46363 ## ------------------------------------ ##
46364 ## Report this to bug-coreutils@gnu.org ##
46365 ## ------------------------------------ ##
46367 ) | sed "s/^/$as_me: WARNING: /" >&2
46370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46373 echo $ECHO_N "(cached) $ECHO_C" >&6
46375 eval "$as_ac_Header=\$ac_header_preproc"
46377 ac_res=`eval echo '${'$as_ac_Header'}'`
46378 { echo "$as_me:$LINENO: result: $ac_res" >&5
46379 echo "${ECHO_T}$ac_res" >&6; }
46382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46383 cat >>confdefs.h <<_ACEOF
46384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46402 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
46403 acl_free acl_from_mode acl_from_text acl_to_text \
46404 acl_delete_def_file acl_entries acl_extended_file
46406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46410 echo $ECHO_N "(cached) $ECHO_C" >&6
46412 cat >conftest.$ac_ext <<_ACEOF
46415 cat confdefs.h >>conftest.$ac_ext
46416 cat >>conftest.$ac_ext <<_ACEOF
46417 /* end confdefs.h. */
46418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46420 #define $ac_func innocuous_$ac_func
46422 /* System header to define __stub macros and hopefully few prototypes,
46423 which can conflict with char $ac_func (); below.
46424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46425 <limits.h> exists even on freestanding compilers. */
46428 # include <limits.h>
46430 # include <assert.h>
46435 /* Override any GCC internal prototype to avoid an error.
46436 Use char because int might match the return type of a GCC
46437 builtin and then its argument prototype would still apply. */
46442 /* The GNU C library defines this for functions which it implements
46443 to always fail with ENOSYS. Some functions are actually named
46444 something starting with __ and the normal name is an alias. */
46445 #if defined __stub_$ac_func || defined __stub___$ac_func
46452 return $ac_func ();
46457 rm -f conftest.$ac_objext conftest$ac_exeext
46458 if { (ac_try="$ac_link"
46459 case "(($ac_try" in
46460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46461 *) ac_try_echo=$ac_try;;
46463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46464 (eval "$ac_link") 2>conftest.er1
46466 grep -v '^ *+' conftest.er1 >conftest.err
46468 cat conftest.err >&5
46469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470 (exit $ac_status); } &&
46471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46472 { (case "(($ac_try" in
46473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46474 *) ac_try_echo=$ac_try;;
46476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46477 (eval "$ac_try") 2>&5
46479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46480 (exit $ac_status); }; } &&
46481 { ac_try='test -s conftest$ac_exeext'
46482 { (case "(($ac_try" in
46483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46484 *) ac_try_echo=$ac_try;;
46486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46487 (eval "$ac_try") 2>&5
46489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46490 (exit $ac_status); }; }; then
46491 eval "$as_ac_var=yes"
46493 echo "$as_me: failed program was:" >&5
46494 sed 's/^/| /' conftest.$ac_ext >&5
46496 eval "$as_ac_var=no"
46499 rm -f core conftest.err conftest.$ac_objext \
46500 conftest$ac_exeext conftest.$ac_ext
46502 ac_res=`eval echo '${'$as_ac_var'}'`
46503 { echo "$as_me:$LINENO: result: $ac_res" >&5
46504 echo "${ECHO_T}$ac_res" >&6; }
46505 if test `eval echo '${'$as_ac_var'}'` = yes; then
46506 cat >>confdefs.h <<_ACEOF
46507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46513 LIBS="$ac_save_LIBS"
46515 { echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
46516 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6; }
46517 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
46518 echo $ECHO_N "(cached) $ECHO_C" >&6
46521 # Arrange for deletion of the temporary directory this test creates.
46522 ac_clean_files="$ac_clean_files confdir2"
46523 mkdir confdir2; : > confdir2/file
46524 if test "$cross_compiling" = yes; then
46525 gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
46528 cat >conftest.$ac_ext <<_ACEOF
46531 cat confdefs.h >>conftest.$ac_ext
46532 cat >>conftest.$ac_ext <<_ACEOF
46533 /* end confdefs.h. */
46541 rmdir ("confdir2");
46543 s = fopen ("confdir2/errno", "w");
46544 fprintf (s, "%d\n", val);
46549 rm -f conftest$ac_exeext
46550 if { (ac_try="$ac_link"
46551 case "(($ac_try" in
46552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46553 *) ac_try_echo=$ac_try;;
46555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46556 (eval "$ac_link") 2>&5
46558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46560 { (case "(($ac_try" in
46561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46562 *) ac_try_echo=$ac_try;;
46564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46565 (eval "$ac_try") 2>&5
46567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46568 (exit $ac_status); }; }; then
46569 gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
46571 echo "$as_me: program exited with status $ac_status" >&5
46572 echo "$as_me: failed program was:" >&5
46573 sed 's/^/| /' conftest.$ac_ext >&5
46575 ( exit $ac_status )
46576 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
46578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46585 { echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
46586 echo "${ECHO_T}$gl_cv_func_rmdir_errno_not_empty" >&6; }
46589 cat >>confdefs.h <<_ACEOF
46590 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
46594 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
46595 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
46596 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
46597 echo $ECHO_N "(cached) $ECHO_C" >&6
46599 if test "$cross_compiling" = yes; then
46600 ac_cv_func_lstat_empty_string_bug=yes
46602 cat >conftest.$ac_ext <<_ACEOF
46605 cat confdefs.h >>conftest.$ac_ext
46606 cat >>conftest.$ac_ext <<_ACEOF
46607 /* end confdefs.h. */
46608 $ac_includes_default
46613 return lstat ("", &sbuf) == 0;
46618 rm -f conftest$ac_exeext
46619 if { (ac_try="$ac_link"
46620 case "(($ac_try" in
46621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46622 *) ac_try_echo=$ac_try;;
46624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46625 (eval "$ac_link") 2>&5
46627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46629 { (case "(($ac_try" in
46630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46631 *) ac_try_echo=$ac_try;;
46633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46634 (eval "$ac_try") 2>&5
46636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46637 (exit $ac_status); }; }; then
46638 ac_cv_func_lstat_empty_string_bug=no
46640 echo "$as_me: program exited with status $ac_status" >&5
46641 echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46644 ( exit $ac_status )
46645 ac_cv_func_lstat_empty_string_bug=yes
46647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46652 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
46653 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
46654 if test $ac_cv_func_lstat_empty_string_bug = yes; then
46655 case " $LIBOBJS " in
46656 *" lstat.$ac_objext "* ) ;;
46657 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
46662 cat >>confdefs.h <<_ACEOF
46663 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
46673 { echo "$as_me:$LINENO: checking for group_member" >&5
46674 echo $ECHO_N "checking for group_member... $ECHO_C" >&6; }
46675 if test "${ac_cv_func_group_member+set}" = set; then
46676 echo $ECHO_N "(cached) $ECHO_C" >&6
46678 cat >conftest.$ac_ext <<_ACEOF
46681 cat confdefs.h >>conftest.$ac_ext
46682 cat >>conftest.$ac_ext <<_ACEOF
46683 /* end confdefs.h. */
46684 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
46685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46686 #define group_member innocuous_group_member
46688 /* System header to define __stub macros and hopefully few prototypes,
46689 which can conflict with char group_member (); below.
46690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46691 <limits.h> exists even on freestanding compilers. */
46694 # include <limits.h>
46696 # include <assert.h>
46699 #undef group_member
46701 /* Override any GCC internal prototype to avoid an error.
46702 Use char because int might match the return type of a GCC
46703 builtin and then its argument prototype would still apply. */
46707 char group_member ();
46708 /* The GNU C library defines this for functions which it implements
46709 to always fail with ENOSYS. Some functions are actually named
46710 something starting with __ and the normal name is an alias. */
46711 #if defined __stub_group_member || defined __stub___group_member
46718 return group_member ();
46723 rm -f conftest.$ac_objext conftest$ac_exeext
46724 if { (ac_try="$ac_link"
46725 case "(($ac_try" in
46726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46727 *) ac_try_echo=$ac_try;;
46729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46730 (eval "$ac_link") 2>conftest.er1
46732 grep -v '^ *+' conftest.er1 >conftest.err
46734 cat conftest.err >&5
46735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46736 (exit $ac_status); } &&
46737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46738 { (case "(($ac_try" in
46739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46740 *) ac_try_echo=$ac_try;;
46742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46743 (eval "$ac_try") 2>&5
46745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746 (exit $ac_status); }; } &&
46747 { ac_try='test -s conftest$ac_exeext'
46748 { (case "(($ac_try" in
46749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46750 *) ac_try_echo=$ac_try;;
46752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46753 (eval "$ac_try") 2>&5
46755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756 (exit $ac_status); }; }; then
46757 ac_cv_func_group_member=yes
46759 echo "$as_me: failed program was:" >&5
46760 sed 's/^/| /' conftest.$ac_ext >&5
46762 ac_cv_func_group_member=no
46765 rm -f core conftest.err conftest.$ac_objext \
46766 conftest$ac_exeext conftest.$ac_ext
46768 { echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
46769 echo "${ECHO_T}$ac_cv_func_group_member" >&6; }
46770 if test $ac_cv_func_group_member = yes; then
46774 case " $LIBOBJS " in
46775 *" group-member.$ac_objext "* ) ;;
46776 *) LIBOBJS="$LIBOBJS group-member.$ac_objext"
46787 { echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
46788 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
46789 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
46790 echo $ECHO_N "(cached) $ECHO_C" >&6
46793 # Create a regular file.
46794 echo > conftest.file
46795 if test "$cross_compiling" = yes; then
46796 jm_ac_cv_func_link_follows_symlink=yes
46798 cat >conftest.$ac_ext <<_ACEOF
46801 cat confdefs.h >>conftest.$ac_ext
46802 cat >>conftest.$ac_ext <<_ACEOF
46803 /* end confdefs.h. */
46805 # include <sys/types.h>
46806 # include <sys/stat.h>
46807 # include <unistd.h>
46809 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
46810 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
46811 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
46816 const char *file = "conftest.file";
46817 const char *sym = "conftest.sym";
46818 const char *hard = "conftest.hard";
46819 struct stat sb_file, sb_hard;
46821 /* Create a symlink to the regular file. */
46822 if (symlink (file, sym))
46825 /* Create a hard link to that symlink. */
46826 if (link (sym, hard))
46829 if (lstat (hard, &sb_hard))
46831 if (lstat (file, &sb_file))
46834 /* If the dev/inode of hard and file are the same, then
46835 the link call followed the symlink. */
46836 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
46840 rm -f conftest$ac_exeext
46841 if { (ac_try="$ac_link"
46842 case "(($ac_try" in
46843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46844 *) ac_try_echo=$ac_try;;
46846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46847 (eval "$ac_link") 2>&5
46849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46851 { (case "(($ac_try" in
46852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46853 *) ac_try_echo=$ac_try;;
46855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46856 (eval "$ac_try") 2>&5
46858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859 (exit $ac_status); }; }; then
46860 jm_ac_cv_func_link_follows_symlink=yes
46862 echo "$as_me: program exited with status $ac_status" >&5
46863 echo "$as_me: failed program was:" >&5
46864 sed 's/^/| /' conftest.$ac_ext >&5
46866 ( exit $ac_status )
46867 jm_ac_cv_func_link_follows_symlink=no
46869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46875 { echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
46876 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6; }
46877 if test $jm_ac_cv_func_link_follows_symlink = yes; then
46879 cat >>confdefs.h <<\_ACEOF
46880 #define LINK_FOLLOWS_SYMLINKS 1
46889 for ac_header in stdio_ext.h
46891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46896 echo $ECHO_N "(cached) $ECHO_C" >&6
46898 ac_res=`eval echo '${'$as_ac_Header'}'`
46899 { echo "$as_me:$LINENO: result: $ac_res" >&5
46900 echo "${ECHO_T}$ac_res" >&6; }
46902 # Is the header compilable?
46903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46905 cat >conftest.$ac_ext <<_ACEOF
46908 cat confdefs.h >>conftest.$ac_ext
46909 cat >>conftest.$ac_ext <<_ACEOF
46910 /* end confdefs.h. */
46911 $ac_includes_default
46912 #include <$ac_header>
46914 rm -f conftest.$ac_objext
46915 if { (ac_try="$ac_compile"
46916 case "(($ac_try" in
46917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46918 *) ac_try_echo=$ac_try;;
46920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46921 (eval "$ac_compile") 2>conftest.er1
46923 grep -v '^ *+' conftest.er1 >conftest.err
46925 cat conftest.err >&5
46926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927 (exit $ac_status); } &&
46928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46929 { (case "(($ac_try" in
46930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46931 *) ac_try_echo=$ac_try;;
46933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46934 (eval "$ac_try") 2>&5
46936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46937 (exit $ac_status); }; } &&
46938 { ac_try='test -s conftest.$ac_objext'
46939 { (case "(($ac_try" in
46940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46941 *) ac_try_echo=$ac_try;;
46943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46944 (eval "$ac_try") 2>&5
46946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947 (exit $ac_status); }; }; then
46948 ac_header_compiler=yes
46950 echo "$as_me: failed program was:" >&5
46951 sed 's/^/| /' conftest.$ac_ext >&5
46953 ac_header_compiler=no
46956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46958 echo "${ECHO_T}$ac_header_compiler" >&6; }
46960 # Is the header present?
46961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46963 cat >conftest.$ac_ext <<_ACEOF
46966 cat confdefs.h >>conftest.$ac_ext
46967 cat >>conftest.$ac_ext <<_ACEOF
46968 /* end confdefs.h. */
46969 #include <$ac_header>
46971 if { (ac_try="$ac_cpp conftest.$ac_ext"
46972 case "(($ac_try" in
46973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46974 *) ac_try_echo=$ac_try;;
46976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46979 grep -v '^ *+' conftest.er1 >conftest.err
46981 cat conftest.err >&5
46982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46983 (exit $ac_status); } >/dev/null; then
46984 if test -s conftest.err; then
46985 ac_cpp_err=$ac_c_preproc_warn_flag
46986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46993 if test -z "$ac_cpp_err"; then
46994 ac_header_preproc=yes
46996 echo "$as_me: failed program was:" >&5
46997 sed 's/^/| /' conftest.$ac_ext >&5
46999 ac_header_preproc=no
47002 rm -f conftest.err conftest.$ac_ext
47003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47004 echo "${ECHO_T}$ac_header_preproc" >&6; }
47006 # So? What about this header?
47007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47013 ac_header_preproc=yes
47016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47029 ## ------------------------------------ ##
47030 ## Report this to bug-coreutils@gnu.org ##
47031 ## ------------------------------------ ##
47033 ) | sed "s/^/$as_me: WARNING: /" >&2
47036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47039 echo $ECHO_N "(cached) $ECHO_C" >&6
47041 eval "$as_ac_Header=\$ac_header_preproc"
47043 ac_res=`eval echo '${'$as_ac_Header'}'`
47044 { echo "$as_me:$LINENO: result: $ac_res" >&5
47045 echo "${ECHO_T}$ac_res" >&6; }
47048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47049 cat >>confdefs.h <<_ACEOF
47050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47058 for ac_func in __fpending
47060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47064 echo $ECHO_N "(cached) $ECHO_C" >&6
47066 cat >conftest.$ac_ext <<_ACEOF
47069 cat confdefs.h >>conftest.$ac_ext
47070 cat >>conftest.$ac_ext <<_ACEOF
47071 /* end confdefs.h. */
47072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47074 #define $ac_func innocuous_$ac_func
47076 /* System header to define __stub macros and hopefully few prototypes,
47077 which can conflict with char $ac_func (); below.
47078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47079 <limits.h> exists even on freestanding compilers. */
47082 # include <limits.h>
47084 # include <assert.h>
47089 /* Override any GCC internal prototype to avoid an error.
47090 Use char because int might match the return type of a GCC
47091 builtin and then its argument prototype would still apply. */
47096 /* The GNU C library defines this for functions which it implements
47097 to always fail with ENOSYS. Some functions are actually named
47098 something starting with __ and the normal name is an alias. */
47099 #if defined __stub_$ac_func || defined __stub___$ac_func
47106 return $ac_func ();
47111 rm -f conftest.$ac_objext conftest$ac_exeext
47112 if { (ac_try="$ac_link"
47113 case "(($ac_try" in
47114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47115 *) ac_try_echo=$ac_try;;
47117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47118 (eval "$ac_link") 2>conftest.er1
47120 grep -v '^ *+' conftest.er1 >conftest.err
47122 cat conftest.err >&5
47123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47124 (exit $ac_status); } &&
47125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47126 { (case "(($ac_try" in
47127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47128 *) ac_try_echo=$ac_try;;
47130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47131 (eval "$ac_try") 2>&5
47133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47134 (exit $ac_status); }; } &&
47135 { ac_try='test -s conftest$ac_exeext'
47136 { (case "(($ac_try" in
47137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47138 *) ac_try_echo=$ac_try;;
47140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47141 (eval "$ac_try") 2>&5
47143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47144 (exit $ac_status); }; }; then
47145 eval "$as_ac_var=yes"
47147 echo "$as_me: failed program was:" >&5
47148 sed 's/^/| /' conftest.$ac_ext >&5
47150 eval "$as_ac_var=no"
47153 rm -f core conftest.err conftest.$ac_objext \
47154 conftest$ac_exeext conftest.$ac_ext
47156 ac_res=`eval echo '${'$as_ac_var'}'`
47157 { echo "$as_me:$LINENO: result: $ac_res" >&5
47158 echo "${ECHO_T}$ac_res" >&6; }
47159 if test `eval echo '${'$as_ac_var'}'` = yes; then
47160 cat >>confdefs.h <<_ACEOF
47161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47165 case " $LIBOBJS " in
47166 *" $ac_func.$ac_objext "* ) ;;
47167 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47176 # include <stdio.h>
47177 # if HAVE_STDIO_EXT_H
47178 # include <stdio_ext.h>
47181 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
47182 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
47183 if test "${ac_cv_have_decl___fpending+set}" = set; then
47184 echo $ECHO_N "(cached) $ECHO_C" >&6
47186 cat >conftest.$ac_ext <<_ACEOF
47189 cat confdefs.h >>conftest.$ac_ext
47190 cat >>conftest.$ac_ext <<_ACEOF
47191 /* end confdefs.h. */
47198 char *p = (char *) __fpending;
47206 rm -f conftest.$ac_objext
47207 if { (ac_try="$ac_compile"
47208 case "(($ac_try" in
47209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47210 *) ac_try_echo=$ac_try;;
47212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47213 (eval "$ac_compile") 2>conftest.er1
47215 grep -v '^ *+' conftest.er1 >conftest.err
47217 cat conftest.err >&5
47218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47219 (exit $ac_status); } &&
47220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47221 { (case "(($ac_try" in
47222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47223 *) ac_try_echo=$ac_try;;
47225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47226 (eval "$ac_try") 2>&5
47228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47229 (exit $ac_status); }; } &&
47230 { ac_try='test -s conftest.$ac_objext'
47231 { (case "(($ac_try" in
47232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47233 *) ac_try_echo=$ac_try;;
47235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47236 (eval "$ac_try") 2>&5
47238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239 (exit $ac_status); }; }; then
47240 ac_cv_have_decl___fpending=yes
47242 echo "$as_me: failed program was:" >&5
47243 sed 's/^/| /' conftest.$ac_ext >&5
47245 ac_cv_have_decl___fpending=no
47248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47250 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
47251 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
47252 if test $ac_cv_have_decl___fpending = yes; then
47254 cat >>confdefs.h <<_ACEOF
47255 #define HAVE_DECL___FPENDING 1
47260 cat >>confdefs.h <<_ACEOF
47261 #define HAVE_DECL___FPENDING 0
47268 if test $ac_cv_func___fpending = no; then
47269 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
47270 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
47271 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
47272 echo $ECHO_N "(cached) $ECHO_C" >&6
47278 'fp->_IO_write_ptr - fp->_IO_write_base' \
47280 '# traditional Unix' \
47281 'fp->_ptr - fp->_base' \
47284 'fp->_p - fp->_bf._base' \
47286 '# SCO, Unixware' \
47287 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
47290 'fp->__bufp - fp->__buffer' \
47292 '# old glibc iostream?' \
47293 'fp->_pptr - fp->_pbase' \
47296 '(*fp)->_ptr - (*fp)->_base' \
47298 '# e.g., DGUX R4.11; the info is not available' \
47302 # Skip each embedded comment.
47303 case "$ac_expr" in '#'*) continue;; esac
47305 cat >conftest.$ac_ext <<_ACEOF
47308 cat confdefs.h >>conftest.$ac_ext
47309 cat >>conftest.$ac_ext <<_ACEOF
47310 /* end confdefs.h. */
47316 FILE *fp = stdin; (void) ($ac_expr);
47321 rm -f conftest.$ac_objext
47322 if { (ac_try="$ac_compile"
47323 case "(($ac_try" in
47324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47325 *) ac_try_echo=$ac_try;;
47327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47328 (eval "$ac_compile") 2>conftest.er1
47330 grep -v '^ *+' conftest.er1 >conftest.err
47332 cat conftest.err >&5
47333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334 (exit $ac_status); } &&
47335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47336 { (case "(($ac_try" in
47337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47338 *) ac_try_echo=$ac_try;;
47340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47341 (eval "$ac_try") 2>&5
47343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47344 (exit $ac_status); }; } &&
47345 { ac_try='test -s conftest.$ac_objext'
47346 { (case "(($ac_try" in
47347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47348 *) ac_try_echo=$ac_try;;
47350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47351 (eval "$ac_try") 2>&5
47353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354 (exit $ac_status); }; }; then
47358 echo "$as_me: failed program was:" >&5
47359 sed 's/^/| /' conftest.$ac_ext >&5
47364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47365 test "$fp_done" = yes && break
47368 ac_cv_sys_pending_output_n_bytes=$ac_expr
47372 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
47373 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
47375 cat >>confdefs.h <<_ACEOF
47376 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
47382 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
47383 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
47384 if test "${gt_cv_header_inttypes_h+set}" = set; then
47385 echo $ECHO_N "(cached) $ECHO_C" >&6
47388 cat >conftest.$ac_ext <<_ACEOF
47391 cat confdefs.h >>conftest.$ac_ext
47392 cat >>conftest.$ac_ext <<_ACEOF
47393 /* end confdefs.h. */
47394 #include <sys/types.h>
47395 #include <inttypes.h>
47404 rm -f conftest.$ac_objext
47405 if { (ac_try="$ac_compile"
47406 case "(($ac_try" in
47407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47408 *) ac_try_echo=$ac_try;;
47410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47411 (eval "$ac_compile") 2>conftest.er1
47413 grep -v '^ *+' conftest.er1 >conftest.err
47415 cat conftest.err >&5
47416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417 (exit $ac_status); } &&
47418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47419 { (case "(($ac_try" in
47420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47421 *) ac_try_echo=$ac_try;;
47423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47424 (eval "$ac_try") 2>&5
47426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47427 (exit $ac_status); }; } &&
47428 { ac_try='test -s conftest.$ac_objext'
47429 { (case "(($ac_try" in
47430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47431 *) ac_try_echo=$ac_try;;
47433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47434 (eval "$ac_try") 2>&5
47436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47437 (exit $ac_status); }; }; then
47438 gt_cv_header_inttypes_h=yes
47440 echo "$as_me: failed program was:" >&5
47441 sed 's/^/| /' conftest.$ac_ext >&5
47443 gt_cv_header_inttypes_h=no
47446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47449 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
47450 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
47451 if test $gt_cv_header_inttypes_h = yes; then
47453 cat >>confdefs.h <<_ACEOF
47454 #define HAVE_INTTYPES_H 1
47461 if test $gt_cv_header_inttypes_h = yes; then
47462 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
47463 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
47464 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
47465 echo $ECHO_N "(cached) $ECHO_C" >&6
47468 cat >conftest.$ac_ext <<_ACEOF
47471 cat confdefs.h >>conftest.$ac_ext
47472 cat >>conftest.$ac_ext <<_ACEOF
47473 /* end confdefs.h. */
47474 #include <inttypes.h>
47487 rm -f conftest.$ac_objext
47488 if { (ac_try="$ac_compile"
47489 case "(($ac_try" in
47490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47491 *) ac_try_echo=$ac_try;;
47493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47494 (eval "$ac_compile") 2>conftest.er1
47496 grep -v '^ *+' conftest.er1 >conftest.err
47498 cat conftest.err >&5
47499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47500 (exit $ac_status); } &&
47501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47502 { (case "(($ac_try" in
47503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47504 *) ac_try_echo=$ac_try;;
47506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47507 (eval "$ac_try") 2>&5
47509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510 (exit $ac_status); }; } &&
47511 { ac_try='test -s conftest.$ac_objext'
47512 { (case "(($ac_try" in
47513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47514 *) ac_try_echo=$ac_try;;
47516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47517 (eval "$ac_try") 2>&5
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); }; }; then
47521 gt_cv_inttypes_pri_broken=no
47523 echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47526 gt_cv_inttypes_pri_broken=yes
47529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47532 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
47533 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
47535 if test "$gt_cv_inttypes_pri_broken" = yes; then
47537 cat >>confdefs.h <<_ACEOF
47538 #define PRI_MACROS_BROKEN 1
47544 { echo "$as_me:$LINENO: checking whether ULONG_MAX < ULLONG_MAX" >&5
47545 echo $ECHO_N "checking whether ULONG_MAX < ULLONG_MAX... $ECHO_C" >&6; }
47546 if test "${gl_cv_ulong_max_lt_ullong_max+set}" = set; then
47547 echo $ECHO_N "(cached) $ECHO_C" >&6
47549 cat >conftest.$ac_ext <<_ACEOF
47552 cat confdefs.h >>conftest.$ac_ext
47553 cat >>conftest.$ac_ext <<_ACEOF
47554 /* end confdefs.h. */
47555 $ac_includes_default
47559 static int test_array [1 - 2 * !((unsigned long int) -1 < (unsigned long long int) -1)];
47566 rm -f conftest.$ac_objext
47567 if { (ac_try="$ac_compile"
47568 case "(($ac_try" in
47569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47570 *) ac_try_echo=$ac_try;;
47572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47573 (eval "$ac_compile") 2>conftest.er1
47575 grep -v '^ *+' conftest.er1 >conftest.err
47577 cat conftest.err >&5
47578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579 (exit $ac_status); } &&
47580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47581 { (case "(($ac_try" in
47582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47583 *) ac_try_echo=$ac_try;;
47585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47586 (eval "$ac_try") 2>&5
47588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47589 (exit $ac_status); }; } &&
47590 { ac_try='test -s conftest.$ac_objext'
47591 { (case "(($ac_try" in
47592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47593 *) ac_try_echo=$ac_try;;
47595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47596 (eval "$ac_try") 2>&5
47598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47599 (exit $ac_status); }; }; then
47600 gl_cv_ulong_max_lt_ullong_max=yes
47602 echo "$as_me: failed program was:" >&5
47603 sed 's/^/| /' conftest.$ac_ext >&5
47605 gl_cv_ulong_max_lt_ullong_max=no
47608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47610 { echo "$as_me:$LINENO: result: $gl_cv_ulong_max_lt_ullong_max" >&5
47611 echo "${ECHO_T}$gl_cv_ulong_max_lt_ullong_max" >&6; }
47612 if test $gl_cv_ulong_max_lt_ullong_max = yes; then
47614 cat >>confdefs.h <<\_ACEOF
47615 #define ULONG_MAX_LT_ULLONG_MAX 1
47622 if test $ac_cv_func_getgroups_works = no; then
47623 case " $LIBOBJS " in
47624 *" getgroups.$ac_objext "* ) ;;
47625 *) LIBOBJS="$LIBOBJS getgroups.$ac_objext"
47630 cat >>confdefs.h <<\_ACEOF
47631 #define getgroups rpl_getgroups
47638 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
47640 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
47641 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
47642 if test "${ac_cv_sys_largefile_source+set}" = set; then
47643 echo $ECHO_N "(cached) $ECHO_C" >&6
47646 ac_cv_sys_largefile_source=no
47647 cat >conftest.$ac_ext <<_ACEOF
47650 cat confdefs.h >>conftest.$ac_ext
47651 cat >>conftest.$ac_ext <<_ACEOF
47652 /* end confdefs.h. */
47662 rm -f conftest.$ac_objext
47663 if { (ac_try="$ac_compile"
47664 case "(($ac_try" in
47665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47666 *) ac_try_echo=$ac_try;;
47668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47669 (eval "$ac_compile") 2>conftest.er1
47671 grep -v '^ *+' conftest.er1 >conftest.err
47673 cat conftest.err >&5
47674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675 (exit $ac_status); } &&
47676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47677 { (case "(($ac_try" in
47678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47679 *) ac_try_echo=$ac_try;;
47681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47682 (eval "$ac_try") 2>&5
47684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47685 (exit $ac_status); }; } &&
47686 { ac_try='test -s conftest.$ac_objext'
47687 { (case "(($ac_try" in
47688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47689 *) ac_try_echo=$ac_try;;
47691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47692 (eval "$ac_try") 2>&5
47694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695 (exit $ac_status); }; }; then
47698 echo "$as_me: failed program was:" >&5
47699 sed 's/^/| /' conftest.$ac_ext >&5
47704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47705 cat >conftest.$ac_ext <<_ACEOF
47708 cat confdefs.h >>conftest.$ac_ext
47709 cat >>conftest.$ac_ext <<_ACEOF
47710 /* end confdefs.h. */
47711 #define _LARGEFILE_SOURCE 1
47721 rm -f conftest.$ac_objext
47722 if { (ac_try="$ac_compile"
47723 case "(($ac_try" in
47724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47725 *) ac_try_echo=$ac_try;;
47727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47728 (eval "$ac_compile") 2>conftest.er1
47730 grep -v '^ *+' conftest.er1 >conftest.err
47732 cat conftest.err >&5
47733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47734 (exit $ac_status); } &&
47735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47736 { (case "(($ac_try" in
47737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47738 *) ac_try_echo=$ac_try;;
47740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47741 (eval "$ac_try") 2>&5
47743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47744 (exit $ac_status); }; } &&
47745 { ac_try='test -s conftest.$ac_objext'
47746 { (case "(($ac_try" in
47747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47748 *) ac_try_echo=$ac_try;;
47750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47751 (eval "$ac_try") 2>&5
47753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47754 (exit $ac_status); }; }; then
47755 ac_cv_sys_largefile_source=1; break
47757 echo "$as_me: failed program was:" >&5
47758 sed 's/^/| /' conftest.$ac_ext >&5
47763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47767 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
47768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
47769 if test "$ac_cv_sys_largefile_source" != no; then
47771 cat >>confdefs.h <<_ACEOF
47772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
47778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
47779 # in glibc 2.1.3, but that breaks too many other things.
47780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
47781 { echo "$as_me:$LINENO: checking for fseeko" >&5
47782 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
47783 if test "${ac_cv_func_fseeko+set}" = set; then
47784 echo $ECHO_N "(cached) $ECHO_C" >&6
47786 cat >conftest.$ac_ext <<_ACEOF
47789 cat confdefs.h >>conftest.$ac_ext
47790 cat >>conftest.$ac_ext <<_ACEOF
47791 /* end confdefs.h. */
47796 return fseeko && fseeko (stdin, 0, 0);
47801 rm -f conftest.$ac_objext conftest$ac_exeext
47802 if { (ac_try="$ac_link"
47803 case "(($ac_try" in
47804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47805 *) ac_try_echo=$ac_try;;
47807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47808 (eval "$ac_link") 2>conftest.er1
47810 grep -v '^ *+' conftest.er1 >conftest.err
47812 cat conftest.err >&5
47813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814 (exit $ac_status); } &&
47815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47816 { (case "(($ac_try" in
47817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47818 *) ac_try_echo=$ac_try;;
47820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47821 (eval "$ac_try") 2>&5
47823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824 (exit $ac_status); }; } &&
47825 { ac_try='test -s conftest$ac_exeext'
47826 { (case "(($ac_try" in
47827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47828 *) ac_try_echo=$ac_try;;
47830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47831 (eval "$ac_try") 2>&5
47833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47834 (exit $ac_status); }; }; then
47835 ac_cv_func_fseeko=yes
47837 echo "$as_me: failed program was:" >&5
47838 sed 's/^/| /' conftest.$ac_ext >&5
47840 ac_cv_func_fseeko=no
47843 rm -f core conftest.err conftest.$ac_objext \
47844 conftest$ac_exeext conftest.$ac_ext
47846 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
47847 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
47848 if test $ac_cv_func_fseeko = yes; then
47850 cat >>confdefs.h <<\_ACEOF
47851 #define HAVE_FSEEKO 1
47857 { echo "$as_me:$LINENO: checking for /proc/uptime" >&5
47858 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6; }
47859 if test "${jm_cv_have_proc_uptime+set}" = set; then
47860 echo $ECHO_N "(cached) $ECHO_C" >&6
47862 jm_cv_have_proc_uptime=no
47863 test -f /proc/uptime \
47864 && test "$cross_compiling" = no \
47865 && cat < /proc/uptime >/dev/null 2>/dev/null \
47866 && jm_cv_have_proc_uptime=yes
47868 { echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
47869 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6; }
47870 if test $jm_cv_have_proc_uptime = yes; then
47872 cat >>confdefs.h <<\_ACEOF
47873 #define HAVE_PROC_UPTIME 1
47880 for ac_func in ftruncate
47882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47886 echo $ECHO_N "(cached) $ECHO_C" >&6
47888 cat >conftest.$ac_ext <<_ACEOF
47891 cat confdefs.h >>conftest.$ac_ext
47892 cat >>conftest.$ac_ext <<_ACEOF
47893 /* end confdefs.h. */
47894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47896 #define $ac_func innocuous_$ac_func
47898 /* System header to define __stub macros and hopefully few prototypes,
47899 which can conflict with char $ac_func (); below.
47900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47901 <limits.h> exists even on freestanding compilers. */
47904 # include <limits.h>
47906 # include <assert.h>
47911 /* Override any GCC internal prototype to avoid an error.
47912 Use char because int might match the return type of a GCC
47913 builtin and then its argument prototype would still apply. */
47918 /* The GNU C library defines this for functions which it implements
47919 to always fail with ENOSYS. Some functions are actually named
47920 something starting with __ and the normal name is an alias. */
47921 #if defined __stub_$ac_func || defined __stub___$ac_func
47928 return $ac_func ();
47933 rm -f conftest.$ac_objext conftest$ac_exeext
47934 if { (ac_try="$ac_link"
47935 case "(($ac_try" in
47936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47937 *) ac_try_echo=$ac_try;;
47939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47940 (eval "$ac_link") 2>conftest.er1
47942 grep -v '^ *+' conftest.er1 >conftest.err
47944 cat conftest.err >&5
47945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47946 (exit $ac_status); } &&
47947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47948 { (case "(($ac_try" in
47949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47950 *) ac_try_echo=$ac_try;;
47952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47953 (eval "$ac_try") 2>&5
47955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47956 (exit $ac_status); }; } &&
47957 { ac_try='test -s conftest$ac_exeext'
47958 { (case "(($ac_try" in
47959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47960 *) ac_try_echo=$ac_try;;
47962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47963 (eval "$ac_try") 2>&5
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); }; }; then
47967 eval "$as_ac_var=yes"
47969 echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47972 eval "$as_ac_var=no"
47975 rm -f core conftest.err conftest.$ac_objext \
47976 conftest$ac_exeext conftest.$ac_ext
47978 ac_res=`eval echo '${'$as_ac_var'}'`
47979 { echo "$as_me:$LINENO: result: $ac_res" >&5
47980 echo "${ECHO_T}$ac_res" >&6; }
47981 if test `eval echo '${'$as_ac_var'}'` = yes; then
47982 cat >>confdefs.h <<_ACEOF
47983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47987 case " $LIBOBJS " in
47988 *" $ac_func.$ac_objext "* ) ;;
47989 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47997 if test $ac_cv_func_ftruncate = no; then
48000 for ac_func in chsize
48002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48006 echo $ECHO_N "(cached) $ECHO_C" >&6
48008 cat >conftest.$ac_ext <<_ACEOF
48011 cat confdefs.h >>conftest.$ac_ext
48012 cat >>conftest.$ac_ext <<_ACEOF
48013 /* end confdefs.h. */
48014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48016 #define $ac_func innocuous_$ac_func
48018 /* System header to define __stub macros and hopefully few prototypes,
48019 which can conflict with char $ac_func (); below.
48020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48021 <limits.h> exists even on freestanding compilers. */
48024 # include <limits.h>
48026 # include <assert.h>
48031 /* Override any GCC internal prototype to avoid an error.
48032 Use char because int might match the return type of a GCC
48033 builtin and then its argument prototype would still apply. */
48038 /* The GNU C library defines this for functions which it implements
48039 to always fail with ENOSYS. Some functions are actually named
48040 something starting with __ and the normal name is an alias. */
48041 #if defined __stub_$ac_func || defined __stub___$ac_func
48048 return $ac_func ();
48053 rm -f conftest.$ac_objext conftest$ac_exeext
48054 if { (ac_try="$ac_link"
48055 case "(($ac_try" in
48056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48057 *) ac_try_echo=$ac_try;;
48059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48060 (eval "$ac_link") 2>conftest.er1
48062 grep -v '^ *+' conftest.er1 >conftest.err
48064 cat conftest.err >&5
48065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066 (exit $ac_status); } &&
48067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48068 { (case "(($ac_try" in
48069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48070 *) ac_try_echo=$ac_try;;
48072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48073 (eval "$ac_try") 2>&5
48075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48076 (exit $ac_status); }; } &&
48077 { ac_try='test -s conftest$ac_exeext'
48078 { (case "(($ac_try" in
48079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48080 *) ac_try_echo=$ac_try;;
48082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48083 (eval "$ac_try") 2>&5
48085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48086 (exit $ac_status); }; }; then
48087 eval "$as_ac_var=yes"
48089 echo "$as_me: failed program was:" >&5
48090 sed 's/^/| /' conftest.$ac_ext >&5
48092 eval "$as_ac_var=no"
48095 rm -f core conftest.err conftest.$ac_objext \
48096 conftest$ac_exeext conftest.$ac_ext
48098 ac_res=`eval echo '${'$as_ac_var'}'`
48099 { echo "$as_me:$LINENO: result: $ac_res" >&5
48100 echo "${ECHO_T}$ac_res" >&6; }
48101 if test `eval echo '${'$as_ac_var'}'` = yes; then
48102 cat >>confdefs.h <<_ACEOF
48103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48110 # If someone lacks ftruncate, make configure fail, and request
48111 # a bug report to inform us about it.
48112 if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
48113 { { echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
48114 Please report this, along with the output of \"uname -a\", to the
48115 bug-coreutils@gnu.org mailing list. To continue past this point,
48116 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
48117 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
48118 See \`config.log' for more details." >&5
48119 echo "$as_me: error: Your system lacks the ftruncate function.
48120 Please report this, along with the output of \"uname -a\", to the
48121 bug-coreutils@gnu.org mailing list. To continue past this point,
48122 rerun configure with SKIP_FTRUNCATE_CHECK=yes.
48123 E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
48124 See \`config.log' for more details." >&2;}
48125 { (exit 1); exit 1; }; }
48136 ac_header_dirent=no
48137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
48138 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
48139 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
48140 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
48141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48142 echo $ECHO_N "(cached) $ECHO_C" >&6
48144 cat >conftest.$ac_ext <<_ACEOF
48147 cat confdefs.h >>conftest.$ac_ext
48148 cat >>conftest.$ac_ext <<_ACEOF
48149 /* end confdefs.h. */
48150 #include <sys/types.h>
48162 rm -f conftest.$ac_objext
48163 if { (ac_try="$ac_compile"
48164 case "(($ac_try" in
48165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48166 *) ac_try_echo=$ac_try;;
48168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48169 (eval "$ac_compile") 2>conftest.er1
48171 grep -v '^ *+' conftest.er1 >conftest.err
48173 cat conftest.err >&5
48174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48175 (exit $ac_status); } &&
48176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48177 { (case "(($ac_try" in
48178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48179 *) ac_try_echo=$ac_try;;
48181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48182 (eval "$ac_try") 2>&5
48184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48185 (exit $ac_status); }; } &&
48186 { ac_try='test -s conftest.$ac_objext'
48187 { (case "(($ac_try" in
48188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48189 *) ac_try_echo=$ac_try;;
48191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48192 (eval "$ac_try") 2>&5
48194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48195 (exit $ac_status); }; }; then
48196 eval "$as_ac_Header=yes"
48198 echo "$as_me: failed program was:" >&5
48199 sed 's/^/| /' conftest.$ac_ext >&5
48201 eval "$as_ac_Header=no"
48204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48206 ac_res=`eval echo '${'$as_ac_Header'}'`
48207 { echo "$as_me:$LINENO: result: $ac_res" >&5
48208 echo "${ECHO_T}$ac_res" >&6; }
48209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48210 cat >>confdefs.h <<_ACEOF
48211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
48214 ac_header_dirent=$ac_hdr; break
48218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
48219 if test $ac_header_dirent = dirent.h; then
48220 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
48221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
48222 if test "${ac_cv_search_opendir+set}" = set; then
48223 echo $ECHO_N "(cached) $ECHO_C" >&6
48225 ac_func_search_save_LIBS=$LIBS
48226 cat >conftest.$ac_ext <<_ACEOF
48229 cat confdefs.h >>conftest.$ac_ext
48230 cat >>conftest.$ac_ext <<_ACEOF
48231 /* end confdefs.h. */
48233 /* Override any GCC internal prototype to avoid an error.
48234 Use char because int might match the return type of a GCC
48235 builtin and then its argument prototype would still apply. */
48248 for ac_lib in '' dir; do
48249 if test -z "$ac_lib"; then
48250 ac_res="none required"
48253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
48255 rm -f conftest.$ac_objext conftest$ac_exeext
48256 if { (ac_try="$ac_link"
48257 case "(($ac_try" in
48258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48259 *) ac_try_echo=$ac_try;;
48261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48262 (eval "$ac_link") 2>conftest.er1
48264 grep -v '^ *+' conftest.er1 >conftest.err
48266 cat conftest.err >&5
48267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268 (exit $ac_status); } &&
48269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48270 { (case "(($ac_try" in
48271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272 *) ac_try_echo=$ac_try;;
48274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48275 (eval "$ac_try") 2>&5
48277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278 (exit $ac_status); }; } &&
48279 { ac_try='test -s conftest$ac_exeext'
48280 { (case "(($ac_try" in
48281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48282 *) ac_try_echo=$ac_try;;
48284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48285 (eval "$ac_try") 2>&5
48287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48288 (exit $ac_status); }; }; then
48289 ac_cv_search_opendir=$ac_res
48291 echo "$as_me: failed program was:" >&5
48292 sed 's/^/| /' conftest.$ac_ext >&5
48297 rm -f core conftest.err conftest.$ac_objext \
48299 if test "${ac_cv_search_opendir+set}" = set; then
48303 if test "${ac_cv_search_opendir+set}" = set; then
48306 ac_cv_search_opendir=no
48308 rm conftest.$ac_ext
48309 LIBS=$ac_func_search_save_LIBS
48311 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
48312 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
48313 ac_res=$ac_cv_search_opendir
48314 if test "$ac_res" != no; then
48315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
48320 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
48321 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
48322 if test "${ac_cv_search_opendir+set}" = set; then
48323 echo $ECHO_N "(cached) $ECHO_C" >&6
48325 ac_func_search_save_LIBS=$LIBS
48326 cat >conftest.$ac_ext <<_ACEOF
48329 cat confdefs.h >>conftest.$ac_ext
48330 cat >>conftest.$ac_ext <<_ACEOF
48331 /* end confdefs.h. */
48333 /* Override any GCC internal prototype to avoid an error.
48334 Use char because int might match the return type of a GCC
48335 builtin and then its argument prototype would still apply. */
48348 for ac_lib in '' x; do
48349 if test -z "$ac_lib"; then
48350 ac_res="none required"
48353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
48355 rm -f conftest.$ac_objext conftest$ac_exeext
48356 if { (ac_try="$ac_link"
48357 case "(($ac_try" in
48358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48359 *) ac_try_echo=$ac_try;;
48361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48362 (eval "$ac_link") 2>conftest.er1
48364 grep -v '^ *+' conftest.er1 >conftest.err
48366 cat conftest.err >&5
48367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368 (exit $ac_status); } &&
48369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48370 { (case "(($ac_try" in
48371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48372 *) ac_try_echo=$ac_try;;
48374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48375 (eval "$ac_try") 2>&5
48377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378 (exit $ac_status); }; } &&
48379 { ac_try='test -s conftest$ac_exeext'
48380 { (case "(($ac_try" in
48381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48382 *) ac_try_echo=$ac_try;;
48384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48385 (eval "$ac_try") 2>&5
48387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48388 (exit $ac_status); }; }; then
48389 ac_cv_search_opendir=$ac_res
48391 echo "$as_me: failed program was:" >&5
48392 sed 's/^/| /' conftest.$ac_ext >&5
48397 rm -f core conftest.err conftest.$ac_objext \
48399 if test "${ac_cv_search_opendir+set}" = set; then
48403 if test "${ac_cv_search_opendir+set}" = set; then
48406 ac_cv_search_opendir=no
48408 rm conftest.$ac_ext
48409 LIBS=$ac_func_search_save_LIBS
48411 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
48412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
48413 ac_res=$ac_cv_search_opendir
48414 if test "$ac_res" != no; then
48415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
48421 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
48422 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
48423 if test "${ac_cv_func_closedir_void+set}" = set; then
48424 echo $ECHO_N "(cached) $ECHO_C" >&6
48426 if test "$cross_compiling" = yes; then
48427 ac_cv_func_closedir_void=yes
48429 cat >conftest.$ac_ext <<_ACEOF
48432 cat confdefs.h >>conftest.$ac_ext
48433 cat >>conftest.$ac_ext <<_ACEOF
48434 /* end confdefs.h. */
48435 $ac_includes_default
48436 #include <$ac_header_dirent>
48437 #ifndef __cplusplus
48444 return closedir (opendir (".")) != 0;
48449 rm -f conftest$ac_exeext
48450 if { (ac_try="$ac_link"
48451 case "(($ac_try" in
48452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48453 *) ac_try_echo=$ac_try;;
48455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48456 (eval "$ac_link") 2>&5
48458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48460 { (case "(($ac_try" in
48461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48462 *) ac_try_echo=$ac_try;;
48464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48465 (eval "$ac_try") 2>&5
48467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48468 (exit $ac_status); }; }; then
48469 ac_cv_func_closedir_void=no
48471 echo "$as_me: program exited with status $ac_status" >&5
48472 echo "$as_me: failed program was:" >&5
48473 sed 's/^/| /' conftest.$ac_ext >&5
48475 ( exit $ac_status )
48476 ac_cv_func_closedir_void=yes
48478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48483 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
48484 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
48485 if test $ac_cv_func_closedir_void = yes; then
48487 cat >>confdefs.h <<\_ACEOF
48488 #define CLOSEDIR_VOID 1
48545 for ac_header in sys/mount.h
48547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48551 echo $ECHO_N "(cached) $ECHO_C" >&6
48553 cat >conftest.$ac_ext <<_ACEOF
48556 cat confdefs.h >>conftest.$ac_ext
48557 cat >>conftest.$ac_ext <<_ACEOF
48558 /* end confdefs.h. */
48559 $ac_includes_default
48560 #if HAVE_SYS_PARAM_H
48561 #include <sys/param.h>
48564 #include <$ac_header>
48566 rm -f conftest.$ac_objext
48567 if { (ac_try="$ac_compile"
48568 case "(($ac_try" in
48569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48570 *) ac_try_echo=$ac_try;;
48572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48573 (eval "$ac_compile") 2>conftest.er1
48575 grep -v '^ *+' conftest.er1 >conftest.err
48577 cat conftest.err >&5
48578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48579 (exit $ac_status); } &&
48580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48581 { (case "(($ac_try" in
48582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48583 *) ac_try_echo=$ac_try;;
48585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48586 (eval "$ac_try") 2>&5
48588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48589 (exit $ac_status); }; } &&
48590 { ac_try='test -s conftest.$ac_objext'
48591 { (case "(($ac_try" in
48592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48593 *) ac_try_echo=$ac_try;;
48595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48596 (eval "$ac_try") 2>&5
48598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599 (exit $ac_status); }; }; then
48600 eval "$as_ac_Header=yes"
48602 echo "$as_me: failed program was:" >&5
48603 sed 's/^/| /' conftest.$ac_ext >&5
48605 eval "$as_ac_Header=no"
48608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48610 ac_res=`eval echo '${'$as_ac_Header'}'`
48611 { echo "$as_me:$LINENO: result: $ac_res" >&5
48612 echo "${ECHO_T}$ac_res" >&6; }
48613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48614 cat >>confdefs.h <<_ACEOF
48615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48629 # For `struct statfs' on Ultrix 4.4.
48633 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
48635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48639 echo $ECHO_N "(cached) $ECHO_C" >&6
48641 cat >conftest.$ac_ext <<_ACEOF
48644 cat confdefs.h >>conftest.$ac_ext
48645 cat >>conftest.$ac_ext <<_ACEOF
48646 /* end confdefs.h. */
48647 $ac_includes_default
48649 #include <$ac_header>
48651 rm -f conftest.$ac_objext
48652 if { (ac_try="$ac_compile"
48653 case "(($ac_try" in
48654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48655 *) ac_try_echo=$ac_try;;
48657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48658 (eval "$ac_compile") 2>conftest.er1
48660 grep -v '^ *+' conftest.er1 >conftest.err
48662 cat conftest.err >&5
48663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48664 (exit $ac_status); } &&
48665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48666 { (case "(($ac_try" in
48667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48668 *) ac_try_echo=$ac_try;;
48670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48671 (eval "$ac_try") 2>&5
48673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48674 (exit $ac_status); }; } &&
48675 { ac_try='test -s conftest.$ac_objext'
48676 { (case "(($ac_try" in
48677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48678 *) ac_try_echo=$ac_try;;
48680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48681 (eval "$ac_try") 2>&5
48683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684 (exit $ac_status); }; }; then
48685 eval "$as_ac_Header=yes"
48687 echo "$as_me: failed program was:" >&5
48688 sed 's/^/| /' conftest.$ac_ext >&5
48690 eval "$as_ac_Header=no"
48693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48695 ac_res=`eval echo '${'$as_ac_Header'}'`
48696 { echo "$as_me:$LINENO: result: $ac_res" >&5
48697 echo "${ECHO_T}$ac_res" >&6; }
48698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48699 cat >>confdefs.h <<_ACEOF
48700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48711 statxfs_includes="\
48712 $ac_includes_default
48713 #if HAVE_SYS_STATVFS_H
48714 # include <sys/statvfs.h>
48717 # include <sys/vfs.h>
48719 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
48720 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
48721 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
48722 # include <sys/param.h>
48723 # include <sys/mount.h>
48724 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
48725 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
48726 # include <netinet/in.h>
48727 # include <nfs/nfs_clnt.h>
48728 # include <nfs/vfs.h>
48732 { echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
48733 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6; }
48734 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
48735 echo $ECHO_N "(cached) $ECHO_C" >&6
48737 cat >conftest.$ac_ext <<_ACEOF
48740 cat confdefs.h >>conftest.$ac_ext
48741 cat >>conftest.$ac_ext <<_ACEOF
48742 /* end confdefs.h. */
48748 static struct statfs ac_aggr;
48749 if (ac_aggr.f_basetype)
48755 rm -f conftest.$ac_objext
48756 if { (ac_try="$ac_compile"
48757 case "(($ac_try" in
48758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48759 *) ac_try_echo=$ac_try;;
48761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48762 (eval "$ac_compile") 2>conftest.er1
48764 grep -v '^ *+' conftest.er1 >conftest.err
48766 cat conftest.err >&5
48767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48768 (exit $ac_status); } &&
48769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48770 { (case "(($ac_try" in
48771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48772 *) ac_try_echo=$ac_try;;
48774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48775 (eval "$ac_try") 2>&5
48777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48778 (exit $ac_status); }; } &&
48779 { ac_try='test -s conftest.$ac_objext'
48780 { (case "(($ac_try" in
48781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48782 *) ac_try_echo=$ac_try;;
48784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48785 (eval "$ac_try") 2>&5
48787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48788 (exit $ac_status); }; }; then
48789 ac_cv_member_struct_statfs_f_basetype=yes
48791 echo "$as_me: failed program was:" >&5
48792 sed 's/^/| /' conftest.$ac_ext >&5
48794 cat >conftest.$ac_ext <<_ACEOF
48797 cat confdefs.h >>conftest.$ac_ext
48798 cat >>conftest.$ac_ext <<_ACEOF
48799 /* end confdefs.h. */
48805 static struct statfs ac_aggr;
48806 if (sizeof ac_aggr.f_basetype)
48812 rm -f conftest.$ac_objext
48813 if { (ac_try="$ac_compile"
48814 case "(($ac_try" in
48815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48816 *) ac_try_echo=$ac_try;;
48818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48819 (eval "$ac_compile") 2>conftest.er1
48821 grep -v '^ *+' conftest.er1 >conftest.err
48823 cat conftest.err >&5
48824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48825 (exit $ac_status); } &&
48826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48827 { (case "(($ac_try" in
48828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48829 *) ac_try_echo=$ac_try;;
48831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48832 (eval "$ac_try") 2>&5
48834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48835 (exit $ac_status); }; } &&
48836 { ac_try='test -s conftest.$ac_objext'
48837 { (case "(($ac_try" in
48838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48839 *) ac_try_echo=$ac_try;;
48841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48842 (eval "$ac_try") 2>&5
48844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48845 (exit $ac_status); }; }; then
48846 ac_cv_member_struct_statfs_f_basetype=yes
48848 echo "$as_me: failed program was:" >&5
48849 sed 's/^/| /' conftest.$ac_ext >&5
48851 ac_cv_member_struct_statfs_f_basetype=no
48854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48859 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
48860 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6; }
48861 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
48863 cat >>confdefs.h <<_ACEOF
48864 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
48870 { echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
48871 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6; }
48872 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
48873 echo $ECHO_N "(cached) $ECHO_C" >&6
48875 cat >conftest.$ac_ext <<_ACEOF
48878 cat confdefs.h >>conftest.$ac_ext
48879 cat >>conftest.$ac_ext <<_ACEOF
48880 /* end confdefs.h. */
48886 static struct statvfs ac_aggr;
48887 if (ac_aggr.f_basetype)
48893 rm -f conftest.$ac_objext
48894 if { (ac_try="$ac_compile"
48895 case "(($ac_try" in
48896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48897 *) ac_try_echo=$ac_try;;
48899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48900 (eval "$ac_compile") 2>conftest.er1
48902 grep -v '^ *+' conftest.er1 >conftest.err
48904 cat conftest.err >&5
48905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48906 (exit $ac_status); } &&
48907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48908 { (case "(($ac_try" in
48909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48910 *) ac_try_echo=$ac_try;;
48912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48913 (eval "$ac_try") 2>&5
48915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48916 (exit $ac_status); }; } &&
48917 { ac_try='test -s conftest.$ac_objext'
48918 { (case "(($ac_try" in
48919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48920 *) ac_try_echo=$ac_try;;
48922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48923 (eval "$ac_try") 2>&5
48925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926 (exit $ac_status); }; }; then
48927 ac_cv_member_struct_statvfs_f_basetype=yes
48929 echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48932 cat >conftest.$ac_ext <<_ACEOF
48935 cat confdefs.h >>conftest.$ac_ext
48936 cat >>conftest.$ac_ext <<_ACEOF
48937 /* end confdefs.h. */
48943 static struct statvfs ac_aggr;
48944 if (sizeof ac_aggr.f_basetype)
48950 rm -f conftest.$ac_objext
48951 if { (ac_try="$ac_compile"
48952 case "(($ac_try" in
48953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48954 *) ac_try_echo=$ac_try;;
48956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48957 (eval "$ac_compile") 2>conftest.er1
48959 grep -v '^ *+' conftest.er1 >conftest.err
48961 cat conftest.err >&5
48962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48963 (exit $ac_status); } &&
48964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48965 { (case "(($ac_try" in
48966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48967 *) ac_try_echo=$ac_try;;
48969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48970 (eval "$ac_try") 2>&5
48972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48973 (exit $ac_status); }; } &&
48974 { ac_try='test -s conftest.$ac_objext'
48975 { (case "(($ac_try" in
48976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48977 *) ac_try_echo=$ac_try;;
48979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48980 (eval "$ac_try") 2>&5
48982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48983 (exit $ac_status); }; }; then
48984 ac_cv_member_struct_statvfs_f_basetype=yes
48986 echo "$as_me: failed program was:" >&5
48987 sed 's/^/| /' conftest.$ac_ext >&5
48989 ac_cv_member_struct_statvfs_f_basetype=no
48992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
48998 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6; }
48999 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
49001 cat >>confdefs.h <<_ACEOF
49002 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
49008 { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
49009 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
49010 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
49011 echo $ECHO_N "(cached) $ECHO_C" >&6
49013 cat >conftest.$ac_ext <<_ACEOF
49016 cat confdefs.h >>conftest.$ac_ext
49017 cat >>conftest.$ac_ext <<_ACEOF
49018 /* end confdefs.h. */
49024 static struct statfs ac_aggr;
49025 if (ac_aggr.f_fstypename)
49031 rm -f conftest.$ac_objext
49032 if { (ac_try="$ac_compile"
49033 case "(($ac_try" in
49034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49035 *) ac_try_echo=$ac_try;;
49037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49038 (eval "$ac_compile") 2>conftest.er1
49040 grep -v '^ *+' conftest.er1 >conftest.err
49042 cat conftest.err >&5
49043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044 (exit $ac_status); } &&
49045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49046 { (case "(($ac_try" in
49047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49048 *) ac_try_echo=$ac_try;;
49050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49051 (eval "$ac_try") 2>&5
49053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49054 (exit $ac_status); }; } &&
49055 { ac_try='test -s conftest.$ac_objext'
49056 { (case "(($ac_try" in
49057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49058 *) ac_try_echo=$ac_try;;
49060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49061 (eval "$ac_try") 2>&5
49063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49064 (exit $ac_status); }; }; then
49065 ac_cv_member_struct_statfs_f_fstypename=yes
49067 echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49070 cat >conftest.$ac_ext <<_ACEOF
49073 cat confdefs.h >>conftest.$ac_ext
49074 cat >>conftest.$ac_ext <<_ACEOF
49075 /* end confdefs.h. */
49081 static struct statfs ac_aggr;
49082 if (sizeof ac_aggr.f_fstypename)
49088 rm -f conftest.$ac_objext
49089 if { (ac_try="$ac_compile"
49090 case "(($ac_try" in
49091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49092 *) ac_try_echo=$ac_try;;
49094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49095 (eval "$ac_compile") 2>conftest.er1
49097 grep -v '^ *+' conftest.er1 >conftest.err
49099 cat conftest.err >&5
49100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49101 (exit $ac_status); } &&
49102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49103 { (case "(($ac_try" in
49104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49105 *) ac_try_echo=$ac_try;;
49107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49108 (eval "$ac_try") 2>&5
49110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49111 (exit $ac_status); }; } &&
49112 { ac_try='test -s conftest.$ac_objext'
49113 { (case "(($ac_try" in
49114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49115 *) ac_try_echo=$ac_try;;
49117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49118 (eval "$ac_try") 2>&5
49120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49121 (exit $ac_status); }; }; then
49122 ac_cv_member_struct_statfs_f_fstypename=yes
49124 echo "$as_me: failed program was:" >&5
49125 sed 's/^/| /' conftest.$ac_ext >&5
49127 ac_cv_member_struct_statfs_f_fstypename=no
49130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
49136 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
49137 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
49139 cat >>confdefs.h <<_ACEOF
49140 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
49146 { echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
49147 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6; }
49148 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
49149 echo $ECHO_N "(cached) $ECHO_C" >&6
49151 cat >conftest.$ac_ext <<_ACEOF
49154 cat confdefs.h >>conftest.$ac_ext
49155 cat >>conftest.$ac_ext <<_ACEOF
49156 /* end confdefs.h. */
49162 static struct statfs ac_aggr;
49163 if (ac_aggr.f_type)
49169 rm -f conftest.$ac_objext
49170 if { (ac_try="$ac_compile"
49171 case "(($ac_try" in
49172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49173 *) ac_try_echo=$ac_try;;
49175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49176 (eval "$ac_compile") 2>conftest.er1
49178 grep -v '^ *+' conftest.er1 >conftest.err
49180 cat conftest.err >&5
49181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182 (exit $ac_status); } &&
49183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49184 { (case "(($ac_try" in
49185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49186 *) ac_try_echo=$ac_try;;
49188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49189 (eval "$ac_try") 2>&5
49191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49192 (exit $ac_status); }; } &&
49193 { ac_try='test -s conftest.$ac_objext'
49194 { (case "(($ac_try" in
49195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49196 *) ac_try_echo=$ac_try;;
49198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49199 (eval "$ac_try") 2>&5
49201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49202 (exit $ac_status); }; }; then
49203 ac_cv_member_struct_statfs_f_type=yes
49205 echo "$as_me: failed program was:" >&5
49206 sed 's/^/| /' conftest.$ac_ext >&5
49208 cat >conftest.$ac_ext <<_ACEOF
49211 cat confdefs.h >>conftest.$ac_ext
49212 cat >>conftest.$ac_ext <<_ACEOF
49213 /* end confdefs.h. */
49219 static struct statfs ac_aggr;
49220 if (sizeof ac_aggr.f_type)
49226 rm -f conftest.$ac_objext
49227 if { (ac_try="$ac_compile"
49228 case "(($ac_try" in
49229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49230 *) ac_try_echo=$ac_try;;
49232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49233 (eval "$ac_compile") 2>conftest.er1
49235 grep -v '^ *+' conftest.er1 >conftest.err
49237 cat conftest.err >&5
49238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49239 (exit $ac_status); } &&
49240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49241 { (case "(($ac_try" in
49242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49243 *) ac_try_echo=$ac_try;;
49245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49246 (eval "$ac_try") 2>&5
49248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249 (exit $ac_status); }; } &&
49250 { ac_try='test -s conftest.$ac_objext'
49251 { (case "(($ac_try" in
49252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49253 *) ac_try_echo=$ac_try;;
49255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49256 (eval "$ac_try") 2>&5
49258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259 (exit $ac_status); }; }; then
49260 ac_cv_member_struct_statfs_f_type=yes
49262 echo "$as_me: failed program was:" >&5
49263 sed 's/^/| /' conftest.$ac_ext >&5
49265 ac_cv_member_struct_statfs_f_type=no
49268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49273 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
49274 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6; }
49275 if test $ac_cv_member_struct_statfs_f_type = yes; then
49277 cat >>confdefs.h <<_ACEOF
49278 #define HAVE_STRUCT_STATFS_F_TYPE 1
49284 { echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
49285 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6; }
49286 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
49287 echo $ECHO_N "(cached) $ECHO_C" >&6
49289 cat >conftest.$ac_ext <<_ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h. */
49300 static struct statvfs ac_aggr;
49301 if (ac_aggr.f_type)
49307 rm -f conftest.$ac_objext
49308 if { (ac_try="$ac_compile"
49309 case "(($ac_try" in
49310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49311 *) ac_try_echo=$ac_try;;
49313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49314 (eval "$ac_compile") 2>conftest.er1
49316 grep -v '^ *+' conftest.er1 >conftest.err
49318 cat conftest.err >&5
49319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49320 (exit $ac_status); } &&
49321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49322 { (case "(($ac_try" in
49323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49324 *) ac_try_echo=$ac_try;;
49326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49327 (eval "$ac_try") 2>&5
49329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49330 (exit $ac_status); }; } &&
49331 { ac_try='test -s conftest.$ac_objext'
49332 { (case "(($ac_try" in
49333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49334 *) ac_try_echo=$ac_try;;
49336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49337 (eval "$ac_try") 2>&5
49339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49340 (exit $ac_status); }; }; then
49341 ac_cv_member_struct_statvfs_f_type=yes
49343 echo "$as_me: failed program was:" >&5
49344 sed 's/^/| /' conftest.$ac_ext >&5
49346 cat >conftest.$ac_ext <<_ACEOF
49349 cat confdefs.h >>conftest.$ac_ext
49350 cat >>conftest.$ac_ext <<_ACEOF
49351 /* end confdefs.h. */
49357 static struct statvfs ac_aggr;
49358 if (sizeof ac_aggr.f_type)
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49371 (eval "$ac_compile") 2>conftest.er1
49373 grep -v '^ *+' conftest.er1 >conftest.err
49375 cat conftest.err >&5
49376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49377 (exit $ac_status); } &&
49378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49379 { (case "(($ac_try" in
49380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49381 *) ac_try_echo=$ac_try;;
49383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49384 (eval "$ac_try") 2>&5
49386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387 (exit $ac_status); }; } &&
49388 { ac_try='test -s conftest.$ac_objext'
49389 { (case "(($ac_try" in
49390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49391 *) ac_try_echo=$ac_try;;
49393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49394 (eval "$ac_try") 2>&5
49396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49397 (exit $ac_status); }; }; then
49398 ac_cv_member_struct_statvfs_f_type=yes
49400 echo "$as_me: failed program was:" >&5
49401 sed 's/^/| /' conftest.$ac_ext >&5
49403 ac_cv_member_struct_statvfs_f_type=no
49406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49411 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
49412 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6; }
49413 if test $ac_cv_member_struct_statvfs_f_type = yes; then
49415 cat >>confdefs.h <<_ACEOF
49416 #define HAVE_STRUCT_STATVFS_F_TYPE 1
49422 { echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
49423 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6; }
49424 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
49425 echo $ECHO_N "(cached) $ECHO_C" >&6
49427 cat >conftest.$ac_ext <<_ACEOF
49430 cat confdefs.h >>conftest.$ac_ext
49431 cat >>conftest.$ac_ext <<_ACEOF
49432 /* end confdefs.h. */
49438 static struct statfs ac_aggr;
49439 if (ac_aggr.f_fsid.__val)
49445 rm -f conftest.$ac_objext
49446 if { (ac_try="$ac_compile"
49447 case "(($ac_try" in
49448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49449 *) ac_try_echo=$ac_try;;
49451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49452 (eval "$ac_compile") 2>conftest.er1
49454 grep -v '^ *+' conftest.er1 >conftest.err
49456 cat conftest.err >&5
49457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458 (exit $ac_status); } &&
49459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49460 { (case "(($ac_try" in
49461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49462 *) ac_try_echo=$ac_try;;
49464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49465 (eval "$ac_try") 2>&5
49467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49468 (exit $ac_status); }; } &&
49469 { ac_try='test -s conftest.$ac_objext'
49470 { (case "(($ac_try" in
49471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49472 *) ac_try_echo=$ac_try;;
49474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49475 (eval "$ac_try") 2>&5
49477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49478 (exit $ac_status); }; }; then
49479 ac_cv_member_struct_statfs_f_fsid___val=yes
49481 echo "$as_me: failed program was:" >&5
49482 sed 's/^/| /' conftest.$ac_ext >&5
49484 cat >conftest.$ac_ext <<_ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h. */
49495 static struct statfs ac_aggr;
49496 if (sizeof ac_aggr.f_fsid.__val)
49502 rm -f conftest.$ac_objext
49503 if { (ac_try="$ac_compile"
49504 case "(($ac_try" in
49505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49506 *) ac_try_echo=$ac_try;;
49508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49509 (eval "$ac_compile") 2>conftest.er1
49511 grep -v '^ *+' conftest.er1 >conftest.err
49513 cat conftest.err >&5
49514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49515 (exit $ac_status); } &&
49516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49517 { (case "(($ac_try" in
49518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49519 *) ac_try_echo=$ac_try;;
49521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49522 (eval "$ac_try") 2>&5
49524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49525 (exit $ac_status); }; } &&
49526 { ac_try='test -s conftest.$ac_objext'
49527 { (case "(($ac_try" in
49528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49529 *) ac_try_echo=$ac_try;;
49531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49532 (eval "$ac_try") 2>&5
49534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535 (exit $ac_status); }; }; then
49536 ac_cv_member_struct_statfs_f_fsid___val=yes
49538 echo "$as_me: failed program was:" >&5
49539 sed 's/^/| /' conftest.$ac_ext >&5
49541 ac_cv_member_struct_statfs_f_fsid___val=no
49544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
49550 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6; }
49551 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
49553 cat >>confdefs.h <<_ACEOF
49554 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
49560 { echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
49561 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6; }
49562 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
49563 echo $ECHO_N "(cached) $ECHO_C" >&6
49565 cat >conftest.$ac_ext <<_ACEOF
49568 cat confdefs.h >>conftest.$ac_ext
49569 cat >>conftest.$ac_ext <<_ACEOF
49570 /* end confdefs.h. */
49576 static struct statvfs ac_aggr;
49577 if (ac_aggr.f_fsid.__val)
49583 rm -f conftest.$ac_objext
49584 if { (ac_try="$ac_compile"
49585 case "(($ac_try" in
49586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49587 *) ac_try_echo=$ac_try;;
49589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49590 (eval "$ac_compile") 2>conftest.er1
49592 grep -v '^ *+' conftest.er1 >conftest.err
49594 cat conftest.err >&5
49595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596 (exit $ac_status); } &&
49597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49598 { (case "(($ac_try" in
49599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49600 *) ac_try_echo=$ac_try;;
49602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49603 (eval "$ac_try") 2>&5
49605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606 (exit $ac_status); }; } &&
49607 { ac_try='test -s conftest.$ac_objext'
49608 { (case "(($ac_try" in
49609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49610 *) ac_try_echo=$ac_try;;
49612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49613 (eval "$ac_try") 2>&5
49615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49616 (exit $ac_status); }; }; then
49617 ac_cv_member_struct_statvfs_f_fsid___val=yes
49619 echo "$as_me: failed program was:" >&5
49620 sed 's/^/| /' conftest.$ac_ext >&5
49622 cat >conftest.$ac_ext <<_ACEOF
49625 cat confdefs.h >>conftest.$ac_ext
49626 cat >>conftest.$ac_ext <<_ACEOF
49627 /* end confdefs.h. */
49633 static struct statvfs ac_aggr;
49634 if (sizeof ac_aggr.f_fsid.__val)
49640 rm -f conftest.$ac_objext
49641 if { (ac_try="$ac_compile"
49642 case "(($ac_try" in
49643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49644 *) ac_try_echo=$ac_try;;
49646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49647 (eval "$ac_compile") 2>conftest.er1
49649 grep -v '^ *+' conftest.er1 >conftest.err
49651 cat conftest.err >&5
49652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49653 (exit $ac_status); } &&
49654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49655 { (case "(($ac_try" in
49656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49657 *) ac_try_echo=$ac_try;;
49659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49660 (eval "$ac_try") 2>&5
49662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663 (exit $ac_status); }; } &&
49664 { ac_try='test -s conftest.$ac_objext'
49665 { (case "(($ac_try" in
49666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49667 *) ac_try_echo=$ac_try;;
49669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49670 (eval "$ac_try") 2>&5
49672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673 (exit $ac_status); }; }; then
49674 ac_cv_member_struct_statvfs_f_fsid___val=yes
49676 echo "$as_me: failed program was:" >&5
49677 sed 's/^/| /' conftest.$ac_ext >&5
49679 ac_cv_member_struct_statvfs_f_fsid___val=no
49682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
49688 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6; }
49689 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
49691 cat >>confdefs.h <<_ACEOF
49692 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
49698 { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
49699 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
49700 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
49701 echo $ECHO_N "(cached) $ECHO_C" >&6
49703 cat >conftest.$ac_ext <<_ACEOF
49706 cat confdefs.h >>conftest.$ac_ext
49707 cat >>conftest.$ac_ext <<_ACEOF
49708 /* end confdefs.h. */
49714 static struct statfs ac_aggr;
49715 if (ac_aggr.f_namemax)
49721 rm -f conftest.$ac_objext
49722 if { (ac_try="$ac_compile"
49723 case "(($ac_try" in
49724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49725 *) ac_try_echo=$ac_try;;
49727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49728 (eval "$ac_compile") 2>conftest.er1
49730 grep -v '^ *+' conftest.er1 >conftest.err
49732 cat conftest.err >&5
49733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49734 (exit $ac_status); } &&
49735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49736 { (case "(($ac_try" in
49737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49738 *) ac_try_echo=$ac_try;;
49740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49741 (eval "$ac_try") 2>&5
49743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49744 (exit $ac_status); }; } &&
49745 { ac_try='test -s conftest.$ac_objext'
49746 { (case "(($ac_try" in
49747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49748 *) ac_try_echo=$ac_try;;
49750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49751 (eval "$ac_try") 2>&5
49753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754 (exit $ac_status); }; }; then
49755 ac_cv_member_struct_statfs_f_namemax=yes
49757 echo "$as_me: failed program was:" >&5
49758 sed 's/^/| /' conftest.$ac_ext >&5
49760 cat >conftest.$ac_ext <<_ACEOF
49763 cat confdefs.h >>conftest.$ac_ext
49764 cat >>conftest.$ac_ext <<_ACEOF
49765 /* end confdefs.h. */
49771 static struct statfs ac_aggr;
49772 if (sizeof ac_aggr.f_namemax)
49778 rm -f conftest.$ac_objext
49779 if { (ac_try="$ac_compile"
49780 case "(($ac_try" in
49781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49782 *) ac_try_echo=$ac_try;;
49784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49785 (eval "$ac_compile") 2>conftest.er1
49787 grep -v '^ *+' conftest.er1 >conftest.err
49789 cat conftest.err >&5
49790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49791 (exit $ac_status); } &&
49792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49793 { (case "(($ac_try" in
49794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49795 *) ac_try_echo=$ac_try;;
49797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49798 (eval "$ac_try") 2>&5
49800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49801 (exit $ac_status); }; } &&
49802 { ac_try='test -s conftest.$ac_objext'
49803 { (case "(($ac_try" in
49804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49805 *) ac_try_echo=$ac_try;;
49807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49808 (eval "$ac_try") 2>&5
49810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49811 (exit $ac_status); }; }; then
49812 ac_cv_member_struct_statfs_f_namemax=yes
49814 echo "$as_me: failed program was:" >&5
49815 sed 's/^/| /' conftest.$ac_ext >&5
49817 ac_cv_member_struct_statfs_f_namemax=no
49820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
49826 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
49827 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
49829 cat >>confdefs.h <<_ACEOF
49830 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
49836 { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
49837 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
49838 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
49839 echo $ECHO_N "(cached) $ECHO_C" >&6
49841 cat >conftest.$ac_ext <<_ACEOF
49844 cat confdefs.h >>conftest.$ac_ext
49845 cat >>conftest.$ac_ext <<_ACEOF
49846 /* end confdefs.h. */
49852 static struct statvfs ac_aggr;
49853 if (ac_aggr.f_namemax)
49859 rm -f conftest.$ac_objext
49860 if { (ac_try="$ac_compile"
49861 case "(($ac_try" in
49862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49863 *) ac_try_echo=$ac_try;;
49865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49866 (eval "$ac_compile") 2>conftest.er1
49868 grep -v '^ *+' conftest.er1 >conftest.err
49870 cat conftest.err >&5
49871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49872 (exit $ac_status); } &&
49873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49874 { (case "(($ac_try" in
49875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49876 *) ac_try_echo=$ac_try;;
49878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49879 (eval "$ac_try") 2>&5
49881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49882 (exit $ac_status); }; } &&
49883 { ac_try='test -s conftest.$ac_objext'
49884 { (case "(($ac_try" in
49885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49886 *) ac_try_echo=$ac_try;;
49888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49889 (eval "$ac_try") 2>&5
49891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49892 (exit $ac_status); }; }; then
49893 ac_cv_member_struct_statvfs_f_namemax=yes
49895 echo "$as_me: failed program was:" >&5
49896 sed 's/^/| /' conftest.$ac_ext >&5
49898 cat >conftest.$ac_ext <<_ACEOF
49901 cat confdefs.h >>conftest.$ac_ext
49902 cat >>conftest.$ac_ext <<_ACEOF
49903 /* end confdefs.h. */
49909 static struct statvfs ac_aggr;
49910 if (sizeof ac_aggr.f_namemax)
49916 rm -f conftest.$ac_objext
49917 if { (ac_try="$ac_compile"
49918 case "(($ac_try" in
49919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49920 *) ac_try_echo=$ac_try;;
49922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49923 (eval "$ac_compile") 2>conftest.er1
49925 grep -v '^ *+' conftest.er1 >conftest.err
49927 cat conftest.err >&5
49928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49929 (exit $ac_status); } &&
49930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49931 { (case "(($ac_try" in
49932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49933 *) ac_try_echo=$ac_try;;
49935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49936 (eval "$ac_try") 2>&5
49938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49939 (exit $ac_status); }; } &&
49940 { ac_try='test -s conftest.$ac_objext'
49941 { (case "(($ac_try" in
49942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49943 *) ac_try_echo=$ac_try;;
49945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49946 (eval "$ac_try") 2>&5
49948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49949 (exit $ac_status); }; }; then
49950 ac_cv_member_struct_statvfs_f_namemax=yes
49952 echo "$as_me: failed program was:" >&5
49953 sed 's/^/| /' conftest.$ac_ext >&5
49955 ac_cv_member_struct_statvfs_f_namemax=no
49958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
49964 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
49965 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
49967 cat >>confdefs.h <<_ACEOF
49968 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
49974 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
49975 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
49976 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
49977 echo $ECHO_N "(cached) $ECHO_C" >&6
49979 cat >conftest.$ac_ext <<_ACEOF
49982 cat confdefs.h >>conftest.$ac_ext
49983 cat >>conftest.$ac_ext <<_ACEOF
49984 /* end confdefs.h. */
49990 static struct statfs ac_aggr;
49991 if (ac_aggr.f_namelen)
49997 rm -f conftest.$ac_objext
49998 if { (ac_try="$ac_compile"
49999 case "(($ac_try" in
50000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50001 *) ac_try_echo=$ac_try;;
50003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50004 (eval "$ac_compile") 2>conftest.er1
50006 grep -v '^ *+' conftest.er1 >conftest.err
50008 cat conftest.err >&5
50009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50010 (exit $ac_status); } &&
50011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50012 { (case "(($ac_try" in
50013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50014 *) ac_try_echo=$ac_try;;
50016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50017 (eval "$ac_try") 2>&5
50019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50020 (exit $ac_status); }; } &&
50021 { ac_try='test -s conftest.$ac_objext'
50022 { (case "(($ac_try" in
50023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50024 *) ac_try_echo=$ac_try;;
50026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50027 (eval "$ac_try") 2>&5
50029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50030 (exit $ac_status); }; }; then
50031 ac_cv_member_struct_statfs_f_namelen=yes
50033 echo "$as_me: failed program was:" >&5
50034 sed 's/^/| /' conftest.$ac_ext >&5
50036 cat >conftest.$ac_ext <<_ACEOF
50039 cat confdefs.h >>conftest.$ac_ext
50040 cat >>conftest.$ac_ext <<_ACEOF
50041 /* end confdefs.h. */
50047 static struct statfs ac_aggr;
50048 if (sizeof ac_aggr.f_namelen)
50054 rm -f conftest.$ac_objext
50055 if { (ac_try="$ac_compile"
50056 case "(($ac_try" in
50057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50058 *) ac_try_echo=$ac_try;;
50060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50061 (eval "$ac_compile") 2>conftest.er1
50063 grep -v '^ *+' conftest.er1 >conftest.err
50065 cat conftest.err >&5
50066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067 (exit $ac_status); } &&
50068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50069 { (case "(($ac_try" in
50070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50071 *) ac_try_echo=$ac_try;;
50073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50074 (eval "$ac_try") 2>&5
50076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50077 (exit $ac_status); }; } &&
50078 { ac_try='test -s conftest.$ac_objext'
50079 { (case "(($ac_try" in
50080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50081 *) ac_try_echo=$ac_try;;
50083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50084 (eval "$ac_try") 2>&5
50086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087 (exit $ac_status); }; }; then
50088 ac_cv_member_struct_statfs_f_namelen=yes
50090 echo "$as_me: failed program was:" >&5
50091 sed 's/^/| /' conftest.$ac_ext >&5
50093 ac_cv_member_struct_statfs_f_namelen=no
50096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50101 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
50102 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
50103 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
50105 cat >>confdefs.h <<_ACEOF
50106 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
50112 { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
50113 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
50114 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
50115 echo $ECHO_N "(cached) $ECHO_C" >&6
50117 cat >conftest.$ac_ext <<_ACEOF
50120 cat confdefs.h >>conftest.$ac_ext
50121 cat >>conftest.$ac_ext <<_ACEOF
50122 /* end confdefs.h. */
50128 static struct statvfs ac_aggr;
50129 if (ac_aggr.f_namelen)
50135 rm -f conftest.$ac_objext
50136 if { (ac_try="$ac_compile"
50137 case "(($ac_try" in
50138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50139 *) ac_try_echo=$ac_try;;
50141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50142 (eval "$ac_compile") 2>conftest.er1
50144 grep -v '^ *+' conftest.er1 >conftest.err
50146 cat conftest.err >&5
50147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50148 (exit $ac_status); } &&
50149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50150 { (case "(($ac_try" in
50151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50152 *) ac_try_echo=$ac_try;;
50154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50155 (eval "$ac_try") 2>&5
50157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158 (exit $ac_status); }; } &&
50159 { ac_try='test -s conftest.$ac_objext'
50160 { (case "(($ac_try" in
50161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50162 *) ac_try_echo=$ac_try;;
50164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50165 (eval "$ac_try") 2>&5
50167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50168 (exit $ac_status); }; }; then
50169 ac_cv_member_struct_statvfs_f_namelen=yes
50171 echo "$as_me: failed program was:" >&5
50172 sed 's/^/| /' conftest.$ac_ext >&5
50174 cat >conftest.$ac_ext <<_ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h. */
50185 static struct statvfs ac_aggr;
50186 if (sizeof ac_aggr.f_namelen)
50192 rm -f conftest.$ac_objext
50193 if { (ac_try="$ac_compile"
50194 case "(($ac_try" in
50195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50196 *) ac_try_echo=$ac_try;;
50198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50199 (eval "$ac_compile") 2>conftest.er1
50201 grep -v '^ *+' conftest.er1 >conftest.err
50203 cat conftest.err >&5
50204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50205 (exit $ac_status); } &&
50206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50207 { (case "(($ac_try" in
50208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50209 *) ac_try_echo=$ac_try;;
50211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50212 (eval "$ac_try") 2>&5
50214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215 (exit $ac_status); }; } &&
50216 { ac_try='test -s conftest.$ac_objext'
50217 { (case "(($ac_try" in
50218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50219 *) ac_try_echo=$ac_try;;
50221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50222 (eval "$ac_try") 2>&5
50224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50225 (exit $ac_status); }; }; then
50226 ac_cv_member_struct_statvfs_f_namelen=yes
50228 echo "$as_me: failed program was:" >&5
50229 sed 's/^/| /' conftest.$ac_ext >&5
50231 ac_cv_member_struct_statvfs_f_namelen=no
50234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50239 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
50240 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
50241 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
50243 cat >>confdefs.h <<_ACEOF
50244 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
50252 if test "X$prefix" = "XNONE"; then
50253 acl_final_prefix="$ac_default_prefix"
50255 acl_final_prefix="$prefix"
50257 if test "X$exec_prefix" = "XNONE"; then
50258 acl_final_exec_prefix='${prefix}'
50260 acl_final_exec_prefix="$exec_prefix"
50262 acl_save_prefix="$prefix"
50263 prefix="$acl_final_prefix"
50264 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
50265 prefix="$acl_save_prefix"
50268 # Check whether --with-gnu-ld was given.
50269 if test "${with_gnu_ld+set}" = set; then
50270 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
50275 # Prepare PATH_SEPARATOR.
50276 # The user is always right.
50277 if test "${PATH_SEPARATOR+set}" != set; then
50278 echo "#! /bin/sh" >conf$$.sh
50279 echo "exit 0" >>conf$$.sh
50281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50289 if test "$GCC" = yes; then
50290 # Check if gcc -print-prog-name=ld gives a path.
50291 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
50292 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
50295 # gcc leaves a trailing carriage return which upsets mingw
50296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50301 # Accept absolute paths.
50302 [\\/]* | [A-Za-z]:[\\/]*)
50303 re_direlt='/[^/][^/]*/\.\./'
50304 # Canonicalize the path of ld
50305 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
50306 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
50307 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
50309 test -z "$LD" && LD="$ac_prog"
50312 # If it fails, then pretend we aren't using GCC.
50316 # If it is relative, then search for the first ld in PATH.
50317 with_gnu_ld=unknown
50320 elif test "$with_gnu_ld" = yes; then
50321 { echo "$as_me:$LINENO: checking for GNU ld" >&5
50322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
50324 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
50325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
50327 if test "${acl_cv_path_LD+set}" = set; then
50328 echo $ECHO_N "(cached) $ECHO_C" >&6
50330 if test -z "$LD"; then
50331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
50332 for ac_dir in $PATH; do
50333 test -z "$ac_dir" && ac_dir=.
50334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
50335 acl_cv_path_LD="$ac_dir/$ac_prog"
50336 # Check to see if the program is GNU ld. I'd rather use --version,
50337 # but apparently some GNU ld's only accept -v.
50338 # Break only if it was the GNU/non-GNU ld that we prefer.
50339 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
50340 *GNU* | *'with BFD'*)
50341 test "$with_gnu_ld" != no && break ;;
50343 test "$with_gnu_ld" != yes && break ;;
50349 acl_cv_path_LD="$LD" # Let the user override the test with a path.
50353 LD="$acl_cv_path_LD"
50354 if test -n "$LD"; then
50355 { echo "$as_me:$LINENO: result: $LD" >&5
50356 echo "${ECHO_T}$LD" >&6; }
50358 { echo "$as_me:$LINENO: result: no" >&5
50359 echo "${ECHO_T}no" >&6; }
50361 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
50362 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
50363 { (exit 1); exit 1; }; }
50364 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
50365 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
50366 if test "${acl_cv_prog_gnu_ld+set}" = set; then
50367 echo $ECHO_N "(cached) $ECHO_C" >&6
50369 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
50370 case `$LD -v 2>&1 </dev/null` in
50371 *GNU* | *'with BFD'*)
50372 acl_cv_prog_gnu_ld=yes ;;
50374 acl_cv_prog_gnu_ld=no ;;
50377 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
50378 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
50379 with_gnu_ld=$acl_cv_prog_gnu_ld
50384 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
50385 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
50386 if test "${acl_cv_rpath+set}" = set; then
50387 echo $ECHO_N "(cached) $ECHO_C" >&6
50390 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
50391 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
50393 rm -f ./conftest.sh
50397 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
50398 echo "${ECHO_T}$acl_cv_rpath" >&6; }
50400 libext="$acl_cv_libext"
50401 shlibext="$acl_cv_shlibext"
50402 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
50403 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
50404 hardcode_direct="$acl_cv_hardcode_direct"
50405 hardcode_minus_L="$acl_cv_hardcode_minus_L"
50406 # Check whether --enable-rpath was given.
50407 if test "${enable_rpath+set}" = set; then
50408 enableval=$enable_rpath; :
50416 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
50417 if test -n "$searchpath"; then
50418 acl_save_IFS="${IFS= }"; IFS=":"
50419 for searchdir in $searchpath; do
50420 if test -d "$searchdir"; then
50421 case "$searchdir" in
50422 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
50423 *) searchdir=`cd "$searchdir" && pwd`
50424 case "$searchdir" in
50425 */lib64 ) acl_libdirstem=lib64 ;;
50430 IFS="$acl_save_IFS"
50442 acl_save_prefix="$prefix"
50443 prefix="$acl_final_prefix"
50444 acl_save_exec_prefix="$exec_prefix"
50445 exec_prefix="$acl_final_exec_prefix"
50447 eval additional_includedir=\"$includedir\"
50448 eval additional_libdir=\"$libdir\"
50450 exec_prefix="$acl_save_exec_prefix"
50451 prefix="$acl_save_prefix"
50454 # Check whether --with-libiconv-prefix was given.
50455 if test "${with_libiconv_prefix+set}" = set; then
50456 withval=$with_libiconv_prefix;
50457 if test "X$withval" = "Xno"; then
50460 if test "X$withval" = "X"; then
50462 acl_save_prefix="$prefix"
50463 prefix="$acl_final_prefix"
50464 acl_save_exec_prefix="$exec_prefix"
50465 exec_prefix="$acl_final_exec_prefix"
50467 eval additional_includedir=\"$includedir\"
50468 eval additional_libdir=\"$libdir\"
50470 exec_prefix="$acl_save_exec_prefix"
50471 prefix="$acl_save_prefix"
50474 additional_includedir="$withval/include"
50475 additional_libdir="$withval/$acl_libdirstem"
50486 names_already_handled=
50487 names_next_round='iconv '
50488 while test -n "$names_next_round"; do
50489 names_this_round="$names_next_round"
50491 for name in $names_this_round; do
50493 for n in $names_already_handled; do
50494 if test "$n" = "$name"; then
50495 already_handled=yes
50499 if test -z "$already_handled"; then
50500 names_already_handled="$names_already_handled $name"
50501 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50502 eval value=\"\$HAVE_LIB$uppername\"
50503 if test -n "$value"; then
50504 if test "$value" = yes; then
50505 eval value=\"\$LIB$uppername\"
50506 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
50507 eval value=\"\$LTLIB$uppername\"
50508 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
50517 if test $use_additional = yes; then
50518 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50519 found_dir="$additional_libdir"
50520 found_so="$additional_libdir/lib$name.$shlibext"
50521 if test -f "$additional_libdir/lib$name.la"; then
50522 found_la="$additional_libdir/lib$name.la"
50525 if test -f "$additional_libdir/lib$name.$libext"; then
50526 found_dir="$additional_libdir"
50527 found_a="$additional_libdir/lib$name.$libext"
50528 if test -f "$additional_libdir/lib$name.la"; then
50529 found_la="$additional_libdir/lib$name.la"
50534 if test "X$found_dir" = "X"; then
50535 for x in $LDFLAGS $LTLIBICONV; do
50537 acl_save_prefix="$prefix"
50538 prefix="$acl_final_prefix"
50539 acl_save_exec_prefix="$exec_prefix"
50540 exec_prefix="$acl_final_exec_prefix"
50542 exec_prefix="$acl_save_exec_prefix"
50543 prefix="$acl_save_prefix"
50547 dir=`echo "X$x" | sed -e 's/^X-L//'`
50548 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50550 found_so="$dir/lib$name.$shlibext"
50551 if test -f "$dir/lib$name.la"; then
50552 found_la="$dir/lib$name.la"
50555 if test -f "$dir/lib$name.$libext"; then
50557 found_a="$dir/lib$name.$libext"
50558 if test -f "$dir/lib$name.la"; then
50559 found_la="$dir/lib$name.la"
50565 if test "X$found_dir" != "X"; then
50570 if test "X$found_dir" != "X"; then
50571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
50572 if test "X$found_so" != "X"; then
50573 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
50574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50577 for x in $ltrpathdirs; do
50578 if test "X$x" = "X$found_dir"; then
50583 if test -z "$haveit"; then
50584 ltrpathdirs="$ltrpathdirs $found_dir"
50586 if test "$hardcode_direct" = yes; then
50587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50589 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50592 for x in $rpathdirs; do
50593 if test "X$x" = "X$found_dir"; then
50598 if test -z "$haveit"; then
50599 rpathdirs="$rpathdirs $found_dir"
50603 for x in $LDFLAGS $LIBICONV; do
50605 acl_save_prefix="$prefix"
50606 prefix="$acl_final_prefix"
50607 acl_save_exec_prefix="$exec_prefix"
50608 exec_prefix="$acl_final_exec_prefix"
50610 exec_prefix="$acl_save_exec_prefix"
50611 prefix="$acl_save_prefix"
50613 if test "X$x" = "X-L$found_dir"; then
50618 if test -z "$haveit"; then
50619 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
50621 if test "$hardcode_minus_L" != no; then
50622 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50624 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
50630 if test "X$found_a" != "X"; then
50631 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
50633 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
50636 additional_includedir=
50637 case "$found_dir" in
50638 */$acl_libdirstem | */$acl_libdirstem/)
50639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
50640 additional_includedir="$basedir/include"
50643 if test "X$additional_includedir" != "X"; then
50644 if test "X$additional_includedir" != "X/usr/include"; then
50646 if test "X$additional_includedir" = "X/usr/local/include"; then
50647 if test -n "$GCC"; then
50649 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50653 if test -z "$haveit"; then
50654 for x in $CPPFLAGS $INCICONV; do
50656 acl_save_prefix="$prefix"
50657 prefix="$acl_final_prefix"
50658 acl_save_exec_prefix="$exec_prefix"
50659 exec_prefix="$acl_final_exec_prefix"
50661 exec_prefix="$acl_save_exec_prefix"
50662 prefix="$acl_save_prefix"
50664 if test "X$x" = "X-I$additional_includedir"; then
50669 if test -z "$haveit"; then
50670 if test -d "$additional_includedir"; then
50671 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
50677 if test -n "$found_la"; then
50678 save_libdir="$libdir"
50679 case "$found_la" in
50680 */* | *\\*) . "$found_la" ;;
50681 *) . "./$found_la" ;;
50683 libdir="$save_libdir"
50684 for dep in $dependency_libs; do
50687 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50688 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
50690 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
50691 if test -n "$GCC"; then
50693 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50697 if test -z "$haveit"; then
50699 for x in $LDFLAGS $LIBICONV; do
50701 acl_save_prefix="$prefix"
50702 prefix="$acl_final_prefix"
50703 acl_save_exec_prefix="$exec_prefix"
50704 exec_prefix="$acl_final_exec_prefix"
50706 exec_prefix="$acl_save_exec_prefix"
50707 prefix="$acl_save_prefix"
50709 if test "X$x" = "X-L$additional_libdir"; then
50714 if test -z "$haveit"; then
50715 if test -d "$additional_libdir"; then
50716 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
50720 for x in $LDFLAGS $LTLIBICONV; do
50722 acl_save_prefix="$prefix"
50723 prefix="$acl_final_prefix"
50724 acl_save_exec_prefix="$exec_prefix"
50725 exec_prefix="$acl_final_exec_prefix"
50727 exec_prefix="$acl_save_exec_prefix"
50728 prefix="$acl_save_prefix"
50730 if test "X$x" = "X-L$additional_libdir"; then
50735 if test -z "$haveit"; then
50736 if test -d "$additional_libdir"; then
50737 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
50744 dir=`echo "X$dep" | sed -e 's/^X-R//'`
50745 if test "$enable_rpath" != no; then
50747 for x in $rpathdirs; do
50748 if test "X$x" = "X$dir"; then
50753 if test -z "$haveit"; then
50754 rpathdirs="$rpathdirs $dir"
50757 for x in $ltrpathdirs; do
50758 if test "X$x" = "X$dir"; then
50763 if test -z "$haveit"; then
50764 ltrpathdirs="$ltrpathdirs $dir"
50769 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50772 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50775 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
50776 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
50782 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
50783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
50789 if test "X$rpathdirs" != "X"; then
50790 if test -n "$hardcode_libdir_separator"; then
50792 for found_dir in $rpathdirs; do
50793 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
50795 acl_save_libdir="$libdir"
50797 eval flag=\"$hardcode_libdir_flag_spec\"
50798 libdir="$acl_save_libdir"
50799 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
50801 for found_dir in $rpathdirs; do
50802 acl_save_libdir="$libdir"
50803 libdir="$found_dir"
50804 eval flag=\"$hardcode_libdir_flag_spec\"
50805 libdir="$acl_save_libdir"
50806 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
50810 if test "X$ltrpathdirs" != "X"; then
50811 for found_dir in $ltrpathdirs; do
50812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
50819 case " $LIBOBJS " in
50820 *" canonicalize.$ac_objext "* ) ;;
50821 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
50827 for ac_header in sys/param.h
50829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
50832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50834 echo $ECHO_N "(cached) $ECHO_C" >&6
50836 ac_res=`eval echo '${'$as_ac_Header'}'`
50837 { echo "$as_me:$LINENO: result: $ac_res" >&5
50838 echo "${ECHO_T}$ac_res" >&6; }
50840 # Is the header compilable?
50841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
50842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
50843 cat >conftest.$ac_ext <<_ACEOF
50846 cat confdefs.h >>conftest.$ac_ext
50847 cat >>conftest.$ac_ext <<_ACEOF
50848 /* end confdefs.h. */
50849 $ac_includes_default
50850 #include <$ac_header>
50852 rm -f conftest.$ac_objext
50853 if { (ac_try="$ac_compile"
50854 case "(($ac_try" in
50855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50856 *) ac_try_echo=$ac_try;;
50858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50859 (eval "$ac_compile") 2>conftest.er1
50861 grep -v '^ *+' conftest.er1 >conftest.err
50863 cat conftest.err >&5
50864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50865 (exit $ac_status); } &&
50866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50867 { (case "(($ac_try" in
50868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50869 *) ac_try_echo=$ac_try;;
50871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50872 (eval "$ac_try") 2>&5
50874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50875 (exit $ac_status); }; } &&
50876 { ac_try='test -s conftest.$ac_objext'
50877 { (case "(($ac_try" in
50878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50879 *) ac_try_echo=$ac_try;;
50881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50882 (eval "$ac_try") 2>&5
50884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50885 (exit $ac_status); }; }; then
50886 ac_header_compiler=yes
50888 echo "$as_me: failed program was:" >&5
50889 sed 's/^/| /' conftest.$ac_ext >&5
50891 ac_header_compiler=no
50894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50896 echo "${ECHO_T}$ac_header_compiler" >&6; }
50898 # Is the header present?
50899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
50900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
50901 cat >conftest.$ac_ext <<_ACEOF
50904 cat confdefs.h >>conftest.$ac_ext
50905 cat >>conftest.$ac_ext <<_ACEOF
50906 /* end confdefs.h. */
50907 #include <$ac_header>
50909 if { (ac_try="$ac_cpp conftest.$ac_ext"
50910 case "(($ac_try" in
50911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50912 *) ac_try_echo=$ac_try;;
50914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50917 grep -v '^ *+' conftest.er1 >conftest.err
50919 cat conftest.err >&5
50920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50921 (exit $ac_status); } >/dev/null; then
50922 if test -s conftest.err; then
50923 ac_cpp_err=$ac_c_preproc_warn_flag
50924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50931 if test -z "$ac_cpp_err"; then
50932 ac_header_preproc=yes
50934 echo "$as_me: failed program was:" >&5
50935 sed 's/^/| /' conftest.$ac_ext >&5
50937 ac_header_preproc=no
50940 rm -f conftest.err conftest.$ac_ext
50941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50942 echo "${ECHO_T}$ac_header_preproc" >&6; }
50944 # So? What about this header?
50945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50951 ac_header_preproc=yes
50954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50967 ## ------------------------------------ ##
50968 ## Report this to bug-coreutils@gnu.org ##
50969 ## ------------------------------------ ##
50971 ) | sed "s/^/$as_me: WARNING: /" >&2
50974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
50975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50977 echo $ECHO_N "(cached) $ECHO_C" >&6
50979 eval "$as_ac_Header=\$ac_header_preproc"
50981 ac_res=`eval echo '${'$as_ac_Header'}'`
50982 { echo "$as_me:$LINENO: result: $ac_res" >&5
50983 echo "${ECHO_T}$ac_res" >&6; }
50986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50987 cat >>confdefs.h <<_ACEOF
50988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50997 for ac_func in resolvepath canonicalize_file_name
50999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51003 echo $ECHO_N "(cached) $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51057 (eval "$ac_link") 2>conftest.er1
51059 grep -v '^ *+' conftest.er1 >conftest.err
51061 cat conftest.err >&5
51062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51063 (exit $ac_status); } &&
51064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51065 { (case "(($ac_try" in
51066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51067 *) ac_try_echo=$ac_try;;
51069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51070 (eval "$ac_try") 2>&5
51072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073 (exit $ac_status); }; } &&
51074 { ac_try='test -s conftest$ac_exeext'
51075 { (case "(($ac_try" in
51076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51077 *) ac_try_echo=$ac_try;;
51079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51080 (eval "$ac_try") 2>&5
51082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51083 (exit $ac_status); }; }; then
51084 eval "$as_ac_var=yes"
51086 echo "$as_me: failed program was:" >&5
51087 sed 's/^/| /' conftest.$ac_ext >&5
51089 eval "$as_ac_var=no"
51092 rm -f core conftest.err conftest.$ac_objext \
51093 conftest$ac_exeext conftest.$ac_ext
51095 ac_res=`eval echo '${'$as_ac_var'}'`
51096 { echo "$as_me:$LINENO: result: $ac_res" >&5
51097 echo "${ECHO_T}$ac_res" >&6; }
51098 if test `eval echo '${'$as_ac_var'}'` = yes; then
51099 cat >>confdefs.h <<_ACEOF
51100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51109 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
51110 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
51111 if test "${gl_have_arbitrary_file_name_length_limit+set}" = set; then
51112 echo $ECHO_N "(cached) $ECHO_C" >&6
51114 cat >conftest.$ac_ext <<_ACEOF
51117 cat confdefs.h >>conftest.$ac_ext
51118 cat >>conftest.$ac_ext <<_ACEOF
51119 /* end confdefs.h. */
51120 #include <unistd.h>
51121 #include <limits.h>
51122 #if defined PATH_MAX || defined MAXPATHLEN
51123 have_arbitrary_file_name_length_limit
51126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51127 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
51128 gl_have_arbitrary_file_name_length_limit=yes
51130 gl_have_arbitrary_file_name_length_limit=no
51135 { echo "$as_me:$LINENO: result: $gl_have_arbitrary_file_name_length_limit" >&5
51136 echo "${ECHO_T}$gl_have_arbitrary_file_name_length_limit" >&6; }
51138 if test $gl_have_arbitrary_file_name_length_limit = yes; then
51139 case " $LIBOBJS " in
51140 *" chdir-long.$ac_objext "* ) ;;
51141 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
51149 # Define two additional variables used in the Makefile substitution.
51151 if test "$ac_cv_header_stdbool_h" = yes; then
51154 STDBOOL_H='stdbool.h'
51158 if test "$ac_cv_type__Bool" = yes; then
51171 for ac_func in mempcpy
51173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51177 echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51187 #define $ac_func innocuous_$ac_func
51189 /* System header to define __stub macros and hopefully few prototypes,
51190 which can conflict with char $ac_func (); below.
51191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51192 <limits.h> exists even on freestanding compilers. */
51195 # include <limits.h>
51197 # include <assert.h>
51202 /* Override any GCC internal prototype to avoid an error.
51203 Use char because int might match the return type of a GCC
51204 builtin and then its argument prototype would still apply. */
51209 /* The GNU C library defines this for functions which it implements
51210 to always fail with ENOSYS. Some functions are actually named
51211 something starting with __ and the normal name is an alias. */
51212 #if defined __stub_$ac_func || defined __stub___$ac_func
51219 return $ac_func ();
51224 rm -f conftest.$ac_objext conftest$ac_exeext
51225 if { (ac_try="$ac_link"
51226 case "(($ac_try" in
51227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51228 *) ac_try_echo=$ac_try;;
51230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51231 (eval "$ac_link") 2>conftest.er1
51233 grep -v '^ *+' conftest.er1 >conftest.err
51235 cat conftest.err >&5
51236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51237 (exit $ac_status); } &&
51238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51239 { (case "(($ac_try" in
51240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51241 *) ac_try_echo=$ac_try;;
51243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51244 (eval "$ac_try") 2>&5
51246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51247 (exit $ac_status); }; } &&
51248 { ac_try='test -s conftest$ac_exeext'
51249 { (case "(($ac_try" in
51250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51251 *) ac_try_echo=$ac_try;;
51253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51254 (eval "$ac_try") 2>&5
51256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257 (exit $ac_status); }; }; then
51258 eval "$as_ac_var=yes"
51260 echo "$as_me: failed program was:" >&5
51261 sed 's/^/| /' conftest.$ac_ext >&5
51263 eval "$as_ac_var=no"
51266 rm -f core conftest.err conftest.$ac_objext \
51267 conftest$ac_exeext conftest.$ac_ext
51269 ac_res=`eval echo '${'$as_ac_var'}'`
51270 { echo "$as_me:$LINENO: result: $ac_res" >&5
51271 echo "${ECHO_T}$ac_res" >&6; }
51272 if test `eval echo '${'$as_ac_var'}'` = yes; then
51273 cat >>confdefs.h <<_ACEOF
51274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51278 case " $LIBOBJS " in
51279 *" $ac_func.$ac_objext "* ) ;;
51280 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51288 if test $ac_cv_func_mempcpy = no; then
51300 # No system provides these functions; compile them unconditionally.
51301 case " $LIBOBJS " in
51302 *" mkdirat.$ac_objext "* ) ;;
51303 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
51307 case " $LIBOBJS " in
51308 *" fchmodat.$ac_objext "* ) ;;
51309 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
51314 case " $LIBOBJS " in
51315 *" openat-die.$ac_objext "* ) ;;
51316 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
51334 for ac_func in openat
51336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51340 echo $ECHO_N "(cached) $ECHO_C" >&6
51342 cat >conftest.$ac_ext <<_ACEOF
51345 cat confdefs.h >>conftest.$ac_ext
51346 cat >>conftest.$ac_ext <<_ACEOF
51347 /* end confdefs.h. */
51348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51350 #define $ac_func innocuous_$ac_func
51352 /* System header to define __stub macros and hopefully few prototypes,
51353 which can conflict with char $ac_func (); below.
51354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51355 <limits.h> exists even on freestanding compilers. */
51358 # include <limits.h>
51360 # include <assert.h>
51365 /* Override any GCC internal prototype to avoid an error.
51366 Use char because int might match the return type of a GCC
51367 builtin and then its argument prototype would still apply. */
51372 /* The GNU C library defines this for functions which it implements
51373 to always fail with ENOSYS. Some functions are actually named
51374 something starting with __ and the normal name is an alias. */
51375 #if defined __stub_$ac_func || defined __stub___$ac_func
51382 return $ac_func ();
51387 rm -f conftest.$ac_objext conftest$ac_exeext
51388 if { (ac_try="$ac_link"
51389 case "(($ac_try" in
51390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51391 *) ac_try_echo=$ac_try;;
51393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51394 (eval "$ac_link") 2>conftest.er1
51396 grep -v '^ *+' conftest.er1 >conftest.err
51398 cat conftest.err >&5
51399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51400 (exit $ac_status); } &&
51401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51402 { (case "(($ac_try" in
51403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51404 *) ac_try_echo=$ac_try;;
51406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51407 (eval "$ac_try") 2>&5
51409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51410 (exit $ac_status); }; } &&
51411 { ac_try='test -s conftest$ac_exeext'
51412 { (case "(($ac_try" in
51413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51414 *) ac_try_echo=$ac_try;;
51416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51417 (eval "$ac_try") 2>&5
51419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51420 (exit $ac_status); }; }; then
51421 eval "$as_ac_var=yes"
51423 echo "$as_me: failed program was:" >&5
51424 sed 's/^/| /' conftest.$ac_ext >&5
51426 eval "$as_ac_var=no"
51429 rm -f core conftest.err conftest.$ac_objext \
51430 conftest$ac_exeext conftest.$ac_ext
51432 ac_res=`eval echo '${'$as_ac_var'}'`
51433 { echo "$as_me:$LINENO: result: $ac_res" >&5
51434 echo "${ECHO_T}$ac_res" >&6; }
51435 if test `eval echo '${'$as_ac_var'}'` = yes; then
51436 cat >>confdefs.h <<_ACEOF
51437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51441 case " $LIBOBJS " in
51442 *" $ac_func.$ac_objext "* ) ;;
51443 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51451 case $ac_cv_func_openat in
51455 cat >>confdefs.h <<\_ACEOF
51456 #define __OPENAT_PREFIX rpl_
51475 for ac_func in memrchr
51477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51481 echo $ECHO_N "(cached) $ECHO_C" >&6
51483 cat >conftest.$ac_ext <<_ACEOF
51486 cat confdefs.h >>conftest.$ac_ext
51487 cat >>conftest.$ac_ext <<_ACEOF
51488 /* end confdefs.h. */
51489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51491 #define $ac_func innocuous_$ac_func
51493 /* System header to define __stub macros and hopefully few prototypes,
51494 which can conflict with char $ac_func (); below.
51495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51496 <limits.h> exists even on freestanding compilers. */
51499 # include <limits.h>
51501 # include <assert.h>
51506 /* Override any GCC internal prototype to avoid an error.
51507 Use char because int might match the return type of a GCC
51508 builtin and then its argument prototype would still apply. */
51513 /* The GNU C library defines this for functions which it implements
51514 to always fail with ENOSYS. Some functions are actually named
51515 something starting with __ and the normal name is an alias. */
51516 #if defined __stub_$ac_func || defined __stub___$ac_func
51523 return $ac_func ();
51528 rm -f conftest.$ac_objext conftest$ac_exeext
51529 if { (ac_try="$ac_link"
51530 case "(($ac_try" in
51531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51532 *) ac_try_echo=$ac_try;;
51534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51535 (eval "$ac_link") 2>conftest.er1
51537 grep -v '^ *+' conftest.er1 >conftest.err
51539 cat conftest.err >&5
51540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51541 (exit $ac_status); } &&
51542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51543 { (case "(($ac_try" in
51544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51545 *) ac_try_echo=$ac_try;;
51547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51548 (eval "$ac_try") 2>&5
51550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51551 (exit $ac_status); }; } &&
51552 { ac_try='test -s conftest$ac_exeext'
51553 { (case "(($ac_try" in
51554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51555 *) ac_try_echo=$ac_try;;
51557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51558 (eval "$ac_try") 2>&5
51560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51561 (exit $ac_status); }; }; then
51562 eval "$as_ac_var=yes"
51564 echo "$as_me: failed program was:" >&5
51565 sed 's/^/| /' conftest.$ac_ext >&5
51567 eval "$as_ac_var=no"
51570 rm -f core conftest.err conftest.$ac_objext \
51571 conftest$ac_exeext conftest.$ac_ext
51573 ac_res=`eval echo '${'$as_ac_var'}'`
51574 { echo "$as_me:$LINENO: result: $ac_res" >&5
51575 echo "${ECHO_T}$ac_res" >&6; }
51576 if test `eval echo '${'$as_ac_var'}'` = yes; then
51577 cat >>confdefs.h <<_ACEOF
51578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51582 case " $LIBOBJS " in
51583 *" $ac_func.$ac_objext "* ) ;;
51584 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51592 if test $ac_cv_func_memrchr = no; then
51601 case " $LIBOBJS " in
51602 *" xfts.$ac_objext "* ) ;;
51603 *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
51612 case " $LIBOBJS " in
51613 *" root-dev-ino.$ac_objext "* ) ;;
51614 *) LIBOBJS="$LIBOBJS root-dev-ino.$ac_objext"
51624 case " $LIBOBJS " in
51625 *" version-etc-fsf.$ac_objext "* ) ;;
51626 *) LIBOBJS="$LIBOBJS version-etc-fsf.$ac_objext"
51630 case " $LIBOBJS " in
51631 *" version-etc.$ac_objext "* ) ;;
51632 *) LIBOBJS="$LIBOBJS version-etc.$ac_objext"
51641 case " $LIBOBJS " in
51642 *" diacrit.$ac_objext "* ) ;;
51643 *) LIBOBJS="$LIBOBJS diacrit.$ac_objext"
51650 { echo "$as_me:$LINENO: checking for socklen_t" >&5
51651 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
51652 if test "${ac_cv_type_socklen_t+set}" = set; then
51653 echo $ECHO_N "(cached) $ECHO_C" >&6
51655 cat >conftest.$ac_ext <<_ACEOF
51658 cat confdefs.h >>conftest.$ac_ext
51659 cat >>conftest.$ac_ext <<_ACEOF
51660 /* end confdefs.h. */
51661 #include <sys/types.h>
51662 #if HAVE_SYS_SOCKET_H
51663 # include <sys/socket.h>
51664 #elif HAVE_WS2TCPIP_H
51665 # include <ws2tcpip.h>
51668 typedef socklen_t ac__type_new_;
51672 if ((ac__type_new_ *) 0)
51674 if (sizeof (ac__type_new_))
51680 rm -f conftest.$ac_objext
51681 if { (ac_try="$ac_compile"
51682 case "(($ac_try" in
51683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51684 *) ac_try_echo=$ac_try;;
51686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51687 (eval "$ac_compile") 2>conftest.er1
51689 grep -v '^ *+' conftest.er1 >conftest.err
51691 cat conftest.err >&5
51692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51693 (exit $ac_status); } &&
51694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51695 { (case "(($ac_try" in
51696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51697 *) ac_try_echo=$ac_try;;
51699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51700 (eval "$ac_try") 2>&5
51702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51703 (exit $ac_status); }; } &&
51704 { ac_try='test -s conftest.$ac_objext'
51705 { (case "(($ac_try" in
51706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51707 *) ac_try_echo=$ac_try;;
51709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51710 (eval "$ac_try") 2>&5
51712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51713 (exit $ac_status); }; }; then
51714 ac_cv_type_socklen_t=yes
51716 echo "$as_me: failed program was:" >&5
51717 sed 's/^/| /' conftest.$ac_ext >&5
51719 ac_cv_type_socklen_t=no
51722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51724 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
51725 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
51726 if test $ac_cv_type_socklen_t = yes; then
51729 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
51730 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
51731 if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
51732 echo $ECHO_N "(cached) $ECHO_C" >&6
51734 # Systems have either "struct sockaddr *" or
51735 # "void *" as the second argument to getpeername
51736 gl_cv_socklen_t_equiv=
51737 for arg2 in "struct sockaddr" void; do
51738 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
51739 cat >conftest.$ac_ext <<_ACEOF
51742 cat confdefs.h >>conftest.$ac_ext
51743 cat >>conftest.$ac_ext <<_ACEOF
51744 /* end confdefs.h. */
51745 #include <sys/types.h>
51746 #include <sys/socket.h>
51748 int getpeername (int, $arg2 *, $t *);
51753 getpeername (0, 0, &len);
51758 rm -f conftest.$ac_objext
51759 if { (ac_try="$ac_compile"
51760 case "(($ac_try" in
51761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51762 *) ac_try_echo=$ac_try;;
51764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51765 (eval "$ac_compile") 2>conftest.er1
51767 grep -v '^ *+' conftest.er1 >conftest.err
51769 cat conftest.err >&5
51770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51771 (exit $ac_status); } &&
51772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51773 { (case "(($ac_try" in
51774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51775 *) ac_try_echo=$ac_try;;
51777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51778 (eval "$ac_try") 2>&5
51780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51781 (exit $ac_status); }; } &&
51782 { ac_try='test -s conftest.$ac_objext'
51783 { (case "(($ac_try" in
51784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51785 *) ac_try_echo=$ac_try;;
51787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51788 (eval "$ac_try") 2>&5
51790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51791 (exit $ac_status); }; }; then
51792 gl_cv_socklen_t_equiv="$t"
51794 echo "$as_me: failed program was:" >&5
51795 sed 's/^/| /' conftest.$ac_ext >&5
51800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51801 test "$gl_cv_socklen_t_equiv" != "" && break
51803 test "$gl_cv_socklen_t_equiv" != "" && break
51808 if test "$gl_cv_socklen_t_equiv" = ""; then
51809 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
51810 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
51811 { (exit 1); exit 1; }; }
51813 { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
51814 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
51816 cat >>confdefs.h <<_ACEOF
51817 #define socklen_t $gl_cv_socklen_t_equiv
51824 case " $LIBOBJS " in
51825 *" fprintftime.$ac_objext "* ) ;;
51826 *) LIBOBJS="$LIBOBJS fprintftime.$ac_objext"
51833 case " $LIBOBJS " in
51834 *" chdir-safer.$ac_objext "* ) ;;
51835 *) LIBOBJS="$LIBOBJS chdir-safer.$ac_objext"
51843 GNU_PACKAGE="GNU $PACKAGE"
51845 cat >>confdefs.h <<_ACEOF
51846 #define GNU_PACKAGE "$GNU_PACKAGE"
51852 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
51870 { echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
51871 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6; }
51872 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
51873 echo $ECHO_N "(cached) $ECHO_C" >&6
51875 cat >conftest.$ac_ext <<_ACEOF
51878 cat confdefs.h >>conftest.$ac_ext
51879 cat >>conftest.$ac_ext <<_ACEOF
51880 /* end confdefs.h. */
51881 $ac_includes_default
51882 #include <sys/stat.h>
51888 static struct stat ac_aggr;
51889 if (ac_aggr.st_author)
51895 rm -f conftest.$ac_objext
51896 if { (ac_try="$ac_compile"
51897 case "(($ac_try" in
51898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51899 *) ac_try_echo=$ac_try;;
51901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51902 (eval "$ac_compile") 2>conftest.er1
51904 grep -v '^ *+' conftest.er1 >conftest.err
51906 cat conftest.err >&5
51907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51908 (exit $ac_status); } &&
51909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51910 { (case "(($ac_try" in
51911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51912 *) ac_try_echo=$ac_try;;
51914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51915 (eval "$ac_try") 2>&5
51917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51918 (exit $ac_status); }; } &&
51919 { ac_try='test -s conftest.$ac_objext'
51920 { (case "(($ac_try" in
51921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51922 *) ac_try_echo=$ac_try;;
51924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51925 (eval "$ac_try") 2>&5
51927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51928 (exit $ac_status); }; }; then
51929 ac_cv_member_struct_stat_st_author=yes
51931 echo "$as_me: failed program was:" >&5
51932 sed 's/^/| /' conftest.$ac_ext >&5
51934 cat >conftest.$ac_ext <<_ACEOF
51937 cat confdefs.h >>conftest.$ac_ext
51938 cat >>conftest.$ac_ext <<_ACEOF
51939 /* end confdefs.h. */
51940 $ac_includes_default
51941 #include <sys/stat.h>
51947 static struct stat ac_aggr;
51948 if (sizeof ac_aggr.st_author)
51954 rm -f conftest.$ac_objext
51955 if { (ac_try="$ac_compile"
51956 case "(($ac_try" in
51957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51958 *) ac_try_echo=$ac_try;;
51960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51961 (eval "$ac_compile") 2>conftest.er1
51963 grep -v '^ *+' conftest.er1 >conftest.err
51965 cat conftest.err >&5
51966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51967 (exit $ac_status); } &&
51968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51969 { (case "(($ac_try" in
51970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51971 *) ac_try_echo=$ac_try;;
51973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51974 (eval "$ac_try") 2>&5
51976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51977 (exit $ac_status); }; } &&
51978 { ac_try='test -s conftest.$ac_objext'
51979 { (case "(($ac_try" in
51980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51981 *) ac_try_echo=$ac_try;;
51983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51984 (eval "$ac_try") 2>&5
51986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987 (exit $ac_status); }; }; then
51988 ac_cv_member_struct_stat_st_author=yes
51990 echo "$as_me: failed program was:" >&5
51991 sed 's/^/| /' conftest.$ac_ext >&5
51993 ac_cv_member_struct_stat_st_author=no
51996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52001 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
52002 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6; }
52003 if test $ac_cv_member_struct_stat_st_author = yes; then
52005 cat >>confdefs.h <<_ACEOF
52006 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
52011 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
52012 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
52013 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
52014 echo $ECHO_N "(cached) $ECHO_C" >&6
52016 cat >conftest.$ac_ext <<_ACEOF
52019 cat confdefs.h >>conftest.$ac_ext
52020 cat >>conftest.$ac_ext <<_ACEOF
52021 /* end confdefs.h. */
52022 $ac_includes_default
52023 #include <sys/stat.h>
52029 static struct stat ac_aggr;
52030 if (ac_aggr.st_blksize)
52036 rm -f conftest.$ac_objext
52037 if { (ac_try="$ac_compile"
52038 case "(($ac_try" in
52039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52040 *) ac_try_echo=$ac_try;;
52042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52043 (eval "$ac_compile") 2>conftest.er1
52045 grep -v '^ *+' conftest.er1 >conftest.err
52047 cat conftest.err >&5
52048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52049 (exit $ac_status); } &&
52050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52051 { (case "(($ac_try" in
52052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52053 *) ac_try_echo=$ac_try;;
52055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52056 (eval "$ac_try") 2>&5
52058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52059 (exit $ac_status); }; } &&
52060 { ac_try='test -s conftest.$ac_objext'
52061 { (case "(($ac_try" in
52062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52063 *) ac_try_echo=$ac_try;;
52065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52066 (eval "$ac_try") 2>&5
52068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52069 (exit $ac_status); }; }; then
52070 ac_cv_member_struct_stat_st_blksize=yes
52072 echo "$as_me: failed program was:" >&5
52073 sed 's/^/| /' conftest.$ac_ext >&5
52075 cat >conftest.$ac_ext <<_ACEOF
52078 cat confdefs.h >>conftest.$ac_ext
52079 cat >>conftest.$ac_ext <<_ACEOF
52080 /* end confdefs.h. */
52081 $ac_includes_default
52082 #include <sys/stat.h>
52088 static struct stat ac_aggr;
52089 if (sizeof ac_aggr.st_blksize)
52095 rm -f conftest.$ac_objext
52096 if { (ac_try="$ac_compile"
52097 case "(($ac_try" in
52098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52099 *) ac_try_echo=$ac_try;;
52101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52102 (eval "$ac_compile") 2>conftest.er1
52104 grep -v '^ *+' conftest.er1 >conftest.err
52106 cat conftest.err >&5
52107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52108 (exit $ac_status); } &&
52109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52110 { (case "(($ac_try" in
52111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52112 *) ac_try_echo=$ac_try;;
52114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52115 (eval "$ac_try") 2>&5
52117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52118 (exit $ac_status); }; } &&
52119 { ac_try='test -s conftest.$ac_objext'
52120 { (case "(($ac_try" in
52121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52122 *) ac_try_echo=$ac_try;;
52124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52125 (eval "$ac_try") 2>&5
52127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52128 (exit $ac_status); }; }; then
52129 ac_cv_member_struct_stat_st_blksize=yes
52131 echo "$as_me: failed program was:" >&5
52132 sed 's/^/| /' conftest.$ac_ext >&5
52134 ac_cv_member_struct_stat_st_blksize=no
52137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52143 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
52144 if test $ac_cv_member_struct_stat_st_blksize = yes; then
52146 cat >>confdefs.h <<_ACEOF
52147 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52164 { echo "$as_me:$LINENO: checking for ino_t" >&5
52165 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
52166 if test "${ac_cv_type_ino_t+set}" = set; then
52167 echo $ECHO_N "(cached) $ECHO_C" >&6
52169 cat >conftest.$ac_ext <<_ACEOF
52172 cat confdefs.h >>conftest.$ac_ext
52173 cat >>conftest.$ac_ext <<_ACEOF
52174 /* end confdefs.h. */
52175 $ac_includes_default
52176 typedef ino_t ac__type_new_;
52180 if ((ac__type_new_ *) 0)
52182 if (sizeof (ac__type_new_))
52188 rm -f conftest.$ac_objext
52189 if { (ac_try="$ac_compile"
52190 case "(($ac_try" in
52191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52192 *) ac_try_echo=$ac_try;;
52194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52195 (eval "$ac_compile") 2>conftest.er1
52197 grep -v '^ *+' conftest.er1 >conftest.err
52199 cat conftest.err >&5
52200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52201 (exit $ac_status); } &&
52202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52203 { (case "(($ac_try" in
52204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52205 *) ac_try_echo=$ac_try;;
52207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52208 (eval "$ac_try") 2>&5
52210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52211 (exit $ac_status); }; } &&
52212 { ac_try='test -s conftest.$ac_objext'
52213 { (case "(($ac_try" in
52214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52215 *) ac_try_echo=$ac_try;;
52217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52218 (eval "$ac_try") 2>&5
52220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52221 (exit $ac_status); }; }; then
52222 ac_cv_type_ino_t=yes
52224 echo "$as_me: failed program was:" >&5
52225 sed 's/^/| /' conftest.$ac_ext >&5
52227 ac_cv_type_ino_t=no
52230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52232 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
52233 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
52234 if test $ac_cv_type_ino_t = yes; then
52238 cat >>confdefs.h <<_ACEOF
52239 #define ino_t unsigned long int
52246 { echo "$as_me:$LINENO: checking for ssize_t" >&5
52247 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
52248 if test "${gt_cv_ssize_t+set}" = set; then
52249 echo $ECHO_N "(cached) $ECHO_C" >&6
52251 cat >conftest.$ac_ext <<_ACEOF
52254 cat confdefs.h >>conftest.$ac_ext
52255 cat >>conftest.$ac_ext <<_ACEOF
52256 /* end confdefs.h. */
52257 #include <sys/types.h>
52261 int x = sizeof (ssize_t *) + sizeof (ssize_t);
52267 rm -f conftest.$ac_objext
52268 if { (ac_try="$ac_compile"
52269 case "(($ac_try" in
52270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52271 *) ac_try_echo=$ac_try;;
52273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52274 (eval "$ac_compile") 2>conftest.er1
52276 grep -v '^ *+' conftest.er1 >conftest.err
52278 cat conftest.err >&5
52279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52280 (exit $ac_status); } &&
52281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52282 { (case "(($ac_try" in
52283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52284 *) ac_try_echo=$ac_try;;
52286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52287 (eval "$ac_try") 2>&5
52289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52290 (exit $ac_status); }; } &&
52291 { ac_try='test -s conftest.$ac_objext'
52292 { (case "(($ac_try" in
52293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52294 *) ac_try_echo=$ac_try;;
52296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52297 (eval "$ac_try") 2>&5
52299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52300 (exit $ac_status); }; }; then
52303 echo "$as_me: failed program was:" >&5
52304 sed 's/^/| /' conftest.$ac_ext >&5
52309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52311 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
52312 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
52313 if test $gt_cv_ssize_t = no; then
52315 cat >>confdefs.h <<\_ACEOF
52316 #define ssize_t int
52322 { echo "$as_me:$LINENO: checking for major_t" >&5
52323 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
52324 if test "${ac_cv_type_major_t+set}" = set; then
52325 echo $ECHO_N "(cached) $ECHO_C" >&6
52327 cat >conftest.$ac_ext <<_ACEOF
52330 cat confdefs.h >>conftest.$ac_ext
52331 cat >>conftest.$ac_ext <<_ACEOF
52332 /* end confdefs.h. */
52333 $ac_includes_default
52334 typedef major_t ac__type_new_;
52338 if ((ac__type_new_ *) 0)
52340 if (sizeof (ac__type_new_))
52346 rm -f conftest.$ac_objext
52347 if { (ac_try="$ac_compile"
52348 case "(($ac_try" in
52349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52350 *) ac_try_echo=$ac_try;;
52352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52353 (eval "$ac_compile") 2>conftest.er1
52355 grep -v '^ *+' conftest.er1 >conftest.err
52357 cat conftest.err >&5
52358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52359 (exit $ac_status); } &&
52360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52361 { (case "(($ac_try" in
52362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52363 *) ac_try_echo=$ac_try;;
52365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52366 (eval "$ac_try") 2>&5
52368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52369 (exit $ac_status); }; } &&
52370 { ac_try='test -s conftest.$ac_objext'
52371 { (case "(($ac_try" in
52372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52373 *) ac_try_echo=$ac_try;;
52375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52376 (eval "$ac_try") 2>&5
52378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52379 (exit $ac_status); }; }; then
52380 ac_cv_type_major_t=yes
52382 echo "$as_me: failed program was:" >&5
52383 sed 's/^/| /' conftest.$ac_ext >&5
52385 ac_cv_type_major_t=no
52388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52390 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
52391 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
52392 if test $ac_cv_type_major_t = yes; then
52396 cat >>confdefs.h <<_ACEOF
52397 #define major_t unsigned int
52402 { echo "$as_me:$LINENO: checking for minor_t" >&5
52403 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
52404 if test "${ac_cv_type_minor_t+set}" = set; then
52405 echo $ECHO_N "(cached) $ECHO_C" >&6
52407 cat >conftest.$ac_ext <<_ACEOF
52410 cat confdefs.h >>conftest.$ac_ext
52411 cat >>conftest.$ac_ext <<_ACEOF
52412 /* end confdefs.h. */
52413 $ac_includes_default
52414 typedef minor_t ac__type_new_;
52418 if ((ac__type_new_ *) 0)
52420 if (sizeof (ac__type_new_))
52426 rm -f conftest.$ac_objext
52427 if { (ac_try="$ac_compile"
52428 case "(($ac_try" in
52429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52430 *) ac_try_echo=$ac_try;;
52432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52433 (eval "$ac_compile") 2>conftest.er1
52435 grep -v '^ *+' conftest.er1 >conftest.err
52437 cat conftest.err >&5
52438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52439 (exit $ac_status); } &&
52440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52441 { (case "(($ac_try" in
52442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52443 *) ac_try_echo=$ac_try;;
52445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52446 (eval "$ac_try") 2>&5
52448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52449 (exit $ac_status); }; } &&
52450 { ac_try='test -s conftest.$ac_objext'
52451 { (case "(($ac_try" in
52452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52453 *) ac_try_echo=$ac_try;;
52455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52456 (eval "$ac_try") 2>&5
52458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52459 (exit $ac_status); }; }; then
52460 ac_cv_type_minor_t=yes
52462 echo "$as_me: failed program was:" >&5
52463 sed 's/^/| /' conftest.$ac_ext >&5
52465 ac_cv_type_minor_t=no
52468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52470 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
52471 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
52472 if test $ac_cv_type_minor_t = yes; then
52476 cat >>confdefs.h <<_ACEOF
52477 #define minor_t unsigned int
52511 # This is for od and stat, and any other program that
52512 # uses the PRI.MAX macros from inttypes.h.
52522 ac_have_func=no # yes means we've found a way to get the load average.
52524 # Make sure getloadavg.c is where it belongs, at configure-time.
52525 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
52526 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
52527 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
52528 { (exit 1); exit 1; }; }
52532 # Check for getloadavg, but be sure not to touch the cache variable.
52533 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
52534 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
52535 if test "${ac_cv_func_getloadavg+set}" = set; then
52536 echo $ECHO_N "(cached) $ECHO_C" >&6
52538 cat >conftest.$ac_ext <<_ACEOF
52541 cat confdefs.h >>conftest.$ac_ext
52542 cat >>conftest.$ac_ext <<_ACEOF
52543 /* end confdefs.h. */
52544 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
52545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52546 #define getloadavg innocuous_getloadavg
52548 /* System header to define __stub macros and hopefully few prototypes,
52549 which can conflict with char getloadavg (); below.
52550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52551 <limits.h> exists even on freestanding compilers. */
52554 # include <limits.h>
52556 # include <assert.h>
52561 /* Override any GCC internal prototype to avoid an error.
52562 Use char because int might match the return type of a GCC
52563 builtin and then its argument prototype would still apply. */
52567 char getloadavg ();
52568 /* The GNU C library defines this for functions which it implements
52569 to always fail with ENOSYS. Some functions are actually named
52570 something starting with __ and the normal name is an alias. */
52571 #if defined __stub_getloadavg || defined __stub___getloadavg
52578 return getloadavg ();
52583 rm -f conftest.$ac_objext conftest$ac_exeext
52584 if { (ac_try="$ac_link"
52585 case "(($ac_try" in
52586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52587 *) ac_try_echo=$ac_try;;
52589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52590 (eval "$ac_link") 2>conftest.er1
52592 grep -v '^ *+' conftest.er1 >conftest.err
52594 cat conftest.err >&5
52595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52596 (exit $ac_status); } &&
52597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52598 { (case "(($ac_try" in
52599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52600 *) ac_try_echo=$ac_try;;
52602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52603 (eval "$ac_try") 2>&5
52605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606 (exit $ac_status); }; } &&
52607 { ac_try='test -s conftest$ac_exeext'
52608 { (case "(($ac_try" in
52609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52610 *) ac_try_echo=$ac_try;;
52612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52613 (eval "$ac_try") 2>&5
52615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52616 (exit $ac_status); }; }; then
52617 ac_cv_func_getloadavg=yes
52619 echo "$as_me: failed program was:" >&5
52620 sed 's/^/| /' conftest.$ac_ext >&5
52622 ac_cv_func_getloadavg=no
52625 rm -f core conftest.err conftest.$ac_objext \
52626 conftest$ac_exeext conftest.$ac_ext
52628 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
52629 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
52630 if test $ac_cv_func_getloadavg = yes; then
52635 ) && ac_have_func=yes
52637 # On HPUX9, an unprivileged user can get load averages through this function.
52639 for ac_func in pstat_getdynamic
52641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52645 echo $ECHO_N "(cached) $ECHO_C" >&6
52647 cat >conftest.$ac_ext <<_ACEOF
52650 cat confdefs.h >>conftest.$ac_ext
52651 cat >>conftest.$ac_ext <<_ACEOF
52652 /* end confdefs.h. */
52653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52655 #define $ac_func innocuous_$ac_func
52657 /* System header to define __stub macros and hopefully few prototypes,
52658 which can conflict with char $ac_func (); below.
52659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52660 <limits.h> exists even on freestanding compilers. */
52663 # include <limits.h>
52665 # include <assert.h>
52670 /* Override any GCC internal prototype to avoid an error.
52671 Use char because int might match the return type of a GCC
52672 builtin and then its argument prototype would still apply. */
52677 /* The GNU C library defines this for functions which it implements
52678 to always fail with ENOSYS. Some functions are actually named
52679 something starting with __ and the normal name is an alias. */
52680 #if defined __stub_$ac_func || defined __stub___$ac_func
52687 return $ac_func ();
52692 rm -f conftest.$ac_objext conftest$ac_exeext
52693 if { (ac_try="$ac_link"
52694 case "(($ac_try" in
52695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52696 *) ac_try_echo=$ac_try;;
52698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52699 (eval "$ac_link") 2>conftest.er1
52701 grep -v '^ *+' conftest.er1 >conftest.err
52703 cat conftest.err >&5
52704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52705 (exit $ac_status); } &&
52706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52707 { (case "(($ac_try" in
52708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52709 *) ac_try_echo=$ac_try;;
52711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52712 (eval "$ac_try") 2>&5
52714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52715 (exit $ac_status); }; } &&
52716 { ac_try='test -s conftest$ac_exeext'
52717 { (case "(($ac_try" in
52718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52719 *) ac_try_echo=$ac_try;;
52721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52722 (eval "$ac_try") 2>&5
52724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52725 (exit $ac_status); }; }; then
52726 eval "$as_ac_var=yes"
52728 echo "$as_me: failed program was:" >&5
52729 sed 's/^/| /' conftest.$ac_ext >&5
52731 eval "$as_ac_var=no"
52734 rm -f core conftest.err conftest.$ac_objext \
52735 conftest$ac_exeext conftest.$ac_ext
52737 ac_res=`eval echo '${'$as_ac_var'}'`
52738 { echo "$as_me:$LINENO: result: $ac_res" >&5
52739 echo "${ECHO_T}$ac_res" >&6; }
52740 if test `eval echo '${'$as_ac_var'}'` = yes; then
52741 cat >>confdefs.h <<_ACEOF
52742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52749 # Solaris has libkstat which does not require root.
52751 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
52752 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
52753 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
52754 echo $ECHO_N "(cached) $ECHO_C" >&6
52756 ac_check_lib_save_LIBS=$LIBS
52757 LIBS="-lkstat $LIBS"
52758 cat >conftest.$ac_ext <<_ACEOF
52761 cat confdefs.h >>conftest.$ac_ext
52762 cat >>conftest.$ac_ext <<_ACEOF
52763 /* end confdefs.h. */
52765 /* Override any GCC internal prototype to avoid an error.
52766 Use char because int might match the return type of a GCC
52767 builtin and then its argument prototype would still apply. */
52771 char kstat_open ();
52775 return kstat_open ();
52780 rm -f conftest.$ac_objext conftest$ac_exeext
52781 if { (ac_try="$ac_link"
52782 case "(($ac_try" in
52783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52784 *) ac_try_echo=$ac_try;;
52786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52787 (eval "$ac_link") 2>conftest.er1
52789 grep -v '^ *+' conftest.er1 >conftest.err
52791 cat conftest.err >&5
52792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52793 (exit $ac_status); } &&
52794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52795 { (case "(($ac_try" in
52796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52797 *) ac_try_echo=$ac_try;;
52799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52800 (eval "$ac_try") 2>&5
52802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52803 (exit $ac_status); }; } &&
52804 { ac_try='test -s conftest$ac_exeext'
52805 { (case "(($ac_try" in
52806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52807 *) ac_try_echo=$ac_try;;
52809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52810 (eval "$ac_try") 2>&5
52812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52813 (exit $ac_status); }; }; then
52814 ac_cv_lib_kstat_kstat_open=yes
52816 echo "$as_me: failed program was:" >&5
52817 sed 's/^/| /' conftest.$ac_ext >&5
52819 ac_cv_lib_kstat_kstat_open=no
52822 rm -f core conftest.err conftest.$ac_objext \
52823 conftest$ac_exeext conftest.$ac_ext
52824 LIBS=$ac_check_lib_save_LIBS
52826 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
52827 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
52828 if test $ac_cv_lib_kstat_kstat_open = yes; then
52829 cat >>confdefs.h <<_ACEOF
52830 #define HAVE_LIBKSTAT 1
52833 LIBS="-lkstat $LIBS"
52837 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
52839 # Some systems with -lutil have (and need) -lkvm as well, some do not.
52840 # On Solaris, -lkvm requires nlist from -lelf, so check that first
52841 # to get the right answer into the cache.
52842 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
52843 if test $ac_have_func = no; then
52844 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
52845 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
52846 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
52847 echo $ECHO_N "(cached) $ECHO_C" >&6
52849 ac_check_lib_save_LIBS=$LIBS
52851 cat >conftest.$ac_ext <<_ACEOF
52854 cat confdefs.h >>conftest.$ac_ext
52855 cat >>conftest.$ac_ext <<_ACEOF
52856 /* end confdefs.h. */
52858 /* Override any GCC internal prototype to avoid an error.
52859 Use char because int might match the return type of a GCC
52860 builtin and then its argument prototype would still apply. */
52868 return elf_begin ();
52873 rm -f conftest.$ac_objext conftest$ac_exeext
52874 if { (ac_try="$ac_link"
52875 case "(($ac_try" in
52876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52877 *) ac_try_echo=$ac_try;;
52879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52880 (eval "$ac_link") 2>conftest.er1
52882 grep -v '^ *+' conftest.er1 >conftest.err
52884 cat conftest.err >&5
52885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52886 (exit $ac_status); } &&
52887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52888 { (case "(($ac_try" in
52889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52890 *) ac_try_echo=$ac_try;;
52892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52893 (eval "$ac_try") 2>&5
52895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896 (exit $ac_status); }; } &&
52897 { ac_try='test -s conftest$ac_exeext'
52898 { (case "(($ac_try" in
52899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52900 *) ac_try_echo=$ac_try;;
52902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52903 (eval "$ac_try") 2>&5
52905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52906 (exit $ac_status); }; }; then
52907 ac_cv_lib_elf_elf_begin=yes
52909 echo "$as_me: failed program was:" >&5
52910 sed 's/^/| /' conftest.$ac_ext >&5
52912 ac_cv_lib_elf_elf_begin=no
52915 rm -f core conftest.err conftest.$ac_objext \
52916 conftest$ac_exeext conftest.$ac_ext
52917 LIBS=$ac_check_lib_save_LIBS
52919 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
52920 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
52921 if test $ac_cv_lib_elf_elf_begin = yes; then
52926 if test $ac_have_func = no; then
52927 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
52928 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
52929 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
52930 echo $ECHO_N "(cached) $ECHO_C" >&6
52932 ac_check_lib_save_LIBS=$LIBS
52934 cat >conftest.$ac_ext <<_ACEOF
52937 cat confdefs.h >>conftest.$ac_ext
52938 cat >>conftest.$ac_ext <<_ACEOF
52939 /* end confdefs.h. */
52941 /* Override any GCC internal prototype to avoid an error.
52942 Use char because int might match the return type of a GCC
52943 builtin and then its argument prototype would still apply. */
52951 return kvm_open ();
52956 rm -f conftest.$ac_objext conftest$ac_exeext
52957 if { (ac_try="$ac_link"
52958 case "(($ac_try" in
52959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52960 *) ac_try_echo=$ac_try;;
52962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52963 (eval "$ac_link") 2>conftest.er1
52965 grep -v '^ *+' conftest.er1 >conftest.err
52967 cat conftest.err >&5
52968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52969 (exit $ac_status); } &&
52970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52971 { (case "(($ac_try" in
52972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52973 *) ac_try_echo=$ac_try;;
52975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52976 (eval "$ac_try") 2>&5
52978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52979 (exit $ac_status); }; } &&
52980 { ac_try='test -s conftest$ac_exeext'
52981 { (case "(($ac_try" in
52982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52983 *) ac_try_echo=$ac_try;;
52985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52986 (eval "$ac_try") 2>&5
52988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52989 (exit $ac_status); }; }; then
52990 ac_cv_lib_kvm_kvm_open=yes
52992 echo "$as_me: failed program was:" >&5
52993 sed 's/^/| /' conftest.$ac_ext >&5
52995 ac_cv_lib_kvm_kvm_open=no
52998 rm -f core conftest.err conftest.$ac_objext \
52999 conftest$ac_exeext conftest.$ac_ext
53000 LIBS=$ac_check_lib_save_LIBS
53002 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
53003 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
53004 if test $ac_cv_lib_kvm_kvm_open = yes; then
53008 # Check for the 4.4BSD definition of getloadavg.
53009 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
53010 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
53011 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
53012 echo $ECHO_N "(cached) $ECHO_C" >&6
53014 ac_check_lib_save_LIBS=$LIBS
53015 LIBS="-lutil $LIBS"
53016 cat >conftest.$ac_ext <<_ACEOF
53019 cat confdefs.h >>conftest.$ac_ext
53020 cat >>conftest.$ac_ext <<_ACEOF
53021 /* end confdefs.h. */
53023 /* Override any GCC internal prototype to avoid an error.
53024 Use char because int might match the return type of a GCC
53025 builtin and then its argument prototype would still apply. */
53029 char getloadavg ();
53033 return getloadavg ();
53038 rm -f conftest.$ac_objext conftest$ac_exeext
53039 if { (ac_try="$ac_link"
53040 case "(($ac_try" in
53041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53042 *) ac_try_echo=$ac_try;;
53044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53045 (eval "$ac_link") 2>conftest.er1
53047 grep -v '^ *+' conftest.er1 >conftest.err
53049 cat conftest.err >&5
53050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53051 (exit $ac_status); } &&
53052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53053 { (case "(($ac_try" in
53054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53055 *) ac_try_echo=$ac_try;;
53057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53058 (eval "$ac_try") 2>&5
53060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53061 (exit $ac_status); }; } &&
53062 { ac_try='test -s conftest$ac_exeext'
53063 { (case "(($ac_try" in
53064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53065 *) ac_try_echo=$ac_try;;
53067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53068 (eval "$ac_try") 2>&5
53070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53071 (exit $ac_status); }; }; then
53072 ac_cv_lib_util_getloadavg=yes
53074 echo "$as_me: failed program was:" >&5
53075 sed 's/^/| /' conftest.$ac_ext >&5
53077 ac_cv_lib_util_getloadavg=no
53080 rm -f core conftest.err conftest.$ac_objext \
53081 conftest$ac_exeext conftest.$ac_ext
53082 LIBS=$ac_check_lib_save_LIBS
53084 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
53085 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
53086 if test $ac_cv_lib_util_getloadavg = yes; then
53087 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
53092 if test $ac_have_func = no; then
53093 # There is a commonly available library for RS/6000 AIX.
53094 # Since it is not a standard part of AIX, it might be installed locally.
53095 ac_getloadavg_LIBS=$LIBS
53096 LIBS="-L/usr/local/lib $LIBS"
53097 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
53098 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
53099 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
53100 echo $ECHO_N "(cached) $ECHO_C" >&6
53102 ac_check_lib_save_LIBS=$LIBS
53103 LIBS="-lgetloadavg $LIBS"
53104 cat >conftest.$ac_ext <<_ACEOF
53107 cat confdefs.h >>conftest.$ac_ext
53108 cat >>conftest.$ac_ext <<_ACEOF
53109 /* end confdefs.h. */
53111 /* Override any GCC internal prototype to avoid an error.
53112 Use char because int might match the return type of a GCC
53113 builtin and then its argument prototype would still apply. */
53117 char getloadavg ();
53121 return getloadavg ();
53126 rm -f conftest.$ac_objext conftest$ac_exeext
53127 if { (ac_try="$ac_link"
53128 case "(($ac_try" in
53129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53130 *) ac_try_echo=$ac_try;;
53132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53133 (eval "$ac_link") 2>conftest.er1
53135 grep -v '^ *+' conftest.er1 >conftest.err
53137 cat conftest.err >&5
53138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53139 (exit $ac_status); } &&
53140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53141 { (case "(($ac_try" in
53142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53143 *) ac_try_echo=$ac_try;;
53145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53146 (eval "$ac_try") 2>&5
53148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53149 (exit $ac_status); }; } &&
53150 { ac_try='test -s conftest$ac_exeext'
53151 { (case "(($ac_try" in
53152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53153 *) ac_try_echo=$ac_try;;
53155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53156 (eval "$ac_try") 2>&5
53158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53159 (exit $ac_status); }; }; then
53160 ac_cv_lib_getloadavg_getloadavg=yes
53162 echo "$as_me: failed program was:" >&5
53163 sed 's/^/| /' conftest.$ac_ext >&5
53165 ac_cv_lib_getloadavg_getloadavg=no
53168 rm -f core conftest.err conftest.$ac_objext \
53169 conftest$ac_exeext conftest.$ac_ext
53170 LIBS=$ac_check_lib_save_LIBS
53172 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
53173 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
53174 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
53175 LIBS="-lgetloadavg $LIBS"
53177 LIBS=$ac_getloadavg_LIBS
53182 # Make sure it is really in the library, if we think we found it,
53183 # otherwise set up the replacement function.
53185 for ac_func in getloadavg
53187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53191 echo $ECHO_N "(cached) $ECHO_C" >&6
53193 cat >conftest.$ac_ext <<_ACEOF
53196 cat confdefs.h >>conftest.$ac_ext
53197 cat >>conftest.$ac_ext <<_ACEOF
53198 /* end confdefs.h. */
53199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53201 #define $ac_func innocuous_$ac_func
53203 /* System header to define __stub macros and hopefully few prototypes,
53204 which can conflict with char $ac_func (); below.
53205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53206 <limits.h> exists even on freestanding compilers. */
53209 # include <limits.h>
53211 # include <assert.h>
53216 /* Override any GCC internal prototype to avoid an error.
53217 Use char because int might match the return type of a GCC
53218 builtin and then its argument prototype would still apply. */
53223 /* The GNU C library defines this for functions which it implements
53224 to always fail with ENOSYS. Some functions are actually named
53225 something starting with __ and the normal name is an alias. */
53226 #if defined __stub_$ac_func || defined __stub___$ac_func
53233 return $ac_func ();
53238 rm -f conftest.$ac_objext conftest$ac_exeext
53239 if { (ac_try="$ac_link"
53240 case "(($ac_try" in
53241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53242 *) ac_try_echo=$ac_try;;
53244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53245 (eval "$ac_link") 2>conftest.er1
53247 grep -v '^ *+' conftest.er1 >conftest.err
53249 cat conftest.err >&5
53250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53251 (exit $ac_status); } &&
53252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53253 { (case "(($ac_try" in
53254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53255 *) ac_try_echo=$ac_try;;
53257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53258 (eval "$ac_try") 2>&5
53260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53261 (exit $ac_status); }; } &&
53262 { ac_try='test -s conftest$ac_exeext'
53263 { (case "(($ac_try" in
53264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53265 *) ac_try_echo=$ac_try;;
53267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53268 (eval "$ac_try") 2>&5
53270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53271 (exit $ac_status); }; }; then
53272 eval "$as_ac_var=yes"
53274 echo "$as_me: failed program was:" >&5
53275 sed 's/^/| /' conftest.$ac_ext >&5
53277 eval "$as_ac_var=no"
53280 rm -f core conftest.err conftest.$ac_objext \
53281 conftest$ac_exeext conftest.$ac_ext
53283 ac_res=`eval echo '${'$as_ac_var'}'`
53284 { echo "$as_me:$LINENO: result: $ac_res" >&5
53285 echo "${ECHO_T}$ac_res" >&6; }
53286 if test `eval echo '${'$as_ac_var'}'` = yes; then
53287 cat >>confdefs.h <<_ACEOF
53288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53292 case " $LIBOBJS " in
53293 *" getloadavg.$ac_objext "* ) ;;
53294 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
53299 cat >>confdefs.h <<\_ACEOF
53300 #define C_GETLOADAVG 1
53303 # Figure out what our getloadavg.c needs.
53305 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53306 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53307 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
53308 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53309 echo $ECHO_N "(cached) $ECHO_C" >&6
53311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53312 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
53314 # Is the header compilable?
53315 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
53316 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
53317 cat >conftest.$ac_ext <<_ACEOF
53320 cat confdefs.h >>conftest.$ac_ext
53321 cat >>conftest.$ac_ext <<_ACEOF
53322 /* end confdefs.h. */
53323 $ac_includes_default
53324 #include <sys/dg_sys_info.h>
53326 rm -f conftest.$ac_objext
53327 if { (ac_try="$ac_compile"
53328 case "(($ac_try" in
53329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53330 *) ac_try_echo=$ac_try;;
53332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53333 (eval "$ac_compile") 2>conftest.er1
53335 grep -v '^ *+' conftest.er1 >conftest.err
53337 cat conftest.err >&5
53338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53339 (exit $ac_status); } &&
53340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53341 { (case "(($ac_try" in
53342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53343 *) ac_try_echo=$ac_try;;
53345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53346 (eval "$ac_try") 2>&5
53348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53349 (exit $ac_status); }; } &&
53350 { ac_try='test -s conftest.$ac_objext'
53351 { (case "(($ac_try" in
53352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53353 *) ac_try_echo=$ac_try;;
53355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53356 (eval "$ac_try") 2>&5
53358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53359 (exit $ac_status); }; }; then
53360 ac_header_compiler=yes
53362 echo "$as_me: failed program was:" >&5
53363 sed 's/^/| /' conftest.$ac_ext >&5
53365 ac_header_compiler=no
53368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53370 echo "${ECHO_T}$ac_header_compiler" >&6; }
53372 # Is the header present?
53373 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
53374 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
53375 cat >conftest.$ac_ext <<_ACEOF
53378 cat confdefs.h >>conftest.$ac_ext
53379 cat >>conftest.$ac_ext <<_ACEOF
53380 /* end confdefs.h. */
53381 #include <sys/dg_sys_info.h>
53383 if { (ac_try="$ac_cpp conftest.$ac_ext"
53384 case "(($ac_try" in
53385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53386 *) ac_try_echo=$ac_try;;
53388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53391 grep -v '^ *+' conftest.er1 >conftest.err
53393 cat conftest.err >&5
53394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53395 (exit $ac_status); } >/dev/null; then
53396 if test -s conftest.err; then
53397 ac_cpp_err=$ac_c_preproc_warn_flag
53398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53405 if test -z "$ac_cpp_err"; then
53406 ac_header_preproc=yes
53408 echo "$as_me: failed program was:" >&5
53409 sed 's/^/| /' conftest.$ac_ext >&5
53411 ac_header_preproc=no
53414 rm -f conftest.err conftest.$ac_ext
53415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53416 echo "${ECHO_T}$ac_header_preproc" >&6; }
53418 # So? What about this header?
53419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53421 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
53422 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53423 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
53424 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
53425 ac_header_preproc=yes
53428 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
53429 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
53430 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
53431 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
53432 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
53433 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
53434 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
53435 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
53436 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
53437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
53438 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
53439 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
53441 ## ------------------------------------ ##
53442 ## Report this to bug-coreutils@gnu.org ##
53443 ## ------------------------------------ ##
53445 ) | sed "s/^/$as_me: WARNING: /" >&2
53448 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53449 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
53450 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53451 echo $ECHO_N "(cached) $ECHO_C" >&6
53453 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
53455 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53456 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
53459 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
53462 cat >>confdefs.h <<\_ACEOF
53467 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
53468 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
53469 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
53470 echo $ECHO_N "(cached) $ECHO_C" >&6
53472 ac_check_lib_save_LIBS=$LIBS
53474 cat >conftest.$ac_ext <<_ACEOF
53477 cat confdefs.h >>conftest.$ac_ext
53478 cat >>conftest.$ac_ext <<_ACEOF
53479 /* end confdefs.h. */
53481 /* Override any GCC internal prototype to avoid an error.
53482 Use char because int might match the return type of a GCC
53483 builtin and then its argument prototype would still apply. */
53487 char dg_sys_info ();
53491 return dg_sys_info ();
53496 rm -f conftest.$ac_objext conftest$ac_exeext
53497 if { (ac_try="$ac_link"
53498 case "(($ac_try" in
53499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53500 *) ac_try_echo=$ac_try;;
53502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53503 (eval "$ac_link") 2>conftest.er1
53505 grep -v '^ *+' conftest.er1 >conftest.err
53507 cat conftest.err >&5
53508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53509 (exit $ac_status); } &&
53510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53511 { (case "(($ac_try" in
53512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53513 *) ac_try_echo=$ac_try;;
53515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53516 (eval "$ac_try") 2>&5
53518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53519 (exit $ac_status); }; } &&
53520 { ac_try='test -s conftest$ac_exeext'
53521 { (case "(($ac_try" in
53522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53523 *) ac_try_echo=$ac_try;;
53525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53526 (eval "$ac_try") 2>&5
53528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53529 (exit $ac_status); }; }; then
53530 ac_cv_lib_dgc_dg_sys_info=yes
53532 echo "$as_me: failed program was:" >&5
53533 sed 's/^/| /' conftest.$ac_ext >&5
53535 ac_cv_lib_dgc_dg_sys_info=no
53538 rm -f core conftest.err conftest.$ac_objext \
53539 conftest$ac_exeext conftest.$ac_ext
53540 LIBS=$ac_check_lib_save_LIBS
53542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
53543 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
53544 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
53545 cat >>confdefs.h <<_ACEOF
53546 #define HAVE_LIBDGC 1
53557 if test "${ac_cv_header_locale_h+set}" = set; then
53558 { echo "$as_me:$LINENO: checking for locale.h" >&5
53559 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
53560 if test "${ac_cv_header_locale_h+set}" = set; then
53561 echo $ECHO_N "(cached) $ECHO_C" >&6
53563 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53564 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
53566 # Is the header compilable?
53567 { echo "$as_me:$LINENO: checking locale.h usability" >&5
53568 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
53569 cat >conftest.$ac_ext <<_ACEOF
53572 cat confdefs.h >>conftest.$ac_ext
53573 cat >>conftest.$ac_ext <<_ACEOF
53574 /* end confdefs.h. */
53575 $ac_includes_default
53576 #include <locale.h>
53578 rm -f conftest.$ac_objext
53579 if { (ac_try="$ac_compile"
53580 case "(($ac_try" in
53581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53582 *) ac_try_echo=$ac_try;;
53584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53585 (eval "$ac_compile") 2>conftest.er1
53587 grep -v '^ *+' conftest.er1 >conftest.err
53589 cat conftest.err >&5
53590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53591 (exit $ac_status); } &&
53592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53593 { (case "(($ac_try" in
53594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53595 *) ac_try_echo=$ac_try;;
53597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53598 (eval "$ac_try") 2>&5
53600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53601 (exit $ac_status); }; } &&
53602 { ac_try='test -s conftest.$ac_objext'
53603 { (case "(($ac_try" in
53604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53605 *) ac_try_echo=$ac_try;;
53607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53608 (eval "$ac_try") 2>&5
53610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53611 (exit $ac_status); }; }; then
53612 ac_header_compiler=yes
53614 echo "$as_me: failed program was:" >&5
53615 sed 's/^/| /' conftest.$ac_ext >&5
53617 ac_header_compiler=no
53620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53622 echo "${ECHO_T}$ac_header_compiler" >&6; }
53624 # Is the header present?
53625 { echo "$as_me:$LINENO: checking locale.h presence" >&5
53626 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
53627 cat >conftest.$ac_ext <<_ACEOF
53630 cat confdefs.h >>conftest.$ac_ext
53631 cat >>conftest.$ac_ext <<_ACEOF
53632 /* end confdefs.h. */
53633 #include <locale.h>
53635 if { (ac_try="$ac_cpp conftest.$ac_ext"
53636 case "(($ac_try" in
53637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53638 *) ac_try_echo=$ac_try;;
53640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53643 grep -v '^ *+' conftest.er1 >conftest.err
53645 cat conftest.err >&5
53646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53647 (exit $ac_status); } >/dev/null; then
53648 if test -s conftest.err; then
53649 ac_cpp_err=$ac_c_preproc_warn_flag
53650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53657 if test -z "$ac_cpp_err"; then
53658 ac_header_preproc=yes
53660 echo "$as_me: failed program was:" >&5
53661 sed 's/^/| /' conftest.$ac_ext >&5
53663 ac_header_preproc=no
53666 rm -f conftest.err conftest.$ac_ext
53667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53668 echo "${ECHO_T}$ac_header_preproc" >&6; }
53670 # So? What about this header?
53671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53673 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
53674 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53675 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
53676 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
53677 ac_header_preproc=yes
53680 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
53681 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
53682 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
53683 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
53684 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
53685 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
53686 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
53687 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
53688 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
53689 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
53690 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
53691 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
53693 ## ------------------------------------ ##
53694 ## Report this to bug-coreutils@gnu.org ##
53695 ## ------------------------------------ ##
53697 ) | sed "s/^/$as_me: WARNING: /" >&2
53700 { echo "$as_me:$LINENO: checking for locale.h" >&5
53701 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
53702 if test "${ac_cv_header_locale_h+set}" = set; then
53703 echo $ECHO_N "(cached) $ECHO_C" >&6
53705 ac_cv_header_locale_h=$ac_header_preproc
53707 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53708 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
53714 for ac_func in setlocale
53716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53720 echo $ECHO_N "(cached) $ECHO_C" >&6
53722 cat >conftest.$ac_ext <<_ACEOF
53725 cat confdefs.h >>conftest.$ac_ext
53726 cat >>conftest.$ac_ext <<_ACEOF
53727 /* end confdefs.h. */
53728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53730 #define $ac_func innocuous_$ac_func
53732 /* System header to define __stub macros and hopefully few prototypes,
53733 which can conflict with char $ac_func (); below.
53734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53735 <limits.h> exists even on freestanding compilers. */
53738 # include <limits.h>
53740 # include <assert.h>
53745 /* Override any GCC internal prototype to avoid an error.
53746 Use char because int might match the return type of a GCC
53747 builtin and then its argument prototype would still apply. */
53752 /* The GNU C library defines this for functions which it implements
53753 to always fail with ENOSYS. Some functions are actually named
53754 something starting with __ and the normal name is an alias. */
53755 #if defined __stub_$ac_func || defined __stub___$ac_func
53762 return $ac_func ();
53767 rm -f conftest.$ac_objext conftest$ac_exeext
53768 if { (ac_try="$ac_link"
53769 case "(($ac_try" in
53770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53771 *) ac_try_echo=$ac_try;;
53773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53774 (eval "$ac_link") 2>conftest.er1
53776 grep -v '^ *+' conftest.er1 >conftest.err
53778 cat conftest.err >&5
53779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53780 (exit $ac_status); } &&
53781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53782 { (case "(($ac_try" in
53783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53784 *) ac_try_echo=$ac_try;;
53786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53787 (eval "$ac_try") 2>&5
53789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53790 (exit $ac_status); }; } &&
53791 { ac_try='test -s conftest$ac_exeext'
53792 { (case "(($ac_try" in
53793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53794 *) ac_try_echo=$ac_try;;
53796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53797 (eval "$ac_try") 2>&5
53799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53800 (exit $ac_status); }; }; then
53801 eval "$as_ac_var=yes"
53803 echo "$as_me: failed program was:" >&5
53804 sed 's/^/| /' conftest.$ac_ext >&5
53806 eval "$as_ac_var=no"
53809 rm -f core conftest.err conftest.$ac_objext \
53810 conftest$ac_exeext conftest.$ac_ext
53812 ac_res=`eval echo '${'$as_ac_var'}'`
53813 { echo "$as_me:$LINENO: result: $ac_res" >&5
53814 echo "${ECHO_T}$ac_res" >&6; }
53815 if test `eval echo '${'$as_ac_var'}'` = yes; then
53816 cat >>confdefs.h <<_ACEOF
53817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53824 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
53825 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
53826 # Irix 4.0.5F has the header but not the library.
53827 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
53830 cat >>confdefs.h <<\_ACEOF
53836 if test $ac_have_func = no; then
53837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53838 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53839 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
53840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53841 echo $ECHO_N "(cached) $ECHO_C" >&6
53843 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53844 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
53846 # Is the header compilable?
53847 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
53848 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
53849 cat >conftest.$ac_ext <<_ACEOF
53852 cat confdefs.h >>conftest.$ac_ext
53853 cat >>conftest.$ac_ext <<_ACEOF
53854 /* end confdefs.h. */
53855 $ac_includes_default
53856 #include <inq_stats/cpustats.h>
53858 rm -f conftest.$ac_objext
53859 if { (ac_try="$ac_compile"
53860 case "(($ac_try" in
53861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53862 *) ac_try_echo=$ac_try;;
53864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53865 (eval "$ac_compile") 2>conftest.er1
53867 grep -v '^ *+' conftest.er1 >conftest.err
53869 cat conftest.err >&5
53870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53871 (exit $ac_status); } &&
53872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53873 { (case "(($ac_try" in
53874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53875 *) ac_try_echo=$ac_try;;
53877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53878 (eval "$ac_try") 2>&5
53880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53881 (exit $ac_status); }; } &&
53882 { ac_try='test -s conftest.$ac_objext'
53883 { (case "(($ac_try" in
53884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53885 *) ac_try_echo=$ac_try;;
53887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53888 (eval "$ac_try") 2>&5
53890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53891 (exit $ac_status); }; }; then
53892 ac_header_compiler=yes
53894 echo "$as_me: failed program was:" >&5
53895 sed 's/^/| /' conftest.$ac_ext >&5
53897 ac_header_compiler=no
53900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53902 echo "${ECHO_T}$ac_header_compiler" >&6; }
53904 # Is the header present?
53905 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
53906 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
53907 cat >conftest.$ac_ext <<_ACEOF
53910 cat confdefs.h >>conftest.$ac_ext
53911 cat >>conftest.$ac_ext <<_ACEOF
53912 /* end confdefs.h. */
53913 #include <inq_stats/cpustats.h>
53915 if { (ac_try="$ac_cpp conftest.$ac_ext"
53916 case "(($ac_try" in
53917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53918 *) ac_try_echo=$ac_try;;
53920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53923 grep -v '^ *+' conftest.er1 >conftest.err
53925 cat conftest.err >&5
53926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53927 (exit $ac_status); } >/dev/null; then
53928 if test -s conftest.err; then
53929 ac_cpp_err=$ac_c_preproc_warn_flag
53930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53937 if test -z "$ac_cpp_err"; then
53938 ac_header_preproc=yes
53940 echo "$as_me: failed program was:" >&5
53941 sed 's/^/| /' conftest.$ac_ext >&5
53943 ac_header_preproc=no
53946 rm -f conftest.err conftest.$ac_ext
53947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53948 echo "${ECHO_T}$ac_header_preproc" >&6; }
53950 # So? What about this header?
53951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53953 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53954 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53955 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
53956 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
53957 ac_header_preproc=yes
53960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
53961 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
53962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
53963 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
53964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
53965 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
53966 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
53967 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
53968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
53969 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
53970 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
53971 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
53973 ## ------------------------------------ ##
53974 ## Report this to bug-coreutils@gnu.org ##
53975 ## ------------------------------------ ##
53977 ) | sed "s/^/$as_me: WARNING: /" >&2
53980 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53981 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
53982 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53983 echo $ECHO_N "(cached) $ECHO_C" >&6
53985 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
53987 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53988 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
53991 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
53994 cat >>confdefs.h <<\_ACEOF
53999 cat >>confdefs.h <<\_ACEOF
54008 if test $ac_have_func = no; then
54009 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54010 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
54011 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
54012 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54013 echo $ECHO_N "(cached) $ECHO_C" >&6
54015 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
54016 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
54018 # Is the header compilable?
54019 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
54020 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
54021 cat >conftest.$ac_ext <<_ACEOF
54024 cat confdefs.h >>conftest.$ac_ext
54025 cat >>conftest.$ac_ext <<_ACEOF
54026 /* end confdefs.h. */
54027 $ac_includes_default
54028 #include <sys/cpustats.h>
54030 rm -f conftest.$ac_objext
54031 if { (ac_try="$ac_compile"
54032 case "(($ac_try" in
54033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54034 *) ac_try_echo=$ac_try;;
54036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54037 (eval "$ac_compile") 2>conftest.er1
54039 grep -v '^ *+' conftest.er1 >conftest.err
54041 cat conftest.err >&5
54042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54043 (exit $ac_status); } &&
54044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54045 { (case "(($ac_try" in
54046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54047 *) ac_try_echo=$ac_try;;
54049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54050 (eval "$ac_try") 2>&5
54052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54053 (exit $ac_status); }; } &&
54054 { ac_try='test -s conftest.$ac_objext'
54055 { (case "(($ac_try" in
54056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54057 *) ac_try_echo=$ac_try;;
54059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54060 (eval "$ac_try") 2>&5
54062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54063 (exit $ac_status); }; }; then
54064 ac_header_compiler=yes
54066 echo "$as_me: failed program was:" >&5
54067 sed 's/^/| /' conftest.$ac_ext >&5
54069 ac_header_compiler=no
54072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54074 echo "${ECHO_T}$ac_header_compiler" >&6; }
54076 # Is the header present?
54077 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
54078 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
54079 cat >conftest.$ac_ext <<_ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h. */
54085 #include <sys/cpustats.h>
54087 if { (ac_try="$ac_cpp conftest.$ac_ext"
54088 case "(($ac_try" in
54089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54090 *) ac_try_echo=$ac_try;;
54092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54095 grep -v '^ *+' conftest.er1 >conftest.err
54097 cat conftest.err >&5
54098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54099 (exit $ac_status); } >/dev/null; then
54100 if test -s conftest.err; then
54101 ac_cpp_err=$ac_c_preproc_warn_flag
54102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54109 if test -z "$ac_cpp_err"; then
54110 ac_header_preproc=yes
54112 echo "$as_me: failed program was:" >&5
54113 sed 's/^/| /' conftest.$ac_ext >&5
54115 ac_header_preproc=no
54118 rm -f conftest.err conftest.$ac_ext
54119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54120 echo "${ECHO_T}$ac_header_preproc" >&6; }
54122 # So? What about this header?
54123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
54126 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54127 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
54128 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
54129 ac_header_preproc=yes
54132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
54133 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
54134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
54135 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
54136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
54137 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
54138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
54139 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
54140 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
54141 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
54142 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
54143 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
54145 ## ------------------------------------ ##
54146 ## Report this to bug-coreutils@gnu.org ##
54147 ## ------------------------------------ ##
54149 ) | sed "s/^/$as_me: WARNING: /" >&2
54152 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
54153 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
54154 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
54155 echo $ECHO_N "(cached) $ECHO_C" >&6
54157 ac_cv_header_sys_cpustats_h=$ac_header_preproc
54159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
54160 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
54163 if test $ac_cv_header_sys_cpustats_h = yes; then
54164 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
54173 if test $ac_have_func = no; then
54175 for ac_header in mach/mach.h
54177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54182 echo $ECHO_N "(cached) $ECHO_C" >&6
54184 ac_res=`eval echo '${'$as_ac_Header'}'`
54185 { echo "$as_me:$LINENO: result: $ac_res" >&5
54186 echo "${ECHO_T}$ac_res" >&6; }
54188 # Is the header compilable?
54189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54191 cat >conftest.$ac_ext <<_ACEOF
54194 cat confdefs.h >>conftest.$ac_ext
54195 cat >>conftest.$ac_ext <<_ACEOF
54196 /* end confdefs.h. */
54197 $ac_includes_default
54198 #include <$ac_header>
54200 rm -f conftest.$ac_objext
54201 if { (ac_try="$ac_compile"
54202 case "(($ac_try" in
54203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54204 *) ac_try_echo=$ac_try;;
54206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54207 (eval "$ac_compile") 2>conftest.er1
54209 grep -v '^ *+' conftest.er1 >conftest.err
54211 cat conftest.err >&5
54212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54213 (exit $ac_status); } &&
54214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54215 { (case "(($ac_try" in
54216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54217 *) ac_try_echo=$ac_try;;
54219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54220 (eval "$ac_try") 2>&5
54222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54223 (exit $ac_status); }; } &&
54224 { ac_try='test -s conftest.$ac_objext'
54225 { (case "(($ac_try" in
54226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54227 *) ac_try_echo=$ac_try;;
54229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54230 (eval "$ac_try") 2>&5
54232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54233 (exit $ac_status); }; }; then
54234 ac_header_compiler=yes
54236 echo "$as_me: failed program was:" >&5
54237 sed 's/^/| /' conftest.$ac_ext >&5
54239 ac_header_compiler=no
54242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54244 echo "${ECHO_T}$ac_header_compiler" >&6; }
54246 # Is the header present?
54247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54249 cat >conftest.$ac_ext <<_ACEOF
54252 cat confdefs.h >>conftest.$ac_ext
54253 cat >>conftest.$ac_ext <<_ACEOF
54254 /* end confdefs.h. */
54255 #include <$ac_header>
54257 if { (ac_try="$ac_cpp conftest.$ac_ext"
54258 case "(($ac_try" in
54259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54260 *) ac_try_echo=$ac_try;;
54262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54265 grep -v '^ *+' conftest.er1 >conftest.err
54267 cat conftest.err >&5
54268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54269 (exit $ac_status); } >/dev/null; then
54270 if test -s conftest.err; then
54271 ac_cpp_err=$ac_c_preproc_warn_flag
54272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54279 if test -z "$ac_cpp_err"; then
54280 ac_header_preproc=yes
54282 echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54285 ac_header_preproc=no
54288 rm -f conftest.err conftest.$ac_ext
54289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54290 echo "${ECHO_T}$ac_header_preproc" >&6; }
54292 # So? What about this header?
54293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54299 ac_header_preproc=yes
54302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54315 ## ------------------------------------ ##
54316 ## Report this to bug-coreutils@gnu.org ##
54317 ## ------------------------------------ ##
54319 ) | sed "s/^/$as_me: WARNING: /" >&2
54322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54325 echo $ECHO_N "(cached) $ECHO_C" >&6
54327 eval "$as_ac_Header=\$ac_header_preproc"
54329 ac_res=`eval echo '${'$as_ac_Header'}'`
54330 { echo "$as_me:$LINENO: result: $ac_res" >&5
54331 echo "${ECHO_T}$ac_res" >&6; }
54334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54335 cat >>confdefs.h <<_ACEOF
54336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54346 for ac_header in nlist.h
54348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54353 echo $ECHO_N "(cached) $ECHO_C" >&6
54355 ac_res=`eval echo '${'$as_ac_Header'}'`
54356 { echo "$as_me:$LINENO: result: $ac_res" >&5
54357 echo "${ECHO_T}$ac_res" >&6; }
54359 # Is the header compilable?
54360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54362 cat >conftest.$ac_ext <<_ACEOF
54365 cat confdefs.h >>conftest.$ac_ext
54366 cat >>conftest.$ac_ext <<_ACEOF
54367 /* end confdefs.h. */
54368 $ac_includes_default
54369 #include <$ac_header>
54371 rm -f conftest.$ac_objext
54372 if { (ac_try="$ac_compile"
54373 case "(($ac_try" in
54374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54375 *) ac_try_echo=$ac_try;;
54377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54378 (eval "$ac_compile") 2>conftest.er1
54380 grep -v '^ *+' conftest.er1 >conftest.err
54382 cat conftest.err >&5
54383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54384 (exit $ac_status); } &&
54385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54386 { (case "(($ac_try" in
54387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54388 *) ac_try_echo=$ac_try;;
54390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54391 (eval "$ac_try") 2>&5
54393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54394 (exit $ac_status); }; } &&
54395 { ac_try='test -s conftest.$ac_objext'
54396 { (case "(($ac_try" in
54397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54398 *) ac_try_echo=$ac_try;;
54400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54401 (eval "$ac_try") 2>&5
54403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54404 (exit $ac_status); }; }; then
54405 ac_header_compiler=yes
54407 echo "$as_me: failed program was:" >&5
54408 sed 's/^/| /' conftest.$ac_ext >&5
54410 ac_header_compiler=no
54413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54415 echo "${ECHO_T}$ac_header_compiler" >&6; }
54417 # Is the header present?
54418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54420 cat >conftest.$ac_ext <<_ACEOF
54423 cat confdefs.h >>conftest.$ac_ext
54424 cat >>conftest.$ac_ext <<_ACEOF
54425 /* end confdefs.h. */
54426 #include <$ac_header>
54428 if { (ac_try="$ac_cpp conftest.$ac_ext"
54429 case "(($ac_try" in
54430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54431 *) ac_try_echo=$ac_try;;
54433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54436 grep -v '^ *+' conftest.er1 >conftest.err
54438 cat conftest.err >&5
54439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54440 (exit $ac_status); } >/dev/null; then
54441 if test -s conftest.err; then
54442 ac_cpp_err=$ac_c_preproc_warn_flag
54443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54450 if test -z "$ac_cpp_err"; then
54451 ac_header_preproc=yes
54453 echo "$as_me: failed program was:" >&5
54454 sed 's/^/| /' conftest.$ac_ext >&5
54456 ac_header_preproc=no
54459 rm -f conftest.err conftest.$ac_ext
54460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54461 echo "${ECHO_T}$ac_header_preproc" >&6; }
54463 # So? What about this header?
54464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54470 ac_header_preproc=yes
54473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54486 ## ------------------------------------ ##
54487 ## Report this to bug-coreutils@gnu.org ##
54488 ## ------------------------------------ ##
54490 ) | sed "s/^/$as_me: WARNING: /" >&2
54493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54496 echo $ECHO_N "(cached) $ECHO_C" >&6
54498 eval "$as_ac_Header=\$ac_header_preproc"
54500 ac_res=`eval echo '${'$as_ac_Header'}'`
54501 { echo "$as_me:$LINENO: result: $ac_res" >&5
54502 echo "${ECHO_T}$ac_res" >&6; }
54505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54506 cat >>confdefs.h <<_ACEOF
54507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54509 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
54510 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
54511 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
54512 echo $ECHO_N "(cached) $ECHO_C" >&6
54514 cat >conftest.$ac_ext <<_ACEOF
54517 cat confdefs.h >>conftest.$ac_ext
54518 cat >>conftest.$ac_ext <<_ACEOF
54519 /* end confdefs.h. */
54525 static struct nlist ac_aggr;
54526 if (ac_aggr.n_un.n_name)
54532 rm -f conftest.$ac_objext
54533 if { (ac_try="$ac_compile"
54534 case "(($ac_try" in
54535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54536 *) ac_try_echo=$ac_try;;
54538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54539 (eval "$ac_compile") 2>conftest.er1
54541 grep -v '^ *+' conftest.er1 >conftest.err
54543 cat conftest.err >&5
54544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54545 (exit $ac_status); } &&
54546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54547 { (case "(($ac_try" in
54548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54549 *) ac_try_echo=$ac_try;;
54551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54552 (eval "$ac_try") 2>&5
54554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54555 (exit $ac_status); }; } &&
54556 { ac_try='test -s conftest.$ac_objext'
54557 { (case "(($ac_try" in
54558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54559 *) ac_try_echo=$ac_try;;
54561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54562 (eval "$ac_try") 2>&5
54564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54565 (exit $ac_status); }; }; then
54566 ac_cv_member_struct_nlist_n_un_n_name=yes
54568 echo "$as_me: failed program was:" >&5
54569 sed 's/^/| /' conftest.$ac_ext >&5
54571 cat >conftest.$ac_ext <<_ACEOF
54574 cat confdefs.h >>conftest.$ac_ext
54575 cat >>conftest.$ac_ext <<_ACEOF
54576 /* end confdefs.h. */
54582 static struct nlist ac_aggr;
54583 if (sizeof ac_aggr.n_un.n_name)
54589 rm -f conftest.$ac_objext
54590 if { (ac_try="$ac_compile"
54591 case "(($ac_try" in
54592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54593 *) ac_try_echo=$ac_try;;
54595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54596 (eval "$ac_compile") 2>conftest.er1
54598 grep -v '^ *+' conftest.er1 >conftest.err
54600 cat conftest.err >&5
54601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54602 (exit $ac_status); } &&
54603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54604 { (case "(($ac_try" in
54605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54606 *) ac_try_echo=$ac_try;;
54608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54609 (eval "$ac_try") 2>&5
54611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54612 (exit $ac_status); }; } &&
54613 { ac_try='test -s conftest.$ac_objext'
54614 { (case "(($ac_try" in
54615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54616 *) ac_try_echo=$ac_try;;
54618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54619 (eval "$ac_try") 2>&5
54621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54622 (exit $ac_status); }; }; then
54623 ac_cv_member_struct_nlist_n_un_n_name=yes
54625 echo "$as_me: failed program was:" >&5
54626 sed 's/^/| /' conftest.$ac_ext >&5
54628 ac_cv_member_struct_nlist_n_un_n_name=no
54631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54636 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
54637 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
54638 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
54640 cat >>confdefs.h <<_ACEOF
54641 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
54645 cat >>confdefs.h <<\_ACEOF
54646 #define NLIST_NAME_UNION 1
54660 # Some definitions of getloadavg require that the program be installed setgid.
54661 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
54662 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
54663 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
54664 echo $ECHO_N "(cached) $ECHO_C" >&6
54666 cat >conftest.$ac_ext <<_ACEOF
54669 cat confdefs.h >>conftest.$ac_ext
54670 cat >>conftest.$ac_ext <<_ACEOF
54671 /* end confdefs.h. */
54672 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
54673 #ifdef LDAV_PRIVILEGED
54674 Yowza Am I SETGID yet
54677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54678 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
54679 ac_cv_func_getloadavg_setgid=yes
54681 ac_cv_func_getloadavg_setgid=no
54686 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
54687 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
54688 if test $ac_cv_func_getloadavg_setgid = yes; then
54691 cat >>confdefs.h <<\_ACEOF
54692 #define GETLOADAVG_PRIVILEGED 1
54699 if test $ac_cv_func_getloadavg_setgid = yes; then
54700 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
54701 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
54702 if test "${ac_cv_group_kmem+set}" = set; then
54703 echo $ECHO_N "(cached) $ECHO_C" >&6
54705 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
54706 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
54707 # If we got an error (system does not support symlinks), try without -L.
54708 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
54709 ac_cv_group_kmem=`echo $ac_ls_output \
54710 | sed -ne 's/[ ][ ]*/ /g;
54711 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
54715 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
54716 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
54717 KMEM_GROUP=$ac_cv_group_kmem
54719 if test "x$ac_save_LIBS" = x; then
54720 GETLOADAVG_LIBS=$LIBS
54722 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
54731 # raise is used by at least sort and ls.
54733 for ac_func in raise
54735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54739 echo $ECHO_N "(cached) $ECHO_C" >&6
54741 cat >conftest.$ac_ext <<_ACEOF
54744 cat confdefs.h >>conftest.$ac_ext
54745 cat >>conftest.$ac_ext <<_ACEOF
54746 /* end confdefs.h. */
54747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54749 #define $ac_func innocuous_$ac_func
54751 /* System header to define __stub macros and hopefully few prototypes,
54752 which can conflict with char $ac_func (); below.
54753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54754 <limits.h> exists even on freestanding compilers. */
54757 # include <limits.h>
54759 # include <assert.h>
54764 /* Override any GCC internal prototype to avoid an error.
54765 Use char because int might match the return type of a GCC
54766 builtin and then its argument prototype would still apply. */
54771 /* The GNU C library defines this for functions which it implements
54772 to always fail with ENOSYS. Some functions are actually named
54773 something starting with __ and the normal name is an alias. */
54774 #if defined __stub_$ac_func || defined __stub___$ac_func
54781 return $ac_func ();
54786 rm -f conftest.$ac_objext conftest$ac_exeext
54787 if { (ac_try="$ac_link"
54788 case "(($ac_try" in
54789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54790 *) ac_try_echo=$ac_try;;
54792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54793 (eval "$ac_link") 2>conftest.er1
54795 grep -v '^ *+' conftest.er1 >conftest.err
54797 cat conftest.err >&5
54798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54799 (exit $ac_status); } &&
54800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54801 { (case "(($ac_try" in
54802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54803 *) ac_try_echo=$ac_try;;
54805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54806 (eval "$ac_try") 2>&5
54808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54809 (exit $ac_status); }; } &&
54810 { ac_try='test -s conftest$ac_exeext'
54811 { (case "(($ac_try" in
54812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54813 *) ac_try_echo=$ac_try;;
54815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54816 (eval "$ac_try") 2>&5
54818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54819 (exit $ac_status); }; }; then
54820 eval "$as_ac_var=yes"
54822 echo "$as_me: failed program was:" >&5
54823 sed 's/^/| /' conftest.$ac_ext >&5
54825 eval "$as_ac_var=no"
54828 rm -f core conftest.err conftest.$ac_objext \
54829 conftest$ac_exeext conftest.$ac_ext
54831 ac_res=`eval echo '${'$as_ac_var'}'`
54832 { echo "$as_me:$LINENO: result: $ac_res" >&5
54833 echo "${ECHO_T}$ac_res" >&6; }
54834 if test `eval echo '${'$as_ac_var'}'` = yes; then
54835 cat >>confdefs.h <<_ACEOF
54836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54840 case " $LIBOBJS " in
54841 *" $ac_func.$ac_objext "* ) ;;
54842 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
54851 # By default, argmatch should fail calling usage (1).
54853 cat >>confdefs.h <<\_ACEOF
54854 #define ARGMATCH_DIE usage (1)
54858 cat >>confdefs.h <<\_ACEOF
54859 #define ARGMATCH_DIE_DECL extern void usage ()
54863 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
54864 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
54865 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
54866 echo $ECHO_N "(cached) $ECHO_C" >&6
54868 ac_cv_func_setvbuf_reversed=no
54869 cat >conftest.$ac_ext <<_ACEOF
54872 cat confdefs.h >>conftest.$ac_ext
54873 cat >>conftest.$ac_ext <<_ACEOF
54874 /* end confdefs.h. */
54877 int (setvbuf) (FILE *, int, char *, size_t);
54882 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
54887 rm -f conftest.$ac_objext conftest$ac_exeext
54888 if { (ac_try="$ac_link"
54889 case "(($ac_try" in
54890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54891 *) ac_try_echo=$ac_try;;
54893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54894 (eval "$ac_link") 2>conftest.er1
54896 grep -v '^ *+' conftest.er1 >conftest.err
54898 cat conftest.err >&5
54899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54900 (exit $ac_status); } &&
54901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54902 { (case "(($ac_try" in
54903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54904 *) ac_try_echo=$ac_try;;
54906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54907 (eval "$ac_try") 2>&5
54909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54910 (exit $ac_status); }; } &&
54911 { ac_try='test -s conftest$ac_exeext'
54912 { (case "(($ac_try" in
54913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54914 *) ac_try_echo=$ac_try;;
54916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54917 (eval "$ac_try") 2>&5
54919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54920 (exit $ac_status); }; }; then
54921 cat >conftest.$ac_ext <<_ACEOF
54924 cat confdefs.h >>conftest.$ac_ext
54925 cat >>conftest.$ac_ext <<_ACEOF
54926 /* end confdefs.h. */
54929 int (setvbuf) (FILE *, int, char *, size_t);
54934 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
54939 rm -f conftest.$ac_objext conftest$ac_exeext
54940 if { (ac_try="$ac_link"
54941 case "(($ac_try" in
54942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54943 *) ac_try_echo=$ac_try;;
54945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54946 (eval "$ac_link") 2>conftest.er1
54948 grep -v '^ *+' conftest.er1 >conftest.err
54950 cat conftest.err >&5
54951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54952 (exit $ac_status); } &&
54953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54954 { (case "(($ac_try" in
54955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54956 *) ac_try_echo=$ac_try;;
54958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54959 (eval "$ac_try") 2>&5
54961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54962 (exit $ac_status); }; } &&
54963 { ac_try='test -s conftest$ac_exeext'
54964 { (case "(($ac_try" in
54965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54966 *) ac_try_echo=$ac_try;;
54968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54969 (eval "$ac_try") 2>&5
54971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54972 (exit $ac_status); }; }; then
54973 # It compiles and links either way, so it must not be declared
54974 # with a prototype and most likely this is a K&R C compiler.
54976 if test "$cross_compiling" = yes; then
54977 : # Assume setvbuf is not reversed when cross-compiling.
54979 cat >conftest.$ac_ext <<_ACEOF
54982 cat confdefs.h >>conftest.$ac_ext
54983 cat >>conftest.$ac_ext <<_ACEOF
54984 /* end confdefs.h. */
54985 $ac_includes_default
54989 /* This call has the arguments reversed.
54990 A reversed system may check and see that the address of buf
54991 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
54993 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
54996 return 0; /* Non-reversed systems SEGV here. */
55001 rm -f conftest$ac_exeext
55002 if { (ac_try="$ac_link"
55003 case "(($ac_try" in
55004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55005 *) ac_try_echo=$ac_try;;
55007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55008 (eval "$ac_link") 2>&5
55010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55012 { (case "(($ac_try" in
55013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55014 *) ac_try_echo=$ac_try;;
55016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55017 (eval "$ac_try") 2>&5
55019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55020 (exit $ac_status); }; }; then
55021 ac_cv_func_setvbuf_reversed=yes
55023 echo "$as_me: program exited with status $ac_status" >&5
55024 echo "$as_me: failed program was:" >&5
55025 sed 's/^/| /' conftest.$ac_ext >&5
55028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55032 ac_cv_func_setvbuf_reversed=yes
55034 echo "$as_me: failed program was:" >&5
55035 sed 's/^/| /' conftest.$ac_ext >&5
55040 rm -f core conftest.err conftest.$ac_objext \
55041 conftest$ac_exeext conftest.$ac_ext
55043 echo "$as_me: failed program was:" >&5
55044 sed 's/^/| /' conftest.$ac_ext >&5
55049 rm -f core conftest.err conftest.$ac_objext \
55050 conftest$ac_exeext conftest.$ac_ext
55052 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
55053 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
55054 if test $ac_cv_func_setvbuf_reversed = yes; then
55056 cat >>confdefs.h <<\_ACEOF
55057 #define SETVBUF_REVERSED 1
55063 # used by sleep and shred
55073 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
55074 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
55075 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
55076 echo $ECHO_N "(cached) $ECHO_C" >&6
55078 if test "$cross_compiling" = yes; then
55079 jm_cv_func_gettimeofday_clobber=yes
55081 cat >conftest.$ac_ext <<_ACEOF
55084 cat confdefs.h >>conftest.$ac_ext
55085 cat >>conftest.$ac_ext <<_ACEOF
55086 /* end confdefs.h. */
55089 #include <string.h>
55091 #if TIME_WITH_SYS_TIME
55092 # include <sys/time.h>
55095 # if HAVE_SYS_TIME_H
55096 # include <sys/time.h>
55102 #include <stdlib.h>
55109 struct tm saved_lt;
55111 lt = localtime (&t);
55113 gettimeofday (&tv, NULL);
55114 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
55121 rm -f conftest$ac_exeext
55122 if { (ac_try="$ac_link"
55123 case "(($ac_try" in
55124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55125 *) ac_try_echo=$ac_try;;
55127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55128 (eval "$ac_link") 2>&5
55130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55132 { (case "(($ac_try" in
55133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55134 *) ac_try_echo=$ac_try;;
55136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55137 (eval "$ac_try") 2>&5
55139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55140 (exit $ac_status); }; }; then
55141 jm_cv_func_gettimeofday_clobber=no
55143 echo "$as_me: program exited with status $ac_status" >&5
55144 echo "$as_me: failed program was:" >&5
55145 sed 's/^/| /' conftest.$ac_ext >&5
55147 ( exit $ac_status )
55148 jm_cv_func_gettimeofday_clobber=yes
55150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55156 { echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
55157 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6; }
55158 if test $jm_cv_func_gettimeofday_clobber = yes; then
55160 case " $LIBOBJS " in
55161 *" gettimeofday.$ac_objext "* ) ;;
55162 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
55167 cat >>confdefs.h <<\_ACEOF
55168 #define gmtime rpl_gmtime
55172 cat >>confdefs.h <<\_ACEOF
55173 #define localtime rpl_localtime
55179 cat >>confdefs.h <<\_ACEOF
55180 #define gettimeofday rpl_gettimeofday
55249 { echo "$as_me:$LINENO: checking for working strtod" >&5
55250 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
55251 if test "${ac_cv_func_strtod+set}" = set; then
55252 echo $ECHO_N "(cached) $ECHO_C" >&6
55254 if test "$cross_compiling" = yes; then
55255 ac_cv_func_strtod=no
55257 cat >conftest.$ac_ext <<_ACEOF
55260 cat confdefs.h >>conftest.$ac_ext
55261 cat >>conftest.$ac_ext <<_ACEOF
55262 /* end confdefs.h. */
55264 $ac_includes_default
55272 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
55273 char *string = " +69";
55276 value = strtod (string, &term);
55277 if (value != 69 || term != (string + 4))
55282 /* Under Solaris 2.4, strtod returns the wrong value for the
55283 terminating character under some conditions. */
55284 char *string = "NaN";
55286 strtod (string, &term);
55287 if (term != string && *(term - 1) == 0)
55294 rm -f conftest$ac_exeext
55295 if { (ac_try="$ac_link"
55296 case "(($ac_try" in
55297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55298 *) ac_try_echo=$ac_try;;
55300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55301 (eval "$ac_link") 2>&5
55303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55305 { (case "(($ac_try" in
55306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55307 *) ac_try_echo=$ac_try;;
55309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55310 (eval "$ac_try") 2>&5
55312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55313 (exit $ac_status); }; }; then
55314 ac_cv_func_strtod=yes
55316 echo "$as_me: program exited with status $ac_status" >&5
55317 echo "$as_me: failed program was:" >&5
55318 sed 's/^/| /' conftest.$ac_ext >&5
55320 ( exit $ac_status )
55321 ac_cv_func_strtod=no
55323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55328 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
55329 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
55330 if test $ac_cv_func_strtod = no; then
55331 case " $LIBOBJS " in
55332 *" strtod.$ac_objext "* ) ;;
55333 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
55337 { echo "$as_me:$LINENO: checking for pow" >&5
55338 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
55339 if test "${ac_cv_func_pow+set}" = set; then
55340 echo $ECHO_N "(cached) $ECHO_C" >&6
55342 cat >conftest.$ac_ext <<_ACEOF
55345 cat confdefs.h >>conftest.$ac_ext
55346 cat >>conftest.$ac_ext <<_ACEOF
55347 /* end confdefs.h. */
55348 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
55349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55350 #define pow innocuous_pow
55352 /* System header to define __stub macros and hopefully few prototypes,
55353 which can conflict with char pow (); below.
55354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55355 <limits.h> exists even on freestanding compilers. */
55358 # include <limits.h>
55360 # include <assert.h>
55365 /* Override any GCC internal prototype to avoid an error.
55366 Use char because int might match the return type of a GCC
55367 builtin and then its argument prototype would still apply. */
55372 /* The GNU C library defines this for functions which it implements
55373 to always fail with ENOSYS. Some functions are actually named
55374 something starting with __ and the normal name is an alias. */
55375 #if defined __stub_pow || defined __stub___pow
55387 rm -f conftest.$ac_objext conftest$ac_exeext
55388 if { (ac_try="$ac_link"
55389 case "(($ac_try" in
55390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55391 *) ac_try_echo=$ac_try;;
55393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55394 (eval "$ac_link") 2>conftest.er1
55396 grep -v '^ *+' conftest.er1 >conftest.err
55398 cat conftest.err >&5
55399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55400 (exit $ac_status); } &&
55401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55402 { (case "(($ac_try" in
55403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55404 *) ac_try_echo=$ac_try;;
55406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55407 (eval "$ac_try") 2>&5
55409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55410 (exit $ac_status); }; } &&
55411 { ac_try='test -s conftest$ac_exeext'
55412 { (case "(($ac_try" in
55413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55414 *) ac_try_echo=$ac_try;;
55416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55417 (eval "$ac_try") 2>&5
55419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55420 (exit $ac_status); }; }; then
55423 echo "$as_me: failed program was:" >&5
55424 sed 's/^/| /' conftest.$ac_ext >&5
55429 rm -f core conftest.err conftest.$ac_objext \
55430 conftest$ac_exeext conftest.$ac_ext
55432 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
55433 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
55435 if test $ac_cv_func_pow = no; then
55436 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
55437 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
55438 if test "${ac_cv_lib_m_pow+set}" = set; then
55439 echo $ECHO_N "(cached) $ECHO_C" >&6
55441 ac_check_lib_save_LIBS=$LIBS
55443 cat >conftest.$ac_ext <<_ACEOF
55446 cat confdefs.h >>conftest.$ac_ext
55447 cat >>conftest.$ac_ext <<_ACEOF
55448 /* end confdefs.h. */
55450 /* Override any GCC internal prototype to avoid an error.
55451 Use char because int might match the return type of a GCC
55452 builtin and then its argument prototype would still apply. */
55465 rm -f conftest.$ac_objext conftest$ac_exeext
55466 if { (ac_try="$ac_link"
55467 case "(($ac_try" in
55468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55469 *) ac_try_echo=$ac_try;;
55471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55472 (eval "$ac_link") 2>conftest.er1
55474 grep -v '^ *+' conftest.er1 >conftest.err
55476 cat conftest.err >&5
55477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55478 (exit $ac_status); } &&
55479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55480 { (case "(($ac_try" in
55481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55482 *) ac_try_echo=$ac_try;;
55484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55485 (eval "$ac_try") 2>&5
55487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488 (exit $ac_status); }; } &&
55489 { ac_try='test -s conftest$ac_exeext'
55490 { (case "(($ac_try" in
55491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55492 *) ac_try_echo=$ac_try;;
55494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55495 (eval "$ac_try") 2>&5
55497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55498 (exit $ac_status); }; }; then
55499 ac_cv_lib_m_pow=yes
55501 echo "$as_me: failed program was:" >&5
55502 sed 's/^/| /' conftest.$ac_ext >&5
55507 rm -f core conftest.err conftest.$ac_objext \
55508 conftest$ac_exeext conftest.$ac_ext
55509 LIBS=$ac_check_lib_save_LIBS
55511 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
55512 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
55513 if test $ac_cv_lib_m_pow = yes; then
55516 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
55517 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
55527 # for dd.c and shred.c
55528 coreutils_saved_libs=$LIBS
55529 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
55530 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
55531 if test "${ac_cv_search_fdatasync+set}" = set; then
55532 echo $ECHO_N "(cached) $ECHO_C" >&6
55534 ac_func_search_save_LIBS=$LIBS
55535 cat >conftest.$ac_ext <<_ACEOF
55538 cat confdefs.h >>conftest.$ac_ext
55539 cat >>conftest.$ac_ext <<_ACEOF
55540 /* end confdefs.h. */
55542 /* Override any GCC internal prototype to avoid an error.
55543 Use char because int might match the return type of a GCC
55544 builtin and then its argument prototype would still apply. */
55552 return fdatasync ();
55557 for ac_lib in '' rt posix4; do
55558 if test -z "$ac_lib"; then
55559 ac_res="none required"
55562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
55564 rm -f conftest.$ac_objext conftest$ac_exeext
55565 if { (ac_try="$ac_link"
55566 case "(($ac_try" in
55567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55568 *) ac_try_echo=$ac_try;;
55570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55571 (eval "$ac_link") 2>conftest.er1
55573 grep -v '^ *+' conftest.er1 >conftest.err
55575 cat conftest.err >&5
55576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55577 (exit $ac_status); } &&
55578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55579 { (case "(($ac_try" in
55580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55581 *) ac_try_echo=$ac_try;;
55583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55584 (eval "$ac_try") 2>&5
55586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55587 (exit $ac_status); }; } &&
55588 { ac_try='test -s conftest$ac_exeext'
55589 { (case "(($ac_try" in
55590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55591 *) ac_try_echo=$ac_try;;
55593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55594 (eval "$ac_try") 2>&5
55596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55597 (exit $ac_status); }; }; then
55598 ac_cv_search_fdatasync=$ac_res
55600 echo "$as_me: failed program was:" >&5
55601 sed 's/^/| /' conftest.$ac_ext >&5
55606 rm -f core conftest.err conftest.$ac_objext \
55608 if test "${ac_cv_search_fdatasync+set}" = set; then
55612 if test "${ac_cv_search_fdatasync+set}" = set; then
55615 ac_cv_search_fdatasync=no
55617 rm conftest.$ac_ext
55618 LIBS=$ac_func_search_save_LIBS
55620 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
55621 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
55622 ac_res=$ac_cv_search_fdatasync
55623 if test "$ac_res" != no; then
55624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
55625 test "$ac_cv_search_fdatasync" = "none required" ||
55626 LIB_FDATASYNC=$ac_cv_search_fdatasync
55631 for ac_func in fdatasync
55633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55637 echo $ECHO_N "(cached) $ECHO_C" >&6
55639 cat >conftest.$ac_ext <<_ACEOF
55642 cat confdefs.h >>conftest.$ac_ext
55643 cat >>conftest.$ac_ext <<_ACEOF
55644 /* end confdefs.h. */
55645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55647 #define $ac_func innocuous_$ac_func
55649 /* System header to define __stub macros and hopefully few prototypes,
55650 which can conflict with char $ac_func (); below.
55651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55652 <limits.h> exists even on freestanding compilers. */
55655 # include <limits.h>
55657 # include <assert.h>
55662 /* Override any GCC internal prototype to avoid an error.
55663 Use char because int might match the return type of a GCC
55664 builtin and then its argument prototype would still apply. */
55669 /* The GNU C library defines this for functions which it implements
55670 to always fail with ENOSYS. Some functions are actually named
55671 something starting with __ and the normal name is an alias. */
55672 #if defined __stub_$ac_func || defined __stub___$ac_func
55679 return $ac_func ();
55684 rm -f conftest.$ac_objext conftest$ac_exeext
55685 if { (ac_try="$ac_link"
55686 case "(($ac_try" in
55687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55688 *) ac_try_echo=$ac_try;;
55690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55691 (eval "$ac_link") 2>conftest.er1
55693 grep -v '^ *+' conftest.er1 >conftest.err
55695 cat conftest.err >&5
55696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55697 (exit $ac_status); } &&
55698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55699 { (case "(($ac_try" in
55700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55701 *) ac_try_echo=$ac_try;;
55703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55704 (eval "$ac_try") 2>&5
55706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55707 (exit $ac_status); }; } &&
55708 { ac_try='test -s conftest$ac_exeext'
55709 { (case "(($ac_try" in
55710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55711 *) ac_try_echo=$ac_try;;
55713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55714 (eval "$ac_try") 2>&5
55716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55717 (exit $ac_status); }; }; then
55718 eval "$as_ac_var=yes"
55720 echo "$as_me: failed program was:" >&5
55721 sed 's/^/| /' conftest.$ac_ext >&5
55723 eval "$as_ac_var=no"
55726 rm -f core conftest.err conftest.$ac_objext \
55727 conftest$ac_exeext conftest.$ac_ext
55729 ac_res=`eval echo '${'$as_ac_var'}'`
55730 { echo "$as_me:$LINENO: result: $ac_res" >&5
55731 echo "${ECHO_T}$ac_res" >&6; }
55732 if test `eval echo '${'$as_ac_var'}'` = yes; then
55733 cat >>confdefs.h <<_ACEOF
55734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55740 LIBS=$coreutils_saved_libs
55742 # See if linking `seq' requires -lm.
55743 # It does on nearly every system. The single exception (so far) is
55744 # BeOS which has all the math functions in the normal runtime library
55745 # and doesn't have a separate math library.
55749 static double x, y;
55753 cat >conftest.$ac_ext <<_ACEOF
55756 cat confdefs.h >>conftest.$ac_ext
55757 cat >>conftest.$ac_ext <<_ACEOF
55758 /* end confdefs.h. */
55768 rm -f conftest.$ac_objext conftest$ac_exeext
55769 if { (ac_try="$ac_link"
55770 case "(($ac_try" in
55771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55772 *) ac_try_echo=$ac_try;;
55774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55775 (eval "$ac_link") 2>conftest.er1
55777 grep -v '^ *+' conftest.er1 >conftest.err
55779 cat conftest.err >&5
55780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55781 (exit $ac_status); } &&
55782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55783 { (case "(($ac_try" in
55784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55785 *) ac_try_echo=$ac_try;;
55787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55788 (eval "$ac_try") 2>&5
55790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55791 (exit $ac_status); }; } &&
55792 { ac_try='test -s conftest$ac_exeext'
55793 { (case "(($ac_try" in
55794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55795 *) ac_try_echo=$ac_try;;
55797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55798 (eval "$ac_try") 2>&5
55800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55801 (exit $ac_status); }; }; then
55804 echo "$as_me: failed program was:" >&5
55805 sed 's/^/| /' conftest.$ac_ext >&5
55807 ac_seq_save_LIBS="$LIBS"
55809 cat >conftest.$ac_ext <<_ACEOF
55812 cat confdefs.h >>conftest.$ac_ext
55813 cat >>conftest.$ac_ext <<_ACEOF
55814 /* end confdefs.h. */
55824 rm -f conftest.$ac_objext conftest$ac_exeext
55825 if { (ac_try="$ac_link"
55826 case "(($ac_try" in
55827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55828 *) ac_try_echo=$ac_try;;
55830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55831 (eval "$ac_link") 2>conftest.er1
55833 grep -v '^ *+' conftest.er1 >conftest.err
55835 cat conftest.err >&5
55836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55837 (exit $ac_status); } &&
55838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55839 { (case "(($ac_try" in
55840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55841 *) ac_try_echo=$ac_try;;
55843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55844 (eval "$ac_try") 2>&5
55846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55847 (exit $ac_status); }; } &&
55848 { ac_try='test -s conftest$ac_exeext'
55849 { (case "(($ac_try" in
55850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55851 *) ac_try_echo=$ac_try;;
55853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55854 (eval "$ac_try") 2>&5
55856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55857 (exit $ac_status); }; }; then
55860 echo "$as_me: failed program was:" >&5
55861 sed 's/^/| /' conftest.$ac_ext >&5
55866 rm -f core conftest.err conftest.$ac_objext \
55867 conftest$ac_exeext conftest.$ac_ext
55868 LIBS="$ac_seq_save_LIBS"
55872 rm -f core conftest.err conftest.$ac_objext \
55873 conftest$ac_exeext conftest.$ac_ext
55882 am_save_CPPFLAGS="$CPPFLAGS"
55884 for element in $INCICONV; do
55886 for x in $CPPFLAGS; do
55888 acl_save_prefix="$prefix"
55889 prefix="$acl_final_prefix"
55890 acl_save_exec_prefix="$exec_prefix"
55891 exec_prefix="$acl_final_exec_prefix"
55893 exec_prefix="$acl_save_exec_prefix"
55894 prefix="$acl_save_prefix"
55896 if test "X$x" = "X$element"; then
55901 if test -z "$haveit"; then
55902 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55907 { echo "$as_me:$LINENO: checking for iconv" >&5
55908 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
55909 if test "${am_cv_func_iconv+set}" = set; then
55910 echo $ECHO_N "(cached) $ECHO_C" >&6
55913 am_cv_func_iconv="no, consider installing GNU libiconv"
55915 cat >conftest.$ac_ext <<_ACEOF
55918 cat confdefs.h >>conftest.$ac_ext
55919 cat >>conftest.$ac_ext <<_ACEOF
55920 /* end confdefs.h. */
55921 #include <stdlib.h>
55926 iconv_t cd = iconv_open("","");
55927 iconv(cd,NULL,NULL,NULL,NULL);
55933 rm -f conftest.$ac_objext conftest$ac_exeext
55934 if { (ac_try="$ac_link"
55935 case "(($ac_try" in
55936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55937 *) ac_try_echo=$ac_try;;
55939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55940 (eval "$ac_link") 2>conftest.er1
55942 grep -v '^ *+' conftest.er1 >conftest.err
55944 cat conftest.err >&5
55945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55946 (exit $ac_status); } &&
55947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55948 { (case "(($ac_try" in
55949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55950 *) ac_try_echo=$ac_try;;
55952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55953 (eval "$ac_try") 2>&5
55955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55956 (exit $ac_status); }; } &&
55957 { ac_try='test -s conftest$ac_exeext'
55958 { (case "(($ac_try" in
55959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55960 *) ac_try_echo=$ac_try;;
55962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55963 (eval "$ac_try") 2>&5
55965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55966 (exit $ac_status); }; }; then
55967 am_cv_func_iconv=yes
55969 echo "$as_me: failed program was:" >&5
55970 sed 's/^/| /' conftest.$ac_ext >&5
55975 rm -f core conftest.err conftest.$ac_objext \
55976 conftest$ac_exeext conftest.$ac_ext
55977 if test "$am_cv_func_iconv" != yes; then
55978 am_save_LIBS="$LIBS"
55979 LIBS="$LIBS $LIBICONV"
55980 cat >conftest.$ac_ext <<_ACEOF
55983 cat confdefs.h >>conftest.$ac_ext
55984 cat >>conftest.$ac_ext <<_ACEOF
55985 /* end confdefs.h. */
55986 #include <stdlib.h>
55991 iconv_t cd = iconv_open("","");
55992 iconv(cd,NULL,NULL,NULL,NULL);
55998 rm -f conftest.$ac_objext conftest$ac_exeext
55999 if { (ac_try="$ac_link"
56000 case "(($ac_try" in
56001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56002 *) ac_try_echo=$ac_try;;
56004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56005 (eval "$ac_link") 2>conftest.er1
56007 grep -v '^ *+' conftest.er1 >conftest.err
56009 cat conftest.err >&5
56010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56011 (exit $ac_status); } &&
56012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56013 { (case "(($ac_try" in
56014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56015 *) ac_try_echo=$ac_try;;
56017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56018 (eval "$ac_try") 2>&5
56020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56021 (exit $ac_status); }; } &&
56022 { ac_try='test -s conftest$ac_exeext'
56023 { (case "(($ac_try" in
56024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56025 *) ac_try_echo=$ac_try;;
56027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56028 (eval "$ac_try") 2>&5
56030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56031 (exit $ac_status); }; }; then
56032 am_cv_lib_iconv=yes
56033 am_cv_func_iconv=yes
56035 echo "$as_me: failed program was:" >&5
56036 sed 's/^/| /' conftest.$ac_ext >&5
56041 rm -f core conftest.err conftest.$ac_objext \
56042 conftest$ac_exeext conftest.$ac_ext
56043 LIBS="$am_save_LIBS"
56047 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
56048 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
56049 if test "$am_cv_func_iconv" = yes; then
56051 cat >>confdefs.h <<\_ACEOF
56052 #define HAVE_ICONV 1
56056 if test "$am_cv_lib_iconv" = yes; then
56057 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
56058 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
56059 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
56060 echo "${ECHO_T}$LIBICONV" >&6; }
56062 CPPFLAGS="$am_save_CPPFLAGS"
56069 if test "$am_cv_func_iconv" = yes; then
56070 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
56071 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
56072 if test "${am_cv_proto_iconv+set}" = set; then
56073 echo $ECHO_N "(cached) $ECHO_C" >&6
56076 cat >conftest.$ac_ext <<_ACEOF
56079 cat confdefs.h >>conftest.$ac_ext
56080 cat >>conftest.$ac_ext <<_ACEOF
56081 /* end confdefs.h. */
56083 #include <stdlib.h>
56089 #if defined(__STDC__) || defined(__cplusplus)
56090 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
56103 rm -f conftest.$ac_objext
56104 if { (ac_try="$ac_compile"
56105 case "(($ac_try" in
56106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56107 *) ac_try_echo=$ac_try;;
56109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56110 (eval "$ac_compile") 2>conftest.er1
56112 grep -v '^ *+' conftest.er1 >conftest.err
56114 cat conftest.err >&5
56115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56116 (exit $ac_status); } &&
56117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56118 { (case "(($ac_try" in
56119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56120 *) ac_try_echo=$ac_try;;
56122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56123 (eval "$ac_try") 2>&5
56125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56126 (exit $ac_status); }; } &&
56127 { ac_try='test -s conftest.$ac_objext'
56128 { (case "(($ac_try" in
56129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56130 *) ac_try_echo=$ac_try;;
56132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56133 (eval "$ac_try") 2>&5
56135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56136 (exit $ac_status); }; }; then
56137 am_cv_proto_iconv_arg1=""
56139 echo "$as_me: failed program was:" >&5
56140 sed 's/^/| /' conftest.$ac_ext >&5
56142 am_cv_proto_iconv_arg1="const"
56145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56146 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);"
56149 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
56150 { echo "$as_me:$LINENO: result: ${ac_t:-
56151 }$am_cv_proto_iconv" >&5
56152 echo "${ECHO_T}${ac_t:-
56153 }$am_cv_proto_iconv" >&6; }
56155 cat >>confdefs.h <<_ACEOF
56156 #define ICONV_CONST $am_cv_proto_iconv_arg1
56161 { echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
56162 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6; }
56163 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
56164 echo $ECHO_N "(cached) $ECHO_C" >&6
56167 if test "$cross_compiling" = yes; then
56168 jm_cv_func_unlink_busy_text=no
56171 cat >conftest.$ac_ext <<_ACEOF
56174 cat confdefs.h >>conftest.$ac_ext
56175 cat >>conftest.$ac_ext <<_ACEOF
56176 /* end confdefs.h. */
56177 $ac_includes_default
56179 main (int argc, char **argv)
56181 return !argc || unlink (argv0) != 0;
56184 rm -f conftest$ac_exeext
56185 if { (ac_try="$ac_link"
56186 case "(($ac_try" in
56187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56188 *) ac_try_echo=$ac_try;;
56190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56191 (eval "$ac_link") 2>&5
56193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56195 { (case "(($ac_try" in
56196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56197 *) ac_try_echo=$ac_try;;
56199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56200 (eval "$ac_try") 2>&5
56202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56203 (exit $ac_status); }; }; then
56204 jm_cv_func_unlink_busy_text=yes
56206 echo "$as_me: program exited with status $ac_status" >&5
56207 echo "$as_me: failed program was:" >&5
56208 sed 's/^/| /' conftest.$ac_ext >&5
56210 ( exit $ac_status )
56211 jm_cv_func_unlink_busy_text=no
56213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56220 { echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
56221 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6; }
56223 if test $jm_cv_func_unlink_busy_text = no; then
56224 INSTALL=$ac_install_sh
56228 # These tests are for df.
56231 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
56232 DF_PROG='df$(EXEEXT)'
56237 # If any of these functions don't exist (e.g. DJGPP 2.03),
56238 # use the corresponding stub.
56239 { echo "$as_me:$LINENO: checking for fchdir" >&5
56240 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
56241 if test "${ac_cv_func_fchdir+set}" = set; then
56242 echo $ECHO_N "(cached) $ECHO_C" >&6
56244 cat >conftest.$ac_ext <<_ACEOF
56247 cat confdefs.h >>conftest.$ac_ext
56248 cat >>conftest.$ac_ext <<_ACEOF
56249 /* end confdefs.h. */
56250 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
56251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56252 #define fchdir innocuous_fchdir
56254 /* System header to define __stub macros and hopefully few prototypes,
56255 which can conflict with char fchdir (); below.
56256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56257 <limits.h> exists even on freestanding compilers. */
56260 # include <limits.h>
56262 # include <assert.h>
56267 /* Override any GCC internal prototype to avoid an error.
56268 Use char because int might match the return type of a GCC
56269 builtin and then its argument prototype would still apply. */
56274 /* The GNU C library defines this for functions which it implements
56275 to always fail with ENOSYS. Some functions are actually named
56276 something starting with __ and the normal name is an alias. */
56277 #if defined __stub_fchdir || defined __stub___fchdir
56289 rm -f conftest.$ac_objext conftest$ac_exeext
56290 if { (ac_try="$ac_link"
56291 case "(($ac_try" in
56292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56293 *) ac_try_echo=$ac_try;;
56295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56296 (eval "$ac_link") 2>conftest.er1
56298 grep -v '^ *+' conftest.er1 >conftest.err
56300 cat conftest.err >&5
56301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56302 (exit $ac_status); } &&
56303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56304 { (case "(($ac_try" in
56305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56306 *) ac_try_echo=$ac_try;;
56308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56309 (eval "$ac_try") 2>&5
56311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56312 (exit $ac_status); }; } &&
56313 { ac_try='test -s conftest$ac_exeext'
56314 { (case "(($ac_try" in
56315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56316 *) ac_try_echo=$ac_try;;
56318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56319 (eval "$ac_try") 2>&5
56321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56322 (exit $ac_status); }; }; then
56323 ac_cv_func_fchdir=yes
56325 echo "$as_me: failed program was:" >&5
56326 sed 's/^/| /' conftest.$ac_ext >&5
56328 ac_cv_func_fchdir=no
56331 rm -f core conftest.err conftest.$ac_objext \
56332 conftest$ac_exeext conftest.$ac_ext
56334 { echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
56335 echo "${ECHO_T}$ac_cv_func_fchdir" >&6; }
56336 if test $ac_cv_func_fchdir = yes; then
56339 case " $LIBOBJS " in
56340 *" fchdir-stub.$ac_objext "* ) ;;
56341 *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
56359 { echo "$as_me:$LINENO: checking POSIX termios" >&5
56360 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
56361 if test "${ac_cv_sys_posix_termios+set}" = set; then
56362 echo $ECHO_N "(cached) $ECHO_C" >&6
56364 cat >conftest.$ac_ext <<_ACEOF
56367 cat confdefs.h >>conftest.$ac_ext
56368 cat >>conftest.$ac_ext <<_ACEOF
56369 /* end confdefs.h. */
56370 #include <sys/types.h>
56371 #include <unistd.h>
56372 #include <termios.h>
56377 /* SunOS 4.0.3 has termios.h but not the library calls. */
56383 rm -f conftest.$ac_objext conftest$ac_exeext
56384 if { (ac_try="$ac_link"
56385 case "(($ac_try" in
56386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56387 *) ac_try_echo=$ac_try;;
56389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56390 (eval "$ac_link") 2>conftest.er1
56392 grep -v '^ *+' conftest.er1 >conftest.err
56394 cat conftest.err >&5
56395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56396 (exit $ac_status); } &&
56397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56398 { (case "(($ac_try" in
56399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56400 *) ac_try_echo=$ac_try;;
56402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56403 (eval "$ac_try") 2>&5
56405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56406 (exit $ac_status); }; } &&
56407 { ac_try='test -s conftest$ac_exeext'
56408 { (case "(($ac_try" in
56409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56410 *) ac_try_echo=$ac_try;;
56412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56413 (eval "$ac_try") 2>&5
56415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56416 (exit $ac_status); }; }; then
56417 ac_cv_sys_posix_termios=yes
56419 echo "$as_me: failed program was:" >&5
56420 sed 's/^/| /' conftest.$ac_ext >&5
56422 ac_cv_sys_posix_termios=no
56425 rm -f core conftest.err conftest.$ac_objext \
56426 conftest$ac_exeext conftest.$ac_ext
56428 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
56429 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
56432 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
56433 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
56434 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
56435 echo $ECHO_N "(cached) $ECHO_C" >&6
56437 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
56438 if test $ac_cv_sys_posix_termios = yes; then
56439 cat >conftest.$ac_ext <<_ACEOF
56442 cat confdefs.h >>conftest.$ac_ext
56443 cat >>conftest.$ac_ext <<_ACEOF
56444 /* end confdefs.h. */
56445 #include <termios.h>
56450 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56455 rm -f conftest.$ac_objext
56456 if { (ac_try="$ac_compile"
56457 case "(($ac_try" in
56458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56459 *) ac_try_echo=$ac_try;;
56461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56462 (eval "$ac_compile") 2>conftest.er1
56464 grep -v '^ *+' conftest.er1 >conftest.err
56466 cat conftest.err >&5
56467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56468 (exit $ac_status); } &&
56469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56470 { (case "(($ac_try" in
56471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56472 *) ac_try_echo=$ac_try;;
56474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56475 (eval "$ac_try") 2>&5
56477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56478 (exit $ac_status); }; } &&
56479 { ac_try='test -s conftest.$ac_objext'
56480 { (case "(($ac_try" in
56481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56482 *) ac_try_echo=$ac_try;;
56484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56485 (eval "$ac_try") 2>&5
56487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56488 (exit $ac_status); }; }; then
56491 echo "$as_me: failed program was:" >&5
56492 sed 's/^/| /' conftest.$ac_ext >&5
56497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56499 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56500 cat >conftest.$ac_ext <<_ACEOF
56503 cat confdefs.h >>conftest.$ac_ext
56504 cat >>conftest.$ac_ext <<_ACEOF
56505 /* end confdefs.h. */
56506 #include <sys/ptem.h>
56515 rm -f conftest.$ac_objext
56516 if { (ac_try="$ac_compile"
56517 case "(($ac_try" in
56518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56519 *) ac_try_echo=$ac_try;;
56521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56522 (eval "$ac_compile") 2>conftest.er1
56524 grep -v '^ *+' conftest.er1 >conftest.err
56526 cat conftest.err >&5
56527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56528 (exit $ac_status); } &&
56529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56530 { (case "(($ac_try" in
56531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56532 *) ac_try_echo=$ac_try;;
56534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56535 (eval "$ac_try") 2>&5
56537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56538 (exit $ac_status); }; } &&
56539 { ac_try='test -s conftest.$ac_objext'
56540 { (case "(($ac_try" in
56541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56542 *) ac_try_echo=$ac_try;;
56544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56545 (eval "$ac_try") 2>&5
56547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56548 (exit $ac_status); }; }; then
56551 echo "$as_me: failed program was:" >&5
56552 sed 's/^/| /' conftest.$ac_ext >&5
56554 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56560 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
56561 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
56562 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56564 cat >>confdefs.h <<\_ACEOF
56565 #define WINSIZE_IN_PTEM 1
56570 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
56571 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
56572 if test "${utils_cv_localtime_cache+set}" = set; then
56573 echo $ECHO_N "(cached) $ECHO_C" >&6
56575 if test x$ac_cv_func_tzset = xyes; then
56576 if test "$cross_compiling" = yes; then
56577 # If we have tzset, assume the worst when cross-compiling.
56578 utils_cv_localtime_cache=yes
56580 cat >conftest.$ac_ext <<_ACEOF
56583 cat confdefs.h >>conftest.$ac_ext
56584 cat >>conftest.$ac_ext <<_ACEOF
56585 /* end confdefs.h. */
56588 # include <stdlib.h>
56590 extern char **environ;
56594 for (to = from = environ; (*to = *from); from++)
56595 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
56600 time_t now = time ((time_t *) 0);
56601 int hour_GMT0, hour_unset;
56602 if (putenv ("TZ=GMT0") != 0)
56604 hour_GMT0 = localtime (&now)->tm_hour;
56606 hour_unset = localtime (&now)->tm_hour;
56607 if (putenv ("TZ=PST8") != 0)
56609 if (localtime (&now)->tm_hour == hour_GMT0)
56612 if (localtime (&now)->tm_hour != hour_unset)
56617 rm -f conftest$ac_exeext
56618 if { (ac_try="$ac_link"
56619 case "(($ac_try" in
56620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56621 *) ac_try_echo=$ac_try;;
56623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56624 (eval "$ac_link") 2>&5
56626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56628 { (case "(($ac_try" in
56629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56630 *) ac_try_echo=$ac_try;;
56632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56633 (eval "$ac_try") 2>&5
56635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56636 (exit $ac_status); }; }; then
56637 utils_cv_localtime_cache=no
56639 echo "$as_me: program exited with status $ac_status" >&5
56640 echo "$as_me: failed program was:" >&5
56641 sed 's/^/| /' conftest.$ac_ext >&5
56643 ( exit $ac_status )
56644 utils_cv_localtime_cache=yes
56646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56651 # If we lack tzset, report that localtime does not cache TZ,
56652 # since we can't invalidate the cache if we don't have tzset.
56653 utils_cv_localtime_cache=no
56656 { echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
56657 echo "${ECHO_T}$utils_cv_localtime_cache" >&6; }
56658 if test $utils_cv_localtime_cache = yes; then
56660 cat >>confdefs.h <<\_ACEOF
56661 #define LOCALTIME_CACHE 1
56666 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
56668 for ac_func in initgroups
56670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56674 echo $ECHO_N "(cached) $ECHO_C" >&6
56676 cat >conftest.$ac_ext <<_ACEOF
56679 cat confdefs.h >>conftest.$ac_ext
56680 cat >>conftest.$ac_ext <<_ACEOF
56681 /* end confdefs.h. */
56682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56684 #define $ac_func innocuous_$ac_func
56686 /* System header to define __stub macros and hopefully few prototypes,
56687 which can conflict with char $ac_func (); below.
56688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56689 <limits.h> exists even on freestanding compilers. */
56692 # include <limits.h>
56694 # include <assert.h>
56699 /* Override any GCC internal prototype to avoid an error.
56700 Use char because int might match the return type of a GCC
56701 builtin and then its argument prototype would still apply. */
56706 /* The GNU C library defines this for functions which it implements
56707 to always fail with ENOSYS. Some functions are actually named
56708 something starting with __ and the normal name is an alias. */
56709 #if defined __stub_$ac_func || defined __stub___$ac_func
56716 return $ac_func ();
56721 rm -f conftest.$ac_objext conftest$ac_exeext
56722 if { (ac_try="$ac_link"
56723 case "(($ac_try" in
56724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56725 *) ac_try_echo=$ac_try;;
56727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56728 (eval "$ac_link") 2>conftest.er1
56730 grep -v '^ *+' conftest.er1 >conftest.err
56732 cat conftest.err >&5
56733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56734 (exit $ac_status); } &&
56735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56736 { (case "(($ac_try" in
56737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56738 *) ac_try_echo=$ac_try;;
56740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56741 (eval "$ac_try") 2>&5
56743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56744 (exit $ac_status); }; } &&
56745 { ac_try='test -s conftest$ac_exeext'
56746 { (case "(($ac_try" in
56747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56748 *) ac_try_echo=$ac_try;;
56750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56751 (eval "$ac_try") 2>&5
56753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56754 (exit $ac_status); }; }; then
56755 eval "$as_ac_var=yes"
56757 echo "$as_me: failed program was:" >&5
56758 sed 's/^/| /' conftest.$ac_ext >&5
56760 eval "$as_ac_var=no"
56763 rm -f core conftest.err conftest.$ac_objext \
56764 conftest$ac_exeext conftest.$ac_ext
56766 ac_res=`eval echo '${'$as_ac_var'}'`
56767 { echo "$as_me:$LINENO: result: $ac_res" >&5
56768 echo "${ECHO_T}$ac_res" >&6; }
56769 if test `eval echo '${'$as_ac_var'}'` = yes; then
56770 cat >>confdefs.h <<_ACEOF
56771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56777 if test $ac_cv_func_initgroups = no; then
56779 { echo "$as_me:$LINENO: checking for initgroups in -los" >&5
56780 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6; }
56781 if test "${ac_cv_lib_os_initgroups+set}" = set; then
56782 echo $ECHO_N "(cached) $ECHO_C" >&6
56784 ac_check_lib_save_LIBS=$LIBS
56786 cat >conftest.$ac_ext <<_ACEOF
56789 cat confdefs.h >>conftest.$ac_ext
56790 cat >>conftest.$ac_ext <<_ACEOF
56791 /* end confdefs.h. */
56793 /* Override any GCC internal prototype to avoid an error.
56794 Use char because int might match the return type of a GCC
56795 builtin and then its argument prototype would still apply. */
56799 char initgroups ();
56803 return initgroups ();
56808 rm -f conftest.$ac_objext conftest$ac_exeext
56809 if { (ac_try="$ac_link"
56810 case "(($ac_try" in
56811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56812 *) ac_try_echo=$ac_try;;
56814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56815 (eval "$ac_link") 2>conftest.er1
56817 grep -v '^ *+' conftest.er1 >conftest.err
56819 cat conftest.err >&5
56820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56821 (exit $ac_status); } &&
56822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56823 { (case "(($ac_try" in
56824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56825 *) ac_try_echo=$ac_try;;
56827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56828 (eval "$ac_try") 2>&5
56830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56831 (exit $ac_status); }; } &&
56832 { ac_try='test -s conftest$ac_exeext'
56833 { (case "(($ac_try" in
56834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56835 *) ac_try_echo=$ac_try;;
56837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56838 (eval "$ac_try") 2>&5
56840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56841 (exit $ac_status); }; }; then
56842 ac_cv_lib_os_initgroups=yes
56844 echo "$as_me: failed program was:" >&5
56845 sed 's/^/| /' conftest.$ac_ext >&5
56847 ac_cv_lib_os_initgroups=no
56850 rm -f core conftest.err conftest.$ac_objext \
56851 conftest$ac_exeext conftest.$ac_ext
56852 LIBS=$ac_check_lib_save_LIBS
56854 { echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
56855 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6; }
56856 if test $ac_cv_lib_os_initgroups = yes; then
56857 cat >>confdefs.h <<_ACEOF
56858 #define HAVE_LIBOS 1
56868 for ac_func in syslog
56870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56874 echo $ECHO_N "(cached) $ECHO_C" >&6
56876 cat >conftest.$ac_ext <<_ACEOF
56879 cat confdefs.h >>conftest.$ac_ext
56880 cat >>conftest.$ac_ext <<_ACEOF
56881 /* end confdefs.h. */
56882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56884 #define $ac_func innocuous_$ac_func
56886 /* System header to define __stub macros and hopefully few prototypes,
56887 which can conflict with char $ac_func (); below.
56888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56889 <limits.h> exists even on freestanding compilers. */
56892 # include <limits.h>
56894 # include <assert.h>
56899 /* Override any GCC internal prototype to avoid an error.
56900 Use char because int might match the return type of a GCC
56901 builtin and then its argument prototype would still apply. */
56906 /* The GNU C library defines this for functions which it implements
56907 to always fail with ENOSYS. Some functions are actually named
56908 something starting with __ and the normal name is an alias. */
56909 #if defined __stub_$ac_func || defined __stub___$ac_func
56916 return $ac_func ();
56921 rm -f conftest.$ac_objext conftest$ac_exeext
56922 if { (ac_try="$ac_link"
56923 case "(($ac_try" in
56924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56925 *) ac_try_echo=$ac_try;;
56927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56928 (eval "$ac_link") 2>conftest.er1
56930 grep -v '^ *+' conftest.er1 >conftest.err
56932 cat conftest.err >&5
56933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56934 (exit $ac_status); } &&
56935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56936 { (case "(($ac_try" in
56937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56938 *) ac_try_echo=$ac_try;;
56940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56941 (eval "$ac_try") 2>&5
56943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56944 (exit $ac_status); }; } &&
56945 { ac_try='test -s conftest$ac_exeext'
56946 { (case "(($ac_try" in
56947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56948 *) ac_try_echo=$ac_try;;
56950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56951 (eval "$ac_try") 2>&5
56953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56954 (exit $ac_status); }; }; then
56955 eval "$as_ac_var=yes"
56957 echo "$as_me: failed program was:" >&5
56958 sed 's/^/| /' conftest.$ac_ext >&5
56960 eval "$as_ac_var=no"
56963 rm -f core conftest.err conftest.$ac_objext \
56964 conftest$ac_exeext conftest.$ac_ext
56966 ac_res=`eval echo '${'$as_ac_var'}'`
56967 { echo "$as_me:$LINENO: result: $ac_res" >&5
56968 echo "${ECHO_T}$ac_res" >&6; }
56969 if test `eval echo '${'$as_ac_var'}'` = yes; then
56970 cat >>confdefs.h <<_ACEOF
56971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56977 if test $ac_cv_func_syslog = no; then
56978 # syslog is not in the default libraries. See if it's in some other.
56979 for lib in bsd socket inet; do
56980 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
56981 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
56982 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
56983 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
56984 echo $ECHO_N "(cached) $ECHO_C" >&6
56986 ac_check_lib_save_LIBS=$LIBS
56987 LIBS="-l$lib $LIBS"
56988 cat >conftest.$ac_ext <<_ACEOF
56991 cat confdefs.h >>conftest.$ac_ext
56992 cat >>conftest.$ac_ext <<_ACEOF
56993 /* end confdefs.h. */
56995 /* Override any GCC internal prototype to avoid an error.
56996 Use char because int might match the return type of a GCC
56997 builtin and then its argument prototype would still apply. */
57010 rm -f conftest.$ac_objext conftest$ac_exeext
57011 if { (ac_try="$ac_link"
57012 case "(($ac_try" in
57013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57014 *) ac_try_echo=$ac_try;;
57016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57017 (eval "$ac_link") 2>conftest.er1
57019 grep -v '^ *+' conftest.er1 >conftest.err
57021 cat conftest.err >&5
57022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57023 (exit $ac_status); } &&
57024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57025 { (case "(($ac_try" in
57026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57027 *) ac_try_echo=$ac_try;;
57029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57030 (eval "$ac_try") 2>&5
57032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57033 (exit $ac_status); }; } &&
57034 { ac_try='test -s conftest$ac_exeext'
57035 { (case "(($ac_try" in
57036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57037 *) ac_try_echo=$ac_try;;
57039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57040 (eval "$ac_try") 2>&5
57042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57043 (exit $ac_status); }; }; then
57044 eval "$as_ac_Lib=yes"
57046 echo "$as_me: failed program was:" >&5
57047 sed 's/^/| /' conftest.$ac_ext >&5
57049 eval "$as_ac_Lib=no"
57052 rm -f core conftest.err conftest.$ac_objext \
57053 conftest$ac_exeext conftest.$ac_ext
57054 LIBS=$ac_check_lib_save_LIBS
57056 ac_res=`eval echo '${'$as_ac_Lib'}'`
57057 { echo "$as_me:$LINENO: result: $ac_res" >&5
57058 echo "${ECHO_T}$ac_res" >&6; }
57059 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
57061 cat >>confdefs.h <<\_ACEOF
57062 #define HAVE_SYSLOG 1
57065 LIBS="$LIBS -l$lib"; break
57071 { echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
57072 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6; }
57073 if test "${utils_cv_func_setpriority+set}" = set; then
57074 echo $ECHO_N "(cached) $ECHO_C" >&6
57076 cat >conftest.$ac_ext <<_ACEOF
57079 cat confdefs.h >>conftest.$ac_ext
57080 cat >>conftest.$ac_ext <<_ACEOF
57081 /* end confdefs.h. */
57082 #include <sys/time.h>
57083 #include <sys/resource.h>
57088 setpriority (0, 0, 0);
57093 rm -f conftest.$ac_objext conftest$ac_exeext
57094 if { (ac_try="$ac_link"
57095 case "(($ac_try" in
57096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57097 *) ac_try_echo=$ac_try;;
57099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57100 (eval "$ac_link") 2>conftest.er1
57102 grep -v '^ *+' conftest.er1 >conftest.err
57104 cat conftest.err >&5
57105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57106 (exit $ac_status); } &&
57107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57108 { (case "(($ac_try" in
57109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57110 *) ac_try_echo=$ac_try;;
57112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57113 (eval "$ac_try") 2>&5
57115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57116 (exit $ac_status); }; } &&
57117 { ac_try='test -s conftest$ac_exeext'
57118 { (case "(($ac_try" in
57119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57120 *) ac_try_echo=$ac_try;;
57122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57123 (eval "$ac_try") 2>&5
57125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57126 (exit $ac_status); }; }; then
57127 utils_cv_func_setpriority=yes
57129 echo "$as_me: failed program was:" >&5
57130 sed 's/^/| /' conftest.$ac_ext >&5
57132 utils_cv_func_setpriority=no
57135 rm -f core conftest.err conftest.$ac_objext \
57136 conftest$ac_exeext conftest.$ac_ext
57138 { echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
57139 echo "${ECHO_T}$utils_cv_func_setpriority" >&6; }
57140 if test $utils_cv_func_setpriority = no; then
57142 for ac_func in nice
57144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57148 echo $ECHO_N "(cached) $ECHO_C" >&6
57150 cat >conftest.$ac_ext <<_ACEOF
57153 cat confdefs.h >>conftest.$ac_ext
57154 cat >>conftest.$ac_ext <<_ACEOF
57155 /* end confdefs.h. */
57156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57158 #define $ac_func innocuous_$ac_func
57160 /* System header to define __stub macros and hopefully few prototypes,
57161 which can conflict with char $ac_func (); below.
57162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57163 <limits.h> exists even on freestanding compilers. */
57166 # include <limits.h>
57168 # include <assert.h>
57173 /* Override any GCC internal prototype to avoid an error.
57174 Use char because int might match the return type of a GCC
57175 builtin and then its argument prototype would still apply. */
57180 /* The GNU C library defines this for functions which it implements
57181 to always fail with ENOSYS. Some functions are actually named
57182 something starting with __ and the normal name is an alias. */
57183 #if defined __stub_$ac_func || defined __stub___$ac_func
57190 return $ac_func ();
57195 rm -f conftest.$ac_objext conftest$ac_exeext
57196 if { (ac_try="$ac_link"
57197 case "(($ac_try" in
57198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57199 *) ac_try_echo=$ac_try;;
57201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57202 (eval "$ac_link") 2>conftest.er1
57204 grep -v '^ *+' conftest.er1 >conftest.err
57206 cat conftest.err >&5
57207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57208 (exit $ac_status); } &&
57209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57210 { (case "(($ac_try" in
57211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57212 *) ac_try_echo=$ac_try;;
57214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57215 (eval "$ac_try") 2>&5
57217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57218 (exit $ac_status); }; } &&
57219 { ac_try='test -s conftest$ac_exeext'
57220 { (case "(($ac_try" in
57221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57222 *) ac_try_echo=$ac_try;;
57224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57225 (eval "$ac_try") 2>&5
57227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57228 (exit $ac_status); }; }; then
57229 eval "$as_ac_var=yes"
57231 echo "$as_me: failed program was:" >&5
57232 sed 's/^/| /' conftest.$ac_ext >&5
57234 eval "$as_ac_var=no"
57237 rm -f core conftest.err conftest.$ac_objext \
57238 conftest$ac_exeext conftest.$ac_ext
57240 ac_res=`eval echo '${'$as_ac_var'}'`
57241 { echo "$as_me:$LINENO: result: $ac_res" >&5
57242 echo "${ECHO_T}$ac_res" >&6; }
57243 if test `eval echo '${'$as_ac_var'}'` = yes; then
57244 cat >>confdefs.h <<_ACEOF
57245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57252 case $utils_cv_func_setpriority,$ac_cv_func_nice in
57254 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
57255 MAN="$MAN nice.1";;
57261 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
57262 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
57263 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
57264 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
57265 MAN="$MAN pinky.1 users.1 who.1"
57269 { echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
57270 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6; }
57271 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
57272 echo $ECHO_N "(cached) $ECHO_C" >&6
57274 cat >conftest.$ac_ext <<_ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h. */
57280 #include <sys/types.h>
57285 struct utmp ut; ut.ut_host;
57290 rm -f conftest.$ac_objext conftest$ac_exeext
57291 if { (ac_try="$ac_link"
57292 case "(($ac_try" in
57293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57294 *) ac_try_echo=$ac_try;;
57296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57297 (eval "$ac_link") 2>conftest.er1
57299 grep -v '^ *+' conftest.er1 >conftest.err
57301 cat conftest.err >&5
57302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57303 (exit $ac_status); } &&
57304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57305 { (case "(($ac_try" in
57306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57307 *) ac_try_echo=$ac_try;;
57309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57310 (eval "$ac_try") 2>&5
57312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57313 (exit $ac_status); }; } &&
57314 { ac_try='test -s conftest$ac_exeext'
57315 { (case "(($ac_try" in
57316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57317 *) ac_try_echo=$ac_try;;
57319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57320 (eval "$ac_try") 2>&5
57322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57323 (exit $ac_status); }; }; then
57324 su_cv_func_ut_host_in_utmp=yes
57326 echo "$as_me: failed program was:" >&5
57327 sed 's/^/| /' conftest.$ac_ext >&5
57329 su_cv_func_ut_host_in_utmp=no
57332 rm -f core conftest.err conftest.$ac_objext \
57333 conftest$ac_exeext conftest.$ac_ext
57336 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
57337 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6; }
57338 if test $su_cv_func_ut_host_in_utmp = yes; then
57341 cat >>confdefs.h <<\_ACEOF
57342 #define HAVE_UT_HOST 1
57347 if test -z "$have_ut_host"; then
57348 { echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
57349 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6; }
57350 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
57351 echo $ECHO_N "(cached) $ECHO_C" >&6
57353 cat >conftest.$ac_ext <<_ACEOF
57356 cat confdefs.h >>conftest.$ac_ext
57357 cat >>conftest.$ac_ext <<_ACEOF
57358 /* end confdefs.h. */
57359 #include <sys/types.h>
57364 struct utmpx ut; ut.ut_host;
57369 rm -f conftest.$ac_objext conftest$ac_exeext
57370 if { (ac_try="$ac_link"
57371 case "(($ac_try" in
57372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57373 *) ac_try_echo=$ac_try;;
57375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57376 (eval "$ac_link") 2>conftest.er1
57378 grep -v '^ *+' conftest.er1 >conftest.err
57380 cat conftest.err >&5
57381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57382 (exit $ac_status); } &&
57383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57384 { (case "(($ac_try" in
57385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57386 *) ac_try_echo=$ac_try;;
57388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57389 (eval "$ac_try") 2>&5
57391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57392 (exit $ac_status); }; } &&
57393 { ac_try='test -s conftest$ac_exeext'
57394 { (case "(($ac_try" in
57395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57396 *) ac_try_echo=$ac_try;;
57398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57399 (eval "$ac_try") 2>&5
57401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57402 (exit $ac_status); }; }; then
57403 su_cv_func_ut_host_in_utmpx=yes
57405 echo "$as_me: failed program was:" >&5
57406 sed 's/^/| /' conftest.$ac_ext >&5
57408 su_cv_func_ut_host_in_utmpx=no
57411 rm -f core conftest.err conftest.$ac_objext \
57412 conftest$ac_exeext conftest.$ac_ext
57415 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
57416 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6; }
57417 if test $su_cv_func_ut_host_in_utmpx = yes; then
57419 cat >>confdefs.h <<\_ACEOF
57420 #define HAVE_UTMPX_H 1
57424 cat >>confdefs.h <<\_ACEOF
57425 #define HAVE_UT_HOST 1
57433 for ac_func in sysctl
57435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57439 echo $ECHO_N "(cached) $ECHO_C" >&6
57441 cat >conftest.$ac_ext <<_ACEOF
57444 cat confdefs.h >>conftest.$ac_ext
57445 cat >>conftest.$ac_ext <<_ACEOF
57446 /* end confdefs.h. */
57447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57449 #define $ac_func innocuous_$ac_func
57451 /* System header to define __stub macros and hopefully few prototypes,
57452 which can conflict with char $ac_func (); below.
57453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57454 <limits.h> exists even on freestanding compilers. */
57457 # include <limits.h>
57459 # include <assert.h>
57464 /* Override any GCC internal prototype to avoid an error.
57465 Use char because int might match the return type of a GCC
57466 builtin and then its argument prototype would still apply. */
57471 /* The GNU C library defines this for functions which it implements
57472 to always fail with ENOSYS. Some functions are actually named
57473 something starting with __ and the normal name is an alias. */
57474 #if defined __stub_$ac_func || defined __stub___$ac_func
57481 return $ac_func ();
57486 rm -f conftest.$ac_objext conftest$ac_exeext
57487 if { (ac_try="$ac_link"
57488 case "(($ac_try" in
57489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57490 *) ac_try_echo=$ac_try;;
57492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57493 (eval "$ac_link") 2>conftest.er1
57495 grep -v '^ *+' conftest.er1 >conftest.err
57497 cat conftest.err >&5
57498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57499 (exit $ac_status); } &&
57500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57501 { (case "(($ac_try" in
57502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57503 *) ac_try_echo=$ac_try;;
57505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57506 (eval "$ac_try") 2>&5
57508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57509 (exit $ac_status); }; } &&
57510 { ac_try='test -s conftest$ac_exeext'
57511 { (case "(($ac_try" in
57512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57513 *) ac_try_echo=$ac_try;;
57515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57516 (eval "$ac_try") 2>&5
57518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57519 (exit $ac_status); }; }; then
57520 eval "$as_ac_var=yes"
57522 echo "$as_me: failed program was:" >&5
57523 sed 's/^/| /' conftest.$ac_ext >&5
57525 eval "$as_ac_var=no"
57528 rm -f core conftest.err conftest.$ac_objext \
57529 conftest$ac_exeext conftest.$ac_ext
57531 ac_res=`eval echo '${'$as_ac_var'}'`
57532 { echo "$as_me:$LINENO: result: $ac_res" >&5
57533 echo "${ECHO_T}$ac_res" >&6; }
57534 if test `eval echo '${'$as_ac_var'}'` = yes; then
57535 cat >>confdefs.h <<_ACEOF
57536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57549 for ac_header in sys/sysctl.h
57551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
57553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57555 echo $ECHO_N "(cached) $ECHO_C" >&6
57557 cat >conftest.$ac_ext <<_ACEOF
57560 cat confdefs.h >>conftest.$ac_ext
57561 cat >>conftest.$ac_ext <<_ACEOF
57562 /* end confdefs.h. */
57563 $ac_includes_default
57564 #if HAVE_SYS_PARAM_H
57565 #include <sys/param.h>
57568 #include <$ac_header>
57570 rm -f conftest.$ac_objext
57571 if { (ac_try="$ac_compile"
57572 case "(($ac_try" in
57573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57574 *) ac_try_echo=$ac_try;;
57576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57577 (eval "$ac_compile") 2>conftest.er1
57579 grep -v '^ *+' conftest.er1 >conftest.err
57581 cat conftest.err >&5
57582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57583 (exit $ac_status); } &&
57584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57585 { (case "(($ac_try" in
57586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57587 *) ac_try_echo=$ac_try;;
57589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57590 (eval "$ac_try") 2>&5
57592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57593 (exit $ac_status); }; } &&
57594 { ac_try='test -s conftest.$ac_objext'
57595 { (case "(($ac_try" in
57596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57597 *) ac_try_echo=$ac_try;;
57599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57600 (eval "$ac_try") 2>&5
57602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57603 (exit $ac_status); }; }; then
57604 eval "$as_ac_Header=yes"
57606 echo "$as_me: failed program was:" >&5
57607 sed 's/^/| /' conftest.$ac_ext >&5
57609 eval "$as_ac_Header=no"
57612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57614 ac_res=`eval echo '${'$as_ac_Header'}'`
57615 { echo "$as_me:$LINENO: result: $ac_res" >&5
57616 echo "${ECHO_T}$ac_res" >&6; }
57617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57618 cat >>confdefs.h <<_ACEOF
57619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57626 { echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
57627 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6; }
57628 if test "${gnulib_cv_have_boot_time+set}" = set; then
57629 echo $ECHO_N "(cached) $ECHO_C" >&6
57632 cat >conftest.$ac_ext <<_ACEOF
57635 cat confdefs.h >>conftest.$ac_ext
57636 cat >>conftest.$ac_ext <<_ACEOF
57637 /* end confdefs.h. */
57638 $ac_includes_default
57639 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
57640 # if HAVE_SYS_PARAM_H
57641 # include <sys/param.h> /* needed for OpenBSD 3.0 */
57643 # include <sys/sysctl.h>
57645 #ifdef HAVE_UTMPX_H
57646 # include <utmpx.h>
57655 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
57656 /* your system *does* have the infrastructure to determine boot time */
57658 please_tell_us_how_to_determine_boot_time_on_your_system
57665 rm -f conftest.$ac_objext
57666 if { (ac_try="$ac_compile"
57667 case "(($ac_try" in
57668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57669 *) ac_try_echo=$ac_try;;
57671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57672 (eval "$ac_compile") 2>conftest.er1
57674 grep -v '^ *+' conftest.er1 >conftest.err
57676 cat conftest.err >&5
57677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57678 (exit $ac_status); } &&
57679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57680 { (case "(($ac_try" in
57681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57682 *) ac_try_echo=$ac_try;;
57684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57685 (eval "$ac_try") 2>&5
57687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57688 (exit $ac_status); }; } &&
57689 { ac_try='test -s conftest.$ac_objext'
57690 { (case "(($ac_try" in
57691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57692 *) ac_try_echo=$ac_try;;
57694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57695 (eval "$ac_try") 2>&5
57697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57698 (exit $ac_status); }; }; then
57699 gnulib_cv_have_boot_time=yes
57701 echo "$as_me: failed program was:" >&5
57702 sed 's/^/| /' conftest.$ac_ext >&5
57704 gnulib_cv_have_boot_time=no
57707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57710 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
57711 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; }
57712 if test $gnulib_cv_have_boot_time = yes; then
57713 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
57714 MAN="$MAN uptime.1"
57719 { echo "$as_me:$LINENO: checking POSIX termios" >&5
57720 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
57721 if test "${ac_cv_sys_posix_termios+set}" = set; then
57722 echo $ECHO_N "(cached) $ECHO_C" >&6
57724 cat >conftest.$ac_ext <<_ACEOF
57727 cat confdefs.h >>conftest.$ac_ext
57728 cat >>conftest.$ac_ext <<_ACEOF
57729 /* end confdefs.h. */
57730 #include <sys/types.h>
57731 #include <unistd.h>
57732 #include <termios.h>
57737 /* SunOS 4.0.3 has termios.h but not the library calls. */
57743 rm -f conftest.$ac_objext conftest$ac_exeext
57744 if { (ac_try="$ac_link"
57745 case "(($ac_try" in
57746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57747 *) ac_try_echo=$ac_try;;
57749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57750 (eval "$ac_link") 2>conftest.er1
57752 grep -v '^ *+' conftest.er1 >conftest.err
57754 cat conftest.err >&5
57755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57756 (exit $ac_status); } &&
57757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57758 { (case "(($ac_try" in
57759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57760 *) ac_try_echo=$ac_try;;
57762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57763 (eval "$ac_try") 2>&5
57765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57766 (exit $ac_status); }; } &&
57767 { ac_try='test -s conftest$ac_exeext'
57768 { (case "(($ac_try" in
57769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57770 *) ac_try_echo=$ac_try;;
57772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57773 (eval "$ac_try") 2>&5
57775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57776 (exit $ac_status); }; }; then
57777 ac_cv_sys_posix_termios=yes
57779 echo "$as_me: failed program was:" >&5
57780 sed 's/^/| /' conftest.$ac_ext >&5
57782 ac_cv_sys_posix_termios=no
57785 rm -f core conftest.err conftest.$ac_objext \
57786 conftest$ac_exeext conftest.$ac_ext
57788 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
57789 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
57792 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57793 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
57794 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57795 echo $ECHO_N "(cached) $ECHO_C" >&6
57797 jm_cv_sys_tiocgwinsz_needs_termios_h=no
57799 if test $ac_cv_sys_posix_termios = yes; then
57800 cat >conftest.$ac_ext <<_ACEOF
57803 cat confdefs.h >>conftest.$ac_ext
57804 cat >>conftest.$ac_ext <<_ACEOF
57805 /* end confdefs.h. */
57806 #include <sys/types.h>
57807 # include <termios.h>
57813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57814 $EGREP "yes" >/dev/null 2>&1; then
57815 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57822 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57823 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
57826 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
57827 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6; }
57828 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
57829 echo $ECHO_N "(cached) $ECHO_C" >&6
57831 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
57833 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
57834 cat >conftest.$ac_ext <<_ACEOF
57837 cat confdefs.h >>conftest.$ac_ext
57838 cat >>conftest.$ac_ext <<_ACEOF
57839 /* end confdefs.h. */
57840 #include <sys/types.h>
57841 # include <sys/ioctl.h>
57847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57848 $EGREP "yes" >/dev/null 2>&1; then
57849 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
57856 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
57857 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
57858 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
57860 cat >>confdefs.h <<\_ACEOF
57861 #define GWINSZ_IN_SYS_IOCTL 1
57867 if test $ac_cv_sys_posix_termios = yes; then
57868 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
57870 { echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
57871 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6; }
57872 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
57873 echo $ECHO_N "(cached) $ECHO_C" >&6
57875 cat >conftest.$ac_ext <<_ACEOF
57878 cat confdefs.h >>conftest.$ac_ext
57879 cat >>conftest.$ac_ext <<_ACEOF
57880 /* end confdefs.h. */
57881 #include <termios.h>
57886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57887 $EGREP "yes" >/dev/null 2>&1; then
57888 su_cv_sys_termios_needs_xopen_source=no
57890 cat >conftest.$ac_ext <<_ACEOF
57893 cat confdefs.h >>conftest.$ac_ext
57894 cat >>conftest.$ac_ext <<_ACEOF
57895 /* end confdefs.h. */
57896 #define _XOPEN_SOURCE
57897 #include <termios.h>
57902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57903 $EGREP "yes" >/dev/null 2>&1; then
57904 su_cv_sys_termios_needs_xopen_source=yes
57906 su_cv_sys_termios_needs_xopen_source=no
57915 { echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
57916 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6; }
57917 test $su_cv_sys_termios_needs_xopen_source = yes &&
57919 cat >>confdefs.h <<\_ACEOF
57920 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
57924 { echo "$as_me:$LINENO: checking c_line in struct termios" >&5
57925 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6; }
57926 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
57927 echo $ECHO_N "(cached) $ECHO_C" >&6
57929 cat >conftest.$ac_ext <<_ACEOF
57932 cat confdefs.h >>conftest.$ac_ext
57933 cat >>conftest.$ac_ext <<_ACEOF
57934 /* end confdefs.h. */
57935 #if TERMIOS_NEEDS_XOPEN_SOURCE
57936 #define _XOPEN_SOURCE
57938 #include <sys/types.h>
57939 #include <termios.h>
57943 struct termios t; t.c_line;
57948 rm -f conftest.$ac_objext conftest$ac_exeext
57949 if { (ac_try="$ac_link"
57950 case "(($ac_try" in
57951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57952 *) ac_try_echo=$ac_try;;
57954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57955 (eval "$ac_link") 2>conftest.er1
57957 grep -v '^ *+' conftest.er1 >conftest.err
57959 cat conftest.err >&5
57960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57961 (exit $ac_status); } &&
57962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57963 { (case "(($ac_try" in
57964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57965 *) ac_try_echo=$ac_try;;
57967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57968 (eval "$ac_try") 2>&5
57970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57971 (exit $ac_status); }; } &&
57972 { ac_try='test -s conftest$ac_exeext'
57973 { (case "(($ac_try" in
57974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57975 *) ac_try_echo=$ac_try;;
57977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57978 (eval "$ac_try") 2>&5
57980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57981 (exit $ac_status); }; }; then
57982 su_cv_sys_c_line_in_termios=yes
57984 echo "$as_me: failed program was:" >&5
57985 sed 's/^/| /' conftest.$ac_ext >&5
57987 su_cv_sys_c_line_in_termios=no
57990 rm -f core conftest.err conftest.$ac_objext \
57991 conftest$ac_exeext conftest.$ac_ext
57994 { echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
57995 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6; }
57996 test $su_cv_sys_c_line_in_termios = yes \
57998 cat >>confdefs.h <<\_ACEOF
57999 #define HAVE_C_LINE 1
58004 # FIXME: note that this macro appears above, too.
58005 # I'm leaving it here for now. This whole thing needs to be modernized...
58007 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
58008 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
58009 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
58010 echo $ECHO_N "(cached) $ECHO_C" >&6
58012 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
58013 if test $ac_cv_sys_posix_termios = yes; then
58014 cat >conftest.$ac_ext <<_ACEOF
58017 cat confdefs.h >>conftest.$ac_ext
58018 cat >>conftest.$ac_ext <<_ACEOF
58019 /* end confdefs.h. */
58020 #include <termios.h>
58025 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
58030 rm -f conftest.$ac_objext
58031 if { (ac_try="$ac_compile"
58032 case "(($ac_try" in
58033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58034 *) ac_try_echo=$ac_try;;
58036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58037 (eval "$ac_compile") 2>conftest.er1
58039 grep -v '^ *+' conftest.er1 >conftest.err
58041 cat conftest.err >&5
58042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043 (exit $ac_status); } &&
58044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58045 { (case "(($ac_try" in
58046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58047 *) ac_try_echo=$ac_try;;
58049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58050 (eval "$ac_try") 2>&5
58052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58053 (exit $ac_status); }; } &&
58054 { ac_try='test -s conftest.$ac_objext'
58055 { (case "(($ac_try" in
58056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58057 *) ac_try_echo=$ac_try;;
58059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58060 (eval "$ac_try") 2>&5
58062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58063 (exit $ac_status); }; }; then
58066 echo "$as_me: failed program was:" >&5
58067 sed 's/^/| /' conftest.$ac_ext >&5
58072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58074 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
58075 cat >conftest.$ac_ext <<_ACEOF
58078 cat confdefs.h >>conftest.$ac_ext
58079 cat >>conftest.$ac_ext <<_ACEOF
58080 /* end confdefs.h. */
58081 #include <sys/ptem.h>
58090 rm -f conftest.$ac_objext
58091 if { (ac_try="$ac_compile"
58092 case "(($ac_try" in
58093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58094 *) ac_try_echo=$ac_try;;
58096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58097 (eval "$ac_compile") 2>conftest.er1
58099 grep -v '^ *+' conftest.er1 >conftest.err
58101 cat conftest.err >&5
58102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58103 (exit $ac_status); } &&
58104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58105 { (case "(($ac_try" in
58106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58107 *) ac_try_echo=$ac_try;;
58109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58110 (eval "$ac_try") 2>&5
58112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58113 (exit $ac_status); }; } &&
58114 { ac_try='test -s conftest.$ac_objext'
58115 { (case "(($ac_try" in
58116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58117 *) ac_try_echo=$ac_try;;
58119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58120 (eval "$ac_try") 2>&5
58122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58123 (exit $ac_status); }; }; then
58126 echo "$as_me: failed program was:" >&5
58127 sed 's/^/| /' conftest.$ac_ext >&5
58129 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
58132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58135 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
58136 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
58137 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
58139 cat >>confdefs.h <<\_ACEOF
58140 #define WINSIZE_IN_PTEM 1
58146 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
58147 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
58148 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
58149 echo $ECHO_N "(cached) $ECHO_C" >&6
58151 jm_cv_sys_tiocgwinsz_needs_termios_h=no
58153 if test $ac_cv_sys_posix_termios = yes; then
58154 cat >conftest.$ac_ext <<_ACEOF
58157 cat confdefs.h >>conftest.$ac_ext
58158 cat >>conftest.$ac_ext <<_ACEOF
58159 /* end confdefs.h. */
58160 #include <sys/types.h>
58161 # include <termios.h>
58167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58168 $EGREP "yes" >/dev/null 2>&1; then
58169 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
58176 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
58177 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
58180 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
58181 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
58182 { echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
58183 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6; }
58184 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
58185 echo $ECHO_N "(cached) $ECHO_C" >&6
58187 cat >conftest.$ac_ext <<_ACEOF
58190 cat confdefs.h >>conftest.$ac_ext
58191 cat >>conftest.$ac_ext <<_ACEOF
58192 /* end confdefs.h. */
58193 #include <sys/types.h>
58194 #ifdef WINSIZE_IN_PTEM
58195 # include <sys/stream.h>
58196 # include <sys/ptem.h>
58198 #include <sys/ioctl.h>
58199 #include <sys/tty.h>
58200 #include <sys/pty.h>
58204 int x = TIOCGWINSZ;
58209 rm -f conftest.$ac_objext conftest$ac_exeext
58210 if { (ac_try="$ac_link"
58211 case "(($ac_try" in
58212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58213 *) ac_try_echo=$ac_try;;
58215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58216 (eval "$ac_link") 2>conftest.er1
58218 grep -v '^ *+' conftest.er1 >conftest.err
58220 cat conftest.err >&5
58221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58222 (exit $ac_status); } &&
58223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58224 { (case "(($ac_try" in
58225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58226 *) ac_try_echo=$ac_try;;
58228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58229 (eval "$ac_try") 2>&5
58231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58232 (exit $ac_status); }; } &&
58233 { ac_try='test -s conftest$ac_exeext'
58234 { (case "(($ac_try" in
58235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58236 *) ac_try_echo=$ac_try;;
58238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58239 (eval "$ac_try") 2>&5
58241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58242 (exit $ac_status); }; }; then
58243 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
58245 echo "$as_me: failed program was:" >&5
58246 sed 's/^/| /' conftest.$ac_ext >&5
58248 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
58251 rm -f core conftest.err conftest.$ac_objext \
58252 conftest$ac_exeext conftest.$ac_ext
58255 { echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
58256 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
58258 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
58260 cat >>confdefs.h <<\_ACEOF
58261 #define GWINSZ_IN_SYS_PTY 1
58267 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
58268 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
58269 if test "${ac_cv_have_decl_strsignal+set}" = set; then
58270 echo $ECHO_N "(cached) $ECHO_C" >&6
58272 cat >conftest.$ac_ext <<_ACEOF
58275 cat confdefs.h >>conftest.$ac_ext
58276 cat >>conftest.$ac_ext <<_ACEOF
58277 /* end confdefs.h. */
58278 $ac_includes_default
58279 #include <signal.h>
58285 char *p = (char *) strsignal;
58293 rm -f conftest.$ac_objext
58294 if { (ac_try="$ac_compile"
58295 case "(($ac_try" in
58296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58297 *) ac_try_echo=$ac_try;;
58299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58300 (eval "$ac_compile") 2>conftest.er1
58302 grep -v '^ *+' conftest.er1 >conftest.err
58304 cat conftest.err >&5
58305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58306 (exit $ac_status); } &&
58307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58308 { (case "(($ac_try" in
58309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58310 *) ac_try_echo=$ac_try;;
58312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58313 (eval "$ac_try") 2>&5
58315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58316 (exit $ac_status); }; } &&
58317 { ac_try='test -s conftest.$ac_objext'
58318 { (case "(($ac_try" in
58319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58320 *) ac_try_echo=$ac_try;;
58322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58323 (eval "$ac_try") 2>&5
58325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58326 (exit $ac_status); }; }; then
58327 ac_cv_have_decl_strsignal=yes
58329 echo "$as_me: failed program was:" >&5
58330 sed 's/^/| /' conftest.$ac_ext >&5
58332 ac_cv_have_decl_strsignal=no
58335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58337 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
58338 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
58339 if test $ac_cv_have_decl_strsignal = yes; then
58341 cat >>confdefs.h <<_ACEOF
58342 #define HAVE_DECL_STRSIGNAL 1
58347 cat >>confdefs.h <<_ACEOF
58348 #define HAVE_DECL_STRSIGNAL 0
58353 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
58354 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
58355 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
58356 echo $ECHO_N "(cached) $ECHO_C" >&6
58358 cat >conftest.$ac_ext <<_ACEOF
58361 cat confdefs.h >>conftest.$ac_ext
58362 cat >>conftest.$ac_ext <<_ACEOF
58363 /* end confdefs.h. */
58364 $ac_includes_default
58365 #include <signal.h>
58370 #ifndef sys_siglist
58371 char *p = (char *) sys_siglist;
58379 rm -f conftest.$ac_objext
58380 if { (ac_try="$ac_compile"
58381 case "(($ac_try" in
58382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58383 *) ac_try_echo=$ac_try;;
58385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58386 (eval "$ac_compile") 2>conftest.er1
58388 grep -v '^ *+' conftest.er1 >conftest.err
58390 cat conftest.err >&5
58391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58392 (exit $ac_status); } &&
58393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58394 { (case "(($ac_try" in
58395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58396 *) ac_try_echo=$ac_try;;
58398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58399 (eval "$ac_try") 2>&5
58401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58402 (exit $ac_status); }; } &&
58403 { ac_try='test -s conftest.$ac_objext'
58404 { (case "(($ac_try" in
58405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58406 *) ac_try_echo=$ac_try;;
58408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58409 (eval "$ac_try") 2>&5
58411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58412 (exit $ac_status); }; }; then
58413 ac_cv_have_decl_sys_siglist=yes
58415 echo "$as_me: failed program was:" >&5
58416 sed 's/^/| /' conftest.$ac_ext >&5
58418 ac_cv_have_decl_sys_siglist=no
58421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
58424 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
58425 if test $ac_cv_have_decl_sys_siglist = yes; then
58427 cat >>confdefs.h <<_ACEOF
58428 #define HAVE_DECL_SYS_SIGLIST 1
58433 cat >>confdefs.h <<_ACEOF
58434 #define HAVE_DECL_SYS_SIGLIST 0
58439 { echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
58440 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6; }
58441 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
58442 echo $ECHO_N "(cached) $ECHO_C" >&6
58444 cat >conftest.$ac_ext <<_ACEOF
58447 cat confdefs.h >>conftest.$ac_ext
58448 cat >>conftest.$ac_ext <<_ACEOF
58449 /* end confdefs.h. */
58450 $ac_includes_default
58451 #include <signal.h>
58456 #ifndef _sys_siglist
58457 char *p = (char *) _sys_siglist;
58465 rm -f conftest.$ac_objext
58466 if { (ac_try="$ac_compile"
58467 case "(($ac_try" in
58468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58469 *) ac_try_echo=$ac_try;;
58471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58472 (eval "$ac_compile") 2>conftest.er1
58474 grep -v '^ *+' conftest.er1 >conftest.err
58476 cat conftest.err >&5
58477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58478 (exit $ac_status); } &&
58479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58480 { (case "(($ac_try" in
58481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58482 *) ac_try_echo=$ac_try;;
58484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58485 (eval "$ac_try") 2>&5
58487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58488 (exit $ac_status); }; } &&
58489 { ac_try='test -s conftest.$ac_objext'
58490 { (case "(($ac_try" in
58491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58492 *) ac_try_echo=$ac_try;;
58494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58495 (eval "$ac_try") 2>&5
58497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58498 (exit $ac_status); }; }; then
58499 ac_cv_have_decl__sys_siglist=yes
58501 echo "$as_me: failed program was:" >&5
58502 sed 's/^/| /' conftest.$ac_ext >&5
58504 ac_cv_have_decl__sys_siglist=no
58507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58509 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
58510 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6; }
58511 if test $ac_cv_have_decl__sys_siglist = yes; then
58513 cat >>confdefs.h <<_ACEOF
58514 #define HAVE_DECL__SYS_SIGLIST 1
58519 cat >>confdefs.h <<_ACEOF
58520 #define HAVE_DECL__SYS_SIGLIST 0
58525 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
58526 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
58527 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
58528 echo $ECHO_N "(cached) $ECHO_C" >&6
58530 cat >conftest.$ac_ext <<_ACEOF
58533 cat confdefs.h >>conftest.$ac_ext
58534 cat >>conftest.$ac_ext <<_ACEOF
58535 /* end confdefs.h. */
58536 $ac_includes_default
58537 #include <signal.h>
58542 #ifndef __sys_siglist
58543 char *p = (char *) __sys_siglist;
58551 rm -f conftest.$ac_objext
58552 if { (ac_try="$ac_compile"
58553 case "(($ac_try" in
58554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58555 *) ac_try_echo=$ac_try;;
58557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58558 (eval "$ac_compile") 2>conftest.er1
58560 grep -v '^ *+' conftest.er1 >conftest.err
58562 cat conftest.err >&5
58563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58564 (exit $ac_status); } &&
58565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58566 { (case "(($ac_try" in
58567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58568 *) ac_try_echo=$ac_try;;
58570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58571 (eval "$ac_try") 2>&5
58573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58574 (exit $ac_status); }; } &&
58575 { ac_try='test -s conftest.$ac_objext'
58576 { (case "(($ac_try" in
58577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58578 *) ac_try_echo=$ac_try;;
58580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58581 (eval "$ac_try") 2>&5
58583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58584 (exit $ac_status); }; }; then
58585 ac_cv_have_decl___sys_siglist=yes
58587 echo "$as_me: failed program was:" >&5
58588 sed 's/^/| /' conftest.$ac_ext >&5
58590 ac_cv_have_decl___sys_siglist=no
58593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
58596 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
58597 if test $ac_cv_have_decl___sys_siglist = yes; then
58599 cat >>confdefs.h <<_ACEOF
58600 #define HAVE_DECL___SYS_SIGLIST 1
58605 cat >>confdefs.h <<_ACEOF
58606 #define HAVE_DECL___SYS_SIGLIST 0
58614 # For src/kill.c and src/printf.c.
58615 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
58616 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
58617 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
58618 echo $ECHO_N "(cached) $ECHO_C" >&6
58620 cat >conftest.$ac_ext <<_ACEOF
58623 cat confdefs.h >>conftest.$ac_ext
58624 cat >>conftest.$ac_ext <<_ACEOF
58625 /* end confdefs.h. */
58626 $ac_includes_default
58631 char *p = (char *) strtoimax;
58639 rm -f conftest.$ac_objext
58640 if { (ac_try="$ac_compile"
58641 case "(($ac_try" in
58642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58643 *) ac_try_echo=$ac_try;;
58645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58646 (eval "$ac_compile") 2>conftest.er1
58648 grep -v '^ *+' conftest.er1 >conftest.err
58650 cat conftest.err >&5
58651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58652 (exit $ac_status); } &&
58653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58654 { (case "(($ac_try" in
58655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58656 *) ac_try_echo=$ac_try;;
58658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58659 (eval "$ac_try") 2>&5
58661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58662 (exit $ac_status); }; } &&
58663 { ac_try='test -s conftest.$ac_objext'
58664 { (case "(($ac_try" in
58665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58666 *) ac_try_echo=$ac_try;;
58668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58669 (eval "$ac_try") 2>&5
58671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58672 (exit $ac_status); }; }; then
58673 ac_cv_have_decl_strtoimax=yes
58675 echo "$as_me: failed program was:" >&5
58676 sed 's/^/| /' conftest.$ac_ext >&5
58678 ac_cv_have_decl_strtoimax=no
58681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58683 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
58684 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
58685 if test $ac_cv_have_decl_strtoimax = yes; then
58687 cat >>confdefs.h <<_ACEOF
58688 #define HAVE_DECL_STRTOIMAX 1
58693 cat >>confdefs.h <<_ACEOF
58694 #define HAVE_DECL_STRTOIMAX 0
58699 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
58700 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
58701 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
58702 echo $ECHO_N "(cached) $ECHO_C" >&6
58704 cat >conftest.$ac_ext <<_ACEOF
58707 cat confdefs.h >>conftest.$ac_ext
58708 cat >>conftest.$ac_ext <<_ACEOF
58709 /* end confdefs.h. */
58710 $ac_includes_default
58715 char *p = (char *) strtoumax;
58723 rm -f conftest.$ac_objext
58724 if { (ac_try="$ac_compile"
58725 case "(($ac_try" in
58726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58727 *) ac_try_echo=$ac_try;;
58729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58730 (eval "$ac_compile") 2>conftest.er1
58732 grep -v '^ *+' conftest.er1 >conftest.err
58734 cat conftest.err >&5
58735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58736 (exit $ac_status); } &&
58737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58738 { (case "(($ac_try" in
58739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58740 *) ac_try_echo=$ac_try;;
58742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58743 (eval "$ac_try") 2>&5
58745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58746 (exit $ac_status); }; } &&
58747 { ac_try='test -s conftest.$ac_objext'
58748 { (case "(($ac_try" in
58749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58750 *) ac_try_echo=$ac_try;;
58752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58753 (eval "$ac_try") 2>&5
58755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58756 (exit $ac_status); }; }; then
58757 ac_cv_have_decl_strtoumax=yes
58759 echo "$as_me: failed program was:" >&5
58760 sed 's/^/| /' conftest.$ac_ext >&5
58762 ac_cv_have_decl_strtoumax=no
58765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
58768 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
58769 if test $ac_cv_have_decl_strtoumax = yes; then
58771 cat >>confdefs.h <<_ACEOF
58772 #define HAVE_DECL_STRTOUMAX 1
58777 cat >>confdefs.h <<_ACEOF
58778 #define HAVE_DECL_STRTOUMAX 0
58788 # Check for libypsec.a on Dolphin M88K machines.
58790 { echo "$as_me:$LINENO: checking for main in -lypsec" >&5
58791 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6; }
58792 if test "${ac_cv_lib_ypsec_main+set}" = set; then
58793 echo $ECHO_N "(cached) $ECHO_C" >&6
58795 ac_check_lib_save_LIBS=$LIBS
58796 LIBS="-lypsec $LIBS"
58797 cat >conftest.$ac_ext <<_ACEOF
58800 cat confdefs.h >>conftest.$ac_ext
58801 cat >>conftest.$ac_ext <<_ACEOF
58802 /* end confdefs.h. */
58813 rm -f conftest.$ac_objext conftest$ac_exeext
58814 if { (ac_try="$ac_link"
58815 case "(($ac_try" in
58816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58817 *) ac_try_echo=$ac_try;;
58819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58820 (eval "$ac_link") 2>conftest.er1
58822 grep -v '^ *+' conftest.er1 >conftest.err
58824 cat conftest.err >&5
58825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58826 (exit $ac_status); } &&
58827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58828 { (case "(($ac_try" in
58829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58830 *) ac_try_echo=$ac_try;;
58832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58833 (eval "$ac_try") 2>&5
58835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58836 (exit $ac_status); }; } &&
58837 { ac_try='test -s conftest$ac_exeext'
58838 { (case "(($ac_try" in
58839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58840 *) ac_try_echo=$ac_try;;
58842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58843 (eval "$ac_try") 2>&5
58845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58846 (exit $ac_status); }; }; then
58847 ac_cv_lib_ypsec_main=yes
58849 echo "$as_me: failed program was:" >&5
58850 sed 's/^/| /' conftest.$ac_ext >&5
58852 ac_cv_lib_ypsec_main=no
58855 rm -f core conftest.err conftest.$ac_objext \
58856 conftest$ac_exeext conftest.$ac_ext
58857 LIBS=$ac_check_lib_save_LIBS
58859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
58860 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6; }
58861 if test $ac_cv_lib_ypsec_main = yes; then
58862 cat >>confdefs.h <<_ACEOF
58863 #define HAVE_LIBYPSEC 1
58866 LIBS="-lypsec $LIBS"
58871 # m88k running dgux 5.4 needs this
58873 { echo "$as_me:$LINENO: checking for main in -lldgc" >&5
58874 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6; }
58875 if test "${ac_cv_lib_ldgc_main+set}" = set; then
58876 echo $ECHO_N "(cached) $ECHO_C" >&6
58878 ac_check_lib_save_LIBS=$LIBS
58879 LIBS="-lldgc $LIBS"
58880 cat >conftest.$ac_ext <<_ACEOF
58883 cat confdefs.h >>conftest.$ac_ext
58884 cat >>conftest.$ac_ext <<_ACEOF
58885 /* end confdefs.h. */
58896 rm -f conftest.$ac_objext conftest$ac_exeext
58897 if { (ac_try="$ac_link"
58898 case "(($ac_try" in
58899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58900 *) ac_try_echo=$ac_try;;
58902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58903 (eval "$ac_link") 2>conftest.er1
58905 grep -v '^ *+' conftest.er1 >conftest.err
58907 cat conftest.err >&5
58908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58909 (exit $ac_status); } &&
58910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58911 { (case "(($ac_try" in
58912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58913 *) ac_try_echo=$ac_try;;
58915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58916 (eval "$ac_try") 2>&5
58918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58919 (exit $ac_status); }; } &&
58920 { ac_try='test -s conftest$ac_exeext'
58921 { (case "(($ac_try" in
58922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58923 *) ac_try_echo=$ac_try;;
58925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58926 (eval "$ac_try") 2>&5
58928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58929 (exit $ac_status); }; }; then
58930 ac_cv_lib_ldgc_main=yes
58932 echo "$as_me: failed program was:" >&5
58933 sed 's/^/| /' conftest.$ac_ext >&5
58935 ac_cv_lib_ldgc_main=no
58938 rm -f core conftest.err conftest.$ac_objext \
58939 conftest$ac_exeext conftest.$ac_ext
58940 LIBS=$ac_check_lib_save_LIBS
58942 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
58943 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6; }
58944 if test $ac_cv_lib_ldgc_main = yes; then
58945 cat >>confdefs.h <<_ACEOF
58946 #define HAVE_LIBLDGC 1
58949 LIBS="-lldgc $LIBS"
58954 # The -lsun library is required for YP support on Irix-4.0.5 systems.
58955 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
58956 { echo "$as_me:$LINENO: checking for library containing yp_match" >&5
58957 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6; }
58958 if test "${ac_cv_search_yp_match+set}" = set; then
58959 echo $ECHO_N "(cached) $ECHO_C" >&6
58961 ac_func_search_save_LIBS=$LIBS
58962 cat >conftest.$ac_ext <<_ACEOF
58965 cat confdefs.h >>conftest.$ac_ext
58966 cat >>conftest.$ac_ext <<_ACEOF
58967 /* end confdefs.h. */
58969 /* Override any GCC internal prototype to avoid an error.
58970 Use char because int might match the return type of a GCC
58971 builtin and then its argument prototype would still apply. */
58979 return yp_match ();
58984 for ac_lib in '' sun ypsec; do
58985 if test -z "$ac_lib"; then
58986 ac_res="none required"
58989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58991 rm -f conftest.$ac_objext conftest$ac_exeext
58992 if { (ac_try="$ac_link"
58993 case "(($ac_try" in
58994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58995 *) ac_try_echo=$ac_try;;
58997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58998 (eval "$ac_link") 2>conftest.er1
59000 grep -v '^ *+' conftest.er1 >conftest.err
59002 cat conftest.err >&5
59003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59004 (exit $ac_status); } &&
59005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59006 { (case "(($ac_try" in
59007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59008 *) ac_try_echo=$ac_try;;
59010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59011 (eval "$ac_try") 2>&5
59013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59014 (exit $ac_status); }; } &&
59015 { ac_try='test -s conftest$ac_exeext'
59016 { (case "(($ac_try" in
59017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59018 *) ac_try_echo=$ac_try;;
59020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59021 (eval "$ac_try") 2>&5
59023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59024 (exit $ac_status); }; }; then
59025 ac_cv_search_yp_match=$ac_res
59027 echo "$as_me: failed program was:" >&5
59028 sed 's/^/| /' conftest.$ac_ext >&5
59033 rm -f core conftest.err conftest.$ac_objext \
59035 if test "${ac_cv_search_yp_match+set}" = set; then
59039 if test "${ac_cv_search_yp_match+set}" = set; then
59042 ac_cv_search_yp_match=no
59044 rm conftest.$ac_ext
59045 LIBS=$ac_func_search_save_LIBS
59047 { echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
59048 echo "${ECHO_T}$ac_cv_search_yp_match" >&6; }
59049 ac_res=$ac_cv_search_yp_match
59050 if test "$ac_res" != no; then
59051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59056 # SysV needs -lsec, older versions of Linux need -lshadow for
59057 # shadow passwords. UnixWare 7 needs -lgen.
59058 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
59059 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
59060 if test "${ac_cv_search_getspnam+set}" = set; then
59061 echo $ECHO_N "(cached) $ECHO_C" >&6
59063 ac_func_search_save_LIBS=$LIBS
59064 cat >conftest.$ac_ext <<_ACEOF
59067 cat confdefs.h >>conftest.$ac_ext
59068 cat >>conftest.$ac_ext <<_ACEOF
59069 /* end confdefs.h. */
59071 /* Override any GCC internal prototype to avoid an error.
59072 Use char because int might match the return type of a GCC
59073 builtin and then its argument prototype would still apply. */
59081 return getspnam ();
59086 for ac_lib in '' shadow sec gen; do
59087 if test -z "$ac_lib"; then
59088 ac_res="none required"
59091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
59093 rm -f conftest.$ac_objext conftest$ac_exeext
59094 if { (ac_try="$ac_link"
59095 case "(($ac_try" in
59096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59097 *) ac_try_echo=$ac_try;;
59099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59100 (eval "$ac_link") 2>conftest.er1
59102 grep -v '^ *+' conftest.er1 >conftest.err
59104 cat conftest.err >&5
59105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106 (exit $ac_status); } &&
59107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59108 { (case "(($ac_try" in
59109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59110 *) ac_try_echo=$ac_try;;
59112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59113 (eval "$ac_try") 2>&5
59115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59116 (exit $ac_status); }; } &&
59117 { ac_try='test -s conftest$ac_exeext'
59118 { (case "(($ac_try" in
59119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59120 *) ac_try_echo=$ac_try;;
59122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59123 (eval "$ac_try") 2>&5
59125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59126 (exit $ac_status); }; }; then
59127 ac_cv_search_getspnam=$ac_res
59129 echo "$as_me: failed program was:" >&5
59130 sed 's/^/| /' conftest.$ac_ext >&5
59135 rm -f core conftest.err conftest.$ac_objext \
59137 if test "${ac_cv_search_getspnam+set}" = set; then
59141 if test "${ac_cv_search_getspnam+set}" = set; then
59144 ac_cv_search_getspnam=no
59146 rm conftest.$ac_ext
59147 LIBS=$ac_func_search_save_LIBS
59149 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
59150 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
59151 ac_res=$ac_cv_search_getspnam
59152 if test "$ac_res" != no; then
59153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59159 for ac_header in shadow.h
59161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
59164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
59165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59166 echo $ECHO_N "(cached) $ECHO_C" >&6
59168 ac_res=`eval echo '${'$as_ac_Header'}'`
59169 { echo "$as_me:$LINENO: result: $ac_res" >&5
59170 echo "${ECHO_T}$ac_res" >&6; }
59172 # Is the header compilable?
59173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
59174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
59175 cat >conftest.$ac_ext <<_ACEOF
59178 cat confdefs.h >>conftest.$ac_ext
59179 cat >>conftest.$ac_ext <<_ACEOF
59180 /* end confdefs.h. */
59181 $ac_includes_default
59182 #include <$ac_header>
59184 rm -f conftest.$ac_objext
59185 if { (ac_try="$ac_compile"
59186 case "(($ac_try" in
59187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59188 *) ac_try_echo=$ac_try;;
59190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59191 (eval "$ac_compile") 2>conftest.er1
59193 grep -v '^ *+' conftest.er1 >conftest.err
59195 cat conftest.err >&5
59196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59197 (exit $ac_status); } &&
59198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59199 { (case "(($ac_try" in
59200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59201 *) ac_try_echo=$ac_try;;
59203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59204 (eval "$ac_try") 2>&5
59206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59207 (exit $ac_status); }; } &&
59208 { ac_try='test -s conftest.$ac_objext'
59209 { (case "(($ac_try" in
59210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59211 *) ac_try_echo=$ac_try;;
59213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59214 (eval "$ac_try") 2>&5
59216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59217 (exit $ac_status); }; }; then
59218 ac_header_compiler=yes
59220 echo "$as_me: failed program was:" >&5
59221 sed 's/^/| /' conftest.$ac_ext >&5
59223 ac_header_compiler=no
59226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59228 echo "${ECHO_T}$ac_header_compiler" >&6; }
59230 # Is the header present?
59231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
59232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
59233 cat >conftest.$ac_ext <<_ACEOF
59236 cat confdefs.h >>conftest.$ac_ext
59237 cat >>conftest.$ac_ext <<_ACEOF
59238 /* end confdefs.h. */
59239 #include <$ac_header>
59241 if { (ac_try="$ac_cpp conftest.$ac_ext"
59242 case "(($ac_try" in
59243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59244 *) ac_try_echo=$ac_try;;
59246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59249 grep -v '^ *+' conftest.er1 >conftest.err
59251 cat conftest.err >&5
59252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59253 (exit $ac_status); } >/dev/null; then
59254 if test -s conftest.err; then
59255 ac_cpp_err=$ac_c_preproc_warn_flag
59256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59263 if test -z "$ac_cpp_err"; then
59264 ac_header_preproc=yes
59266 echo "$as_me: failed program was:" >&5
59267 sed 's/^/| /' conftest.$ac_ext >&5
59269 ac_header_preproc=no
59272 rm -f conftest.err conftest.$ac_ext
59273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59274 echo "${ECHO_T}$ac_header_preproc" >&6; }
59276 # So? What about this header?
59277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59283 ac_header_preproc=yes
59286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59299 ## ------------------------------------ ##
59300 ## Report this to bug-coreutils@gnu.org ##
59301 ## ------------------------------------ ##
59303 ) | sed "s/^/$as_me: WARNING: /" >&2
59306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
59307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
59308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59309 echo $ECHO_N "(cached) $ECHO_C" >&6
59311 eval "$as_ac_Header=\$ac_header_preproc"
59313 ac_res=`eval echo '${'$as_ac_Header'}'`
59314 { echo "$as_me:$LINENO: result: $ac_res" >&5
59315 echo "${ECHO_T}$ac_res" >&6; }
59318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59319 cat >>confdefs.h <<_ACEOF
59320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59328 # Requirements for su.c.
59330 $ac_includes_default
59332 # include <shadow.h>
59335 { echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
59336 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6; }
59337 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
59338 echo $ECHO_N "(cached) $ECHO_C" >&6
59340 cat >conftest.$ac_ext <<_ACEOF
59343 cat confdefs.h >>conftest.$ac_ext
59344 cat >>conftest.$ac_ext <<_ACEOF
59345 /* end confdefs.h. */
59351 static struct spwd ac_aggr;
59352 if (ac_aggr.sp_pwdp)
59358 rm -f conftest.$ac_objext
59359 if { (ac_try="$ac_compile"
59360 case "(($ac_try" in
59361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59362 *) ac_try_echo=$ac_try;;
59364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59365 (eval "$ac_compile") 2>conftest.er1
59367 grep -v '^ *+' conftest.er1 >conftest.err
59369 cat conftest.err >&5
59370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59371 (exit $ac_status); } &&
59372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59373 { (case "(($ac_try" in
59374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59375 *) ac_try_echo=$ac_try;;
59377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59378 (eval "$ac_try") 2>&5
59380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59381 (exit $ac_status); }; } &&
59382 { ac_try='test -s conftest.$ac_objext'
59383 { (case "(($ac_try" in
59384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59385 *) ac_try_echo=$ac_try;;
59387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59388 (eval "$ac_try") 2>&5
59390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59391 (exit $ac_status); }; }; then
59392 ac_cv_member_struct_spwd_sp_pwdp=yes
59394 echo "$as_me: failed program was:" >&5
59395 sed 's/^/| /' conftest.$ac_ext >&5
59397 cat >conftest.$ac_ext <<_ACEOF
59400 cat confdefs.h >>conftest.$ac_ext
59401 cat >>conftest.$ac_ext <<_ACEOF
59402 /* end confdefs.h. */
59408 static struct spwd ac_aggr;
59409 if (sizeof ac_aggr.sp_pwdp)
59415 rm -f conftest.$ac_objext
59416 if { (ac_try="$ac_compile"
59417 case "(($ac_try" in
59418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59419 *) ac_try_echo=$ac_try;;
59421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59422 (eval "$ac_compile") 2>conftest.er1
59424 grep -v '^ *+' conftest.er1 >conftest.err
59426 cat conftest.err >&5
59427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59428 (exit $ac_status); } &&
59429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59430 { (case "(($ac_try" in
59431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59432 *) ac_try_echo=$ac_try;;
59434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59435 (eval "$ac_try") 2>&5
59437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59438 (exit $ac_status); }; } &&
59439 { ac_try='test -s conftest.$ac_objext'
59440 { (case "(($ac_try" in
59441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59442 *) ac_try_echo=$ac_try;;
59444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59445 (eval "$ac_try") 2>&5
59447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59448 (exit $ac_status); }; }; then
59449 ac_cv_member_struct_spwd_sp_pwdp=yes
59451 echo "$as_me: failed program was:" >&5
59452 sed 's/^/| /' conftest.$ac_ext >&5
59454 ac_cv_member_struct_spwd_sp_pwdp=no
59457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
59463 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
59464 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
59466 cat >>confdefs.h <<_ACEOF
59467 #define HAVE_STRUCT_SPWD_SP_PWDP 1
59474 for ac_func in getspnam
59476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59480 echo $ECHO_N "(cached) $ECHO_C" >&6
59482 cat >conftest.$ac_ext <<_ACEOF
59485 cat confdefs.h >>conftest.$ac_ext
59486 cat >>conftest.$ac_ext <<_ACEOF
59487 /* end confdefs.h. */
59488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59490 #define $ac_func innocuous_$ac_func
59492 /* System header to define __stub macros and hopefully few prototypes,
59493 which can conflict with char $ac_func (); below.
59494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59495 <limits.h> exists even on freestanding compilers. */
59498 # include <limits.h>
59500 # include <assert.h>
59505 /* Override any GCC internal prototype to avoid an error.
59506 Use char because int might match the return type of a GCC
59507 builtin and then its argument prototype would still apply. */
59512 /* The GNU C library defines this for functions which it implements
59513 to always fail with ENOSYS. Some functions are actually named
59514 something starting with __ and the normal name is an alias. */
59515 #if defined __stub_$ac_func || defined __stub___$ac_func
59522 return $ac_func ();
59527 rm -f conftest.$ac_objext conftest$ac_exeext
59528 if { (ac_try="$ac_link"
59529 case "(($ac_try" in
59530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59531 *) ac_try_echo=$ac_try;;
59533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59534 (eval "$ac_link") 2>conftest.er1
59536 grep -v '^ *+' conftest.er1 >conftest.err
59538 cat conftest.err >&5
59539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59540 (exit $ac_status); } &&
59541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59542 { (case "(($ac_try" in
59543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59544 *) ac_try_echo=$ac_try;;
59546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59547 (eval "$ac_try") 2>&5
59549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59550 (exit $ac_status); }; } &&
59551 { ac_try='test -s conftest$ac_exeext'
59552 { (case "(($ac_try" in
59553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59554 *) ac_try_echo=$ac_try;;
59556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59557 (eval "$ac_try") 2>&5
59559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59560 (exit $ac_status); }; }; then
59561 eval "$as_ac_var=yes"
59563 echo "$as_me: failed program was:" >&5
59564 sed 's/^/| /' conftest.$ac_ext >&5
59566 eval "$as_ac_var=no"
59569 rm -f core conftest.err conftest.$ac_objext \
59570 conftest$ac_exeext conftest.$ac_ext
59572 ac_res=`eval echo '${'$as_ac_var'}'`
59573 { echo "$as_me:$LINENO: result: $ac_res" >&5
59574 echo "${ECHO_T}$ac_res" >&6; }
59575 if test `eval echo '${'$as_ac_var'}'` = yes; then
59576 cat >>confdefs.h <<_ACEOF
59577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59584 # SCO-ODT-3.0 is reported to need -lufc for crypt.
59585 # NetBSD needs -lcrypt for crypt.
59586 cu_saved_libs="$LIBS"
59587 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
59588 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
59589 if test "${ac_cv_search_crypt+set}" = set; then
59590 echo $ECHO_N "(cached) $ECHO_C" >&6
59592 ac_func_search_save_LIBS=$LIBS
59593 cat >conftest.$ac_ext <<_ACEOF
59596 cat confdefs.h >>conftest.$ac_ext
59597 cat >>conftest.$ac_ext <<_ACEOF
59598 /* end confdefs.h. */
59600 /* Override any GCC internal prototype to avoid an error.
59601 Use char because int might match the return type of a GCC
59602 builtin and then its argument prototype would still apply. */
59615 for ac_lib in '' ufc crypt; do
59616 if test -z "$ac_lib"; then
59617 ac_res="none required"
59620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
59622 rm -f conftest.$ac_objext conftest$ac_exeext
59623 if { (ac_try="$ac_link"
59624 case "(($ac_try" in
59625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59626 *) ac_try_echo=$ac_try;;
59628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59629 (eval "$ac_link") 2>conftest.er1
59631 grep -v '^ *+' conftest.er1 >conftest.err
59633 cat conftest.err >&5
59634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59635 (exit $ac_status); } &&
59636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59637 { (case "(($ac_try" in
59638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59639 *) ac_try_echo=$ac_try;;
59641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59642 (eval "$ac_try") 2>&5
59644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59645 (exit $ac_status); }; } &&
59646 { ac_try='test -s conftest$ac_exeext'
59647 { (case "(($ac_try" in
59648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59649 *) ac_try_echo=$ac_try;;
59651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59652 (eval "$ac_try") 2>&5
59654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59655 (exit $ac_status); }; }; then
59656 ac_cv_search_crypt=$ac_res
59658 echo "$as_me: failed program was:" >&5
59659 sed 's/^/| /' conftest.$ac_ext >&5
59664 rm -f core conftest.err conftest.$ac_objext \
59666 if test "${ac_cv_search_crypt+set}" = set; then
59670 if test "${ac_cv_search_crypt+set}" = set; then
59673 ac_cv_search_crypt=no
59675 rm conftest.$ac_ext
59676 LIBS=$ac_func_search_save_LIBS
59678 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
59679 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
59680 ac_res=$ac_cv_search_crypt
59681 if test "$ac_res" != no; then
59682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59683 test "$ac_cv_search_crypt" = "none required" ||
59684 LIB_CRYPT="$ac_cv_search_crypt"
59687 LIBS="$cu_saved_libs"
59694 if test -n "$ac_aux_dir"; then
59695 case "$ac_aux_dir" in
59696 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
59697 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
59700 if test -z "$MKINSTALLDIRS"; then
59701 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
59706 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59707 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
59708 # Check whether --enable-nls was given.
59709 if test "${enable_nls+set}" = set; then
59710 enableval=$enable_nls; USE_NLS=$enableval
59715 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
59716 echo "${ECHO_T}$USE_NLS" >&6; }
59723 # Prepare PATH_SEPARATOR.
59724 # The user is always right.
59725 if test "${PATH_SEPARATOR+set}" != set; then
59726 echo "#! /bin/sh" >conf$$.sh
59727 echo "exit 0" >>conf$$.sh
59729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59737 # Find out how to test for executable files. Don't use a zero-byte file,
59738 # as systems may use methods other than mode bits to determine executability.
59739 cat >conf$$.file <<_ASEOF
59743 chmod +x conf$$.file
59744 if test -x conf$$.file >/dev/null 2>&1; then
59745 ac_executable_p="test -x"
59747 ac_executable_p="test -f"
59751 # Extract the first word of "msgfmt", so it can be a program name with args.
59752 set dummy msgfmt; ac_word=$2
59753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59755 if test "${ac_cv_path_MSGFMT+set}" = set; then
59756 echo $ECHO_N "(cached) $ECHO_C" >&6
59760 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
59763 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59764 for ac_dir in $PATH; do
59766 test -z "$ac_dir" && ac_dir=.
59767 for ac_exec_ext in '' $ac_executable_extensions; do
59768 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59769 echo "$as_me: trying $ac_dir/$ac_word..." >&5
59770 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
59771 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59772 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
59779 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
59783 MSGFMT="$ac_cv_path_MSGFMT"
59784 if test "$MSGFMT" != ":"; then
59785 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
59786 echo "${ECHO_T}$MSGFMT" >&6; }
59788 { echo "$as_me:$LINENO: result: no" >&5
59789 echo "${ECHO_T}no" >&6; }
59792 # Extract the first word of "gmsgfmt", so it can be a program name with args.
59793 set dummy gmsgfmt; ac_word=$2
59794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59796 if test "${ac_cv_path_GMSGFMT+set}" = set; then
59797 echo $ECHO_N "(cached) $ECHO_C" >&6
59801 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
59804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59805 for as_dir in $PATH
59808 test -z "$as_dir" && as_dir=.
59809 for ac_exec_ext in '' $ac_executable_extensions; do
59810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
59811 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
59812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59819 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
59823 GMSGFMT=$ac_cv_path_GMSGFMT
59824 if test -n "$GMSGFMT"; then
59825 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
59826 echo "${ECHO_T}$GMSGFMT" >&6; }
59828 { echo "$as_me:$LINENO: result: no" >&5
59829 echo "${ECHO_T}no" >&6; }
59835 # Prepare PATH_SEPARATOR.
59836 # The user is always right.
59837 if test "${PATH_SEPARATOR+set}" != set; then
59838 echo "#! /bin/sh" >conf$$.sh
59839 echo "exit 0" >>conf$$.sh
59841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59849 # Find out how to test for executable files. Don't use a zero-byte file,
59850 # as systems may use methods other than mode bits to determine executability.
59851 cat >conf$$.file <<_ASEOF
59855 chmod +x conf$$.file
59856 if test -x conf$$.file >/dev/null 2>&1; then
59857 ac_executable_p="test -x"
59859 ac_executable_p="test -f"
59863 # Extract the first word of "xgettext", so it can be a program name with args.
59864 set dummy xgettext; ac_word=$2
59865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59867 if test "${ac_cv_path_XGETTEXT+set}" = set; then
59868 echo $ECHO_N "(cached) $ECHO_C" >&6
59870 case "$XGETTEXT" in
59872 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
59875 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59876 for ac_dir in $PATH; do
59878 test -z "$ac_dir" && ac_dir=.
59879 for ac_exec_ext in '' $ac_executable_extensions; do
59880 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59881 echo "$as_me: trying $ac_dir/$ac_word..." >&5
59882 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
59883 (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
59884 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
59891 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
59895 XGETTEXT="$ac_cv_path_XGETTEXT"
59896 if test "$XGETTEXT" != ":"; then
59897 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
59898 echo "${ECHO_T}$XGETTEXT" >&6; }
59900 { echo "$as_me:$LINENO: result: no" >&5
59901 echo "${ECHO_T}no" >&6; }
59907 # Prepare PATH_SEPARATOR.
59908 # The user is always right.
59909 if test "${PATH_SEPARATOR+set}" != set; then
59910 echo "#! /bin/sh" >conf$$.sh
59911 echo "exit 0" >>conf$$.sh
59913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59921 # Find out how to test for executable files. Don't use a zero-byte file,
59922 # as systems may use methods other than mode bits to determine executability.
59923 cat >conf$$.file <<_ASEOF
59927 chmod +x conf$$.file
59928 if test -x conf$$.file >/dev/null 2>&1; then
59929 ac_executable_p="test -x"
59931 ac_executable_p="test -f"
59935 # Extract the first word of "msgmerge", so it can be a program name with args.
59936 set dummy msgmerge; ac_word=$2
59937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
59938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59939 if test "${ac_cv_path_MSGMERGE+set}" = set; then
59940 echo $ECHO_N "(cached) $ECHO_C" >&6
59942 case "$MSGMERGE" in
59944 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
59947 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59948 for ac_dir in $PATH; do
59950 test -z "$ac_dir" && ac_dir=.
59951 for ac_exec_ext in '' $ac_executable_extensions; do
59952 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59953 echo "$as_me: trying $ac_dir/$ac_word..." >&5
59954 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
59955 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
59962 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
59966 MSGMERGE="$ac_cv_path_MSGMERGE"
59967 if test "$MSGMERGE" != ":"; then
59968 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
59969 echo "${ECHO_T}$MSGMERGE" >&6; }
59971 { echo "$as_me:$LINENO: result: no" >&5
59972 echo "${ECHO_T}no" >&6; }
59976 if test "$GMSGFMT" != ":"; then
59977 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
59978 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59981 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
59982 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
59983 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
59988 if test "$XGETTEXT" != ":"; then
59989 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59990 (if $XGETTEXT --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
59993 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
59994 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
60000 ac_config_commands="$ac_config_commands default-1"
60019 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
60020 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
60021 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
60022 echo $ECHO_N "(cached) $ECHO_C" >&6
60024 gt_save_CPPFLAGS="$CPPFLAGS"
60025 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
60026 gt_save_LIBS="$LIBS"
60027 LIBS="$LIBS -framework CoreFoundation"
60028 cat >conftest.$ac_ext <<_ACEOF
60031 cat confdefs.h >>conftest.$ac_ext
60032 cat >>conftest.$ac_ext <<_ACEOF
60033 /* end confdefs.h. */
60034 #include <CFPreferences.h>
60038 CFPreferencesCopyAppValue(NULL, NULL)
60043 rm -f conftest.$ac_objext conftest$ac_exeext
60044 if { (ac_try="$ac_link"
60045 case "(($ac_try" in
60046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60047 *) ac_try_echo=$ac_try;;
60049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60050 (eval "$ac_link") 2>conftest.er1
60052 grep -v '^ *+' conftest.er1 >conftest.err
60054 cat conftest.err >&5
60055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60056 (exit $ac_status); } &&
60057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60058 { (case "(($ac_try" in
60059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60060 *) ac_try_echo=$ac_try;;
60062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60063 (eval "$ac_try") 2>&5
60065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60066 (exit $ac_status); }; } &&
60067 { ac_try='test -s conftest$ac_exeext'
60068 { (case "(($ac_try" in
60069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60070 *) ac_try_echo=$ac_try;;
60072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60073 (eval "$ac_try") 2>&5
60075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60076 (exit $ac_status); }; }; then
60077 gt_cv_func_CFPreferencesCopyAppValue=yes
60079 echo "$as_me: failed program was:" >&5
60080 sed 's/^/| /' conftest.$ac_ext >&5
60082 gt_cv_func_CFPreferencesCopyAppValue=no
60085 rm -f core conftest.err conftest.$ac_objext \
60086 conftest$ac_exeext conftest.$ac_ext
60087 CPPFLAGS="$gt_save_CPPFLAGS"
60088 LIBS="$gt_save_LIBS"
60090 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
60091 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
60092 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
60094 cat >>confdefs.h <<\_ACEOF
60095 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
60099 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
60100 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
60101 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
60102 echo $ECHO_N "(cached) $ECHO_C" >&6
60104 gt_save_CPPFLAGS="$CPPFLAGS"
60105 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
60106 gt_save_LIBS="$LIBS"
60107 LIBS="$LIBS -framework CoreFoundation"
60108 cat >conftest.$ac_ext <<_ACEOF
60111 cat confdefs.h >>conftest.$ac_ext
60112 cat >>conftest.$ac_ext <<_ACEOF
60113 /* end confdefs.h. */
60114 #include <CFLocale.h>
60118 CFLocaleCopyCurrent();
60123 rm -f conftest.$ac_objext conftest$ac_exeext
60124 if { (ac_try="$ac_link"
60125 case "(($ac_try" in
60126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60127 *) ac_try_echo=$ac_try;;
60129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60130 (eval "$ac_link") 2>conftest.er1
60132 grep -v '^ *+' conftest.er1 >conftest.err
60134 cat conftest.err >&5
60135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60136 (exit $ac_status); } &&
60137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60138 { (case "(($ac_try" in
60139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60140 *) ac_try_echo=$ac_try;;
60142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60143 (eval "$ac_try") 2>&5
60145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60146 (exit $ac_status); }; } &&
60147 { ac_try='test -s conftest$ac_exeext'
60148 { (case "(($ac_try" in
60149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60150 *) ac_try_echo=$ac_try;;
60152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60153 (eval "$ac_try") 2>&5
60155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60156 (exit $ac_status); }; }; then
60157 gt_cv_func_CFLocaleCopyCurrent=yes
60159 echo "$as_me: failed program was:" >&5
60160 sed 's/^/| /' conftest.$ac_ext >&5
60162 gt_cv_func_CFLocaleCopyCurrent=no
60165 rm -f core conftest.err conftest.$ac_objext \
60166 conftest$ac_exeext conftest.$ac_ext
60167 CPPFLAGS="$gt_save_CPPFLAGS"
60168 LIBS="$gt_save_LIBS"
60170 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
60171 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
60172 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
60174 cat >>confdefs.h <<\_ACEOF
60175 #define HAVE_CFLOCALECOPYCURRENT 1
60180 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
60181 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
60187 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
60188 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
60189 # Check whether --enable-nls was given.
60190 if test "${enable_nls+set}" = set; then
60191 enableval=$enable_nls; USE_NLS=$enableval
60196 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
60197 echo "${ECHO_T}$USE_NLS" >&6; }
60206 if test "$USE_NLS" = "yes"; then
60207 gt_use_preinstalled_gnugettext=no
60214 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
60215 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
60216 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
60217 echo $ECHO_N "(cached) $ECHO_C" >&6
60219 cat >conftest.$ac_ext <<_ACEOF
60222 cat confdefs.h >>conftest.$ac_ext
60223 cat >>conftest.$ac_ext <<_ACEOF
60224 /* end confdefs.h. */
60225 #include <libintl.h>
60226 extern int _nl_msg_cat_cntr;
60227 extern int *_nl_domain_bindings;
60231 bindtextdomain ("", "");
60232 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
60237 rm -f conftest.$ac_objext conftest$ac_exeext
60238 if { (ac_try="$ac_link"
60239 case "(($ac_try" in
60240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60241 *) ac_try_echo=$ac_try;;
60243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60244 (eval "$ac_link") 2>conftest.er1
60246 grep -v '^ *+' conftest.er1 >conftest.err
60248 cat conftest.err >&5
60249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60250 (exit $ac_status); } &&
60251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60252 { (case "(($ac_try" in
60253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60254 *) ac_try_echo=$ac_try;;
60256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60257 (eval "$ac_try") 2>&5
60259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60260 (exit $ac_status); }; } &&
60261 { ac_try='test -s conftest$ac_exeext'
60262 { (case "(($ac_try" in
60263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60264 *) ac_try_echo=$ac_try;;
60266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60267 (eval "$ac_try") 2>&5
60269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60270 (exit $ac_status); }; }; then
60271 gt_cv_func_gnugettext2_libc=yes
60273 echo "$as_me: failed program was:" >&5
60274 sed 's/^/| /' conftest.$ac_ext >&5
60276 gt_cv_func_gnugettext2_libc=no
60279 rm -f core conftest.err conftest.$ac_objext \
60280 conftest$ac_exeext conftest.$ac_ext
60282 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
60283 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
60285 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
60291 am_save_CPPFLAGS="$CPPFLAGS"
60293 for element in $INCICONV; do
60295 for x in $CPPFLAGS; do
60297 acl_save_prefix="$prefix"
60298 prefix="$acl_final_prefix"
60299 acl_save_exec_prefix="$exec_prefix"
60300 exec_prefix="$acl_final_exec_prefix"
60302 exec_prefix="$acl_save_exec_prefix"
60303 prefix="$acl_save_prefix"
60305 if test "X$x" = "X$element"; then
60310 if test -z "$haveit"; then
60311 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
60316 { echo "$as_me:$LINENO: checking for iconv" >&5
60317 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
60318 if test "${am_cv_func_iconv+set}" = set; then
60319 echo $ECHO_N "(cached) $ECHO_C" >&6
60322 am_cv_func_iconv="no, consider installing GNU libiconv"
60324 cat >conftest.$ac_ext <<_ACEOF
60327 cat confdefs.h >>conftest.$ac_ext
60328 cat >>conftest.$ac_ext <<_ACEOF
60329 /* end confdefs.h. */
60330 #include <stdlib.h>
60335 iconv_t cd = iconv_open("","");
60336 iconv(cd,NULL,NULL,NULL,NULL);
60342 rm -f conftest.$ac_objext conftest$ac_exeext
60343 if { (ac_try="$ac_link"
60344 case "(($ac_try" in
60345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60346 *) ac_try_echo=$ac_try;;
60348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60349 (eval "$ac_link") 2>conftest.er1
60351 grep -v '^ *+' conftest.er1 >conftest.err
60353 cat conftest.err >&5
60354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60355 (exit $ac_status); } &&
60356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60357 { (case "(($ac_try" in
60358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60359 *) ac_try_echo=$ac_try;;
60361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60362 (eval "$ac_try") 2>&5
60364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60365 (exit $ac_status); }; } &&
60366 { ac_try='test -s conftest$ac_exeext'
60367 { (case "(($ac_try" in
60368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60369 *) ac_try_echo=$ac_try;;
60371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60372 (eval "$ac_try") 2>&5
60374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60375 (exit $ac_status); }; }; then
60376 am_cv_func_iconv=yes
60378 echo "$as_me: failed program was:" >&5
60379 sed 's/^/| /' conftest.$ac_ext >&5
60384 rm -f core conftest.err conftest.$ac_objext \
60385 conftest$ac_exeext conftest.$ac_ext
60386 if test "$am_cv_func_iconv" != yes; then
60387 am_save_LIBS="$LIBS"
60388 LIBS="$LIBS $LIBICONV"
60389 cat >conftest.$ac_ext <<_ACEOF
60392 cat confdefs.h >>conftest.$ac_ext
60393 cat >>conftest.$ac_ext <<_ACEOF
60394 /* end confdefs.h. */
60395 #include <stdlib.h>
60400 iconv_t cd = iconv_open("","");
60401 iconv(cd,NULL,NULL,NULL,NULL);
60407 rm -f conftest.$ac_objext conftest$ac_exeext
60408 if { (ac_try="$ac_link"
60409 case "(($ac_try" in
60410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60411 *) ac_try_echo=$ac_try;;
60413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60414 (eval "$ac_link") 2>conftest.er1
60416 grep -v '^ *+' conftest.er1 >conftest.err
60418 cat conftest.err >&5
60419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60420 (exit $ac_status); } &&
60421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60422 { (case "(($ac_try" in
60423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60424 *) ac_try_echo=$ac_try;;
60426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60427 (eval "$ac_try") 2>&5
60429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60430 (exit $ac_status); }; } &&
60431 { ac_try='test -s conftest$ac_exeext'
60432 { (case "(($ac_try" in
60433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60434 *) ac_try_echo=$ac_try;;
60436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60437 (eval "$ac_try") 2>&5
60439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60440 (exit $ac_status); }; }; then
60441 am_cv_lib_iconv=yes
60442 am_cv_func_iconv=yes
60444 echo "$as_me: failed program was:" >&5
60445 sed 's/^/| /' conftest.$ac_ext >&5
60450 rm -f core conftest.err conftest.$ac_objext \
60451 conftest$ac_exeext conftest.$ac_ext
60452 LIBS="$am_save_LIBS"
60456 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
60457 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
60458 if test "$am_cv_func_iconv" = yes; then
60460 cat >>confdefs.h <<\_ACEOF
60461 #define HAVE_ICONV 1
60465 if test "$am_cv_lib_iconv" = yes; then
60466 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
60467 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
60468 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
60469 echo "${ECHO_T}$LIBICONV" >&6; }
60471 CPPFLAGS="$am_save_CPPFLAGS"
60484 acl_save_prefix="$prefix"
60485 prefix="$acl_final_prefix"
60486 acl_save_exec_prefix="$exec_prefix"
60487 exec_prefix="$acl_final_exec_prefix"
60489 eval additional_includedir=\"$includedir\"
60490 eval additional_libdir=\"$libdir\"
60492 exec_prefix="$acl_save_exec_prefix"
60493 prefix="$acl_save_prefix"
60496 # Check whether --with-libintl-prefix was given.
60497 if test "${with_libintl_prefix+set}" = set; then
60498 withval=$with_libintl_prefix;
60499 if test "X$withval" = "Xno"; then
60502 if test "X$withval" = "X"; then
60504 acl_save_prefix="$prefix"
60505 prefix="$acl_final_prefix"
60506 acl_save_exec_prefix="$exec_prefix"
60507 exec_prefix="$acl_final_exec_prefix"
60509 eval additional_includedir=\"$includedir\"
60510 eval additional_libdir=\"$libdir\"
60512 exec_prefix="$acl_save_exec_prefix"
60513 prefix="$acl_save_prefix"
60516 additional_includedir="$withval/include"
60517 additional_libdir="$withval/$acl_libdirstem"
60528 names_already_handled=
60529 names_next_round='intl '
60530 while test -n "$names_next_round"; do
60531 names_this_round="$names_next_round"
60533 for name in $names_this_round; do
60535 for n in $names_already_handled; do
60536 if test "$n" = "$name"; then
60537 already_handled=yes
60541 if test -z "$already_handled"; then
60542 names_already_handled="$names_already_handled $name"
60543 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
60544 eval value=\"\$HAVE_LIB$uppername\"
60545 if test -n "$value"; then
60546 if test "$value" = yes; then
60547 eval value=\"\$LIB$uppername\"
60548 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
60549 eval value=\"\$LTLIB$uppername\"
60550 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
60559 if test $use_additional = yes; then
60560 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
60561 found_dir="$additional_libdir"
60562 found_so="$additional_libdir/lib$name.$shlibext"
60563 if test -f "$additional_libdir/lib$name.la"; then
60564 found_la="$additional_libdir/lib$name.la"
60567 if test -f "$additional_libdir/lib$name.$libext"; then
60568 found_dir="$additional_libdir"
60569 found_a="$additional_libdir/lib$name.$libext"
60570 if test -f "$additional_libdir/lib$name.la"; then
60571 found_la="$additional_libdir/lib$name.la"
60576 if test "X$found_dir" = "X"; then
60577 for x in $LDFLAGS $LTLIBINTL; do
60579 acl_save_prefix="$prefix"
60580 prefix="$acl_final_prefix"
60581 acl_save_exec_prefix="$exec_prefix"
60582 exec_prefix="$acl_final_exec_prefix"
60584 exec_prefix="$acl_save_exec_prefix"
60585 prefix="$acl_save_prefix"
60589 dir=`echo "X$x" | sed -e 's/^X-L//'`
60590 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
60592 found_so="$dir/lib$name.$shlibext"
60593 if test -f "$dir/lib$name.la"; then
60594 found_la="$dir/lib$name.la"
60597 if test -f "$dir/lib$name.$libext"; then
60599 found_a="$dir/lib$name.$libext"
60600 if test -f "$dir/lib$name.la"; then
60601 found_la="$dir/lib$name.la"
60607 if test "X$found_dir" != "X"; then
60612 if test "X$found_dir" != "X"; then
60613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
60614 if test "X$found_so" != "X"; then
60615 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
60616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60619 for x in $ltrpathdirs; do
60620 if test "X$x" = "X$found_dir"; then
60625 if test -z "$haveit"; then
60626 ltrpathdirs="$ltrpathdirs $found_dir"
60628 if test "$hardcode_direct" = yes; then
60629 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60631 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
60632 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60634 for x in $rpathdirs; do
60635 if test "X$x" = "X$found_dir"; then
60640 if test -z "$haveit"; then
60641 rpathdirs="$rpathdirs $found_dir"
60645 for x in $LDFLAGS $LIBINTL; do
60647 acl_save_prefix="$prefix"
60648 prefix="$acl_final_prefix"
60649 acl_save_exec_prefix="$exec_prefix"
60650 exec_prefix="$acl_final_exec_prefix"
60652 exec_prefix="$acl_save_exec_prefix"
60653 prefix="$acl_save_prefix"
60655 if test "X$x" = "X-L$found_dir"; then
60660 if test -z "$haveit"; then
60661 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
60663 if test "$hardcode_minus_L" != no; then
60664 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60666 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60672 if test "X$found_a" != "X"; then
60673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
60675 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
60678 additional_includedir=
60679 case "$found_dir" in
60680 */$acl_libdirstem | */$acl_libdirstem/)
60681 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
60682 additional_includedir="$basedir/include"
60685 if test "X$additional_includedir" != "X"; then
60686 if test "X$additional_includedir" != "X/usr/include"; then
60688 if test "X$additional_includedir" = "X/usr/local/include"; then
60689 if test -n "$GCC"; then
60691 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60695 if test -z "$haveit"; then
60696 for x in $CPPFLAGS $INCINTL; do
60698 acl_save_prefix="$prefix"
60699 prefix="$acl_final_prefix"
60700 acl_save_exec_prefix="$exec_prefix"
60701 exec_prefix="$acl_final_exec_prefix"
60703 exec_prefix="$acl_save_exec_prefix"
60704 prefix="$acl_save_prefix"
60706 if test "X$x" = "X-I$additional_includedir"; then
60711 if test -z "$haveit"; then
60712 if test -d "$additional_includedir"; then
60713 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
60719 if test -n "$found_la"; then
60720 save_libdir="$libdir"
60721 case "$found_la" in
60722 */* | *\\*) . "$found_la" ;;
60723 *) . "./$found_la" ;;
60725 libdir="$save_libdir"
60726 for dep in $dependency_libs; do
60729 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
60730 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
60732 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
60733 if test -n "$GCC"; then
60735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60739 if test -z "$haveit"; then
60741 for x in $LDFLAGS $LIBINTL; do
60743 acl_save_prefix="$prefix"
60744 prefix="$acl_final_prefix"
60745 acl_save_exec_prefix="$exec_prefix"
60746 exec_prefix="$acl_final_exec_prefix"
60748 exec_prefix="$acl_save_exec_prefix"
60749 prefix="$acl_save_prefix"
60751 if test "X$x" = "X-L$additional_libdir"; then
60756 if test -z "$haveit"; then
60757 if test -d "$additional_libdir"; then
60758 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
60762 for x in $LDFLAGS $LTLIBINTL; do
60764 acl_save_prefix="$prefix"
60765 prefix="$acl_final_prefix"
60766 acl_save_exec_prefix="$exec_prefix"
60767 exec_prefix="$acl_final_exec_prefix"
60769 exec_prefix="$acl_save_exec_prefix"
60770 prefix="$acl_save_prefix"
60772 if test "X$x" = "X-L$additional_libdir"; then
60777 if test -z "$haveit"; then
60778 if test -d "$additional_libdir"; then
60779 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
60786 dir=`echo "X$dep" | sed -e 's/^X-R//'`
60787 if test "$enable_rpath" != no; then
60789 for x in $rpathdirs; do
60790 if test "X$x" = "X$dir"; then
60795 if test -z "$haveit"; then
60796 rpathdirs="$rpathdirs $dir"
60799 for x in $ltrpathdirs; do
60800 if test "X$x" = "X$dir"; then
60805 if test -z "$haveit"; then
60806 ltrpathdirs="$ltrpathdirs $dir"
60811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
60814 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
60817 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
60818 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
60824 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
60831 if test "X$rpathdirs" != "X"; then
60832 if test -n "$hardcode_libdir_separator"; then
60834 for found_dir in $rpathdirs; do
60835 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
60837 acl_save_libdir="$libdir"
60839 eval flag=\"$hardcode_libdir_flag_spec\"
60840 libdir="$acl_save_libdir"
60841 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60843 for found_dir in $rpathdirs; do
60844 acl_save_libdir="$libdir"
60845 libdir="$found_dir"
60846 eval flag=\"$hardcode_libdir_flag_spec\"
60847 libdir="$acl_save_libdir"
60848 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60852 if test "X$ltrpathdirs" != "X"; then
60853 for found_dir in $ltrpathdirs; do
60854 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
60858 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
60859 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
60860 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
60861 echo $ECHO_N "(cached) $ECHO_C" >&6
60863 gt_save_CPPFLAGS="$CPPFLAGS"
60864 CPPFLAGS="$CPPFLAGS $INCINTL"
60865 gt_save_LIBS="$LIBS"
60866 LIBS="$LIBS $LIBINTL"
60867 cat >conftest.$ac_ext <<_ACEOF
60870 cat confdefs.h >>conftest.$ac_ext
60871 cat >>conftest.$ac_ext <<_ACEOF
60872 /* end confdefs.h. */
60873 #include <libintl.h>
60874 extern int _nl_msg_cat_cntr;
60879 const char *_nl_expand_alias (const char *);
60883 bindtextdomain ("", "");
60884 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
60889 rm -f conftest.$ac_objext conftest$ac_exeext
60890 if { (ac_try="$ac_link"
60891 case "(($ac_try" in
60892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60893 *) ac_try_echo=$ac_try;;
60895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60896 (eval "$ac_link") 2>conftest.er1
60898 grep -v '^ *+' conftest.er1 >conftest.err
60900 cat conftest.err >&5
60901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60902 (exit $ac_status); } &&
60903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60904 { (case "(($ac_try" in
60905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60906 *) ac_try_echo=$ac_try;;
60908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60909 (eval "$ac_try") 2>&5
60911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60912 (exit $ac_status); }; } &&
60913 { ac_try='test -s conftest$ac_exeext'
60914 { (case "(($ac_try" in
60915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60916 *) ac_try_echo=$ac_try;;
60918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60919 (eval "$ac_try") 2>&5
60921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60922 (exit $ac_status); }; }; then
60923 gt_cv_func_gnugettext2_libintl=yes
60925 echo "$as_me: failed program was:" >&5
60926 sed 's/^/| /' conftest.$ac_ext >&5
60928 gt_cv_func_gnugettext2_libintl=no
60931 rm -f core conftest.err conftest.$ac_objext \
60932 conftest$ac_exeext conftest.$ac_ext
60933 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
60934 LIBS="$LIBS $LIBICONV"
60935 cat >conftest.$ac_ext <<_ACEOF
60938 cat confdefs.h >>conftest.$ac_ext
60939 cat >>conftest.$ac_ext <<_ACEOF
60940 /* end confdefs.h. */
60941 #include <libintl.h>
60942 extern int _nl_msg_cat_cntr;
60947 const char *_nl_expand_alias (const char *);
60951 bindtextdomain ("", "");
60952 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
60957 rm -f conftest.$ac_objext conftest$ac_exeext
60958 if { (ac_try="$ac_link"
60959 case "(($ac_try" in
60960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60961 *) ac_try_echo=$ac_try;;
60963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60964 (eval "$ac_link") 2>conftest.er1
60966 grep -v '^ *+' conftest.er1 >conftest.err
60968 cat conftest.err >&5
60969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60970 (exit $ac_status); } &&
60971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60972 { (case "(($ac_try" in
60973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60974 *) ac_try_echo=$ac_try;;
60976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60977 (eval "$ac_try") 2>&5
60979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60980 (exit $ac_status); }; } &&
60981 { ac_try='test -s conftest$ac_exeext'
60982 { (case "(($ac_try" in
60983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60984 *) ac_try_echo=$ac_try;;
60986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60987 (eval "$ac_try") 2>&5
60989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60990 (exit $ac_status); }; }; then
60991 LIBINTL="$LIBINTL $LIBICONV"
60992 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
60993 gt_cv_func_gnugettext2_libintl=yes
60996 echo "$as_me: failed program was:" >&5
60997 sed 's/^/| /' conftest.$ac_ext >&5
61002 rm -f core conftest.err conftest.$ac_objext \
61003 conftest$ac_exeext conftest.$ac_ext
61005 CPPFLAGS="$gt_save_CPPFLAGS"
61006 LIBS="$gt_save_LIBS"
61008 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
61009 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
61012 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
61013 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
61014 && test "$PACKAGE" != gettext-runtime \
61015 && test "$PACKAGE" != gettext-tools; }; then
61016 gt_use_preinstalled_gnugettext=yes
61025 if test -n "$INTL_MACOSX_LIBS"; then
61026 if test "$gt_use_preinstalled_gnugettext" = "yes" \
61027 || test "$nls_cv_use_gnu_gettext" = "yes"; then
61028 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
61029 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
61033 if test "$gt_use_preinstalled_gnugettext" = "yes" \
61034 || test "$nls_cv_use_gnu_gettext" = "yes"; then
61036 cat >>confdefs.h <<\_ACEOF
61037 #define ENABLE_NLS 1
61045 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
61046 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
61047 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
61048 echo "${ECHO_T}$USE_NLS" >&6; }
61049 if test "$USE_NLS" = "yes"; then
61050 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
61051 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
61052 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
61053 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
61054 gt_source="external libintl"
61059 gt_source="included intl directory"
61061 { echo "$as_me:$LINENO: result: $gt_source" >&5
61062 echo "${ECHO_T}$gt_source" >&6; }
61065 if test "$USE_NLS" = "yes"; then
61067 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
61068 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
61069 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
61070 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
61071 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
61072 echo "${ECHO_T}$LIBINTL" >&6; }
61074 for element in $INCINTL; do
61076 for x in $CPPFLAGS; do
61078 acl_save_prefix="$prefix"
61079 prefix="$acl_final_prefix"
61080 acl_save_exec_prefix="$exec_prefix"
61081 exec_prefix="$acl_final_exec_prefix"
61083 exec_prefix="$acl_save_exec_prefix"
61084 prefix="$acl_save_prefix"
61086 if test "X$x" = "X$element"; then
61091 if test -z "$haveit"; then
61092 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
61099 cat >>confdefs.h <<\_ACEOF
61100 #define HAVE_GETTEXT 1
61104 cat >>confdefs.h <<\_ACEOF
61105 #define HAVE_DCGETTEXT 1
61115 INTLLIBS="$LIBINTL"
61124 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"
61126 cat >confcache <<\_ACEOF
61127 # This file is a shell script that caches the results of configure
61128 # tests run on this system so they can be shared between configure
61129 # scripts and configure runs, see configure's option --config-cache.
61130 # It is not useful on other systems. If it contains results you don't
61131 # want to keep, you may remove or edit it.
61133 # config.status only pays attention to the cache file if you give it
61134 # the --recheck option to rerun configure.
61136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
61137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
61138 # following values.
61142 # The following way of writing the cache mishandles newlines in values,
61143 # but we know of no workaround that is simple, portable, and efficient.
61144 # So, we kill variables containing newlines.
61145 # Ultrix sh set writes to stderr and can't be redirected directly,
61146 # and sets the high bit in the cache file unless we assign to the vars.
61148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
61149 eval ac_val=\$$ac_var
61153 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
61154 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
61157 _ | IFS | as_nl) ;; #(
61158 *) $as_unset $ac_var ;;
61164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
61165 *${as_nl}ac_space=\ *)
61166 # `set' does not quote correctly, so add quotes (double-quote
61167 # substitution turns \\\\ into \\, and sed turns \\ into \).
61170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
61173 # `set' quotes correctly as required by POSIX, so do not add quotes.
61174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
61183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
61185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
61187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
61188 if test -w "$cache_file"; then
61189 test "x$cache_file" != "x/dev/null" &&
61190 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
61191 echo "$as_me: updating cache $cache_file" >&6;}
61192 cat confcache >$cache_file
61194 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
61195 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
61200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
61201 # Let make expand exec_prefix.
61202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
61204 DEFS=-DHAVE_CONFIG_H
61208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
61209 # 1. Remove the extension, and $U if already installed.
61210 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
61211 ac_i=`echo "$ac_i" | sed "$ac_script"`
61212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
61213 # will be set to the directory where LIBOBJS objects are built.
61214 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
61215 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
61217 LIBOBJS=$ac_libobjs
61219 LTLIBOBJS=$ac_ltlibobjs
61222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
61223 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
61224 Usually this means the macro was only invoked conditionally." >&5
61225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
61226 Usually this means the macro was only invoked conditionally." >&2;}
61227 { (exit 1); exit 1; }; }
61229 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
61230 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
61231 Usually this means the macro was only invoked conditionally." >&5
61232 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
61233 Usually this means the macro was only invoked conditionally." >&2;}
61234 { (exit 1); exit 1; }; }
61237 : ${CONFIG_STATUS=./config.status}
61238 ac_clean_files_save=$ac_clean_files
61239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
61240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
61241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
61242 cat >$CONFIG_STATUS <<_ACEOF
61244 # Generated by $as_me.
61245 # Run this file to recreate the current configuration.
61246 # Compiler output produced by configure, useful for debugging
61247 # configure, is in config.log if it exists.
61250 ac_cs_recheck=false
61252 SHELL=\${CONFIG_SHELL-$SHELL}
61255 cat >>$CONFIG_STATUS <<\_ACEOF
61256 ## --------------------- ##
61257 ## M4sh Initialization. ##
61258 ## --------------------- ##
61260 # Be Bourne compatible
61261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
61264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
61265 # is contrary to our usage. Disable this feature.
61266 alias -g '${1+"$@"}'='"$@"'
61267 setopt NO_GLOB_SUBST
61269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
61271 BIN_SH=xpg4; export BIN_SH # for Tru64
61272 DUALCASE=1; export DUALCASE # for MKS sh
61276 # Avoid depending upon Character Ranges.
61277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
61278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
61279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
61280 as_cr_digits='0123456789'
61281 as_cr_alnum=$as_cr_Letters$as_cr_digits
61283 # The user is always right.
61284 if test "${PATH_SEPARATOR+set}" != set; then
61285 echo "#! /bin/sh" >conf$$.sh
61286 echo "exit 0" >>conf$$.sh
61288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
61296 # Support unset when possible.
61297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61305 # We need space, tab and new line, in precisely that order. Quoting is
61306 # there to prevent editors from complaining about space-tab.
61307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61308 # splitting by setting IFS to empty value.)
61313 # Find who we are. Look in the path if we contain no directory separator.
61315 *[\\/]* ) as_myself=$0 ;;
61316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61317 for as_dir in $PATH
61320 test -z "$as_dir" && as_dir=.
61321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
61327 # We did not find ourselves, most probably we were run as `sh COMMAND'
61328 # in which case we are not to be found in the path.
61329 if test "x$as_myself" = x; then
61332 if test ! -f "$as_myself"; then
61333 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
61334 { (exit 1); exit 1; }
61337 # Work around bugs in pre-3.0 UWIN ksh.
61338 for as_var in ENV MAIL MAILPATH
61339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
61347 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
61348 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
61349 LC_TELEPHONE LC_TIME
61351 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61352 eval $as_var=C; export $as_var
61354 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
61358 # Required to use basename.
61359 if expr a : '\(a\)' >/dev/null 2>&1 &&
61360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
61366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61367 as_basename=basename
61373 # Name of the executable.
61374 as_me=`$as_basename -- "$0" ||
61375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
61376 X"$0" : 'X\(//\)$' \| \
61377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
61379 sed '/^.*\/\([^/][^/]*\)\/*$/{
61398 as_lineno_1=$LINENO
61399 as_lineno_2=$LINENO
61400 test "x$as_lineno_1" != "x$as_lineno_2" &&
61401 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
61403 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
61404 # uniformly replaced by the line number. The first 'sed' inserts a
61405 # line-number line after each line using $LINENO; the second 'sed'
61406 # does the real work. The second script uses 'N' to pair each
61407 # line-number line with the line containing $LINENO, and appends
61408 # trailing '-' during substitution so that $LINENO is not a special
61409 # case at line end.
61410 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
61411 # scripts with optimization help from Paolo Bonzini. Blame Lee
61412 # E. McMahon (1931-1989) for sed's syntax. :-)
61424 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
61427 ' >$as_me.lineno &&
61428 chmod +x "$as_me.lineno" ||
61429 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
61430 { (exit 1); exit 1; }; }
61432 # Don't try to exec as it changes $[0], causing all sort of problems
61433 # (the dirname of $[0] is not the place where we might find the
61434 # original and so on. Autoconf is especially sensitive to this).
61435 . "./$as_me.lineno"
61436 # Exit status is that of the last command.
61441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
61447 ECHO_C= ECHO_N= ECHO_T=
61448 case `echo -n x` in
61450 case `echo 'x\c'` in
61451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
61458 if expr a : '\(a\)' >/dev/null 2>&1 &&
61459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
61465 rm -f conf$$ conf$$.exe conf$$.file
61466 if test -d conf$$.dir; then
61467 rm -f conf$$.dir/conf$$.file
61473 if ln -s conf$$.file conf$$ 2>/dev/null; then
61475 # ... but there are two gotchas:
61476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
61477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
61478 # In both cases, we have to default to `cp -p'.
61479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
61481 elif ln conf$$.file conf$$ 2>/dev/null; then
61486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
61487 rmdir conf$$.dir 2>/dev/null
61489 if mkdir -p . 2>/dev/null; then
61492 test -d ./-p && rmdir ./-p
61496 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
61497 # systems may use methods other than mode bits to determine executability.
61498 cat >conf$$.file <<_ASEOF
61502 chmod +x conf$$.file
61503 if test -x conf$$.file >/dev/null 2>&1; then
61504 as_executable_p="test -x"
61510 # Sed expression to map a string onto a valid CPP name.
61511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
61513 # Sed expression to map a string onto a valid variable name.
61514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
61519 # Save the log message, to keep $[0] and so on meaningful, and to
61520 # report actual input values of CONFIG_FILES etc. instead of their
61521 # values after options handling.
61523 This file was extended by GNU coreutils $as_me 6.0-cvs, which was
61524 generated by GNU Autoconf 2.60. Invocation command line was
61526 CONFIG_FILES = $CONFIG_FILES
61527 CONFIG_HEADERS = $CONFIG_HEADERS
61528 CONFIG_LINKS = $CONFIG_LINKS
61529 CONFIG_COMMANDS = $CONFIG_COMMANDS
61532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
61537 cat >>$CONFIG_STATUS <<_ACEOF
61538 # Files that config.status was made for.
61539 config_files="$ac_config_files"
61540 config_headers="$ac_config_headers"
61541 config_commands="$ac_config_commands"
61545 cat >>$CONFIG_STATUS <<\_ACEOF
61547 \`$as_me' instantiates files from templates according to the
61548 current configuration.
61550 Usage: $0 [OPTIONS] [FILE]...
61552 -h, --help print this help, then exit
61553 -V, --version print version number, then exit
61554 -q, --quiet do not print progress messages
61555 -d, --debug don't remove temporary files
61556 --recheck update $as_me by reconfiguring in the same conditions
61557 --file=FILE[:TEMPLATE]
61558 instantiate the configuration file FILE
61559 --header=FILE[:TEMPLATE]
61560 instantiate the configuration header FILE
61562 Configuration files:
61565 Configuration headers:
61568 Configuration commands:
61571 Report bugs to <bug-autoconf@gnu.org>."
61574 cat >>$CONFIG_STATUS <<_ACEOF
61576 GNU coreutils config.status 6.0-cvs
61577 configured by $0, generated by GNU Autoconf 2.60,
61578 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
61580 Copyright (C) 2006 Free Software Foundation, Inc.
61581 This config.status script is free software; the Free Software Foundation
61582 gives unlimited permission to copy, distribute and modify it."
61589 cat >>$CONFIG_STATUS <<\_ACEOF
61590 # If no file are specified by the user, then we need to provide default
61591 # value. By we need to know if files were specified by the user.
61597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
61598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
61609 # Handling of the options.
61610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
61613 echo "$ac_cs_version"; exit ;;
61614 --debug | --debu | --deb | --de | --d | -d )
61616 --file | --fil | --fi | --f )
61618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
61619 ac_need_defaults=false;;
61620 --header | --heade | --head | --hea )
61622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
61623 ac_need_defaults=false;;
61625 # Conflict between --help and --header
61626 { echo "$as_me: error: ambiguous option: $1
61627 Try \`$0 --help' for more information." >&2
61628 { (exit 1); exit 1; }; };;
61629 --help | --hel | -h )
61630 echo "$ac_cs_usage"; exit ;;
61631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
61635 # This is an error.
61636 -*) { echo "$as_me: error: unrecognized option: $1
61637 Try \`$0 --help' for more information." >&2
61638 { (exit 1); exit 1; }; } ;;
61640 *) ac_config_targets="$ac_config_targets $1"
61641 ac_need_defaults=false ;;
61647 ac_configure_extra_args=
61649 if $ac_cs_silent; then
61651 ac_configure_extra_args="$ac_configure_extra_args --silent"
61655 cat >>$CONFIG_STATUS <<_ACEOF
61656 if \$ac_cs_recheck; then
61657 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
61658 CONFIG_SHELL=$SHELL
61659 export CONFIG_SHELL
61660 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61664 cat >>$CONFIG_STATUS <<\_ACEOF
61668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61669 ## Running $as_me. ##
61675 cat >>$CONFIG_STATUS <<_ACEOF
61679 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61680 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
61681 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
61683 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
61684 # Capture the value of LINGUAS because we need it to compute CATALOGS.
61685 LINGUAS="${LINGUAS-%UNSET%}"
61690 cat >>$CONFIG_STATUS <<\_ACEOF
61692 # Handling of arguments.
61693 for ac_config_target in $ac_config_targets
61695 case $ac_config_target in
61696 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
61697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61698 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
61699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61700 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
61701 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
61702 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
61703 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
61704 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
61705 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
61706 "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
61707 "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
61708 "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
61709 "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
61710 "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
61711 "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
61712 "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
61713 "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
61714 "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
61715 "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
61716 "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
61717 "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
61718 "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
61719 "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
61720 "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
61721 "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
61722 "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
61723 "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
61724 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
61725 "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
61726 "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
61727 "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
61728 "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
61729 "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
61730 "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
61731 "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
61732 "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
61733 "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
61734 "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
61735 "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
61736 "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
61737 "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
61738 "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
61739 "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
61740 "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
61741 "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
61742 "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
61743 "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
61744 "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
61745 "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
61746 "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
61747 "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
61748 "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
61750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
61751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
61752 { (exit 1); exit 1; }; };;
61757 # If the user did not use the arguments to specify the items to instantiate,
61758 # then the envvar interface is used. Set only those that are not.
61759 # We use the long form for the default assignment because of an extremely
61760 # bizarre bug on SunOS 4.1.3.
61761 if $ac_need_defaults; then
61762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61767 # Have a temporary directory for convenience. Make it in the build tree
61768 # simply because there is no reason against having it here, and in addition,
61769 # creating and moving files from /tmp can sometimes cause problems.
61770 # Hook for its removal unless debugging.
61771 # Note that there is a small window in which the directory will not be cleaned:
61772 # after its creation but before its name has been assigned to `$tmp'.
61776 trap 'exit_status=$?
61777 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
61779 trap '{ (exit 1); exit 1; }' 1 2 13 15
61781 # Create a (secure) tmp directory for tmp files.
61784 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
61785 test -n "$tmp" && test -d "$tmp"
61788 tmp=./conf$$-$RANDOM
61789 (umask 077 && mkdir "$tmp")
61792 echo "$me: cannot create a temporary directory in ." >&2
61793 { (exit 1); exit 1; }
61797 # Set up the sed scripts for CONFIG_FILES section.
61800 # No need to generate the scripts if there are no CONFIG_FILES.
61801 # This happens for instance when ./config.status config.h
61802 if test -n "$CONFIG_FILES"; then
61809 for ac_last_try in false false false false false :; do
61810 cat >conf$$subs.sed <<_ACEOF
61811 SHELL!$SHELL$ac_delim
61812 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
61813 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
61814 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
61815 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
61816 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
61817 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
61818 exec_prefix!$exec_prefix$ac_delim
61819 prefix!$prefix$ac_delim
61820 program_transform_name!$program_transform_name$ac_delim
61821 bindir!$bindir$ac_delim
61822 sbindir!$sbindir$ac_delim
61823 libexecdir!$libexecdir$ac_delim
61824 datarootdir!$datarootdir$ac_delim
61825 datadir!$datadir$ac_delim
61826 sysconfdir!$sysconfdir$ac_delim
61827 sharedstatedir!$sharedstatedir$ac_delim
61828 localstatedir!$localstatedir$ac_delim
61829 includedir!$includedir$ac_delim
61830 oldincludedir!$oldincludedir$ac_delim
61831 docdir!$docdir$ac_delim
61832 infodir!$infodir$ac_delim
61833 htmldir!$htmldir$ac_delim
61834 dvidir!$dvidir$ac_delim
61835 pdfdir!$pdfdir$ac_delim
61836 psdir!$psdir$ac_delim
61837 libdir!$libdir$ac_delim
61838 localedir!$localedir$ac_delim
61839 mandir!$mandir$ac_delim
61840 DEFS!$DEFS$ac_delim
61841 ECHO_C!$ECHO_C$ac_delim
61842 ECHO_N!$ECHO_N$ac_delim
61843 ECHO_T!$ECHO_T$ac_delim
61844 LIBS!$LIBS$ac_delim
61845 build_alias!$build_alias$ac_delim
61846 host_alias!$host_alias$ac_delim
61847 target_alias!$target_alias$ac_delim
61848 build!$build$ac_delim
61849 build_cpu!$build_cpu$ac_delim
61850 build_vendor!$build_vendor$ac_delim
61851 build_os!$build_os$ac_delim
61852 host!$host$ac_delim
61853 host_cpu!$host_cpu$ac_delim
61854 host_vendor!$host_vendor$ac_delim
61855 host_os!$host_os$ac_delim
61856 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
61857 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
61858 INSTALL_DATA!$INSTALL_DATA$ac_delim
61859 CYGPATH_W!$CYGPATH_W$ac_delim
61860 PACKAGE!$PACKAGE$ac_delim
61861 VERSION!$VERSION$ac_delim
61862 ACLOCAL!$ACLOCAL$ac_delim
61863 AUTOCONF!$AUTOCONF$ac_delim
61864 AUTOMAKE!$AUTOMAKE$ac_delim
61865 AUTOHEADER!$AUTOHEADER$ac_delim
61866 MAKEINFO!$MAKEINFO$ac_delim
61867 install_sh!$install_sh$ac_delim
61868 STRIP!$STRIP$ac_delim
61869 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
61870 mkdir_p!$mkdir_p$ac_delim
61872 SET_MAKE!$SET_MAKE$ac_delim
61873 am__leading_dot!$am__leading_dot$ac_delim
61874 AMTAR!$AMTAR$ac_delim
61875 am__tar!$am__tar$ac_delim
61876 am__untar!$am__untar$ac_delim
61877 DEFAULT_POSIX2_VERSION!$DEFAULT_POSIX2_VERSION$ac_delim
61879 CFLAGS!$CFLAGS$ac_delim
61880 LDFLAGS!$LDFLAGS$ac_delim
61881 CPPFLAGS!$CPPFLAGS$ac_delim
61882 ac_ct_CC!$ac_ct_CC$ac_delim
61883 EXEEXT!$EXEEXT$ac_delim
61884 OBJEXT!$OBJEXT$ac_delim
61885 DEPDIR!$DEPDIR$ac_delim
61886 am__include!$am__include$ac_delim
61887 am__quote!$am__quote$ac_delim
61888 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
61889 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
61890 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
61891 CCDEPMODE!$CCDEPMODE$ac_delim
61892 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
61893 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
61895 GREP!$GREP$ac_delim
61896 EGREP!$EGREP$ac_delim
61897 PERL!$PERL$ac_delim
61898 RANLIB!$RANLIB$ac_delim
61899 LN_S!$LN_S$ac_delim
61900 GNU_PACKAGE!$GNU_PACKAGE$ac_delim
61901 HELP2MAN!$HELP2MAN$ac_delim
61902 OPTIONAL_BIN_PROGS!$OPTIONAL_BIN_PROGS$ac_delim
61904 DF_PROG!$DF_PROG$ac_delim
61906 ANSI2KNR!$ANSI2KNR$ac_delim
61907 LIBOBJS!$LIBOBJS$ac_delim
61910 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
61912 elif $ac_last_try; then
61913 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
61914 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
61915 { (exit 1); exit 1; }; }
61917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
61921 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
61922 if test -n "$ac_eof"; then
61923 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
61924 ac_eof=`expr $ac_eof + 1`
61927 cat >>$CONFIG_STATUS <<_ACEOF
61928 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
61929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
61932 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
61933 s/^/s,@/; s/!/@,|#_!!_#|/
61936 s/'"$ac_delim"'$/,g/; t
61938 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
61939 ' >>$CONFIG_STATUS <conf$$subs.sed
61940 rm -f conf$$subs.sed
61941 cat >>$CONFIG_STATUS <<_ACEOF
61947 for ac_last_try in false false false false false :; do
61948 cat >conf$$subs.sed <<_ACEOF
61949 STDBOOL_H!$STDBOOL_H$ac_delim
61950 HAVE__BOOL!$HAVE__BOOL$ac_delim
61951 ALLOCA!$ALLOCA$ac_delim
61952 ALLOCA_H!$ALLOCA_H$ac_delim
61953 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
61954 FNMATCH_H!$FNMATCH_H$ac_delim
61955 NEED_SETGID!$NEED_SETGID$ac_delim
61956 KMEM_GROUP!$KMEM_GROUP$ac_delim
61957 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
61958 LIB_EACCESS!$LIB_EACCESS$ac_delim
61959 POW_LIB!$POW_LIB$ac_delim
61960 EOVERFLOW!$EOVERFLOW$ac_delim
61961 YACC!$YACC$ac_delim
61962 YFLAGS!$YFLAGS$ac_delim
61963 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
61964 LIB_GETHRXTIME!$LIB_GETHRXTIME$ac_delim
61965 GETOPT_H!$GETOPT_H$ac_delim
61966 GLIBC21!$GLIBC21$ac_delim
61967 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
61968 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
61969 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
61970 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
61971 ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
61972 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
61973 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
61974 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
61975 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
61976 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
61977 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
61978 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
61979 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
61980 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
61981 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
61982 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
61983 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
61984 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
61985 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
61986 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
61987 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
61988 STDINT_H!$STDINT_H$ac_delim
61989 LIB_NANOSLEEP!$LIB_NANOSLEEP$ac_delim
61990 LIB_ACL!$LIB_ACL$ac_delim
61991 LIB_FDATASYNC!$LIB_FDATASYNC$ac_delim
61992 SEQ_LIBM!$SEQ_LIBM$ac_delim
61993 LIBICONV!$LIBICONV$ac_delim
61994 LTLIBICONV!$LTLIBICONV$ac_delim
61995 LIB_CRYPT!$LIB_CRYPT$ac_delim
61996 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
61997 USE_NLS!$USE_NLS$ac_delim
61998 MSGFMT!$MSGFMT$ac_delim
61999 GMSGFMT!$GMSGFMT$ac_delim
62000 XGETTEXT!$XGETTEXT$ac_delim
62001 MSGMERGE!$MSGMERGE$ac_delim
62002 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
62003 INTLLIBS!$INTLLIBS$ac_delim
62004 LIBINTL!$LIBINTL$ac_delim
62005 LTLIBINTL!$LTLIBINTL$ac_delim
62006 POSUB!$POSUB$ac_delim
62007 LTLIBOBJS!$LTLIBOBJS$ac_delim
62010 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
62012 elif $ac_last_try; then
62013 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
62014 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
62015 { (exit 1); exit 1; }; }
62017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62021 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
62022 if test -n "$ac_eof"; then
62023 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
62024 ac_eof=`expr $ac_eof + 1`
62027 cat >>$CONFIG_STATUS <<_ACEOF
62028 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
62029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
62032 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
62033 s/^/s,@/; s/!/@,|#_!!_#|/
62036 s/'"$ac_delim"'$/,g/; t
62038 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
62039 ' >>$CONFIG_STATUS <conf$$subs.sed
62040 rm -f conf$$subs.sed
62041 cat >>$CONFIG_STATUS <<_ACEOF
62048 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62049 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62050 # trailing colons and then remove the whole line if VPATH becomes empty
62051 # (actually we leave an empty line to preserve line numbers).
62052 if test "x$srcdir" = x.; then
62053 ac_vpsub='/^[ ]*VPATH[ ]*=/{
62054 s/:*\$(srcdir):*/:/
62055 s/:*\${srcdir}:*/:/
62057 s/^\([^=]*=[ ]*\):*/\1/
62063 cat >>$CONFIG_STATUS <<\_ACEOF
62064 fi # test -n "$CONFIG_FILES"
62067 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
62070 :[FHLC]) ac_mode=$ac_tag; continue;;
62072 case $ac_mode$ac_tag in
62074 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
62075 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
62076 { (exit 1); exit 1; }; };;
62077 :[FH]-) ac_tag=-:-;;
62078 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
62095 -) ac_f="$tmp/stdin";;
62096 *) # Look for the file first in the build tree, then in the source tree
62097 # (if the path is not absolute). The absolute path cannot be DOS-style,
62098 # because $ac_f cannot contain `:'.
62102 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
62104 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
62105 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
62106 { (exit 1); exit 1; }; };;
62108 ac_file_inputs="$ac_file_inputs $ac_f"
62111 # Let's still pretend it is `configure' which instantiates (i.e., don't
62112 # use $as_me), people would be surprised to read:
62113 # /* config.h. Generated by config.status. */
62114 configure_input="Generated from "`IFS=:
62115 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
62116 if test x"$ac_file" != x-; then
62117 configure_input="$ac_file. $configure_input"
62118 { echo "$as_me:$LINENO: creating $ac_file" >&5
62119 echo "$as_me: creating $ac_file" >&6;}
62123 *:-:* | *:-) cat >"$tmp/stdin";;
62128 ac_dir=`$as_dirname -- "$ac_file" ||
62129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62130 X"$ac_file" : 'X\(//\)[^/]' \| \
62131 X"$ac_file" : 'X\(//\)$' \| \
62132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
62134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62138 /^X\(\/\/\)[^/].*/{
62153 -*) as_dir=./$as_dir;;
62155 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62159 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
62160 *) as_qdir=$as_dir;;
62162 as_dirs="'$as_qdir' $as_dirs"
62163 as_dir=`$as_dirname -- "$as_dir" ||
62164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62165 X"$as_dir" : 'X\(//\)[^/]' \| \
62166 X"$as_dir" : 'X\(//\)$' \| \
62167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62173 /^X\(\/\/\)[^/].*/{
62186 test -d "$as_dir" && break
62188 test -z "$as_dirs" || eval "mkdir $as_dirs"
62189 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62190 echo "$as_me: error: cannot create directory $as_dir" >&2;}
62191 { (exit 1); exit 1; }; }; }
62195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
62197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
62198 # A ".." for each directory in $ac_dir_suffix.
62199 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
62200 case $ac_top_builddir_sub in
62201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
62202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
62205 ac_abs_top_builddir=$ac_pwd
62206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
62207 # for backward compatibility:
62208 ac_top_builddir=$ac_top_build_prefix
62211 .) # We are building in place.
62213 ac_top_srcdir=$ac_top_builddir_sub
62214 ac_abs_top_srcdir=$ac_pwd ;;
62215 [\\/]* | ?:[\\/]* ) # Absolute name.
62216 ac_srcdir=$srcdir$ac_dir_suffix;
62217 ac_top_srcdir=$srcdir
62218 ac_abs_top_srcdir=$srcdir ;;
62219 *) # Relative name.
62220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
62221 ac_top_srcdir=$ac_top_build_prefix$srcdir
62222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
62224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
62235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
62239 cat >>$CONFIG_STATUS <<\_ACEOF
62240 # If the template does not know about datarootdir, expand it.
62241 # FIXME: This hack should be removed a few years after 2.60.
62242 ac_datarootdir_hack=; ac_datarootdir_seen=
62244 case `sed -n '/datarootdir/ {
62253 ' $ac_file_inputs` in
62254 *datarootdir*) ac_datarootdir_seen=yes;;
62255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
62256 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
62257 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
62259 cat >>$CONFIG_STATUS <<_ACEOF
62260 ac_datarootdir_hack='
62261 s&@datadir@&$datadir&g
62262 s&@docdir@&$docdir&g
62263 s&@infodir@&$infodir&g
62264 s&@localedir@&$localedir&g
62265 s&@mandir@&$mandir&g
62266 s&\\\${datarootdir}&$datarootdir&g' ;;
62270 # Neutralize VPATH when `$srcdir' = `.'.
62271 # Shell code in configure.ac might set extrasub.
62272 # FIXME: do we really want to maintain this feature?
62273 cat >>$CONFIG_STATUS <<_ACEOF
62277 cat >>$CONFIG_STATUS <<\_ACEOF
62279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
62280 s&@configure_input@&$configure_input&;t t
62281 s&@top_builddir@&$ac_top_builddir_sub&;t t
62282 s&@srcdir@&$ac_srcdir&;t t
62283 s&@abs_srcdir@&$ac_abs_srcdir&;t t
62284 s&@top_srcdir@&$ac_top_srcdir&;t t
62285 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
62286 s&@builddir@&$ac_builddir&;t t
62287 s&@abs_builddir@&$ac_abs_builddir&;t t
62288 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
62289 s&@INSTALL@&$ac_INSTALL&;t t
62290 $ac_datarootdir_hack
62291 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
62293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
62294 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
62295 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
62296 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62297 which seems to be undefined. Please make sure it is defined." >&5
62298 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
62299 which seems to be undefined. Please make sure it is defined." >&2;}
62303 -) cat "$tmp/out"; rm -f "$tmp/out";;
62304 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
62313 # Transform confdefs.h into a sed script `conftest.defines', that
62314 # substitutes the proper values into config.h.in to produce config.h.
62315 rm -f conftest.defines conftest.tail
62316 # First, append a space to every undef/define line, to ease matching.
62317 echo 's/$/ /' >conftest.defines
62318 # Then, protect against being on the right side of a sed subst, or in
62319 # an unquoted here document, in config.status. If some macros were
62320 # called several times there might be several #defines for the same
62321 # symbol, which is useless. But do not sort them, since the last
62322 # AC_DEFINE must be honored.
62323 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
62324 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
62325 # NAME is the cpp macro being defined, VALUE is the value it is being given.
62326 # PARAMS is the parameter list in the macro definition--in most cases, it's
62327 # just an empty string.
62328 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
62329 ac_dB='\\)[ (].*,\\1define\\2'
62337 s/^[ ]*#[ ]*define[ ][ ]*//
62342 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
62343 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
62344 ' >>conftest.defines
62346 # Remove the space that was appended to ease matching.
62347 # Then replace #undef with comments. This is necessary, for
62348 # example, in the case of _POSIX_SOURCE, which is predefined and required
62349 # on some systems where configure will not decide to define it.
62350 # (The regexp can be short, since the line contains either #define or #undef.)
62352 s,^[ #]*u.*,/* & */,' >>conftest.defines
62354 # Break up conftest.defines:
62355 ac_max_sed_lines=50
62357 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
62358 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
62359 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
62361 ac_in='$ac_file_inputs'
62362 ac_out='"$tmp/out1"'
62363 ac_nxt='"$tmp/out2"'
62367 # Write a here document:
62368 cat >>$CONFIG_STATUS <<_ACEOF
62369 # First, check the format of the line:
62370 cat >"\$tmp/defines.sed" <<\\CEOF
62371 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
62372 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
62376 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
62378 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
62379 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
62380 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
62381 grep . conftest.tail >/dev/null || break
62382 rm -f conftest.defines
62383 mv conftest.tail conftest.defines
62385 rm -f conftest.defines conftest.tail
62387 echo "ac_result=$ac_in" >>$CONFIG_STATUS
62388 cat >>$CONFIG_STATUS <<\_ACEOF
62389 if test x"$ac_file" != x-; then
62390 echo "/* $configure_input */" >"$tmp/config.h"
62391 cat "$ac_result" >>"$tmp/config.h"
62392 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
62393 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
62394 echo "$as_me: $ac_file is unchanged" >&6;}
62397 mv "$tmp/config.h" $ac_file
62400 echo "/* $configure_input */"
62404 # Compute $ac_file's index in $config_headers.
62406 for _am_header in $config_headers :; do
62407 case $_am_header in
62408 $ac_file | $ac_file:* )
62411 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
62414 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
62415 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62416 X$ac_file : 'X\(//\)[^/]' \| \
62417 X$ac_file : 'X\(//\)$' \| \
62418 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
62420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62424 /^X\(\/\/\)[^/].*/{
62436 s/.*/./; q'`/stamp-h$_am_stamp_count
62439 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
62440 echo "$as_me: executing $ac_file commands" >&6;}
62445 case $ac_file$ac_mode in
62446 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
62447 # Strip MF so we end up with the name of the file.
62448 mf=`echo "$mf" | sed -e 's/:.*$//'`
62449 # Check whether this is an Automake generated Makefile or not.
62450 # We used to match only the files named `Makefile.in', but
62451 # some people rename them; so instead we look at the file content.
62452 # Grep'ing the first line is not enough: some people post-process
62453 # each Makefile.in and add a new line on top of each file to say so.
62454 # So let's grep whole file.
62455 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
62456 dirpart=`$as_dirname -- "$mf" ||
62457 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62458 X"$mf" : 'X\(//\)[^/]' \| \
62459 X"$mf" : 'X\(//\)$' \| \
62460 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
62462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62466 /^X\(\/\/\)[^/].*/{
62482 # Extract the definition of DEPDIR, am__include, and am__quote
62483 # from the Makefile without running `make'.
62484 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62485 test -z "$DEPDIR" && continue
62486 am__include=`sed -n 's/^am__include = //p' < "$mf"`
62487 test -z "am__include" && continue
62488 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62489 # When using ansi2knr, U may be empty or an underscore; expand it
62490 U=`sed -n 's/^U = //p' < "$mf"`
62491 # Find all dependency output files, they are included files with
62492 # $(DEPDIR) in their names. We invoke sed twice because it is the
62493 # simplest approach to changing $(DEPDIR) to its actual value in the
62495 for file in `sed -n "
62496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62498 # Make sure the directory exists.
62499 test -f "$dirpart/$file" && continue
62500 fdir=`$as_dirname -- "$file" ||
62501 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62502 X"$file" : 'X\(//\)[^/]' \| \
62503 X"$file" : 'X\(//\)$' \| \
62504 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
62506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62510 /^X\(\/\/\)[^/].*/{
62523 { as_dir=$dirpart/$fdir
62525 -*) as_dir=./$as_dir;;
62527 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62531 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
62532 *) as_qdir=$as_dir;;
62534 as_dirs="'$as_qdir' $as_dirs"
62535 as_dir=`$as_dirname -- "$as_dir" ||
62536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62537 X"$as_dir" : 'X\(//\)[^/]' \| \
62538 X"$as_dir" : 'X\(//\)$' \| \
62539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62545 /^X\(\/\/\)[^/].*/{
62558 test -d "$as_dir" && break
62560 test -z "$as_dirs" || eval "mkdir $as_dirs"
62561 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
62563 { (exit 1); exit 1; }; }; }
62564 # echo "creating $dirpart/$file"
62565 echo '# dummy' > "$dirpart/$file"
62570 for ac_file in $CONFIG_FILES; do
62571 # Support "outfile[:infile[:infile...]]"
62573 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62575 # PO directories have a Makefile.in generated from Makefile.in.in.
62576 case "$ac_file" in */Makefile.in)
62577 # Adjust a relative srcdir.
62578 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62579 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62580 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62581 # In autoconf-2.13 it is called $ac_given_srcdir.
62582 # In autoconf-2.50 it is called $srcdir.
62583 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62584 case "$ac_given_srcdir" in
62585 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62586 /*) top_srcdir="$ac_given_srcdir" ;;
62587 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
62589 # Treat a directory as a PO directory if and only if it has a
62590 # POTFILES.in file. This allows packages to have multiple PO
62591 # directories under different names or in different locations.
62592 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62593 rm -f "$ac_dir/POTFILES"
62594 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62595 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62596 POMAKEFILEDEPS="POTFILES.in"
62597 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62598 # on $ac_dir but don't depend on user-specified configuration
62600 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62601 # The LINGUAS file contains the set of available languages.
62602 if test -n "$OBSOLETE_ALL_LINGUAS"; then
62603 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62605 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62606 # Hide the ALL_LINGUAS assigment from automake.
62607 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62608 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62610 # The set of available languages was given in configure.in.
62611 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62614 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62615 # Compute UPDATEPOFILES
62616 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62617 # Compute DUMMYPOFILES
62618 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62620 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62621 case "$ac_given_srcdir" in
62623 *) srcdirpre='$(srcdir)/' ;;
62629 for lang in $ALL_LINGUAS; do
62630 POFILES="$POFILES $srcdirpre$lang.po"
62631 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62632 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62633 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62635 # CATALOGS depends on both $ac_dir and the user's LINGUAS
62636 # environment variable.
62638 if test -n "$ALL_LINGUAS"; then
62639 for presentlang in $ALL_LINGUAS; do
62641 if test "%UNSET%" != "$LINGUAS"; then
62642 desiredlanguages="$LINGUAS"
62644 desiredlanguages="$ALL_LINGUAS"
62646 for desiredlang in $desiredlanguages; do
62647 # Use the presentlang catalog if desiredlang is
62648 # a. equal to presentlang, or
62649 # b. a variant of presentlang (because in this case,
62650 # presentlang can be used as a fallback for messages
62651 # which are not translated in the desiredlang catalog).
62652 case "$desiredlang" in
62653 "$presentlang"*) useit=yes;;
62656 if test $useit = yes; then
62657 INST_LINGUAS="$INST_LINGUAS $presentlang"
62662 if test -n "$INST_LINGUAS"; then
62663 for lang in $INST_LINGUAS; do
62664 CATALOGS="$CATALOGS $lang.gmo"
62667 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62668 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"
62669 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62670 if test -f "$f"; then
62672 *.orig | *.bak | *~) ;;
62673 *) cat "$f" >> "$ac_dir/Makefile" ;;
62686 { (exit 0); exit 0; }
62688 chmod +x $CONFIG_STATUS
62689 ac_clean_files=$ac_clean_files_save
62692 # configure is writing to config.log, and then calls config.status.
62693 # config.status does its own redirection, appending to config.log.
62694 # Unfortunately, on DOS this fails, as config.log is still kept open
62695 # by configure, so config.status won't be able to write to it; its
62696 # output is simply discarded. So we exec the FD to /dev/null,
62697 # effectively closing config.log, so it can be properly (re)opened and
62698 # appended to by config.status. When coming back to configure, we
62699 # need to make the FD available again.
62700 if test "$no_create" != yes; then
62702 ac_config_status_args=
62703 test "$silent" = yes &&
62704 ac_config_status_args="$ac_config_status_args --quiet"
62706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62709 # would make configure fail if this is the last instruction.
62710 $ac_cs_success || { (exit 1); exit 1; }