2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59c 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_me: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }; }
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 which exist, to save several forks.
236 if test -f $as_shell &&
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 (dirname /) >/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
744 ac_precious_vars='build_alias
747 DEFAULT_POSIX2_VERSION
757 # Initialize some variables set by options.
759 ac_init_version=false
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
864 eval enable_$ac_feature=no ;;
866 -docdir | --docdir | --docdi | --doc | --do)
868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 -enable-* | --enable-*)
877 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=\$ac_optarg ;;
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
898 -help | --help | --hel | --he | -h)
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 htmldir=$ac_optarg ;;
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
928 -libdir | --libdir | --libdi | --libd)
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
940 -localedir | --localedir | --localedi | --localed | --locale)
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 # Obsolete; use --without-fp.
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1019 -psdir | --psdir | --psdi | --psd | --ps)
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1028 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 sbindir=$ac_optarg ;;
1034 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036 | --sharedst | --shareds | --shared | --share | --shar \
1038 ac_prev=sharedstatedir ;;
1039 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 sharedstatedir=$ac_optarg ;;
1045 -site | --site | --sit)
1047 -site=* | --site=* | --sit=*)
1050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053 srcdir=$ac_optarg ;;
1055 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056 | --syscon | --sysco | --sysc | --sys | --sy)
1057 ac_prev=sysconfdir ;;
1058 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060 sysconfdir=$ac_optarg ;;
1062 -target | --target | --targe | --targ | --tar | --ta | --t)
1063 ac_prev=target_alias ;;
1064 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065 target_alias=$ac_optarg ;;
1067 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 -version | --version | --versio | --versi | --vers | -V)
1071 ac_init_version=: ;;
1074 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package| sed 's/-/_/g'`
1080 eval with_$ac_package=\$ac_optarg ;;
1082 -without-* | --without-*)
1083 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid package name: $ac_package" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_package=`echo $ac_package | sed 's/-/_/g'`
1089 eval with_$ac_package=no ;;
1092 # Obsolete; use --with-x.
1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096 | --x-incl | --x-inc | --x-in | --x-i)
1097 ac_prev=x_includes ;;
1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100 x_includes=$ac_optarg ;;
1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104 ac_prev=x_libraries ;;
1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107 x_libraries=$ac_optarg ;;
1109 -*) { echo "$as_me: error: unrecognized option: $ac_option
1110 Try \`$0 --help' for more information." >&2
1111 { (exit 1); exit 1; }; }
1115 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1119 { (exit 1); exit 1; }; }
1120 eval $ac_envvar=\$ac_optarg
1121 export $ac_envvar ;;
1124 # FIXME: should be removed in autoconf 3.0.
1125 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1134 if test -n "$ac_prev"; then
1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136 { echo "$as_me: error: missing argument to $ac_option" >&2
1137 { (exit 1); exit 1; }; }
1140 # Be sure to have absolute directory names.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val=\$$ac_var
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1152 { (exit 1); exit 1; }; }
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1160 target=$target_alias
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
1166 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167 If a cross compiler is detected then cross compile mode will be used." >&2
1168 elif test "x$build_alias" != "x$host_alias"; then
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176 test "$silent" = yes && exec 6>/dev/null
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 { echo "$as_me: error: Working directory cannot be determined" >&2
1183 { (exit 1); exit 1; }; }
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 { echo "$as_me: error: pwd does not report name of working directory" >&2
1186 { (exit 1); exit 1; }; }
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname "$0" ||
1194 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$0" : 'X\(//\)[^/]' \| \
1196 X"$0" : 'X\(//\)$' \| \
1197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1221 ac_srcdir_defaulted=no
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1226 { (exit 1); exit 1; }; }
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230 cd $srcdir && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1231 { (exit 1); exit 1; }; }
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 # Report the --help message.
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1257 \`configure' configures GNU coreutils 6.0-cvs to adapt to many kinds of systems.
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1264 Defaults for the options are specified in brackets.
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1288 For better control, use the options below.
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/coreutils]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1315 --program-prefix=PREFIX prepend PREFIX to installed program names
1316 --program-suffix=SUFFIX append SUFFIX to installed program names
1317 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1320 --build=BUILD configure for building on BUILD [guessed]
1321 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive ) echo "Configuration of GNU coreutils 6.0-cvs:";;
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-dependency-tracking speeds up one-time build
1335 --enable-dependency-tracking do not reject slow dependency extractors
1336 --disable-largefile omit support for large files
1337 --disable-assert turn off assertions
1338 --disable-rpath do not hardcode runtime library paths
1339 --disable-nls do not use Native Language Support
1342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1344 --with-afs support for the Andrew File System [default=no]
1345 --without-included-regex
1346 don't compile regex; this is the default on systems
1347 with recent-enough versions of the GNU C Library
1348 (use with caution on other systems)
1349 --with-gnu-ld assume the C compiler uses GNU ld default=no
1350 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1351 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1352 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1353 --without-libintl-prefix don't search for libintl in includedir and libdir
1355 Some influential environment variables:
1356 DEFAULT_POSIX2_VERSION
1357 POSIX version to default to; see 'config.hin'.
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1363 you have headers in a nonstandard directory <include dir>
1365 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1366 `bison -y'. Values other than `bison -y' will most likely break
1368 YFLAGS YFLAGS contains the list arguments that will be passed by
1369 default to Bison. This script will default YFLAGS to the empty
1370 string to avoid a default value of `-d' given by some make
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1376 Report bugs to <bug-coreutils@gnu.org>.
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d $ac_dir || continue
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd $ac_dir || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f $ac_srcdir/configure.gnu; then
1423 $SHELL $ac_srcdir/configure.gnu --help=recursive
1424 elif test -f $ac_srcdir/configure; then
1426 $SHELL $ac_srcdir/configure --help=recursive
1428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1437 GNU coreutils configure 6.0-cvs
1438 generated by GNU Autoconf 2.59c
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by GNU coreutils $as_me 6.0-cvs, which was
1453 generated by GNU Autoconf 2.59c. Invocation command line was
1464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1471 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1473 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1474 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1476 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1477 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1478 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1479 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 echo "PATH: $as_dir"
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next=false
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1523 *" "*|*" "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next=true ;;
1545 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1546 # Get rid of the leading space.
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1561 # Save into config.log some information that might help in debugging.
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1571 # The following way of writing the cache mishandles newlines in values,
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 ## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##
1607 for ac_var in $ac_subst_vars
1609 eval ac_val=\$$ac_var
1610 echo "$ac_var='\''$ac_val'\''"
1614 if test -n "$ac_subst_files"; then
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1624 echo "$ac_var='\''$ac_val'\''"
1629 if test -s confdefs.h; then
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 for ac_signal in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x "$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE; then
1687 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1689 set x "$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1710 [\\/]* | ?:[\\/]* ) . $cache_file;;
1711 *) . ./$cache_file;;
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1720 gl_header_list="$gl_header_list hurd.h"
1721 gl_header_list="$gl_header_list paths.h"
1722 gl_header_list="$gl_header_list priv.h"
1723 gl_header_list="$gl_header_list stropts.h"
1724 gl_header_list="$gl_header_list sys/ioctl.h"
1725 gl_header_list="$gl_header_list sys/param.h"
1726 gl_header_list="$gl_header_list sys/resource.h"
1727 gl_header_list="$gl_header_list sys/statvfs.h"
1728 gl_header_list="$gl_header_list sys/systeminfo.h"
1729 gl_header_list="$gl_header_list sys/time.h"
1730 gl_header_list="$gl_header_list sys/vfs.h"
1731 gl_header_list="$gl_header_list sys/wait.h"
1732 gl_header_list="$gl_header_list syslog.h"
1733 gl_header_list="$gl_header_list termios.h"
1734 gl_header_list="$gl_header_list grp.h"
1735 gl_header_list="$gl_header_list pwd.h"
1736 gl_header_list="$gl_header_list utmp.h"
1737 gl_func_list="$gl_func_list pathconf"
1738 gl_header_list="$gl_header_list sys/socket.h"
1739 gl_header_list="$gl_header_list netinet/in.h"
1740 gl_header_list="$gl_header_list netdb.h"
1741 gl_func_list="$gl_func_list isascii"
1742 gl_func_list="$gl_func_list mempcpy"
1743 gl_header_list="$gl_header_list sys/fs_types.h"
1744 gl_header_list="$gl_header_list stdio_ext.h"
1745 gl_func_list="$gl_func_list __fsetlocking"
1746 gl_func_list="$gl_func_list tcgetattr"
1747 gl_func_list="$gl_func_list tcsetattr"
1748 gl_func_list="$gl_func_list alarm"
1749 gl_header_list="$gl_header_list libgen.h"
1750 gl_header_list="$gl_header_list unistd.h"
1751 gl_func_list="$gl_func_list microuptime"
1752 gl_func_list="$gl_func_list nanouptime"
1753 gl_func_list="$gl_func_list gettimeofday"
1754 gl_func_list="$gl_func_list nanotime"
1755 gl_header_list="$gl_header_list stddef.h"
1756 gl_header_list="$gl_header_list stdlib.h"
1757 gl_header_list="$gl_header_list string.h"
1758 gl_func_list="$gl_func_list setlocale"
1759 gl_header_list="$gl_header_list wchar.h"
1760 gl_header_list="$gl_header_list wctype.h"
1761 gl_func_list="$gl_func_list iswprint"
1762 gl_func_list="$gl_func_list mbsinit"
1763 gl_func_list="$gl_func_list lchmod"
1764 gl_header_list="$gl_header_list utmpx.h"
1765 gl_func_list="$gl_func_list utmpname"
1766 gl_func_list="$gl_func_list utmpxname"
1767 gl_header_list="$gl_header_list locale.h"
1768 gl_func_list="$gl_func_list isblank"
1769 gl_func_list="$gl_func_list mbrtowc"
1770 gl_func_list="$gl_func_list wcrtomb"
1771 gl_func_list="$gl_func_list wcscoll"
1772 gl_func_list="$gl_func_list fchdir"
1773 gl_func_list="$gl_func_list settimeofday"
1774 gl_func_list="$gl_func_list stime"
1775 gl_header_list="$gl_header_list utime.h"
1776 gl_func_list="$gl_func_list futimes"
1777 gl_func_list="$gl_func_list futimesat"
1778 gl_func_list="$gl_func_list mblen"
1779 gl_func_list="$gl_func_list mbrlen"
1780 gl_func_list="$gl_func_list tzset"
1781 gl_func_list="$gl_func_list siginterrupt"
1782 gl_func_list="$gl_func_list fdopendir"
1783 gl_func_list="$gl_func_list directio"
1784 gl_func_list="$gl_func_list endgrent"
1785 gl_func_list="$gl_func_list endpwent"
1786 gl_func_list="$gl_func_list fchmod"
1787 gl_func_list="$gl_func_list fchown"
1788 gl_func_list="$gl_func_list ftruncate"
1789 gl_func_list="$gl_func_list hasmntopt"
1790 gl_func_list="$gl_func_list iswspace"
1791 gl_func_list="$gl_func_list lchown"
1792 gl_func_list="$gl_func_list listmntent"
1793 gl_func_list="$gl_func_list mkfifo"
1794 gl_func_list="$gl_func_list realpath"
1795 gl_func_list="$gl_func_list setgroups"
1796 gl_func_list="$gl_func_list sethostname"
1797 gl_func_list="$gl_func_list sync"
1798 gl_func_list="$gl_func_list sysctl"
1799 gl_func_list="$gl_func_list sysinfo"
1800 gl_func_list="$gl_func_list tcgetpgrp"
1801 gl_header_list="$gl_header_list sys/sysmacros.h"
1802 gl_func_list="$gl_func_list statvfs"
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *" "*|*" "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1836 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 *) ac_arg=$ac_var=$ac_new_val ;;
1839 case " $ac_configure_args " in
1840 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1841 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845 if $ac_cache_corrupted; then
1846 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1847 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1848 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1849 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1850 { (exit 1); exit 1; }; }
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 for ac_dir in build-aux $srcdir/build-aux; do
1888 if test -f $ac_dir/install-sh; then
1890 ac_install_sh="$ac_aux_dir/install-sh -c"
1892 elif test -f $ac_dir/install.sh; then
1894 ac_install_sh="$ac_aux_dir/install.sh -c"
1896 elif test -f $ac_dir/shtool; then
1898 ac_install_sh="$ac_aux_dir/shtool install -c"
1902 if test -z "$ac_aux_dir"; then
1903 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1904 echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1905 { (exit 1); exit 1; }; }
1907 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1908 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1909 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1911 ac_config_headers="$ac_config_headers config.h:config.hin"
1914 # Make sure we can run config.sub.
1915 $ac_config_sub sun4 >/dev/null 2>&1 ||
1916 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1917 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1918 { (exit 1); exit 1; }; }
1920 { echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927 ac_build_alias=`$ac_config_guess`
1928 test "x$ac_build_alias" = x &&
1929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1933 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1934 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 echo "$as_me: error: invalid value of canonical build" >&2;}
1944 { (exit 1); exit 1; }; };;
1947 ac_save_IFS=$IFS; IFS='-'
1953 # Remember, the first character of IFS is used to create $*:
1958 { echo "$as_me:$LINENO: checking host system type" >&5
1959 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1960 if test "${ac_cv_host+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test "x$host_alias" = x; then
1964 ac_cv_host=$ac_cv_build
1966 ac_cv_host=`$ac_config_sub $host_alias` ||
1967 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1968 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1973 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6; }
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1978 echo "$as_me: error: invalid value of canonical host" >&2;}
1979 { (exit 1); exit 1; }; };;
1982 ac_save_IFS=$IFS; IFS='-'
1988 # Remember, the first character of IFS is used to create $*:
1997 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
1998 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
1999 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2000 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2002 if test "$hostname"; then
2003 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2004 echo "$as_me: autobuild hostname... $hostname" >&6;}
2007 date=`date +%Y%m%d-%H%M%S`
2008 if test "$?" != 0; then
2011 if test "$date"; then
2012 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2013 echo "$as_me: autobuild timestamp... $date" >&6;}
2016 am__api_version="1.9"
2017 # Find a good install program. We prefer a C program (faster),
2018 # so one script is as good as another. But avoid the broken or
2019 # incompatible versions:
2020 # SysV /etc/install, /usr/sbin/install
2021 # SunOS /usr/etc/install
2022 # IRIX /sbin/install
2024 # AmigaOS /C/install, which installs bootblocks on floppy discs
2025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2028 # OS/2's system install, which has a completely different semantic
2029 # ./install, which can be erroneously created by make from ./install.sh.
2030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2032 if test -z "$INSTALL"; then
2033 if test "${ac_cv_path_install+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 # Account for people who put trailing slashes in PATH elements.
2043 ./ | .// | /cC/* | \
2044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2048 # OSF1 and SCO ODT 3.0 have their own names for install.
2049 # Don't use installbsd from OSF since it installs stuff as root
2051 for ac_prog in ginstall scoinst install; do
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2054 if test $ac_prog = install &&
2055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # AIX install. It has an incompatible calling convention.
2058 elif test $ac_prog = install &&
2059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2060 # program-specific install script used by HP pwplus--don't use.
2063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2079 # As a last resort, use the slow shell script. Don't cache a
2080 # value for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the value is a relative name.
2083 INSTALL=$ac_install_sh
2086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2087 echo "${ECHO_T}$INSTALL" >&6; }
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2098 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2101 echo timestamp > conftest.file
2102 # Do `set' in a subshell so we don't clobber the current shell's
2103 # arguments. Must try -L first in case configure is actually a
2104 # symlink; some systems play weird games with the mod time of symlinks
2105 # (eg FreeBSD returns the mod time of the symlink's containing
2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2109 if test "$*" = "X"; then
2111 set X `ls -t $srcdir/configure conftest.file`
2114 if test "$*" != "X $srcdir/configure conftest.file" \
2115 && test "$*" != "X conftest.file $srcdir/configure"; then
2117 # If neither matched, then we have a broken ls. This can happen
2118 # if, for instance, CONFIG_SHELL is bash and it inherits a
2119 # broken ls alias from the environment. This has actually
2120 # happened. Such a system could not be considered "sane".
2121 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&5
2123 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2124 alias in your environment" >&2;}
2125 { (exit 1); exit 1; }; }
2128 test "$2" = conftest.file
2134 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2135 Check your system clock" >&5
2136 echo "$as_me: error: newly created file is older than distributed files!
2137 Check your system clock" >&2;}
2138 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6; }
2142 test "$program_prefix" != NONE &&
2143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2144 # Use a double $ so make ignores it.
2145 test "$program_suffix" != NONE &&
2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2147 # Double any \ or $. echo might interpret backslashes.
2148 # By default was `s,x,x', remove it if useless.
2149 cat <<\_ACEOF >conftest.sed
2150 s/[\\$]/&&/g;s/;s,x,x,$//
2152 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2155 # expand $ac_aux_dir to an absolute path
2156 am_aux_dir=`cd $ac_aux_dir && pwd`
2158 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2159 # Use eval to expand $SHELL
2160 if eval "$MISSING --run true"; then
2161 am_missing_run="$MISSING --run "
2164 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2165 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2168 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2169 # We used to keeping the `.' as first argument, in order to
2170 # allow $(mkdir_p) to be used without argument. As in
2171 # $(mkdir_p) $(somedir)
2172 # where $(somedir) is conditionally defined. However this is wrong
2174 # 1. if the package is installed by a user who cannot write `.'
2175 # make install will fail,
2176 # 2. the above comment should most certainly read
2177 # $(mkdir_p) $(DESTDIR)$(somedir)
2178 # so it does not work when $(somedir) is undefined and
2179 # $(DESTDIR) is not.
2180 # To support the latter case, we have to write
2181 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2182 # so the `.' trick is pointless.
2183 mkdir_p='mkdir -p --'
2185 # On NextStep and OpenStep, the `mkdir' command does not
2186 # recognize any option. It will interpret all options as
2187 # directories to create, and then abort because `.' already
2189 for d in ./-p ./--version;
2191 test -d $d && rmdir $d
2193 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2194 if test -f "$ac_aux_dir/mkinstalldirs"; then
2195 mkdir_p='$(mkinstalldirs)'
2197 mkdir_p='$(install_sh) -d'
2201 for ac_prog in gawk mawk nawk awk
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_AWK+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$AWK"; then
2211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2220 ac_cv_prog_AWK="$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 if test -n "$AWK"; then
2232 { echo "$as_me:$LINENO: result: $AWK" >&5
2233 echo "${ECHO_T}$AWK" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2240 test -n "$AWK" && break
2243 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2244 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2245 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2246 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 cat >conftest.make <<\_ACEOF
2252 @echo 'ac_maketemp=X"$(MAKE)"'
2254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2256 if test "$ac_maketemp" != X ; then
2257 eval ac_cv_prog_make_${ac_make}_set=yes
2259 eval ac_cv_prog_make_${ac_make}_set=no
2263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 SET_MAKE="MAKE=${MAKE-make}"
2273 rm -rf .tst 2>/dev/null
2274 mkdir .tst 2>/dev/null
2275 if test -d .tst; then
2280 rmdir .tst 2>/dev/null
2282 # test to see if srcdir already configured
2283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2284 test -f $srcdir/config.status; then
2285 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2287 { (exit 1); exit 1; }; }
2290 # test whether we have cygpath
2291 if test -z "$CYGPATH_W"; then
2292 if (cygpath --version) >/dev/null 2>/dev/null; then
2293 CYGPATH_W='cygpath -w'
2300 # Define the identity of the package.
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE "$PACKAGE"
2310 cat >>confdefs.h <<_ACEOF
2311 #define VERSION "$VERSION"
2314 # Some tools Automake needs.
2316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2332 # Installed binaries are usually stripped using `strip' when the user
2333 # run `make install-strip'. However `strip' might not be the right
2334 # tool to use in cross-compilation environments, therefore Automake
2335 # will honor the `STRIP' environment variable to overrule this program.
2336 if test "$cross_compiling" != no; then
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}strip; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_STRIP+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$STRIP"; then
2346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 STRIP=$ac_cv_prog_STRIP
2366 if test -n "$STRIP"; then
2367 { echo "$as_me:$LINENO: result: $STRIP" >&5
2368 echo "${ECHO_T}$STRIP" >&6; }
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2376 if test -z "$ac_cv_prog_STRIP"; then
2378 # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$ac_ct_STRIP"; then
2386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_STRIP="strip"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2406 if test -n "$ac_ct_STRIP"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2408 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2414 if test "x$ac_ct_STRIP" = x; then
2417 case $cross_compiling:$ac_tool_warned in
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2430 STRIP="$ac_cv_prog_STRIP"
2434 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2436 # We need awk for the "check" target. The system "awk" is bad on
2438 # Always define AMTAR for backward compatibility.
2440 AMTAR=${AMTAR-"${am_missing_run}tar"}
2442 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450 { echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
2451 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6; }
2452 gl_default_posix2_version=none-specified
2453 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
2454 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
2456 cat >>confdefs.h <<_ACEOF
2457 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
2461 { echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
2462 echo "${ECHO_T}$gl_default_posix2_version" >&6; }
2466 cat >>confdefs.h <<\_ACEOF
2467 #define _GNU_SOURCE 1
2471 DEPDIR="${am__leading_dot}deps"
2473 ac_config_commands="$ac_config_commands depfiles"
2476 am_make=${MAKE-make}
2477 cat > confinc << 'END'
2482 # If we don't find an include directive, just comment out the code.
2483 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2484 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2488 # First try GNU make style include.
2489 echo "include confinc" > confmf
2490 # We grep out `Entering directory' and `Leaving directory'
2491 # messages which can occur if `w' ends up in MAKEFLAGS.
2492 # In particular we don't look at `^make:' because GNU make might
2493 # be invoked under some other name (usually "gmake"), in which
2494 # case it prints its new name instead of `make'.
2495 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2500 # Now try BSD make style include.
2501 if test "$am__include" = "#"; then
2502 echo '.include "confinc"' > confmf
2503 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2504 am__include=.include
2511 { echo "$as_me:$LINENO: result: $_am_result" >&5
2512 echo "${ECHO_T}$_am_result" >&6; }
2513 rm -f confinc confmf
2515 # Check whether --enable-dependency-tracking was given.
2516 if test "${enable_dependency_tracking+set}" = set; then
2517 enableval=$enable_dependency_tracking;
2520 if test "x$enable_dependency_tracking" != xno; then
2521 am_depcomp="$ac_aux_dir/depcomp"
2526 if test "x$enable_dependency_tracking" != xno; then
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2580 if test -z "$ac_cv_prog_CC"; then
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2678 if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 if test -n "$CC"; then
2725 { echo "$as_me:$LINENO: result: $CC" >&5
2726 echo "${ECHO_T}$CC" >&6; }
2728 { echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6; }
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2775 test -n "$CC" && break
2778 if test -z "$CC"; then
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2819 test -n "$ac_ct_CC" && break
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet. If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2848 # Provide some information about the compiler.
2849 echo "$as_me:$LINENO: checking for C compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2852 (eval $ac_compiler --version >&5) 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2857 (eval $ac_compiler -v >&5) 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2862 (eval $ac_compiler -V >&5) 2>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2868 # List of possible output files. We want to start from the most likely,
2869 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2870 # also for foo.exe. b.out is created by i960 compilers.
2871 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2872 # But we are not allowed to rm a.*, and we do not want always remove
2873 # conftest.*, so we will list them literally, when appropriate.
2874 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2876 # The IRIX 6 linker writes into existing files which may not be
2877 # executable, retaining their permissions. Remove them first so a
2878 # subsequent execution test works.
2879 rm -f $ac_outfiles conftest.*
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2897 ac_clean_files_save=$ac_clean_files
2898 ac_clean_files="$ac_clean_files $ac_outfiles"
2900 # The following tests should remove their output except files matching conftest.*.
2901 # Try to create an executable without -o first, disregard a.out.
2902 # It will help us diagnose broken compilers, and finding out an intuition
2904 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2905 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2906 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2909 (eval $ac_link_default) 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 for ac_file in $ac_outfiles a.* conftest.* NO
2915 test -f "$ac_file" || continue
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2921 if test "$ac_file" = NO; then
2922 { { echo "$as_me:$LINENO: error: no output file found
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: no output file found
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2935 See \`config.log' for more details." >&5
2936 echo "$as_me: error: C compiler cannot create executables
2937 See \`config.log' for more details." >&2;}
2938 { (exit 77); exit 77; }; }
2941 { echo "$as_me:$LINENO: result: $ac_file" >&5
2942 echo "${ECHO_T}$ac_file" >&6; }
2943 # Check that the compiler produces executables we can run. If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2948 # If not cross compiling, check that we can run a simple program.
2949 if test "$cross_compiling" != yes; then
2950 if { ac_try='./$ac_file'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 if test "$cross_compiling" = maybe; then
2961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: cannot run C compiled programs.
2965 If you meant to cross compile, use \`--host'.
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2971 { echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6; }
2974 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2975 rm -f $ac_outfiles $ac_file
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if test "${ac_cv_exeext+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988 (eval $ac_link) 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2995 for ac_file in conftest.exe conftest conftest.* NO; do
2996 test -f "$ac_file" || continue
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 if test "$ac_file" = NO; then
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of executables: no output file found
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 # Clean up; list also $ac_file, in case it matched conftest.*.
3013 rm -f $ac_outfiles $ac_file
3016 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3026 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3027 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3028 EXEEXT=$ac_cv_exeext
3032 ac_clean_files=$ac_clean_files_save
3034 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3035 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3036 if test "${ac_cv_objext+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 for ac_file in conftest.o conftest.obj conftest.*; do
3046 test -f "$ac_file" || continue;
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3058 See \`config.log' for more details." >&5
3059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3060 See \`config.log' for more details." >&2;}
3061 { (exit 1); exit 1; }; }
3065 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066 echo "${ECHO_T}$ac_cv_objext" >&6; }
3067 OBJEXT=$ac_cv_objext
3072 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3073 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3074 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag"
3105 || test ! -s conftest.err'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3131 GCC=`test $ac_compiler_gnu = yes && echo yes`
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_cc_g+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 ac_save_c_werror_flag=$ac_c_werror_flag
3140 ac_c_werror_flag=yes
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag"
3168 || test ! -s conftest.err'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -z "$ac_c_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -z "$ac_c_werror_flag"
3255 || test ! -s conftest.err'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; } &&
3261 { ac_try='test -s conftest.$ac_objext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3284 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
3287 CFLAGS=$ac_save_CFLAGS
3288 elif test $ac_cv_prog_cc_g = yes; then
3289 if test "$GCC" = yes; then
3295 if test "$GCC" = yes; then
3301 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3302 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3303 if test "${ac_cv_prog_cc_c89+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_cv_prog_cc_c89=no
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3316 #include <sys/types.h>
3317 #include <sys/stat.h>
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3332 s = g (p, va_arg (v,int));
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag"
3374 || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cc_c89=$ac_arg
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3394 rm -f conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
3397 rm -f conftest.$ac_ext
3402 case "x$ac_cv_prog_cc_c89" in
3404 { echo "$as_me:$LINENO: result: none needed" >&5
3405 echo "${ECHO_T}none needed" >&6; } ;;
3407 { echo "$as_me:$LINENO: result: unsupported" >&5
3408 echo "${ECHO_T}unsupported" >&6; } ;;
3410 CC="$CC $ac_cv_prog_cc_c89"
3411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 depcc="$CC" am_compiler_list=
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430 # We make a subdir and do the tests there. Otherwise we can end up
3431 # making bogus files that we don't know about and never remove. For
3432 # instance it was reported that on HP-UX the gcc test will end up
3433 # making a dummy file named `D' -- because `-MD' means `put the output
3436 # Copy depcomp to subdir because otherwise we won't find it if we're
3437 # using a relative directory.
3438 cp "$am_depcomp" conftest.dir
3440 # We will build objects and dependencies in a subdirectory because
3441 # it helps to detect inapplicable dependency modes. For instance
3442 # both Tru64's cc and ICC support -MD to output dependencies as a
3443 # side effect of compilation, but ICC will put the dependencies in
3444 # the current directory while Tru64 will put them in the object
3448 am_cv_CC_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3452 for depmode in $am_compiler_list; do
3453 # Setup a source with many dependencies, because some compilers
3454 # like to wrap large dependency lists on column 80 (with \), and
3455 # we should not choose a depcomp mode which is confused by this.
3457 # We need to recreate these files for each test, as the compiler may
3458 # overwrite some of them when testing with obscure command lines.
3459 # This happens at least with the AIX C compiler.
3461 for i in 1 2 3 4 5 6; do
3462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464 # Solaris 8's {/usr,}/bin/sh.
3465 touch sub/conftst$i.h
3467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3471 # after this tag, mechanisms are not by side-effect, so they'll
3472 # only be used when explicitly requested
3473 if test "x$enable_dependency_tracking" = xyes; then
3481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482 # mode. It turns out that the SunPro C++ compiler does not properly
3483 # handle `-M -o', and we need to detect this.
3484 if depmode=$depmode \
3485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488 >/dev/null 2>conftest.err &&
3489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492 # icc doesn't choke on unknown options, it will just issue warnings
3493 # or remarks (even with -Werror). So we grep stderr for any message
3494 # that says an option was ignored or not supported.
3495 # When given -MP, icc 7.0 and 7.1 complain thusly:
3496 # icc: Command line warning: ignoring option '-M'; no argument required
3497 # The diagnosis changed in icc 8.0:
3498 # icc: Command line remark: option '-MP' not supported
3499 if (grep 'ignoring option' conftest.err ||
3500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501 am_cv_CC_dependencies_compiler_type=$depmode
3510 am_cv_CC_dependencies_compiler_type=none
3514 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3521 test "x$enable_dependency_tracking" != xno \
3522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3524 am__fastdepCC_FALSE='#'
3526 am__fastdepCC_TRUE='#'
3527 am__fastdepCC_FALSE=
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3539 # On Suns, sometimes $CPP names a directory.
3540 if test -n "$CPP" && test -d "$CPP"; then
3543 if test -z "$CPP"; then
3544 if test "${ac_cv_prog_CPP+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 # Double quotes because CPP needs to be expanded
3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3551 for ac_c_preproc_warn_flag in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3566 # include <limits.h>
3568 # include <assert.h>
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 if test -z "$ac_cpp_err"; then
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # Broken: fails on valid input.
3599 rm -f conftest.err conftest.$ac_ext
3601 # OK, works on sane cases. Now check whether nonexistent headers
3602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null; then
3619 if test -s conftest.err; then
3620 ac_cpp_err=$ac_c_preproc_warn_flag
3621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3628 if test -z "$ac_cpp_err"; then
3629 # Broken: success on invalid input.
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Passes both tests.
3640 rm -f conftest.err conftest.$ac_ext
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3657 { echo "$as_me:$LINENO: result: $CPP" >&5
3658 echo "${ECHO_T}$CPP" >&6; }
3660 for ac_c_preproc_warn_flag in '' yes
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 # include <limits.h>
3677 # include <assert.h>
3681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null; then
3689 if test -s conftest.err; then
3690 ac_cpp_err=$ac_c_preproc_warn_flag
3691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3698 if test -z "$ac_cpp_err"; then
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 # Broken: fails on valid input.
3708 rm -f conftest.err conftest.$ac_ext
3710 # OK, works on sane cases. Now check whether nonexistent headers
3711 # can be detected and how.
3712 cat >conftest.$ac_ext <<_ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <ac_nonexistent.h>
3720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null; then
3728 if test -s conftest.err; then
3729 ac_cpp_err=$ac_c_preproc_warn_flag
3730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 if test -z "$ac_cpp_err"; then
3738 # Broken: success on invalid input.
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Passes both tests.
3749 rm -f conftest.err conftest.$ac_ext
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3757 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3772 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_GREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 # Extract the first word of "grep ggrep" to use in msg output
3777 if test -z "$GREP"; then
3778 set dummy grep ggrep; ac_prog_name=$2
3779 if test "${ac_cv_path_GREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 ac_path_GREP_found=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in grep ggrep; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3792 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3793 # Check for GNU ac_path_GREP and select it if it is found.
3794 # Check for GNU $ac_path_GREP
3795 case `"$ac_path_GREP" --version 2>&1` in
3797 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3800 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 echo 'GREP' >> "conftest.nl"
3807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809 ac_count=`expr $ac_count + 1`
3810 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_GREP="$ac_path_GREP"
3813 ac_path_GREP_max=$ac_count
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3822 $ac_path_GREP_found && break 3
3832 GREP="$ac_cv_path_GREP"
3833 if test -z "$GREP"; then
3834 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836 { (exit 1); exit 1; }; }
3840 ac_cv_path_GREP=$GREP
3845 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3846 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3847 GREP="$ac_cv_path_GREP"
3850 { echo "$as_me:$LINENO: checking for egrep" >&5
3851 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3852 if test "${ac_cv_path_EGREP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3856 then ac_cv_path_EGREP="$GREP -E"
3858 # Extract the first word of "egrep" to use in msg output
3859 if test -z "$EGREP"; then
3860 set dummy egrep; ac_prog_name=$2
3861 if test "${ac_cv_path_EGREP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_path_EGREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in egrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3874 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3875 # Check for GNU ac_path_EGREP and select it if it is found.
3876 # Check for GNU $ac_path_EGREP
3877 case `"$ac_path_EGREP" --version 2>&1` in
3879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3882 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 echo 'EGREP' >> "conftest.nl"
3889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 ac_count=`expr $ac_count + 1`
3892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_EGREP="$ac_path_EGREP"
3895 ac_path_EGREP_max=$ac_count
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3904 $ac_path_EGREP_found && break 3
3914 EGREP="$ac_cv_path_EGREP"
3915 if test -z "$EGREP"; then
3916 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3917 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3918 { (exit 1); exit 1; }; }
3922 ac_cv_path_EGREP=$EGREP
3928 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3929 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3930 EGREP="$ac_cv_path_EGREP"
3934 { echo "$as_me:$LINENO: checking for AIX" >&5
3935 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 $EGREP "yes" >/dev/null 2>&1; then
3949 { echo "$as_me:$LINENO: result: yes" >&5
3950 echo "${ECHO_T}yes" >&6; }
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _ALL_SOURCE 1
3956 { echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6; }
3962 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3963 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3964 if test "${ac_cv_header_stdc+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_header_stdc=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 ac_cv_header_stdc=no
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 if test $ac_cv_header_stdc = yes; then
4019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 $EGREP "memchr" >/dev/null 2>&1; then
4033 ac_cv_header_stdc=no
4039 if test $ac_cv_header_stdc = yes; then
4040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051 $EGREP "free" >/dev/null 2>&1; then
4054 ac_cv_header_stdc=no
4060 if test $ac_cv_header_stdc = yes; then
4061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4062 if test "$cross_compiling" = yes; then
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4073 #if ((' ' & 0x0FF) == 0x020)
4074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4077 # define ISLOWER(c) \
4078 (('a' <= (c) && (c) <= 'i') \
4079 || ('j' <= (c) && (c) <= 'r') \
4080 || ('s' <= (c) && (c) <= 'z'))
4081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4089 for (i = 0; i < 256; i++)
4090 if (XOR (islower (i), ISLOWER (i))
4091 || toupper (i) != TOUPPER (i))
4096 rm -f conftest$ac_exeext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4098 (eval $ac_link) 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4109 echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_cv_header_stdc=no
4116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4126 cat >>confdefs.h <<\_ACEOF
4127 #define STDC_HEADERS 1
4132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4143 inttypes.h stdint.h unistd.h
4145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4159 #include <$ac_header>
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4165 grep -v '^ *+' conftest.er1 >conftest.err
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 eval "$as_ac_Header=yes"
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 eval "$as_ac_Header=no"
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_res=`eval echo '${'$as_ac_Header'}'`
4194 { echo "$as_me:$LINENO: result: $ac_res" >&5
4195 echo "${ECHO_T}$ac_res" >&6; }
4196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197 cat >>confdefs.h <<_ACEOF
4198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4206 if test "${ac_cv_header_minix_config_h+set}" = set; then
4207 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4208 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4209 if test "${ac_cv_header_minix_config_h+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4213 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4215 # Is the header compilable?
4216 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4217 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 $ac_includes_default
4225 #include <minix/config.h>
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_header_compiler=yes
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_header_compiler=no
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4259 echo "${ECHO_T}$ac_header_compiler" >&6; }
4261 # Is the header present?
4262 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4263 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <minix/config.h>
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_c_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4289 if test -z "$ac_cpp_err"; then
4290 ac_header_preproc=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_header_preproc=no
4298 rm -f conftest.err conftest.$ac_ext
4299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4300 echo "${ECHO_T}$ac_header_preproc" >&6; }
4302 # So? What about this header?
4303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4305 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4306 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4307 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4308 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4309 ac_header_preproc=yes
4312 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4313 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4315 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4316 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4317 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4319 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4320 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4321 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4322 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4323 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4325 ## ------------------------------------ ##
4326 ## Report this to bug-coreutils@gnu.org ##
4327 ## ------------------------------------ ##
4329 ) | sed "s/^/$as_me: WARNING: /" >&2
4332 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4333 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4334 if test "${ac_cv_header_minix_config_h+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 ac_cv_header_minix_config_h=$ac_header_preproc
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4340 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4343 if test $ac_cv_header_minix_config_h = yes; then
4350 if test "$MINIX" = yes; then
4352 cat >>confdefs.h <<\_ACEOF
4353 #define _POSIX_SOURCE 1
4357 cat >>confdefs.h <<\_ACEOF
4358 #define _POSIX_1_SOURCE 2
4362 cat >>confdefs.h <<\_ACEOF
4378 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4379 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4380 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4390 #define __EXTENSIONS__ 1
4391 $ac_includes_default
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_safe_to_define___extensions__=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_cv_safe_to_define___extensions__=no
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4432 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4433 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4434 test $ac_cv_safe_to_define___extensions__ = yes &&
4435 cat >>confdefs.h <<\_ACEOF
4436 #define __EXTENSIONS__ 1
4439 cat >>confdefs.h <<\_ACEOF
4440 #define _POSIX_PTHREAD_SEMANTICS 1
4445 { echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
4446 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6; }
4447 if test "${PERL+set}" = set; then
4448 # `PERL' is set in the user's environment.
4449 candidate_perl_names="$PERL"
4452 candidate_perl_names='perl perl5'
4458 PERL="$am_missing_run perl"
4459 for perl in $candidate_perl_names; do
4460 # Run test in a subshell; some versions of sh will print an error if
4461 # an executable is not found, even if stderr is redirected.
4462 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
4469 { echo "$as_me:$LINENO: result: $found" >&5
4470 echo "${ECHO_T}$found" >&6; }
4471 test $found = no && { echo "$as_me:$LINENO: WARNING:
4472 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4473 a usable version of the Perl File::Compare module. As a result,
4474 you may be unable to run a few tests or to regenerate certain
4475 files if you modify the sources from which they are derived.
4477 echo "$as_me: WARNING:
4478 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
4479 a usable version of the Perl File::Compare module. As a result,
4480 you may be unable to run a few tests or to regenerate certain
4481 files if you modify the sources from which they are derived.
4484 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4485 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_cc_c99+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 ac_cv_prog_cc_c99=no
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4498 #include <stdbool.h>
4503 struct incomplete_array
4511 const wchar_t *name;
4515 typedef const char *ccp;
4518 test_restrict(ccp restrict text)
4520 // See if C++-style comments work.
4521 // Iterate through items via the restricted pointer.
4522 // Also check for declarations in for loops.
4523 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4528 // Check varargs and va_copy work.
4530 test_varargs(const char *format, ...)
4533 va_start(args, format);
4535 va_copy(args_copy, args);
4546 str = va_arg(args_copy, const char *);
4549 number = va_arg(args_copy, int);
4552 fnumber = (float) va_arg(args_copy, double);
4566 // Check bool and long long datatypes.
4567 _Bool success = false;
4568 long long int bignum = -1234567890LL;
4569 unsigned long long int ubignum = 1234567890uLL;
4572 if (test_restrict("String literal") != 0)
4574 char *restrict newvar = "Another string";
4577 test_varargs("s, d' f .", "string", 65, 34.234);
4579 // Check incomplete arrays work.
4580 struct incomplete_array *ia =
4581 malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
4583 for (int i = 0; i < ia->datasize; ++i)
4584 ia->data[i] = (double) i * 1.234;
4586 // Check named initialisers.
4587 struct named_init ni = {
4589 .name = L"Test wide string",
4590 .average = 543.34343,
4595 int dynamic_array[ni.number];
4596 dynamic_array[43] = 543;
4598 // work around unused variable warnings
4599 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
4605 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4607 CC="$ac_save_CC $ac_arg"
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -z "$ac_c_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_cv_prog_cc_c99=$ac_arg
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4638 rm -f conftest.err conftest.$ac_objext
4639 test "x$ac_cv_prog_cc_c99" != "xno" && break
4641 rm -f conftest.$ac_ext
4646 case "x$ac_cv_prog_cc_c99" in
4648 { echo "$as_me:$LINENO: result: none needed" >&5
4649 echo "${ECHO_T}none needed" >&6; } ;;
4651 { echo "$as_me:$LINENO: result: unsupported" >&5
4652 echo "${ECHO_T}unsupported" >&6; } ;;
4654 CC="$CC $ac_cv_prog_cc_c99"
4655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4656 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4658 if test "x$ac_cv_prog_cc_c99" != xno; then
4659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_cc_c89+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_prog_cc_c89=no
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 #include <sys/stat.h>
4678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4679 struct buf { int x; };
4680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4681 static char *e (p, i)
4687 static char *f (char * (*g) (char **, int), char **p, ...)
4692 s = g (p, va_arg (v,int));
4697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4698 function prototypes and stuff, but not '\xHH' hex character constants.
4699 These don't provoke an error unfortunately, instead are silently treated
4700 as 'x'. The following induces an error, until -std is added to get
4701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4702 array size at least. It's necessary to write '\x00'==0 to get something
4703 that's true only with -std. */
4704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723 CC="$ac_save_CC $ac_arg"
4724 rm -f conftest.$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_prog_cc_c89=$ac_arg
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4754 rm -f conftest.err conftest.$ac_objext
4755 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 rm -f conftest.$ac_ext
4762 case "x$ac_cv_prog_cc_c89" in
4764 { echo "$as_me:$LINENO: result: none needed" >&5
4765 echo "${ECHO_T}none needed" >&6; } ;;
4767 { echo "$as_me:$LINENO: result: unsupported" >&5
4768 echo "${ECHO_T}unsupported" >&6; } ;;
4770 CC="$CC $ac_cv_prog_cc_c89"
4771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4772 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4774 if test "x$ac_cv_prog_cc_c89" != xno; then
4775 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4777 ac_cv_prog_cc_stdc=no
4783 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4784 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 case "x$ac_cv_prog_cc_stdc" in
4791 { echo "$as_me:$LINENO: result: unsupported" >&5
4792 echo "${ECHO_T}unsupported" >&6; }
4795 if test "x$ac_cv_prog_cc_stdc" = x; then
4796 { echo "$as_me:$LINENO: result: none needed" >&5
4797 echo "${ECHO_T}none needed" >&6; }
4799 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4800 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
4805 if test "x$CC" != xcc; then
4806 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4809 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4812 set dummy $CC; ac_cc=`echo $2 |
4813 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4814 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4832 # Make sure it works both with $CC and with simple cc.
4833 # We do the test twice because some compilers refuse to overwrite an
4834 # existing .o file with -o, though they will create one.
4835 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); };
4848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4849 if test "x$CC" != xcc; then
4850 # Test first that cc exists at all.
4851 if { ac_try='cc -c conftest.$ac_ext >&5'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4859 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); };
4873 # cc exists but doesn't like -o.
4874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4885 { echo "$as_me:$LINENO: result: yes" >&5
4886 echo "${ECHO_T}yes" >&6; }
4888 { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4891 cat >>confdefs.h <<\_ACEOF
4892 #define NO_MINUS_C_MINUS_O 1
4897 # FIXME: we rely on the cache variable name because
4898 # there is no other way.
4900 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4901 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4902 # Losing compiler, so override with the script.
4903 # FIXME: It is wrong to rewrite CC.
4904 # But if we don't then we get into trouble of one sort or another.
4905 # A longer-term fix would be to have automake use am__CC in this case,
4906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4907 CC="$am_aux_dir/compile $CC"
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4917 # On Suns, sometimes $CPP names a directory.
4918 if test -n "$CPP" && test -d "$CPP"; then
4921 if test -z "$CPP"; then
4922 if test "${ac_cv_prog_CPP+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 # Double quotes because CPP needs to be expanded
4926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4929 for ac_c_preproc_warn_flag in '' yes
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat >conftest.$ac_ext <<_ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 # include <limits.h>
4946 # include <assert.h>
4950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null; then
4958 if test -s conftest.err; then
4959 ac_cpp_err=$ac_c_preproc_warn_flag
4960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4967 if test -z "$ac_cpp_err"; then
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 # Broken: fails on valid input.
4977 rm -f conftest.err conftest.$ac_ext
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 #include <ac_nonexistent.h>
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_c_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5006 if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 # Passes both tests.
5018 rm -f conftest.err conftest.$ac_ext
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5035 { echo "$as_me:$LINENO: result: $CPP" >&5
5036 echo "${ECHO_T}$CPP" >&6; }
5038 for ac_c_preproc_warn_flag in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1 >conftest.err
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_c_preproc_warn_flag
5069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5076 if test -z "$ac_cpp_err"; then
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 # Broken: fails on valid input.
5086 rm -f conftest.err conftest.$ac_ext
5088 # OK, works on sane cases. Now check whether nonexistent headers
5089 # can be detected and how.
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_c_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5115 if test -z "$ac_cpp_err"; then
5116 # Broken: success on invalid input.
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 # Passes both tests.
5127 rm -f conftest.err conftest.$ac_ext
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then
5135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5136 See \`config.log' for more details." >&5
5137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5138 See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 if test $ac_cv_c_compiler_gnu = yes; then
5149 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_pattern="Autoconf.*'x'"
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5166 ac_cv_prog_gcc_traditional=yes
5168 ac_cv_prog_gcc_traditional=no
5173 if test $ac_cv_prog_gcc_traditional = no; then
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5185 ac_cv_prog_gcc_traditional=yes
5191 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5193 if test $ac_cv_prog_gcc_traditional = yes; then
5194 CC="$CC -traditional"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5203 if test "${ac_cv_prog_RANLIB+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 if test -n "$RANLIB"; then
5207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 RANLIB=$ac_cv_prog_RANLIB
5227 if test -n "$RANLIB"; then
5228 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5229 echo "${ECHO_T}$RANLIB" >&6; }
5231 { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5237 if test -z "$ac_cv_prog_RANLIB"; then
5238 ac_ct_RANLIB=$RANLIB
5239 # Extract the first word of "ranlib", so it can be a program name with args.
5240 set dummy ranlib; ac_word=$2
5241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5243 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test -n "$ac_ct_RANLIB"; then
5247 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_ac_ct_RANLIB="ranlib"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5267 if test -n "$ac_ct_RANLIB"; then
5268 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5269 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5271 { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5275 if test "x$ac_ct_RANLIB" = x; then
5278 case $cross_compiling:$ac_tool_warned in
5280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281 whose name does not start with the host triplet. If you think this
5282 configuration is useful to you, please write to autoconf@gnu.org." >&5
5283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet. If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286 ac_tool_warned=yes ;;
5288 RANLIB=$ac_ct_RANLIB
5291 RANLIB="$ac_cv_prog_RANLIB"
5294 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5295 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5297 if test "$LN_S" = "ln -s"; then
5298 { echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6; }
5301 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5302 echo "${ECHO_T}no, using $LN_S" >&6; }
5306 { echo "$as_me:$LINENO: checking for flag to ignore unused libraries" >&5
5307 echo $ECHO_N "checking for flag to ignore unused libraries... $ECHO_C" >&6; }
5308 if test "${gl_cv_ignore_unused_libraries+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 gl_cv_ignore_unused_libraries=none
5312 gl_saved_ldflags=$LDFLAGS
5313 # Use long option sequences like '-z ignore' to test for the feature,
5314 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
5315 for gl_flags in '-Wl,-z,ignore' '-z ignore'; do
5316 LDFLAGS="$gl_flags $LDFLAGS"
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 gl_cv_ignore_unused_libraries=$gl_flags
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364 LDFLAGS=$gl_saved_ldflags
5365 test "$gl_cv_ignore_unused_libraries" != none && break
5368 { echo "$as_me:$LINENO: result: $gl_cv_ignore_unused_libraries" >&5
5369 echo "${ECHO_T}$gl_cv_ignore_unused_libraries" >&6; }
5371 test "$gl_cv_ignore_unused_libraries" != none &&
5372 LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
5377 for ac_func in uname
5379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5393 #define $ac_func innocuous_$ac_func
5395 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func (); below.
5397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 <limits.h> exists even on freestanding compilers. */
5401 # include <limits.h>
5403 # include <assert.h>
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5415 /* The GNU C library defines this for functions which it implements
5416 to always fail with ENOSYS. Some functions are actually named
5417 something starting with __ and the normal name is an alias. */
5418 #if defined __stub_$ac_func || defined __stub___$ac_func
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest$ac_exeext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 eval "$as_ac_var=yes"
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 eval "$as_ac_var=no"
5460 rm -f conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5463 ac_res=`eval echo '${'$as_ac_var'}'`
5464 { echo "$as_me:$LINENO: result: $ac_res" >&5
5465 echo "${ECHO_T}$ac_res" >&6; }
5466 if test `eval echo '${'$as_ac_var'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5470 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5476 for ac_func in chroot
5478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5492 #define $ac_func innocuous_$ac_func
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func (); below.
5496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497 <limits.h> exists even on freestanding compilers. */
5500 # include <limits.h>
5502 # include <assert.h>
5507 /* Override any GCC internal prototype to avoid an error.
5508 Use char because int might match the return type of a GCC
5509 builtin and then its argument prototype would still apply. */
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined __stub_$ac_func || defined __stub___$ac_func
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 eval "$as_ac_var=yes"
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 eval "$as_ac_var=no"
5559 rm -f conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5562 ac_res=`eval echo '${'$as_ac_var'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5565 if test `eval echo '${'$as_ac_var'}'` = yes; then
5566 cat >>confdefs.h <<_ACEOF
5567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5569 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5575 for ac_func in gethostid
5577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5591 #define $ac_func innocuous_$ac_func
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func (); below.
5595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 <limits.h> exists even on freestanding compilers. */
5599 # include <limits.h>
5601 # include <assert.h>
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined __stub_$ac_func || defined __stub___$ac_func
5628 rm -f conftest.$ac_objext conftest$ac_exeext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag"
5638 || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest$ac_exeext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 eval "$as_ac_var=yes"
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 eval "$as_ac_var=no"
5658 rm -f conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5661 ac_res=`eval echo '${'$as_ac_var'}'`
5662 { echo "$as_me:$LINENO: result: $ac_res" >&5
5663 echo "${ECHO_T}$ac_res" >&6; }
5664 if test `eval echo '${'$as_ac_var'}'` = yes; then
5665 cat >>confdefs.h <<_ACEOF
5666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5668 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5674 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5675 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5676 if test "${ac_cv_search_strerror+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 ac_func_search_save_LIBS=$LIBS
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 /* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
5702 for ac_lib in '' cposix; do
5703 if test -z "$ac_lib"; then
5704 ac_res="none required"
5707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_cv_search_strerror=$ac_res
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_objext \
5741 if test "${ac_cv_search_strerror+set}" = set; then
5745 if test "${ac_cv_search_strerror+set}" = set; then
5748 ac_cv_search_strerror=no
5751 LIBS=$ac_func_search_save_LIBS
5753 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5754 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5755 ac_res=$ac_cv_search_strerror
5756 if test "$ac_res" != no; then
5757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5761 # Check whether --enable-largefile was given.
5762 if test "${enable_largefile+set}" = set; then
5763 enableval=$enable_largefile;
5766 if test "$enable_largefile" != no; then
5768 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5769 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5770 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 ac_cv_sys_largefile_CC=no
5774 if test "$GCC" != yes; then
5777 # IRIX 6.2 and later do not support large files by default,
5778 # so use the C compiler's -n32 option if that helps.
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f conftest.err conftest.$ac_objext
5834 rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>conftest.er1
5838 grep -v '^ *+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -z "$ac_c_werror_flag"
5844 || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest.$ac_objext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_sys_largefile_CC=' -n32'; break
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f conftest.err conftest.$ac_objext
5868 rm -f conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5872 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5873 if test "$ac_cv_sys_largefile_CC" != no; then
5874 CC=$CC$ac_cv_sys_largefile_CC
5877 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5878 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_sys_file_offset_bits=no
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 /* Check that off_t can represent 2**63 - 1 correctly.
5892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893 since some C++ compilers masquerading as C compilers
5894 incorrectly reject 9223372036854775807. */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897 && LARGE_OFF_T % 2147483647 == 1)
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #define _FILE_OFFSET_BITS 64
5945 #include <sys/types.h>
5946 /* Check that off_t can represent 2**63 - 1 correctly.
5947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948 since some C++ compilers masquerading as C compilers
5949 incorrectly reject 9223372036854775807. */
5950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952 && LARGE_OFF_T % 2147483647 == 1)
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1 >conftest.err
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_sys_file_offset_bits=64; break
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5997 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5998 if test "$ac_cv_sys_file_offset_bits" != no; then
6000 cat >>confdefs.h <<_ACEOF
6001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6006 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6007 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
6008 if test "${ac_cv_sys_large_files+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_sys_large_files=no
6013 cat >conftest.$ac_ext <<_ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <sys/types.h>
6020 /* Check that off_t can represent 2**63 - 1 correctly.
6021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6022 since some C++ compilers masquerading as C compilers
6023 incorrectly reject 9223372036854775807. */
6024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6026 && LARGE_OFF_T % 2147483647 == 1)
6036 rm -f conftest.$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -z "$ac_c_werror_flag"
6046 || test ! -s conftest.err'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; } &&
6052 { ac_try='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #define _LARGE_FILES 1
6074 #include <sys/types.h>
6075 /* Check that off_t can represent 2**63 - 1 correctly.
6076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6077 since some C++ compilers masquerading as C compilers
6078 incorrectly reject 9223372036854775807. */
6079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6081 && LARGE_OFF_T % 2147483647 == 1)
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_sys_large_files=1; break
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6127 if test "$ac_cv_sys_large_files" != no; then
6129 cat >>confdefs.h <<_ACEOF
6130 #define _LARGE_FILES $ac_cv_sys_large_files
6137 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6138 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6139 if test "$ac_cv_prog_cc_c89" != no; then
6140 { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6143 cat >>confdefs.h <<\_ACEOF
6144 #define PROTOTYPES 1
6148 cat >>confdefs.h <<\_ACEOF
6149 #define __PROTOTYPES 1
6153 { echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6; }
6158 if test "$ac_cv_prog_cc_stdc" != no; then
6161 U=_ ANSI2KNR=./ansi2knr
6163 # Ensure some checks needed by ansi2knr itself.
6166 for ac_header in string.h
6168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_res=`eval echo '${'$as_ac_Header'}'`
6176 { echo "$as_me:$LINENO: result: $ac_res" >&5
6177 echo "${ECHO_T}$ac_res" >&6; }
6179 # Is the header compilable?
6180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 #include <$ac_header>
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag"
6201 || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_header_compiler=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_header_compiler=no
6221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 echo "${ECHO_T}$ac_header_compiler" >&6; }
6225 # Is the header present?
6226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <$ac_header>
6236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null; then
6244 if test -s conftest.err; then
6245 ac_cpp_err=$ac_c_preproc_warn_flag
6246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6253 if test -z "$ac_cpp_err"; then
6254 ac_header_preproc=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_header_preproc=no
6262 rm -f conftest.err conftest.$ac_ext
6263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6264 echo "${ECHO_T}$ac_header_preproc" >&6; }
6266 # So? What about this header?
6267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6273 ac_header_preproc=yes
6276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6289 ## ------------------------------------ ##
6290 ## Report this to bug-coreutils@gnu.org ##
6291 ## ------------------------------------ ##
6293 ) | sed "s/^/$as_me: WARNING: /" >&2
6296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 eval "$as_ac_Header=\$ac_header_preproc"
6303 ac_res=`eval echo '${'$as_ac_Header'}'`
6304 { echo "$as_me:$LINENO: result: $ac_res" >&5
6305 echo "${ECHO_T}$ac_res" >&6; }
6308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6309 cat >>confdefs.h <<_ACEOF
6310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6320 if test "${ac_cv_c_bigendian+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 # See if sys/param.h defines the BYTE_ORDER macro.
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <sys/types.h>
6331 #include <sys/param.h>
6336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag"
6354 || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 # It does; now see whether it defined to BIG_ENDIAN or not.
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <sys/param.h>
6379 #if BYTE_ORDER != BIG_ENDIAN
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_c_bigendian=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_cv_c_bigendian=no
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 # It does not; compile a test program.
6423 if test "$cross_compiling" = yes; then
6424 # try to guess the endianness by grepping values into an object file
6425 ac_cv_c_bigendian=unknown
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6433 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6434 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6435 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6436 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6437 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6441 _ascii (); _ebcdic ();
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6450 grep -v '^ *+' conftest.er1 >conftest.err
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6469 ac_cv_c_bigendian=yes
6471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6472 if test "$ac_cv_c_bigendian" = unknown; then
6473 ac_cv_c_bigendian=no
6475 # finding both strings is unlikely to happen, but who knows?
6476 ac_cv_c_bigendian=unknown
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6499 /* Are we little or big endian? From Harbison&Steele. */
6503 char c[sizeof (long int)];
6506 return u.c[sizeof (long int) - 1] == 1;
6512 rm -f conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_cv_c_bigendian=no
6525 echo "$as_me: program exited with status $ac_status" >&5
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_c_bigendian=yes
6532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6541 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6542 case $ac_cv_c_bigendian in
6545 cat >>confdefs.h <<\_ACEOF
6546 #define WORDS_BIGENDIAN 1
6552 { { echo "$as_me:$LINENO: error: unknown endianness
6553 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6554 echo "$as_me: error: unknown endianness
6555 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6556 { (exit 1); exit 1; }; } ;;
6559 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6561 if test "${ac_cv_c_const+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6574 /* FIXME: Include the comments suggested by Paul. */
6576 /* Ultrix mips cc rejects this. */
6577 typedef int charset[2];
6579 /* SunOS 4.1.1 cc rejects this. */
6580 char const *const *ccp;
6582 /* NEC SVR4.0.2 mips cc rejects this. */
6583 struct point {int x, y;};
6584 static struct point const zero = {0,0};
6585 /* AIX XL C 1.02.0.0 rejects this.
6586 It does not let you subtract one const X* pointer from another in
6587 an arm of an if-expression whose if-part is not a constant
6589 const char *g = "string";
6590 ccp = &g + (g ? g-g : 0);
6591 /* HPUX 7.0 cc rejects these. */
6594 ccp = (char const *const *) p;
6595 { /* SCO 3.2v4 cc rejects this. */
6597 char const *s = 0 ? (char *) 0 : (char const *) 0;
6602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6604 const int *foo = &x[0];
6607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6608 typedef const int *iptr;
6612 { /* AIX XL C 1.02.0.0 rejects this saying
6613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6614 struct s { int j; const int *ap[3]; };
6615 struct s *b; b->j = 5;
6617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6621 return !x[0] && !zero.x;
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6662 if test $ac_cv_c_const = no; then
6664 cat >>confdefs.h <<\_ACEOF
6670 { echo "$as_me:$LINENO: checking for working volatile" >&5
6671 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6672 if test "${ac_cv_c_volatile+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6687 int * volatile y = (int *) 0;
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_c_volatile=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6726 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6727 if test $ac_cv_c_volatile = no; then
6729 cat >>confdefs.h <<\_ACEOF
6735 { echo "$as_me:$LINENO: checking for inline" >&5
6736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6737 if test "${ac_cv_c_inline+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 for ac_kw in inline __inline__ __inline; do
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6750 static $ac_kw foo_t static_foo () {return 0; }
6751 $ac_kw foo_t foo () {return 0; }
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_c_inline=$ac_kw
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 test "$ac_cv_c_inline" != no && break
6790 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6791 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6794 case $ac_cv_c_inline in
6797 case $ac_cv_c_inline in
6799 *) ac_val=$ac_cv_c_inline;;
6801 cat >>confdefs.h <<_ACEOF
6803 #define inline $ac_val
6811 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6812 echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
6813 if test "${ac_cv_type_long_double_wider+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 long double const a[] =
6825 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6826 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6831 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6832 + (x ? f (x) : 'c'));
6838 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6839 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6840 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6841 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6842 && (int) LDBL_EPSILON == 0
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_c_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_cv_type_long_double_wider=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_type_long_double_wider=no
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6883 echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
6884 if test $ac_cv_type_long_double_wider = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_LONG_DOUBLE_WIDER 1
6892 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6893 if test $ac_cv_c_long_double = yes; then
6895 cat >>confdefs.h <<\_ACEOF
6896 #define HAVE_LONG_DOUBLE 1
6906 for ac_header in $gl_header_list
6908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_res=`eval echo '${'$as_ac_Header'}'`
6916 { echo "$as_me:$LINENO: result: $ac_res" >&5
6917 echo "${ECHO_T}$ac_res" >&6; }
6919 # Is the header compilable?
6920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 #include <$ac_header>
6931 rm -f conftest.$ac_objext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest.$ac_objext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_header_compiler=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_header_compiler=no
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 echo "${ECHO_T}$ac_header_compiler" >&6; }
6965 # Is the header present?
6966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <$ac_header>
6976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null; then
6984 if test -s conftest.err; then
6985 ac_cpp_err=$ac_c_preproc_warn_flag
6986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6993 if test -z "$ac_cpp_err"; then
6994 ac_header_preproc=yes
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_header_preproc=no
7002 rm -f conftest.err conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7004 echo "${ECHO_T}$ac_header_preproc" >&6; }
7006 # So? What about this header?
7007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7013 ac_header_preproc=yes
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7029 ## ------------------------------------ ##
7030 ## Report this to bug-coreutils@gnu.org ##
7031 ## ------------------------------------ ##
7033 ) | sed "s/^/$as_me: WARNING: /" >&2
7036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 eval "$as_ac_Header=\$ac_header_preproc"
7043 ac_res=`eval echo '${'$as_ac_Header'}'`
7044 { echo "$as_me:$LINENO: result: $ac_res" >&5
7045 echo "${ECHO_T}$ac_res" >&6; }
7048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7049 cat >>confdefs.h <<_ACEOF
7050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7189 for ac_header in sys/mount.h sys/sysctl.h
7191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7204 #if HAVE_SYS_PARAM_H
7205 #include <sys/param.h>
7208 #include <$ac_header>
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 eval "$as_ac_Header=yes"
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 eval "$as_ac_Header=no"
7240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243 { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7261 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7262 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7263 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7264 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 cat >conftest.$ac_ext <<_ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <sys/types.h>
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 eval "$as_ac_Header=yes"
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 eval "$as_ac_Header=no"
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 ac_res=`eval echo '${'$as_ac_Header'}'`
7319 { echo "$as_me:$LINENO: result: $ac_res" >&5
7320 echo "${ECHO_T}$ac_res" >&6; }
7321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7326 ac_header_dirent=$ac_hdr; break
7330 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7331 if test $ac_header_dirent = dirent.h; then
7332 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7333 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7334 if test "${ac_cv_search_opendir+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_func_search_save_LIBS=$LIBS
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7345 /* Override any GCC internal prototype to avoid an error.
7346 Use char because int might match the return type of a GCC
7347 builtin and then its argument prototype would still apply. */
7360 for ac_lib in '' dir; do
7361 if test -z "$ac_lib"; then
7362 ac_res="none required"
7365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>conftest.er1
7371 grep -v '^ *+' conftest.er1 >conftest.err
7373 cat conftest.err >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try='test -z "$ac_c_werror_flag"
7377 || test ! -s conftest.err'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; } &&
7383 { ac_try='test -s conftest$ac_exeext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389 ac_cv_search_opendir=$ac_res
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7397 rm -f conftest.err conftest.$ac_objext \
7399 if test "${ac_cv_search_opendir+set}" = set; then
7403 if test "${ac_cv_search_opendir+set}" = set; then
7406 ac_cv_search_opendir=no
7409 LIBS=$ac_func_search_save_LIBS
7411 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7413 ac_res=$ac_cv_search_opendir
7414 if test "$ac_res" != no; then
7415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7420 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7422 if test "${ac_cv_search_opendir+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_func_search_save_LIBS=$LIBS
7426 cat >conftest.$ac_ext <<_ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7433 /* Override any GCC internal prototype to avoid an error.
7434 Use char because int might match the return type of a GCC
7435 builtin and then its argument prototype would still apply. */
7448 for ac_lib in '' x; do
7449 if test -z "$ac_lib"; then
7450 ac_res="none required"
7453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7455 rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7457 (eval $ac_link) 2>conftest.er1
7459 grep -v '^ *+' conftest.er1 >conftest.err
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag"
7465 || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest$ac_exeext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_cv_search_opendir=$ac_res
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7485 rm -f conftest.err conftest.$ac_objext \
7487 if test "${ac_cv_search_opendir+set}" = set; then
7491 if test "${ac_cv_search_opendir+set}" = set; then
7494 ac_cv_search_opendir=no
7497 LIBS=$ac_func_search_save_LIBS
7499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7501 ac_res=$ac_cv_search_opendir
7502 if test "$ac_res" != no; then
7503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7509 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
7510 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
7511 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7524 static struct stat ac_aggr;
7525 if (ac_aggr.st_blocks)
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_member_struct_stat_st_blocks=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7568 static struct stat ac_aggr;
7569 if (sizeof ac_aggr.st_blocks)
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7577 (eval $ac_compile) 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_member_struct_stat_st_blocks=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 ac_cv_member_struct_stat_st_blocks=no
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7611 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
7612 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7614 cat >>confdefs.h <<_ACEOF
7615 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7619 cat >>confdefs.h <<\_ACEOF
7620 #define HAVE_ST_BLOCKS 1
7624 case " $LIBOBJS " in
7625 *" fileblocks.$ac_objext "* ) ;;
7626 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7633 { echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7634 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6; }
7635 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 #include <sys/types.h>
7645 #include <sys/stat.h>
7649 struct stat s; s.st_dm_mode;
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_struct_st_dm_mode=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_struct_st_dm_mode=no
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7687 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6; }
7689 if test $ac_cv_struct_st_dm_mode = yes; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_ST_DM_MODE 1
7698 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7699 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7700 if test "${ac_cv_type_uid_t+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <sys/types.h>
7712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7713 $EGREP "uid_t" >/dev/null 2>&1; then
7714 ac_cv_type_uid_t=yes
7721 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7722 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7723 if test $ac_cv_type_uid_t = no; then
7725 cat >>confdefs.h <<\_ACEOF
7730 cat >>confdefs.h <<\_ACEOF
7736 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7737 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7738 if test "${ac_cv_type_getgroups+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 if test "$cross_compiling" = yes; then
7742 ac_cv_type_getgroups=cross
7744 cat >conftest.$ac_ext <<_ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 /* Thanks to Mike Rendell for this test. */
7751 $ac_includes_default
7754 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7761 union { gid_t gval; long int lval; } val;
7764 for (i = 0; i < NGID; i++)
7765 gidset[i] = val.gval;
7766 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7768 /* Exit non-zero if getgroups seems to require an array of ints. This
7769 happens when gid_t is short int but getgroups modifies an array
7771 return n > 0 && gidset[n] != val.gval;
7774 rm -f conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_type_getgroups=gid_t
7787 echo "$as_me: program exited with status $ac_status" >&5
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_cv_type_getgroups=int
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7798 if test $ac_cv_type_getgroups = cross; then
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7809 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7810 ac_cv_type_getgroups=gid_t
7812 ac_cv_type_getgroups=int
7818 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7819 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define GETGROUPS_T $ac_cv_type_getgroups
7826 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
7827 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
7828 if test "${ac_cv_type_mbstate_t+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7842 mbstate_t x; return sizeof x;
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849 (eval $ac_compile) 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -z "$ac_c_werror_flag"
7857 || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest.$ac_objext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_type_mbstate_t=yes
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ac_cv_type_mbstate_t=no
7877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7879 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
7880 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
7881 if test $ac_cv_type_mbstate_t = yes; then
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_MBSTATE_T 1
7889 cat >>confdefs.h <<\_ACEOF
7890 #define mbstate_t int
7894 { echo "$as_me:$LINENO: checking for mode_t" >&5
7895 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7896 if test "${ac_cv_type_mode_t+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 $ac_includes_default
7906 typedef mode_t ac__type_new_;
7910 if ((ac__type_new_ *) 0)
7912 if (sizeof (ac__type_new_))
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_cv_type_mode_t=yes
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 ac_cv_type_mode_t=no
7948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7950 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7951 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7952 if test $ac_cv_type_mode_t = yes; then
7956 cat >>confdefs.h <<_ACEOF
7962 { echo "$as_me:$LINENO: checking for off_t" >&5
7963 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7964 if test "${ac_cv_type_off_t+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7974 typedef off_t ac__type_new_;
7978 if ((ac__type_new_ *) 0)
7980 if (sizeof (ac__type_new_))
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1 >conftest.err
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_type_off_t=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8018 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8019 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8020 if test $ac_cv_type_off_t = yes; then
8024 cat >>confdefs.h <<_ACEOF
8025 #define off_t long int
8030 { echo "$as_me:$LINENO: checking for pid_t" >&5
8031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8032 if test "${ac_cv_type_pid_t+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef pid_t ac__type_new_;
8046 if ((ac__type_new_ *) 0)
8048 if (sizeof (ac__type_new_))
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_type_pid_t=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8087 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8088 if test $ac_cv_type_pid_t = yes; then
8092 cat >>confdefs.h <<_ACEOF
8098 { echo "$as_me:$LINENO: checking for size_t" >&5
8099 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8100 if test "${ac_cv_type_size_t+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 typedef size_t ac__type_new_;
8114 if ((ac__type_new_ *) 0)
8116 if (sizeof (ac__type_new_))
8122 rm -f conftest.$ac_objext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_type_size_t=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_cv_type_size_t=no
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8156 if test $ac_cv_type_size_t = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define size_t unsigned int
8167 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8168 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8169 if test "${gl_cv_c_uint32_t+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 for ac_type in "uint32_t" "unsigned int" \
8174 "unsigned long int" "unsigned short int"; do
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8185 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag"
8202 || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 gl_cv_c_uint32_t=$ac_type
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8223 test "$gl_cv_c_uint32_t" != no && break
8226 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
8227 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6; }
8228 case "$gl_cv_c_uint32_t" in
8232 cat >>confdefs.h <<\_ACEOF
8237 cat >>confdefs.h <<_ACEOF
8238 #define uint32_t $gl_cv_c_uint32_t
8244 { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
8245 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
8246 if test "${gl_cv_c_uint32_max+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8259 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
8266 rm -f conftest.$ac_objext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268 (eval $ac_compile) 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest.$ac_objext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 gl_cv_c_uint32_max=yes
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 gl_cv_c_uint32_max=no
8296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 { echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
8299 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6; }
8300 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
8305 cat >>confdefs.h <<\_ACEOF
8306 #define UINT32_MAX 4294967295U
8313 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8314 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8315 if test "${gl_cv_header_inttypes_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <sys/types.h>
8325 #include <inttypes.h>
8329 uintmax_t i = (uintmax_t) -1;
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 gl_cv_header_inttypes_h=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 gl_cv_header_inttypes_h=no
8364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8366 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8367 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8368 if test $gl_cv_header_inttypes_h = yes; then
8370 cat >>confdefs.h <<_ACEOF
8371 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8377 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8378 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8379 if test "${gl_cv_header_stdint_h+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8393 uintmax_t i = (uintmax_t) -1;
8398 rm -f conftest.$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 gl_cv_header_stdint_h=yes
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 gl_cv_header_stdint_h=no
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8431 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8432 if test $gl_cv_header_stdint_h = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_STDINT_H_WITH_UINTMAX 1
8441 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8442 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8443 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 unsigned long long ull = 1ULL; int i = 63;
8456 unsigned long long ullmax = (unsigned long long) -1;
8457 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_type_unsigned_long_long=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_type_unsigned_long_long=no
8492 rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8495 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8496 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8497 if test $ac_cv_type_unsigned_long_long = yes; then
8499 cat >>confdefs.h <<\_ACEOF
8500 #define HAVE_UNSIGNED_LONG_LONG 1
8508 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8510 test $ac_cv_type_unsigned_long_long = yes \
8511 && ac_type='unsigned long long' \
8512 || ac_type='unsigned long'
8514 cat >>confdefs.h <<_ACEOF
8515 #define uintmax_t $ac_type
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_UINTMAX_T 1
8527 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8528 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8529 if test "${gl_cv_c_uintptr_t+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 gl_cv_c_uintptr_t=no
8533 for ac_type in "uintptr_t" "unsigned int" \
8534 "unsigned long int" "unsigned long long int"; do
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 $ac_includes_default
8545 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 gl_cv_c_uintptr_t=$ac_type
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8583 test $gl_cv_c_uintptr_t != no && break
8586 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
8587 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6; }
8588 case $gl_cv_c_uintptr_t in
8592 cat >>confdefs.h <<_ACEOF
8593 #define uintptr_t $gl_cv_c_uintptr_t
8599 { echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
8600 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6; }
8601 if test "${gl_cv_c_uintptr_max+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8615 error: UINTPTR_MAX is not defined.
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 gl_cv_c_uintptr_max=yes
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 gl_cv_c_uintptr_max=no
8651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
8654 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6; }
8655 case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
8660 cat >>confdefs.h <<\_ACEOF
8661 #define UINTPTR_MAX ((uintptr_t) -1)
8667 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8668 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
8669 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <sys/types.h>
8682 return makedev(0, 0);
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>conftest.er1
8691 grep -v '^ *+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest$ac_exeext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_header_sys_types_h_makedev=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_cv_header_sys_types_h_makedev=no
8717 rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8722 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
8724 if test $ac_cv_header_sys_types_h_makedev = no; then
8725 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8726 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8727 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8728 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8732 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8734 # Is the header compilable?
8735 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8736 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8744 #include <sys/mkdev.h>
8746 rm -f conftest.$ac_objext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748 (eval $ac_compile) 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag"
8756 || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_header_compiler=yes
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_header_compiler=no
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 echo "${ECHO_T}$ac_header_compiler" >&6; }
8780 # Is the header present?
8781 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8782 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <sys/mkdev.h>
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8808 if test -z "$ac_cpp_err"; then
8809 ac_header_preproc=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_preproc=no
8817 rm -f conftest.err conftest.$ac_ext
8818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8819 echo "${ECHO_T}$ac_header_preproc" >&6; }
8821 # So? What about this header?
8822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8825 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
8827 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
8828 ac_header_preproc=yes
8831 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8832 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8834 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
8836 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
8838 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8840 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
8842 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
8844 ## ------------------------------------ ##
8845 ## Report this to bug-coreutils@gnu.org ##
8846 ## ------------------------------------ ##
8848 ) | sed "s/^/$as_me: WARNING: /" >&2
8851 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8852 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8853 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_cv_header_sys_mkdev_h=$ac_header_preproc
8858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8859 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8862 if test $ac_cv_header_sys_mkdev_h = yes; then
8864 cat >>confdefs.h <<\_ACEOF
8865 #define MAJOR_IN_MKDEV 1
8872 if test $ac_cv_header_sys_mkdev_h = no; then
8873 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8874 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8875 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
8876 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8880 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
8882 # Is the header compilable?
8883 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8884 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #include <sys/sysmacros.h>
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_header_compiler=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_header_compiler=no
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8926 echo "${ECHO_T}$ac_header_compiler" >&6; }
8928 # Is the header present?
8929 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8930 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 #include <sys/sysmacros.h>
8939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8940 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8947 if test -s conftest.err; then
8948 ac_cpp_err=$ac_c_preproc_warn_flag
8949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8956 if test -z "$ac_cpp_err"; then
8957 ac_header_preproc=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_header_preproc=no
8965 rm -f conftest.err conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8967 echo "${ECHO_T}$ac_header_preproc" >&6; }
8969 # So? What about this header?
8970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8972 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
8973 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8974 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
8975 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8976 ac_header_preproc=yes
8979 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
8980 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
8982 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
8984 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
8986 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
8988 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
8990 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
8992 ## ------------------------------------ ##
8993 ## Report this to bug-coreutils@gnu.org ##
8994 ## ------------------------------------ ##
8996 ) | sed "s/^/$as_me: WARNING: /" >&2
8999 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9000 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
9001 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9007 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
9010 if test $ac_cv_header_sys_sysmacros_h = yes; then
9012 cat >>confdefs.h <<\_ACEOF
9013 #define MAJOR_IN_SYSMACROS 1
9023 { echo "$as_me:$LINENO: checking host operating system" >&5
9024 echo $ECHO_N "checking host operating system... $ECHO_C" >&6; }
9025 if test "${gl_cv_host_operating_system+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 # These operating system names do not use the default heuristic below.
9031 # They are in reverse order, so that more-specific prefixes come first.
9032 winnt*) os='Windows NT';;
9034 sysv*) os='Unix System V';;
9035 superux*) os='SUPER-UX';;
9036 sunos*) os='SunOS';;
9038 sco*) os='SCO Unix';;
9039 riscos*) os='RISC OS';;
9040 riscix*) os='RISCiX';;
9044 plan9*) os='Plan 9';;
9047 openbsd*) os='OpenBSD';;
9048 nsk*) os='NonStop Kernel';;
9049 nonstopux*) os='NonStop-UX';;
9050 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
9051 netbsd*) os='NetBSD';;
9052 knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
9053 kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
9054 msdosdjgpp*) os='DJGPP';;
9055 mpeix*) os='MPE/iX';;
9057 mingw*) os='MinGW';;
9058 lynxos*) os='LynxOS';;
9059 linux*) os='GNU/Linux';;
9063 freebsd*) os='FreeBSD';;
9065 bsdi*) os='BSD/OS';;
9069 atheos*) os='AtheOS';;
9070 amigaos*) os='Amiga OS';;
9073 # The default heuristic takes the initial alphabetic string
9074 # from $host_os, but capitalizes its first letter.
9077 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
9079 expr "X$host_os" : 'X.\([A-Za-z]*\)'
9083 # If $host_os does not start with an alphabetic string, use it unchanged.
9087 gl_cv_host_operating_system=$os
9089 { echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
9090 echo "${ECHO_T}$gl_cv_host_operating_system" >&6; }
9092 cat >>confdefs.h <<_ACEOF
9093 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
9098 { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
9099 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
9100 # Check whether --enable-assert was given.
9101 if test "${enable_assert+set}" = set; then
9102 enableval=$enable_assert; { echo "$as_me:$LINENO: result: no" >&5
9103 echo "${ECHO_T}no" >&6; }
9105 cat >>confdefs.h <<\_ACEOF
9110 { echo "$as_me:$LINENO: result: yes" >&5
9111 echo "${ECHO_T}yes" >&6; }
9116 { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
9117 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
9118 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #ifdef HAVE_DIRENT_H
9130 # include <dirent.h>
9131 #else /* not HAVE_DIRENT_H */
9132 # define dirent direct
9133 # ifdef HAVE_SYS_NDIR_H
9134 # include <sys/ndir.h>
9135 # endif /* HAVE_SYS_NDIR_H */
9136 # ifdef HAVE_SYS_DIR_H
9137 # include <sys/dir.h>
9138 # endif /* HAVE_SYS_DIR_H */
9141 # endif /* HAVE_NDIR_H */
9142 #endif /* HAVE_DIRENT_H */
9147 struct dirent dp; dp.d_type = 0;
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154 (eval $ac_link) 2>conftest.er1
9156 grep -v '^ *+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag"
9162 || test ! -s conftest.err'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 jm_cv_struct_dirent_d_type=yes
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 jm_cv_struct_dirent_d_type=no
9182 rm -f conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9187 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
9188 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6; }
9189 if test $jm_cv_struct_dirent_d_type = yes; then
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_STRUCT_DIRENT_D_TYPE 1
9198 { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9199 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
9200 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 #include <sys/types.h>
9211 #ifdef HAVE_DIRENT_H
9212 # include <dirent.h>
9213 #else /* not HAVE_DIRENT_H */
9214 # define dirent direct
9215 # ifdef HAVE_SYS_NDIR_H
9216 # include <sys/ndir.h>
9217 # endif /* HAVE_SYS_NDIR_H */
9218 # ifdef HAVE_SYS_DIR_H
9219 # include <sys/dir.h>
9220 # endif /* HAVE_SYS_DIR_H */
9223 # endif /* HAVE_NDIR_H */
9224 #endif /* HAVE_DIRENT_H */
9229 struct dirent dp; dp.d_ino = 0;
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 jm_cv_struct_dirent_d_ino=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 jm_cv_struct_dirent_d_ino=no
9264 rm -f conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9270 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6; }
9271 if test $jm_cv_struct_dirent_d_ino = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define D_INO_IN_DIRENT 1
9316 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9317 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9318 if test "${ac_cv_header_time+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <sys/time.h>
9334 if ((struct tm *) 0)
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_header_time=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_cv_header_time=no
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9373 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9374 if test $ac_cv_header_time = yes; then
9376 cat >>confdefs.h <<\_ACEOF
9377 #define TIME_WITH_SYS_TIME 1
9392 #include <sys/types.h>
9393 #if TIME_WITH_SYS_TIME
9394 # include <sys/time.h>
9397 # if HAVE_SYS_TIME_H
9398 # include <sys/time.h>
9417 { echo "$as_me:$LINENO: checking whether free is declared" >&5
9418 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
9419 if test "${ac_cv_have_decl_free+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9434 char *p = (char *) free;
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444 (eval $ac_compile) 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -z "$ac_c_werror_flag"
9452 || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest.$ac_objext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_cv_have_decl_free=yes
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_have_decl_free=no
9472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9475 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
9476 if test $ac_cv_have_decl_free = yes; then
9478 cat >>confdefs.h <<_ACEOF
9479 #define HAVE_DECL_FREE 1
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_DECL_FREE 0
9490 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9491 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
9492 if test "${ac_cv_have_decl_getenv+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9507 char *p = (char *) getenv;
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_have_decl_getenv=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_have_decl_getenv=no
9545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9548 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
9549 if test $ac_cv_have_decl_getenv = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_DECL_GETENV 1
9557 cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_GETENV 0
9563 { echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9564 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6; }
9565 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9580 char *p = (char *) geteuid;
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest.$ac_objext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_have_decl_geteuid=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_have_decl_geteuid=no
9618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9621 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6; }
9622 if test $ac_cv_have_decl_geteuid = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_GETEUID 1
9630 cat >>confdefs.h <<_ACEOF
9631 #define HAVE_DECL_GETEUID 0
9636 { echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9637 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6; }
9638 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 cat >conftest.$ac_ext <<_ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9653 char *p = (char *) getgrgid;
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_have_decl_getgrgid=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_have_decl_getgrgid=no
9691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9694 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6; }
9695 if test $ac_cv_have_decl_getgrgid = yes; then
9697 cat >>confdefs.h <<_ACEOF
9698 #define HAVE_DECL_GETGRGID 1
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_DECL_GETGRGID 0
9709 { echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9710 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6; }
9711 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9726 char *p = (char *) getlogin;
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest.$ac_objext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_have_decl_getlogin=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_cv_have_decl_getlogin=no
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6; }
9768 if test $ac_cv_have_decl_getlogin = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_GETLOGIN 1
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_GETLOGIN 0
9782 { echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9783 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6; }
9784 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9799 char *p = (char *) getpwuid;
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_have_decl_getpwuid=yes
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_have_decl_getpwuid=no
9837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9840 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6; }
9841 if test $ac_cv_have_decl_getpwuid = yes; then
9843 cat >>confdefs.h <<_ACEOF
9844 #define HAVE_DECL_GETPWUID 1
9849 cat >>confdefs.h <<_ACEOF
9850 #define HAVE_DECL_GETPWUID 0
9855 { echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9856 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6; }
9857 if test "${ac_cv_have_decl_getuid+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9872 char *p = (char *) getuid;
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_have_decl_getuid=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_have_decl_getuid=no
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9913 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6; }
9914 if test $ac_cv_have_decl_getuid = yes; then
9916 cat >>confdefs.h <<_ACEOF
9917 #define HAVE_DECL_GETUID 1
9922 cat >>confdefs.h <<_ACEOF
9923 #define HAVE_DECL_GETUID 0
9928 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9929 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
9930 if test "${ac_cv_have_decl_getutent+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9945 char *p = (char *) getutent;
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag"
9963 || test ! -s conftest.err'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_have_decl_getutent=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_cv_have_decl_getutent=no
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9986 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
9987 if test $ac_cv_have_decl_getutent = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_GETUTENT 1
9995 cat >>confdefs.h <<_ACEOF
9996 #define HAVE_DECL_GETUTENT 0
10001 { echo "$as_me:$LINENO: checking whether lseek is declared" >&5
10002 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6; }
10003 if test "${ac_cv_have_decl_lseek+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10018 char *p = (char *) lseek;
10026 rm -f conftest.$ac_objext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028 (eval $ac_compile) 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_have_decl_lseek=yes
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_cv_have_decl_lseek=no
10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
10059 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6; }
10060 if test $ac_cv_have_decl_lseek = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_DECL_LSEEK 1
10068 cat >>confdefs.h <<_ACEOF
10069 #define HAVE_DECL_LSEEK 0
10074 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10075 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
10076 if test "${ac_cv_have_decl_malloc+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10091 char *p = (char *) malloc;
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_cv_have_decl_malloc=yes
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_cv_have_decl_malloc=no
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10132 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
10133 if test $ac_cv_have_decl_malloc = yes; then
10135 cat >>confdefs.h <<_ACEOF
10136 #define HAVE_DECL_MALLOC 1
10141 cat >>confdefs.h <<_ACEOF
10142 #define HAVE_DECL_MALLOC 0
10147 { echo "$as_me:$LINENO: checking whether memchr is declared" >&5
10148 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6; }
10149 if test "${ac_cv_have_decl_memchr+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10164 char *p = (char *) memchr;
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>conftest.er1
10176 grep -v '^ *+' conftest.er1 >conftest.err
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_have_decl_memchr=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_have_decl_memchr=no
10202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
10205 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6; }
10206 if test $ac_cv_have_decl_memchr = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_MEMCHR 1
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_DECL_MEMCHR 0
10220 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10221 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
10222 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10237 char *p = (char *) memrchr;
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest.$ac_objext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_have_decl_memrchr=yes
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 ac_cv_have_decl_memrchr=no
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10278 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
10279 if test $ac_cv_have_decl_memrchr = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282 #define HAVE_DECL_MEMRCHR 1
10287 cat >>confdefs.h <<_ACEOF
10288 #define HAVE_DECL_MEMRCHR 0
10293 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10294 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
10295 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10310 char *p = (char *) nanosleep;
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_have_decl_nanosleep=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_have_decl_nanosleep=no
10348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10351 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
10352 if test $ac_cv_have_decl_nanosleep = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_DECL_NANOSLEEP 1
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL_NANOSLEEP 0
10366 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10367 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
10368 if test "${ac_cv_have_decl_realloc+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10383 char *p = (char *) realloc;
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_have_decl_realloc=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_have_decl_realloc=no
10421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10424 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
10425 if test $ac_cv_have_decl_realloc = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428 #define HAVE_DECL_REALLOC 1
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_DECL_REALLOC 0
10439 { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10440 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
10441 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10456 char *p = (char *) stpcpy;
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466 (eval $ac_compile) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_have_decl_stpcpy=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_have_decl_stpcpy=no
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10497 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
10498 if test $ac_cv_have_decl_stpcpy = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_DECL_STPCPY 1
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_DECL_STPCPY 0
10512 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10513 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
10514 if test "${ac_cv_have_decl_strndup+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10529 char *p = (char *) strndup;
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_have_decl_strndup=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_have_decl_strndup=no
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10570 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
10571 if test $ac_cv_have_decl_strndup = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_DECL_STRNDUP 1
10579 cat >>confdefs.h <<_ACEOF
10580 #define HAVE_DECL_STRNDUP 0
10585 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10586 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
10587 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10602 char *p = (char *) strnlen;
10610 rm -f conftest.$ac_objext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag"
10620 || test ! -s conftest.err'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_cv_have_decl_strnlen=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ac_cv_have_decl_strnlen=no
10640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10643 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
10644 if test $ac_cv_have_decl_strnlen = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647 #define HAVE_DECL_STRNLEN 1
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_DECL_STRNLEN 0
10658 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10659 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
10660 if test "${ac_cv_have_decl_strstr+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10675 char *p = (char *) strstr;
10683 rm -f conftest.$ac_objext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag"
10693 || test ! -s conftest.err'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_have_decl_strstr=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_cv_have_decl_strstr=no
10713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10716 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
10717 if test $ac_cv_have_decl_strstr = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_DECL_STRSTR 1
10725 cat >>confdefs.h <<_ACEOF
10726 #define HAVE_DECL_STRSTR 0
10731 { echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10732 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6; }
10733 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10748 char *p = (char *) strtoul;
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758 (eval $ac_compile) 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag"
10766 || test ! -s conftest.err'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_have_decl_strtoul=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_cv_have_decl_strtoul=no
10786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10789 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6; }
10790 if test $ac_cv_have_decl_strtoul = yes; then
10792 cat >>confdefs.h <<_ACEOF
10793 #define HAVE_DECL_STRTOUL 1
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_DECL_STRTOUL 0
10804 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10805 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
10806 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10821 char *p = (char *) strtoull;
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest.$ac_objext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_have_decl_strtoull=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_have_decl_strtoull=no
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10862 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
10863 if test $ac_cv_have_decl_strtoull = yes; then
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_DECL_STRTOULL 1
10871 cat >>confdefs.h <<_ACEOF
10872 #define HAVE_DECL_STRTOULL 0
10877 { echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10878 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6; }
10879 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10894 char *p = (char *) ttyname;
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag"
10912 || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_have_decl_ttyname=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_have_decl_ttyname=no
10932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10935 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6; }
10936 if test $ac_cv_have_decl_ttyname = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_DECL_TTYNAME 1
10944 cat >>confdefs.h <<_ACEOF
10945 #define HAVE_DECL_TTYNAME 0
10953 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10954 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10955 if test "${ac_cv_header_stdbool_h+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10965 #include <stdbool.h>
10967 "error: bool is not defined"
10970 "error: false is not defined"
10973 "error: false is not 0"
10976 "error: true is not defined"
10979 "error: true is not 1"
10981 #ifndef __bool_true_false_are_defined
10982 "error: __bool_true_false_are_defined is not defined"
10985 struct s { _Bool s: 1; _Bool t; } s;
10987 char a[true == 1 ? 1 : -1];
10988 char b[false == 0 ? 1 : -1];
10989 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10990 char d[(bool) -0.5 == true ? 1 : -1];
10992 char f[(_Bool) -0.0 == false ? 1 : -1];
10994 char h[sizeof (_Bool)];
10995 char i[sizeof s.t];
10996 enum { j = false, k = true, l = false * true, m = true * 256 };
10998 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10999 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11000 #if defined __xlc__ || defined __GNUC__
11001 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11002 reported by James Lemley on 2005-10-05; see
11003 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11004 This test is not quite right, since xlc is allowed to
11005 reject this program, as the initializer for xlcbug is
11006 not one of the forms that C requires support for.
11007 However, doing the test right would require a run-time
11008 test, and that would make cross-compilation harder.
11009 Let us hope that IBM fixes the xlc bug, and also adds
11010 support for this kind of constant expression. In the
11011 meantime, this test will reject xlc, which is OK, since
11012 our stdbool.h substitute should suffice. We also test
11013 this with GCC, where it should work, to detect more
11014 quickly whether someone messes up the test in the
11016 char digs[] = "0123456789";
11017 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11019 /* Catch a bug in an HP-UX C compiler. See
11020 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11021 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11032 /* Refer to every declared value, to avoid compiler optimizations. */
11033 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11034 + !m + !n + !o + !p + !q + !pq);
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_header_stdbool_h=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_header_stdbool_h=no
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11073 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11074 { echo "$as_me:$LINENO: checking for _Bool" >&5
11075 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11076 if test "${ac_cv_type__Bool+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 $ac_includes_default
11086 typedef _Bool ac__type_new_;
11090 if ((ac__type_new_ *) 0)
11092 if (sizeof (ac__type_new_))
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>conftest.er1
11102 grep -v '^ *+' conftest.er1 >conftest.err
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_c_werror_flag"
11108 || test ! -s conftest.err'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 ac_cv_type__Bool=yes
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 ac_cv_type__Bool=no
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11130 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11131 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11132 if test $ac_cv_type__Bool = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE__BOOL 1
11141 if test $ac_cv_header_stdbool_h = yes; then
11143 cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_STDBOOL_H 1
11151 # Define two additional variables used in the Makefile substitution.
11153 if test "$ac_cv_header_stdbool_h" = yes; then
11156 STDBOOL_H='stdbool.h'
11160 if test "$ac_cv_type__Bool" = yes; then
11167 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11168 # for constant arguments. Useless!
11169 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
11170 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11171 if test "${ac_cv_working_alloca_h+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 #include <alloca.h>
11184 char *p = (char *) alloca (2 * sizeof (int));
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_working_alloca_h=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_cv_working_alloca_h=no
11219 rm -f conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11223 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11224 if test $ac_cv_working_alloca_h = yes; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_ALLOCA_H 1
11232 { echo "$as_me:$LINENO: checking for alloca" >&5
11233 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11234 if test "${ac_cv_func_alloca_works+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11244 # define alloca __builtin_alloca
11247 # include <malloc.h>
11248 # define alloca _alloca
11251 # include <alloca.h>
11256 # ifndef alloca /* predefined by HP cc +Olibcalls */
11267 char *p = (char *) alloca (1);
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_func_alloca_works=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_cv_func_alloca_works=no
11302 rm -f conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
11308 if test $ac_cv_func_alloca_works = yes; then
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_ALLOCA 1
11315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11316 # that cause trouble. Some versions do not even contain alloca or
11317 # contain a buggy version. If you still want to use their alloca,
11318 # use ar to extract alloca.o from them instead of compiling alloca.c.
11320 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11322 cat >>confdefs.h <<\_ACEOF
11327 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
11329 if test "${ac_cv_os_cray+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #if defined CRAY && ! defined CRAY2
11345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11346 $EGREP "webecray" >/dev/null 2>&1; then
11354 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11355 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
11356 if test $ac_cv_os_cray = yes; then
11357 for ac_func in _getb67 GETB67 getb67; do
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11372 #define $ac_func innocuous_$ac_func
11374 /* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char $ac_func (); below.
11376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 <limits.h> exists even on freestanding compilers. */
11380 # include <limits.h>
11382 # include <assert.h>
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11394 /* The GNU C library defines this for functions which it implements
11395 to always fail with ENOSYS. Some functions are actually named
11396 something starting with __ and the normal name is an alias. */
11397 #if defined __stub_$ac_func || defined __stub___$ac_func
11404 return $ac_func ();
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411 (eval $ac_link) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -z "$ac_c_werror_flag"
11419 || test ! -s conftest.err'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 eval "$as_ac_var=yes"
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11439 rm -f conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11442 ac_res=`eval echo '${'$as_ac_var'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define CRAY_STACKSEG_END $ac_func
11457 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11458 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
11459 if test "${ac_cv_c_stack_direction+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_c_stack_direction=0
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11473 find_stack_direction ()
11475 static char *addr = 0;
11480 return find_stack_direction ();
11483 return (&dummy > addr) ? 1 : -1;
11489 return find_stack_direction () < 0;
11492 rm -f conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_c_stack_direction=1
11505 echo "$as_me: program exited with status $ac_status" >&5
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ( exit $ac_status )
11510 ac_cv_c_stack_direction=-1
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11518 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
11520 cat >>confdefs.h <<_ACEOF
11521 #define STACK_DIRECTION $ac_cv_c_stack_direction
11532 if test $ac_cv_func_alloca_works = no; then
11536 # Define an additional variable used in the Makefile substitution.
11537 if test $ac_cv_working_alloca_h = yes; then
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "Need own alloca" >/dev/null 2>&1; then
11553 cat >>confdefs.h <<\_ACEOF
11554 #define HAVE_ALLOCA 1
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_ALLOCA_H 1
11576 for ac_header in stdlib.h
11578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 ac_res=`eval echo '${'$as_ac_Header'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11589 # Is the header compilable?
11590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 $ac_includes_default
11599 #include <$ac_header>
11601 rm -f conftest.$ac_objext
11602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11603 (eval $ac_compile) 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -z "$ac_c_werror_flag"
11611 || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest.$ac_objext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_header_compiler=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_compiler=no
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <$ac_header>
11646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } >/dev/null; then
11654 if test -s conftest.err; then
11655 ac_cpp_err=$ac_c_preproc_warn_flag
11656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11663 if test -z "$ac_cpp_err"; then
11664 ac_header_preproc=yes
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 ac_header_preproc=no
11672 rm -f conftest.err conftest.$ac_ext
11673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 echo "${ECHO_T}$ac_header_preproc" >&6; }
11676 # So? What about this header?
11677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683 ac_header_preproc=yes
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699 ## ------------------------------------ ##
11700 ## Report this to bug-coreutils@gnu.org ##
11701 ## ------------------------------------ ##
11703 ) | sed "s/^/$as_me: WARNING: /" >&2
11706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 eval "$as_ac_Header=\$ac_header_preproc"
11713 ac_res=`eval echo '${'$as_ac_Header'}'`
11714 { echo "$as_me:$LINENO: result: $ac_res" >&5
11715 echo "${ECHO_T}$ac_res" >&6; }
11718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11728 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11729 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 if test "$cross_compiling" = yes; then
11733 ac_cv_func_malloc_0_nonnull=no
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 #if STDC_HEADERS || HAVE_STDLIB_H
11742 # include <stdlib.h>
11750 return ! malloc (0);
11755 rm -f conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757 (eval $ac_link) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_func_malloc_0_nonnull=yes
11768 echo "$as_me: program exited with status $ac_status" >&5
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ( exit $ac_status )
11773 ac_cv_func_malloc_0_nonnull=no
11775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11781 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11782 if test $ac_cv_func_malloc_0_nonnull = yes; then
11783 gl_cv_func_malloc_0_nonnull=1
11785 gl_cv_func_malloc_0_nonnull=0
11790 cat >>confdefs.h <<_ACEOF
11791 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
11796 { echo "$as_me:$LINENO: checking for long long" >&5
11797 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11798 if test "${ac_cv_type_long_long+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 long long ll = 1LL; int i = 63;
11811 long long llmax = (long long) -1;
11812 return ll << i | ll >> i | llmax / ll | llmax % ll;
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_type_long_long=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_cv_type_long_long=no
11847 rm -f conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11851 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11852 if test $ac_cv_type_long_long = yes; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_LONG_LONG 1
11861 { echo "$as_me:$LINENO: checking for long double" >&5
11862 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11863 if test "${gt_cv_c_long_double+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 if test "$GCC" = yes; then
11867 gt_cv_c_long_double=yes
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
11877 long double foo = 0.0;
11878 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
11879 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 gt_cv_c_long_double=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 gt_cv_c_long_double=no
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
11923 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
11924 if test $gt_cv_c_long_double = yes; then
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_LONG_DOUBLE 1
11939 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
11940 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
11941 if test "${ac_cv_win_or_dos+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11955 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11956 neither MSDOS nor Windows
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_win_or_dos=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_cv_win_or_dos=no
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
11996 echo "${ECHO_T}$ac_cv_win_or_dos" >&6; }
11998 if test x"$ac_cv_win_or_dos" = xyes; then
11999 ac_fs_accepts_drive_letter_prefix=1
12000 ac_fs_backslash_is_file_name_separator=1
12001 { echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
12002 echo $ECHO_N "checking whether drive letter can start relative path... $ECHO_C" >&6; }
12003 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12017 #if defined __CYGWIN__
12018 drive letters are always absolute
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag"
12034 || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_drive_letter_can_be_relative=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_drive_letter_can_be_relative=no
12054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
12058 echo "${ECHO_T}$ac_cv_drive_letter_can_be_relative" >&6; }
12059 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
12060 ac_fs_drive_letter_can_be_relative=1
12062 ac_fs_drive_letter_can_be_relative=0
12065 ac_fs_accepts_drive_letter_prefix=0
12066 ac_fs_backslash_is_file_name_separator=0
12067 ac_fs_drive_letter_can_be_relative=0
12071 cat >>confdefs.h <<_ACEOF
12072 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12080 cat >>confdefs.h <<_ACEOF
12081 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12086 cat >>confdefs.h <<_ACEOF
12087 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
12091 { echo "$as_me:$LINENO: checking for long file names" >&5
12092 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
12093 if test "${ac_cv_sys_long_file_names+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_cv_sys_long_file_names=yes
12097 # Test for long file names in all the places we know might matter:
12098 # . the current directory, where building will happen
12099 # $prefix/lib where we will be installing things
12100 # $exec_prefix/lib likewise
12101 # eval it to expand exec_prefix.
12102 # $TMPDIR if set, where it might want to write temporary files
12103 # if $TMPDIR is not set:
12104 # /tmp where it might want to write temporary files
12105 # /var/tmp likewise
12106 # /usr/tmp likewise
12107 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
12110 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
12112 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
12113 test -d $ac_dir || continue
12114 test -w $ac_dir || continue # It is less confusing to not echo anything here.
12115 ac_xdir=$ac_dir/cf$$
12116 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
12117 ac_tf1=$ac_xdir/conftest9012345
12118 ac_tf2=$ac_xdir/conftest9012346
12119 touch $ac_tf1 2>/dev/null && test -f $ac_tf1 && test ! -f $ac_tf2 ||
12120 ac_cv_sys_long_file_names=no
12121 rm -f -r $ac_xdir 2>/dev/null
12122 test $ac_cv_sys_long_file_names = no && break
12125 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12126 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
12127 if test $ac_cv_sys_long_file_names = yes; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_LONG_FILE_NAMES 1
12140 for ac_func in $gl_func_list
12142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12156 #define $ac_func innocuous_$ac_func
12158 /* System header to define __stub macros and hopefully few prototypes,
12159 which can conflict with char $ac_func (); below.
12160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 <limits.h> exists even on freestanding compilers. */
12164 # include <limits.h>
12166 # include <assert.h>
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12178 /* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
12181 #if defined __stub_$ac_func || defined __stub___$ac_func
12188 return $ac_func ();
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12195 (eval $ac_link) 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 eval "$as_ac_var=yes"
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 eval "$as_ac_var=no"
12223 rm -f conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12226 ac_res=`eval echo '${'$as_ac_var'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12229 if test `eval echo '${'$as_ac_var'}'` = yes; then
12230 cat >>confdefs.h <<_ACEOF
12231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 case " $LIBOBJS " in
12245 *" backupfile.$ac_objext "* ) ;;
12246 *) LIBOBJS="$LIBOBJS backupfile.$ac_objext"
12265 case " $LIBOBJS " in
12266 *" basename.$ac_objext "* ) ;;
12267 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
12276 case " $LIBOBJS " in
12277 *" c-strtod.$ac_objext "* ) ;;
12278 *) LIBOBJS="$LIBOBJS c-strtod.$ac_objext"
12287 { echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
12288 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6; }
12289 if test "${gl_cv_func_c99_strtold+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12298 /* On HP-UX before 11.23, strtold returns a struct instead of
12299 long double. Reject implementations like that, by requiring
12300 compatibility with the C99 prototype. */
12301 #include <stdlib.h>
12302 static long double (*p) (char const *, char **) = strtold;
12304 test (char const *nptr, char **endptr)
12307 r = strtold (nptr, endptr);
12313 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
12318 rm -f conftest.$ac_objext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
12322 grep -v '^ *+' conftest.er1 >conftest.err
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 gl_cv_func_c99_strtold=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 gl_cv_func_c99_strtold=no
12348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 { echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
12351 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6; }
12352 if test $gl_cv_func_c99_strtold = yes; then
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_C99_STRTOLD 1
12362 case " $LIBOBJS " in
12363 *" c-strtold.$ac_objext "* ) ;;
12364 *) LIBOBJS="$LIBOBJS c-strtold.$ac_objext"
12373 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12374 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
12375 if test "${gl_cv_c_restrict+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 gl_cv_c_restrict=no
12379 # Try the official restrict keyword, then gcc's __restrict, and
12380 # the less common variants.
12381 for ac_kw in restrict __restrict __restrict__ _Restrict; do
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 gl_cv_c_restrict=$ac_kw; break
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
12425 echo "${ECHO_T}$gl_cv_c_restrict" >&6; }
12426 case $gl_cv_c_restrict in
12429 cat >>confdefs.h <<\_ACEOF
12433 *) cat >>confdefs.h <<_ACEOF
12434 #define restrict $gl_cv_c_restrict
12440 { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
12441 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
12442 if test "${gl_cv_socket_ipv4+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 cat >conftest.$ac_ext <<_ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 #include <sys/types.h>
12452 #include <sys/socket.h>
12453 #include <netinet/in.h>
12457 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest.$ac_objext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 gl_cv_socket_ipv4=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 gl_cv_socket_ipv4=no
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
12496 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
12497 if test $gl_cv_socket_ipv4 = yes; then
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_IPV4 1
12505 { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
12506 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
12507 if test "${gl_cv_socket_ipv6+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 #include <sys/types.h>
12517 #include <sys/socket.h>
12518 #include <netinet/in.h>
12522 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 gl_cv_socket_ipv6=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 gl_cv_socket_ipv6=no
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
12561 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
12562 if test $gl_cv_socket_ipv6 = yes; then
12564 cat >>confdefs.h <<\_ACEOF
12565 #define HAVE_IPV6 1
12584 if test $ac_cv_header_sys_socket_h = yes; then
12589 for ac_header in winsock2.h ws2tcpip.h
12591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 ac_res=`eval echo '${'$as_ac_Header'}'`
12599 { echo "$as_me:$LINENO: result: $ac_res" >&5
12600 echo "${ECHO_T}$ac_res" >&6; }
12602 # Is the header compilable?
12603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12605 cat >conftest.$ac_ext <<_ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 $ac_includes_default
12612 #include <$ac_header>
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_header_compiler=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_header_compiler=no
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646 echo "${ECHO_T}$ac_header_compiler" >&6; }
12648 # Is the header present?
12649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 #include <$ac_header>
12659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12662 grep -v '^ *+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } >/dev/null; then
12667 if test -s conftest.err; then
12668 ac_cpp_err=$ac_c_preproc_warn_flag
12669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12676 if test -z "$ac_cpp_err"; then
12677 ac_header_preproc=yes
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_header_preproc=no
12685 rm -f conftest.err conftest.$ac_ext
12686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6; }
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc=yes
12699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12712 ## ------------------------------------ ##
12713 ## Report this to bug-coreutils@gnu.org ##
12714 ## ------------------------------------ ##
12716 ) | sed "s/^/$as_me: WARNING: /" >&2
12719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 eval "$as_ac_Header=\$ac_header_preproc"
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727 { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12732 cat >>confdefs.h <<_ACEOF
12733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12740 SYS_SOCKET_H='sys/socket.h'
12757 { echo "$as_me:$LINENO: checking how to do getaddrinfo" >&5
12758 echo "$as_me: checking how to do getaddrinfo" >&6;}
12760 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12761 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
12762 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 ac_func_search_save_LIBS=$LIBS
12766 cat >conftest.$ac_ext <<_ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply. */
12779 char getaddrinfo ();
12783 return getaddrinfo ();
12788 for ac_lib in '' nsl socket; do
12789 if test -z "$ac_lib"; then
12790 ac_res="none required"
12793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12799 grep -v '^ *+' conftest.er1 >conftest.err
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_c_werror_flag"
12805 || test ! -s conftest.err'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } &&
12811 { ac_try='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_search_getaddrinfo=$ac_res
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12825 rm -f conftest.err conftest.$ac_objext \
12827 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12831 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12834 ac_cv_search_getaddrinfo=no
12836 rm conftest.$ac_ext
12837 LIBS=$ac_func_search_save_LIBS
12839 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12840 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
12841 ac_res=$ac_cv_search_getaddrinfo
12842 if test "$ac_res" != no; then
12843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12848 for ac_func in getaddrinfo
12850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12864 #define $ac_func innocuous_$ac_func
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func (); below.
12868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869 <limits.h> exists even on freestanding compilers. */
12872 # include <limits.h>
12874 # include <assert.h>
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12886 /* The GNU C library defines this for functions which it implements
12887 to always fail with ENOSYS. Some functions are actually named
12888 something starting with __ and the normal name is an alias. */
12889 #if defined __stub_$ac_func || defined __stub___$ac_func
12896 return $ac_func ();
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903 (eval $ac_link) 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag"
12911 || test ! -s conftest.err'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest$ac_exeext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 eval "$as_ac_var=yes"
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 eval "$as_ac_var=no"
12931 rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 ac_res=`eval echo '${'$as_ac_var'}'`
12935 { echo "$as_me:$LINENO: result: $ac_res" >&5
12936 echo "${ECHO_T}$ac_res" >&6; }
12937 if test `eval echo '${'$as_ac_var'}'` = yes; then
12938 cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12944 { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12945 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
12946 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 gl_cv_w32_getaddrinfo=no
12951 am_save_LIBS="$LIBS"
12952 LIBS="$LIBS -lws2_32"
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #ifdef HAVE_WS2TCPIP_H
12961 #define WINVER 0x0501
12962 #include <ws2tcpip.h>
12968 getaddrinfo(0, 0, 0, 0);
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975 (eval $ac_link) 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
12982 { ac_try='test -z "$ac_c_werror_flag"
12983 || test ! -s conftest.err'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; } &&
12989 { ac_try='test -s conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 gl_cv_w32_getaddrinfo=yes
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS="$am_save_LIBS"
13007 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
13008 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
13009 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13010 LIBS="$LIBS -lws2_32"
13012 case " $LIBOBJS " in
13013 *" getaddrinfo.$ac_objext "* ) ;;
13014 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13025 for ac_func in gai_strerror
13027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 cat >conftest.$ac_ext <<_ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13041 #define $ac_func innocuous_$ac_func
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func (); below.
13045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046 <limits.h> exists even on freestanding compilers. */
13049 # include <limits.h>
13051 # include <assert.h>
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13063 /* The GNU C library defines this for functions which it implements
13064 to always fail with ENOSYS. Some functions are actually named
13065 something starting with __ and the normal name is an alias. */
13066 #if defined __stub_$ac_func || defined __stub___$ac_func
13073 return $ac_func ();
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13080 (eval $ac_link) 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -z "$ac_c_werror_flag"
13088 || test ! -s conftest.err'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest$ac_exeext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 eval "$as_ac_var=yes"
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 eval "$as_ac_var=no"
13108 rm -f conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13111 ac_res=`eval echo '${'$as_ac_var'}'`
13112 { echo "$as_me:$LINENO: result: $ac_res" >&5
13113 echo "${ECHO_T}$ac_res" >&6; }
13114 if test `eval echo '${'$as_ac_var'}'` = yes; then
13115 cat >>confdefs.h <<_ACEOF
13116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13120 case " $LIBOBJS " in
13121 *" $ac_func.$ac_objext "* ) ;;
13122 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13131 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
13132 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
13133 if test "${ac_cv_search_gethostbyname+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_func_search_save_LIBS=$LIBS
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13150 char gethostbyname ();
13154 return gethostbyname ();
13159 for ac_lib in '' inet nsl; do
13160 if test -z "$ac_lib"; then
13161 ac_res="none required"
13164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168 (eval $ac_link) 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -z "$ac_c_werror_flag"
13176 || test ! -s conftest.err'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest$ac_exeext'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_search_gethostbyname=$ac_res
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13196 rm -f conftest.err conftest.$ac_objext \
13198 if test "${ac_cv_search_gethostbyname+set}" = set; then
13202 if test "${ac_cv_search_gethostbyname+set}" = set; then
13205 ac_cv_search_gethostbyname=no
13207 rm conftest.$ac_ext
13208 LIBS=$ac_func_search_save_LIBS
13210 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
13211 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
13212 ac_res=$ac_cv_search_gethostbyname
13213 if test "$ac_res" != no; then
13214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13218 { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
13219 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
13220 if test "${ac_cv_search_getservbyname+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_func_search_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13237 char getservbyname ();
13241 return getservbyname ();
13246 for ac_lib in '' inet nsl socket xnet; do
13247 if test -z "$ac_lib"; then
13248 ac_res="none required"
13251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_search_getservbyname=$ac_res
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13283 rm -f conftest.err conftest.$ac_objext \
13285 if test "${ac_cv_search_getservbyname+set}" = set; then
13289 if test "${ac_cv_search_getservbyname+set}" = set; then
13292 ac_cv_search_getservbyname=no
13294 rm conftest.$ac_ext
13295 LIBS=$ac_func_search_save_LIBS
13297 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
13298 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
13299 ac_res=$ac_cv_search_getservbyname
13300 if test "$ac_res" != no; then
13301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13320 { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13321 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
13322 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 cat >conftest.$ac_ext <<_ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 /* sys/types.h is not needed according to POSIX, but the
13333 sys/socket.h in i386-unknown-freebsd4.10 and
13334 powerpc-apple-darwin5.5 required it. */
13335 #include <sys/types.h>
13336 #ifdef HAVE_SYS_SOCKET_H
13337 #include <sys/socket.h>
13339 #ifdef HAVE_NETDB_H
13342 #ifdef HAVE_WS2TCPIP_H
13343 #define WINVER 0x0501
13344 #include <ws2tcpip.h>
13351 #ifndef getaddrinfo
13352 char *p = (char *) getaddrinfo;
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362 (eval $ac_compile) 2>conftest.er1
13364 grep -v '^ *+' conftest.er1 >conftest.err
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag"
13370 || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_have_decl_getaddrinfo=yes
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_have_decl_getaddrinfo=no
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13393 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
13394 if test $ac_cv_have_decl_getaddrinfo = yes; then
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_DECL_GETADDRINFO 1
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_DECL_GETADDRINFO 0
13408 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13409 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
13410 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13420 /* sys/types.h is not needed according to POSIX, but the
13421 sys/socket.h in i386-unknown-freebsd4.10 and
13422 powerpc-apple-darwin5.5 required it. */
13423 #include <sys/types.h>
13424 #ifdef HAVE_SYS_SOCKET_H
13425 #include <sys/socket.h>
13427 #ifdef HAVE_NETDB_H
13430 #ifdef HAVE_WS2TCPIP_H
13431 #define WINVER 0x0501
13432 #include <ws2tcpip.h>
13439 #ifndef freeaddrinfo
13440 char *p = (char *) freeaddrinfo;
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_have_decl_freeaddrinfo=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_cv_have_decl_freeaddrinfo=no
13478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13481 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
13482 if test $ac_cv_have_decl_freeaddrinfo = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_DECL_FREEADDRINFO 1
13490 cat >>confdefs.h <<_ACEOF
13491 #define HAVE_DECL_FREEADDRINFO 0
13496 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13497 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
13498 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13508 /* sys/types.h is not needed according to POSIX, but the
13509 sys/socket.h in i386-unknown-freebsd4.10 and
13510 powerpc-apple-darwin5.5 required it. */
13511 #include <sys/types.h>
13512 #ifdef HAVE_SYS_SOCKET_H
13513 #include <sys/socket.h>
13515 #ifdef HAVE_NETDB_H
13518 #ifdef HAVE_WS2TCPIP_H
13519 #define WINVER 0x0501
13520 #include <ws2tcpip.h>
13527 #ifndef gai_strerror
13528 char *p = (char *) gai_strerror;
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>conftest.er1
13540 grep -v '^ *+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_have_decl_gai_strerror=yes
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 ac_cv_have_decl_gai_strerror=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13569 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
13570 if test $ac_cv_have_decl_gai_strerror = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_DECL_GAI_STRERROR 1
13578 cat >>confdefs.h <<_ACEOF
13579 #define HAVE_DECL_GAI_STRERROR 0
13586 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13587 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
13588 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 #include <sys/types.h>
13599 #ifdef HAVE_SYS_SOCKET_H
13600 #include <sys/socket.h>
13602 #ifdef HAVE_NETDB_H
13605 #ifdef HAVE_WS2TCPIP_H
13606 #define WINVER 0x0501
13607 #include <ws2tcpip.h>
13611 typedef struct addrinfo ac__type_new_;
13615 if ((ac__type_new_ *) 0)
13617 if (sizeof (ac__type_new_))
13623 rm -f conftest.$ac_objext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625 (eval $ac_compile) 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest.$ac_objext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 ac_cv_type_struct_addrinfo=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_cv_type_struct_addrinfo=no
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13656 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
13657 if test $ac_cv_type_struct_addrinfo = yes; then
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_STRUCT_ADDRINFO 1
13670 case " $LIBOBJS " in
13671 *" canon-host.$ac_objext "* ) ;;
13672 *) LIBOBJS="$LIBOBJS canon-host.$ac_objext"
13682 case " $LIBOBJS " in
13683 *" cloexec.$ac_objext "* ) ;;
13684 *) LIBOBJS="$LIBOBJS cloexec.$ac_objext"
13691 case " $LIBOBJS " in
13692 *" closeout.$ac_objext "* ) ;;
13693 *) LIBOBJS="$LIBOBJS closeout.$ac_objext"
13702 { echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
13703 echo $ECHO_N "checking whether // is distinct from /... $ECHO_C" >&6; }
13704 if test "${ac_cv_double_slash_root+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 if test x"$cross_compiling" = xyes ; then
13708 # When cross-compiling, there is no way to tell whether // is special
13709 # short of a list of hosts. However, the only known hosts to date
13710 # that have a distinct // are Apollo DomainOS (too old to port to)
13711 # and Cygwin. If anyone knows of another system for which // has
13712 # special semantics and is distinct from /, please report it to
13713 # <bug-coreutils@gnu.org>.
13716 ac_cv_double_slash_root=yes ;;
13718 # Be optimistic and assume that / and // are the same when we
13720 ac_cv_double_slash_root='unknown, assuming no' ;;
13723 set x `ls -di / //`
13724 if test $2 = $4; then
13725 ac_cv_double_slash_root=no
13727 ac_cv_double_slash_root=yes
13731 { echo "$as_me:$LINENO: result: $ac_cv_double_slash_root" >&5
13732 echo "${ECHO_T}$ac_cv_double_slash_root" >&6; }
13733 if test x"$ac_cv_double_slash_root" = xyes; then
13734 ac_double_slash_root=1
13736 ac_double_slash_root=0
13740 cat >>confdefs.h <<_ACEOF
13741 #define DOUBLE_SLASH_IS_DISTINCT_ROOT $ac_double_slash_root
13747 case " $LIBOBJS " in
13748 *" dirname.$ac_objext "* ) ;;
13749 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
13758 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13759 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
13760 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 $ac_includes_default
13774 char *p = (char *) strerror_r;
13782 rm -f conftest.$ac_objext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784 (eval $ac_compile) 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag"
13792 || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_have_decl_strerror_r=yes
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_cv_have_decl_strerror_r=no
13812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13814 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13815 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
13816 if test $ac_cv_have_decl_strerror_r = yes; then
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_DECL_STRERROR_R 1
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_DECL_STRERROR_R 0
13833 for ac_func in strerror_r
13835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13849 #define $ac_func innocuous_$ac_func
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char $ac_func (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13857 # include <limits.h>
13859 # include <assert.h>
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13871 /* The GNU C library defines this for functions which it implements
13872 to always fail with ENOSYS. Some functions are actually named
13873 something starting with __ and the normal name is an alias. */
13874 #if defined __stub_$ac_func || defined __stub___$ac_func
13881 return $ac_func ();
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag"
13896 || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 eval "$as_ac_var=yes"
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 eval "$as_ac_var=no"
13916 rm -f conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13919 ac_res=`eval echo '${'$as_ac_var'}'`
13920 { echo "$as_me:$LINENO: result: $ac_res" >&5
13921 echo "${ECHO_T}$ac_res" >&6; }
13922 if test `eval echo '${'$as_ac_var'}'` = yes; then
13923 cat >>confdefs.h <<_ACEOF
13924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13930 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13931 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
13932 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_cv_func_strerror_r_char_p=no
13937 if test $ac_cv_have_decl_strerror_r = yes; then
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13950 char x = *strerror_r (0, buf, sizeof buf);
13951 char *p = strerror_r (0, buf, sizeof buf);
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_cv_func_strerror_r_char_p=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13990 # strerror_r is not declared. Choose between
13991 # systems that have relatively inaccessible declarations for the
13992 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13993 # former has a strerror_r that returns char*, while the latter
13994 # has a strerror_r that returns `int'.
13995 # This test should segfault on the DEC system.
13996 if test "$cross_compiling" = yes; then
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14006 extern char *strerror_r ();
14011 char x = *strerror_r (0, buf, sizeof buf);
14012 return ! isalpha (x);
14017 rm -f conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_func_strerror_r_char_p=yes
14030 echo "$as_me: program exited with status $ac_status" >&5
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14042 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14043 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
14044 if test $ac_cv_func_strerror_r_char_p = yes; then
14046 cat >>confdefs.h <<\_ACEOF
14047 #define STRERROR_R_CHAR_P 1
14053 { echo "$as_me:$LINENO: checking for error_at_line" >&5
14054 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
14055 if test "${ac_cv_lib_error_at_line+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 $ac_includes_default
14068 error_at_line (0, 0, "", 0, "");
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_lib_error_at_line=yes
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_cv_lib_error_at_line=no
14103 rm -f conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14106 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
14107 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
14108 if test $ac_cv_lib_error_at_line = no; then
14109 case " $LIBOBJS " in
14110 *" error.$ac_objext "* ) ;;
14111 *) LIBOBJS="$LIBOBJS error.$ac_objext"
14130 case " $LIBOBJS " in
14131 *" exclude.$ac_objext "* ) ;;
14132 *) LIBOBJS="$LIBOBJS exclude.$ac_objext"
14149 case " $LIBOBJS " in
14150 *" exitfail.$ac_objext "* ) ;;
14151 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext"
14160 case " $LIBOBJS " in
14161 *" open-safer.$ac_objext "* ) ;;
14162 *) LIBOBJS="$LIBOBJS open-safer.$ac_objext"
14166 case " $LIBOBJS " in
14167 *" creat-safer.$ac_objext "* ) ;;
14168 *) LIBOBJS="$LIBOBJS creat-safer.$ac_objext"
14175 case " $LIBOBJS " in
14176 *" fd-reopen.$ac_objext "* ) ;;
14177 *) LIBOBJS="$LIBOBJS fd-reopen.$ac_objext"
14183 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14184 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
14185 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14198 static struct stat ac_aggr;
14199 if (ac_aggr.st_blocks)
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_member_struct_stat_st_blocks=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 $ac_includes_default
14242 static struct stat ac_aggr;
14243 if (sizeof ac_aggr.st_blocks)
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_member_struct_stat_st_blocks=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_member_struct_stat_st_blocks=no
14279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14285 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
14286 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_ST_BLOCKS 1
14298 case " $LIBOBJS " in
14299 *" fileblocks.$ac_objext "* ) ;;
14300 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
14307 if test $ac_cv_member_struct_stat_st_blocks = no; then
14320 { echo "$as_me:$LINENO: checking whether strmode is declared" >&5
14321 echo $ECHO_N "checking whether strmode is declared... $ECHO_C" >&6; }
14322 if test "${ac_cv_have_decl_strmode+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 $ac_includes_default
14336 char *p = (char *) strmode;
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_have_decl_strmode=yes
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 ac_cv_have_decl_strmode=no
14374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strmode" >&5
14377 echo "${ECHO_T}$ac_cv_have_decl_strmode" >&6; }
14378 if test $ac_cv_have_decl_strmode = yes; then
14380 cat >>confdefs.h <<_ACEOF
14381 #define HAVE_DECL_STRMODE 1
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DECL_STRMODE 0
14397 case " $LIBOBJS " in
14398 *" filemode.$ac_objext "* ) ;;
14399 *) LIBOBJS="$LIBOBJS filemode.$ac_objext"
14419 case " $LIBOBJS " in
14420 *" filenamecat.$ac_objext "* ) ;;
14421 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext"
14436 case " $LIBOBJS " in
14437 *" file-type.$ac_objext "* ) ;;
14438 *) LIBOBJS="$LIBOBJS file-type.$ac_objext"
14470 for ac_header in sys/mount.h
14472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 $ac_includes_default
14485 #if HAVE_SYS_PARAM_H
14486 #include <sys/param.h>
14489 #include <$ac_header>
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 eval "$as_ac_Header=yes"
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 eval "$as_ac_Header=no"
14521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523 ac_res=`eval echo '${'$as_ac_Header'}'`
14524 { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14537 echo "checking how to get file system space usage..."
14538 ac_fsusage_space=no
14540 # Perform only the link test since it seems there are no variants of the
14541 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14542 # because that got a false positive on SCO OSR5. Adding the declaration
14543 # of a `struct statvfs' causes this test to fail (as it should) on such
14544 # systems. That system is reported to work fine with STAT_STATFS4 which
14545 # is what it gets when this test fails.
14546 if test $ac_fsusage_space = no; then
14548 { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
14549 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
14550 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 #include <sys/types.h>
14561 Do not use statvfs on systems with GNU libc, because that function stats
14562 all preceding entries in /proc/mounts, and that makes df hang if even
14563 one of the corresponding file systems is hard-mounted, but not available.
14565 #include <sys/statvfs.h>
14569 struct statvfs fsd; statvfs (0, &fsd);
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 fu_cv_sys_stat_statvfs=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 fu_cv_sys_stat_statvfs=no
14604 rm -f conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14607 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
14608 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
14609 if test $fu_cv_sys_stat_statvfs = yes; then
14610 ac_fsusage_space=yes
14612 cat >>confdefs.h <<\_ACEOF
14613 #define STAT_STATVFS 1
14619 if test $ac_fsusage_space = no; then
14620 # DEC Alpha running OSF/1
14621 { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
14622 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
14623 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 if test "$cross_compiling" = yes; then
14627 fu_cv_sys_stat_statfs3_osf1=no
14629 cat >conftest.$ac_ext <<_ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14636 #include <sys/param.h>
14637 #include <sys/types.h>
14638 #include <sys/mount.h>
14644 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
14647 rm -f conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 fu_cv_sys_stat_statfs3_osf1=yes
14660 echo "$as_me: program exited with status $ac_status" >&5
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 ( exit $ac_status )
14665 fu_cv_sys_stat_statfs3_osf1=no
14667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14673 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
14674 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
14675 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14676 ac_fsusage_space=yes
14678 cat >>confdefs.h <<\_ACEOF
14679 #define STAT_STATFS3_OSF1 1
14685 if test $ac_fsusage_space = no; then
14687 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14688 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
14689 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 if test "$cross_compiling" = yes; then
14693 fu_cv_sys_stat_statfs2_bsize=no
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14702 #ifdef HAVE_SYS_PARAM_H
14703 #include <sys/param.h>
14705 #ifdef HAVE_SYS_MOUNT_H
14706 #include <sys/mount.h>
14708 #ifdef HAVE_SYS_VFS_H
14709 #include <sys/vfs.h>
14716 return statfs (".", &fsd) != 0;
14719 rm -f conftest$ac_exeext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721 (eval $ac_link) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 fu_cv_sys_stat_statfs2_bsize=yes
14732 echo "$as_me: program exited with status $ac_status" >&5
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ( exit $ac_status )
14737 fu_cv_sys_stat_statfs2_bsize=no
14739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
14746 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
14747 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14748 ac_fsusage_space=yes
14750 cat >>confdefs.h <<\_ACEOF
14751 #define STAT_STATFS2_BSIZE 1
14757 if test $ac_fsusage_space = no; then
14759 { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14760 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
14761 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 if test "$cross_compiling" = yes; then
14765 fu_cv_sys_stat_statfs4=no
14767 cat >conftest.$ac_ext <<_ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 #include <sys/types.h>
14774 #include <sys/statfs.h>
14779 return statfs (".", &fsd, sizeof fsd, 0) != 0;
14782 rm -f conftest$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784 (eval $ac_link) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 fu_cv_sys_stat_statfs4=yes
14795 echo "$as_me: program exited with status $ac_status" >&5
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ( exit $ac_status )
14800 fu_cv_sys_stat_statfs4=no
14802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14808 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
14809 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
14810 if test $fu_cv_sys_stat_statfs4 = yes; then
14811 ac_fsusage_space=yes
14813 cat >>confdefs.h <<\_ACEOF
14814 #define STAT_STATFS4 1
14820 if test $ac_fsusage_space = no; then
14821 # 4.4BSD and NetBSD
14822 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14823 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
14824 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 if test "$cross_compiling" = yes; then
14828 fu_cv_sys_stat_statfs2_fsize=no
14830 cat >conftest.$ac_ext <<_ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <sys/types.h>
14837 #ifdef HAVE_SYS_PARAM_H
14838 #include <sys/param.h>
14840 #ifdef HAVE_SYS_MOUNT_H
14841 #include <sys/mount.h>
14848 return statfs (".", &fsd) != 0;
14851 rm -f conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853 (eval $ac_link) 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 fu_cv_sys_stat_statfs2_fsize=yes
14864 echo "$as_me: program exited with status $ac_status" >&5
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ( exit $ac_status )
14869 fu_cv_sys_stat_statfs2_fsize=no
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
14878 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
14879 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14880 ac_fsusage_space=yes
14882 cat >>confdefs.h <<\_ACEOF
14883 #define STAT_STATFS2_FSIZE 1
14889 if test $ac_fsusage_space = no; then
14891 { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14892 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
14893 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 if test "$cross_compiling" = yes; then
14897 fu_cv_sys_stat_fs_data=no
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 #include <sys/types.h>
14906 #ifdef HAVE_SYS_PARAM_H
14907 #include <sys/param.h>
14909 #ifdef HAVE_SYS_MOUNT_H
14910 #include <sys/mount.h>
14912 #ifdef HAVE_SYS_FS_TYPES_H
14913 #include <sys/fs_types.h>
14918 struct fs_data fsd;
14919 /* Ultrix's statfs returns 1 for success,
14920 0 for not mounted, -1 for failure. */
14921 return statfs (".", &fsd) != 1;
14924 rm -f conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 fu_cv_sys_stat_fs_data=yes
14937 echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ( exit $ac_status )
14942 fu_cv_sys_stat_fs_data=no
14944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14950 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
14951 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
14952 if test $fu_cv_sys_stat_fs_data = yes; then
14953 ac_fsusage_space=yes
14955 cat >>confdefs.h <<\_ACEOF
14956 #define STAT_STATFS2_FS_DATA 1
14962 if test $ac_fsusage_space = no; then
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 #include <sys/filsys.h>
14973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null; then
14981 if test -s conftest.err; then
14982 ac_cpp_err=$ac_c_preproc_warn_flag
14983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14990 if test -z "$ac_cpp_err"; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define STAT_READ_FILSYS 1
14996 ac_fsusage_space=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15004 rm -f conftest.err conftest.$ac_ext
15007 if test $ac_fsusage_space = yes; then
15015 if test $gl_cv_fs_space = yes; then
15016 case " $LIBOBJS " in
15017 *" fsusage.$ac_objext "* ) ;;
15018 *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
15029 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
15031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039 { echo "$as_me:$LINENO: result: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15042 # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15052 #include <$ac_header>
15054 rm -f conftest.$ac_objext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056 (eval $ac_compile) 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag"
15064 || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest.$ac_objext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_header_compiler=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_header_compiler=no
15084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
15088 # Is the header present?
15089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 #include <$ac_header>
15099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_c_preproc_warn_flag
15109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 if test -z "$ac_cpp_err"; then
15117 ac_header_preproc=yes
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 ac_header_preproc=no
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15129 # So? What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15152 ## ------------------------------------ ##
15153 ## Report this to bug-coreutils@gnu.org ##
15154 ## ------------------------------------ ##
15156 ) | sed "s/^/$as_me: WARNING: /" >&2
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 eval "$as_ac_Header=\$ac_header_preproc"
15166 ac_res=`eval echo '${'$as_ac_Header'}'`
15167 { echo "$as_me:$LINENO: result: $ac_res" >&5
15168 echo "${ECHO_T}$ac_res" >&6; }
15171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15181 { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
15182 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
15183 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15193 #if !defined(sun) && !defined(__sun)
15194 choke -- this is a workaround for a Sun-specific problem
15196 #include <sys/types.h>
15197 #include <sys/vfs.h>
15201 struct statfs t; long c = *(t.f_spare);
15206 rm -f conftest.$ac_objext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208 (eval $ac_compile) 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest.$ac_objext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 fu_cv_sys_truncating_statfs=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 fu_cv_sys_truncating_statfs=no
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15239 if test $fu_cv_sys_truncating_statfs = yes; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
15246 { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
15247 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
15254 for ac_func in atexit
15256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15270 #define $ac_func innocuous_$ac_func
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char $ac_func (); below.
15274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275 <limits.h> exists even on freestanding compilers. */
15278 # include <limits.h>
15280 # include <assert.h>
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15292 /* The GNU C library defines this for functions which it implements
15293 to always fail with ENOSYS. Some functions are actually named
15294 something starting with __ and the normal name is an alias. */
15295 #if defined __stub_$ac_func || defined __stub___$ac_func
15302 return $ac_func ();
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag"
15317 || test ! -s conftest.err'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 eval "$as_ac_var=yes"
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 eval "$as_ac_var=no"
15337 rm -f conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15340 ac_res=`eval echo '${'$as_ac_var'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342 echo "${ECHO_T}$ac_res" >&6; }
15343 if test `eval echo '${'$as_ac_var'}'` = yes; then
15344 cat >>confdefs.h <<_ACEOF
15345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15349 case " $LIBOBJS " in
15350 *" $ac_func.$ac_objext "* ) ;;
15351 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15359 if test $ac_cv_func_atexit = no; then
15367 for ac_func in dup2
15369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15383 #define $ac_func innocuous_$ac_func
15385 /* System header to define __stub macros and hopefully few prototypes,
15386 which can conflict with char $ac_func (); below.
15387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388 <limits.h> exists even on freestanding compilers. */
15391 # include <limits.h>
15393 # include <assert.h>
15398 /* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15405 /* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408 #if defined __stub_$ac_func || defined __stub___$ac_func
15415 return $ac_func ();
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag"
15430 || test ! -s conftest.err'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 eval "$as_ac_var=yes"
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 eval "$as_ac_var=no"
15450 rm -f conftest.err conftest.$ac_objext \
15451 conftest$ac_exeext conftest.$ac_ext
15453 ac_res=`eval echo '${'$as_ac_var'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462 case " $LIBOBJS " in
15463 *" $ac_func.$ac_objext "* ) ;;
15464 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15477 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
15478 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; }
15479 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 if test "$cross_compiling" = yes; then
15483 ac_cv_func_fnmatch_gnu=cross
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15492 # include <stdlib.h>
15493 # include <fnmatch.h>
15494 # define y(a, b, c) (fnmatch (a, b, c) == 0)
15495 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15497 fnm (char const *pattern, char const *string, int flags)
15499 return fnmatch (pattern, string, flags);
15506 (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH
15507 && y ("a*", "abc", 0)
15508 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15509 && y ("a\\\\bc", "abc", 0)
15510 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15511 && y ("*x", ".x", 0)
15512 && n ("*x", ".x", FNM_PERIOD)
15513 && y ("xxXX", "xXxX", FNM_CASEFOLD)
15514 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
15515 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
15516 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
15517 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
15518 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
15523 rm -f conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525 (eval $ac_link) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_func_fnmatch_gnu=yes
15536 echo "$as_me: program exited with status $ac_status" >&5
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 ( exit $ac_status )
15541 ac_cv_func_fnmatch_gnu=no
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15548 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
15549 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; }
15550 if test $ac_cv_func_fnmatch_gnu = yes; then
15551 rm -f lib/fnmatch.h
15553 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15554 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
15555 if test "${ac_cv_have_decl_getenv+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 $ac_includes_default
15569 char *p = (char *) getenv;
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_have_decl_getenv=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_have_decl_getenv=no
15607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15610 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
15611 if test $ac_cv_have_decl_getenv = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_DECL_GETENV 1
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_DECL_GETENV 0
15633 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
15635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15649 #define $ac_func innocuous_$ac_func
15651 /* System header to define __stub macros and hopefully few prototypes,
15652 which can conflict with char $ac_func (); below.
15653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15654 <limits.h> exists even on freestanding compilers. */
15657 # include <limits.h>
15659 # include <assert.h>
15664 /* Override any GCC internal prototype to avoid an error.
15665 Use char because int might match the return type of a GCC
15666 builtin and then its argument prototype would still apply. */
15671 /* The GNU C library defines this for functions which it implements
15672 to always fail with ENOSYS. Some functions are actually named
15673 something starting with __ and the normal name is an alias. */
15674 #if defined __stub_$ac_func || defined __stub___$ac_func
15681 return $ac_func ();
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag"
15696 || test ! -s conftest.err'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 eval "$as_ac_var=yes"
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 eval "$as_ac_var=no"
15716 rm -f conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15719 ac_res=`eval echo '${'$as_ac_var'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15722 if test `eval echo '${'$as_ac_var'}'` = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15732 for ac_header in wchar.h wctype.h
15734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 ac_res=`eval echo '${'$as_ac_Header'}'`
15742 { echo "$as_me:$LINENO: result: $ac_res" >&5
15743 echo "${ECHO_T}$ac_res" >&6; }
15745 # Is the header compilable?
15746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_header_compiler=no
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6; }
15791 # Is the header present?
15792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <$ac_header>
15802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null; then
15810 if test -s conftest.err; then
15811 ac_cpp_err=$ac_c_preproc_warn_flag
15812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15819 if test -z "$ac_cpp_err"; then
15820 ac_header_preproc=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_header_preproc=no
15828 rm -f conftest.err conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 echo "${ECHO_T}$ac_header_preproc" >&6; }
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15839 ac_header_preproc=yes
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15855 ## ------------------------------------ ##
15856 ## Report this to bug-coreutils@gnu.org ##
15857 ## ------------------------------------ ##
15859 ) | sed "s/^/$as_me: WARNING: /" >&2
15862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 eval "$as_ac_Header=\$ac_header_preproc"
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15883 case " $LIBOBJS " in
15884 *" fnmatch.$ac_objext "* ) ;;
15885 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15889 FNMATCH_H=fnmatch.h
15894 if test $ac_cv_func_fnmatch_gnu != yes; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define fnmatch gnu_fnmatch
15905 for ac_func in gethostname
15907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15921 #define $ac_func innocuous_$ac_func
15923 /* System header to define __stub macros and hopefully few prototypes,
15924 which can conflict with char $ac_func (); below.
15925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15926 <limits.h> exists even on freestanding compilers. */
15929 # include <limits.h>
15931 # include <assert.h>
15936 /* Override any GCC internal prototype to avoid an error.
15937 Use char because int might match the return type of a GCC
15938 builtin and then its argument prototype would still apply. */
15943 /* The GNU C library defines this for functions which it implements
15944 to always fail with ENOSYS. Some functions are actually named
15945 something starting with __ and the normal name is an alias. */
15946 #if defined __stub_$ac_func || defined __stub___$ac_func
15953 return $ac_func ();
15958 rm -f conftest.$ac_objext conftest$ac_exeext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15960 (eval $ac_link) 2>conftest.er1
15962 grep -v '^ *+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try='test -z "$ac_c_werror_flag"
15968 || test ! -s conftest.err'
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try='test -s conftest$ac_exeext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 eval "$as_ac_var=yes"
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 eval "$as_ac_var=no"
15988 rm -f conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16000 case " $LIBOBJS " in
16001 *" $ac_func.$ac_objext "* ) ;;
16002 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16010 if test $ac_cv_func_gethostname = no; then
16013 for ac_func in uname
16015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16029 #define $ac_func innocuous_$ac_func
16031 /* System header to define __stub macros and hopefully few prototypes,
16032 which can conflict with char $ac_func (); below.
16033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16034 <limits.h> exists even on freestanding compilers. */
16037 # include <limits.h>
16039 # include <assert.h>
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16051 /* The GNU C library defines this for functions which it implements
16052 to always fail with ENOSYS. Some functions are actually named
16053 something starting with __ and the normal name is an alias. */
16054 #if defined __stub_$ac_func || defined __stub___$ac_func
16061 return $ac_func ();
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 eval "$as_ac_var=yes"
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 eval "$as_ac_var=no"
16096 rm -f conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100 { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103 cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16114 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
16115 echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
16116 if test "${ac_cv_have_decl_getdelim+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16130 char *p = (char *) getdelim;
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_have_decl_getdelim=yes
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_cv_have_decl_getdelim=no
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16170 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
16171 echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
16172 if test $ac_cv_have_decl_getdelim = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE_DECL_GETDELIM 1
16180 cat >>confdefs.h <<_ACEOF
16181 #define HAVE_DECL_GETDELIM 0
16194 { echo "$as_me:$LINENO: checking whether getline is declared" >&5
16195 echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
16196 if test "${ac_cv_have_decl_getline+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16210 char *p = (char *) getline;
16218 rm -f conftest.$ac_objext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16220 (eval $ac_compile) 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag"
16228 || test ! -s conftest.err'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest.$ac_objext'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_have_decl_getline=yes
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_cv_have_decl_getline=no
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
16251 echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
16252 if test $ac_cv_have_decl_getline = yes; then
16254 cat >>confdefs.h <<_ACEOF
16255 #define HAVE_DECL_GETLINE 1
16260 cat >>confdefs.h <<_ACEOF
16261 #define HAVE_DECL_GETLINE 0
16269 gl_getline_needs_run_time_check=no
16270 { echo "$as_me:$LINENO: checking for getline" >&5
16271 echo $ECHO_N "checking for getline... $ECHO_C" >&6; }
16272 if test "${ac_cv_func_getline+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define getline innocuous_getline
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char getline (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16291 # include <limits.h>
16293 # include <assert.h>
16298 /* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16305 /* The GNU C library defines this for functions which it implements
16306 to always fail with ENOSYS. Some functions are actually named
16307 something starting with __ and the normal name is an alias. */
16308 #if defined __stub_getline || defined __stub___getline
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16322 (eval $ac_link) 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try='test -z "$ac_c_werror_flag"
16330 || test ! -s conftest.err'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; } &&
16336 { ac_try='test -s conftest$ac_exeext'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_func_getline=yes
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 ac_cv_func_getline=no
16350 rm -f conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
16354 echo "${ECHO_T}$ac_cv_func_getline" >&6; }
16355 if test $ac_cv_func_getline = yes; then
16356 gl_getline_needs_run_time_check=yes
16358 am_cv_func_working_getline=no
16361 if test $gl_getline_needs_run_time_check = yes; then
16362 { echo "$as_me:$LINENO: checking for working getline function" >&5
16363 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; }
16364 if test "${am_cv_func_working_getline+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16368 if test "$cross_compiling" = yes; then
16369 am_cv_func_working_getline=no
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16378 # include <stdio.h>
16379 # include <stdlib.h>
16380 # include <string.h>
16382 { /* Based on a test program from Karl Heuer. */
16386 FILE *in = fopen ("./conftest.data", "r");
16389 len = getline (&line, &siz, in);
16390 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16394 rm -f conftest$ac_exeext
16395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396 (eval $ac_link) 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 am_cv_func_working_getline=yes
16407 echo "$as_me: program exited with status $ac_status" >&5
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ( exit $ac_status )
16412 am_cv_func_working_getline=no
16414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16420 echo "${ECHO_T}$am_cv_func_working_getline" >&6; }
16423 if test $am_cv_func_working_getline = no; then
16425 cat >>confdefs.h <<\_ACEOF
16426 #define getline gnu_getline
16429 case " $LIBOBJS " in
16430 *" getline.$ac_objext "* ) ;;
16431 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16443 for ac_func in getdelim
16445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16459 #define $ac_func innocuous_$ac_func
16461 /* System header to define __stub macros and hopefully few prototypes,
16462 which can conflict with char $ac_func (); below.
16463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16464 <limits.h> exists even on freestanding compilers. */
16467 # include <limits.h>
16469 # include <assert.h>
16474 /* Override any GCC internal prototype to avoid an error.
16475 Use char because int might match the return type of a GCC
16476 builtin and then its argument prototype would still apply. */
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined __stub_$ac_func || defined __stub___$ac_func
16491 return $ac_func ();
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag"
16506 || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 eval "$as_ac_var=yes"
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 eval "$as_ac_var=no"
16526 rm -f conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16529 ac_res=`eval echo '${'$as_ac_var'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16538 case " $LIBOBJS " in
16539 *" $ac_func.$ac_objext "* ) ;;
16540 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16556 if test $ac_cv_func_getdelim = no; then
16560 for ac_func in flockfile funlockfile
16562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16576 #define $ac_func innocuous_$ac_func
16578 /* System header to define __stub macros and hopefully few prototypes,
16579 which can conflict with char $ac_func (); below.
16580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581 <limits.h> exists even on freestanding compilers. */
16584 # include <limits.h>
16586 # include <assert.h>
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16598 /* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601 #if defined __stub_$ac_func || defined __stub___$ac_func
16608 return $ac_func ();
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 eval "$as_ac_var=yes"
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 eval "$as_ac_var=no"
16643 rm -f conftest.err conftest.$ac_objext \
16644 conftest$ac_exeext conftest.$ac_ext
16646 ac_res=`eval echo '${'$as_ac_var'}'`
16647 { echo "$as_me:$LINENO: result: $ac_res" >&5
16648 echo "${ECHO_T}$ac_res" >&6; }
16649 if test `eval echo '${'$as_ac_var'}'` = yes; then
16650 cat >>confdefs.h <<_ACEOF
16651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16663 ac_have_func=no # yes means we've found a way to get the load average.
16665 # Make sure getloadavg.c is where it belongs, at configure-time.
16666 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16667 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16668 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16669 { (exit 1); exit 1; }; }
16673 # Check for getloadavg, but be sure not to touch the cache variable.
16674 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16675 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16676 if test "${ac_cv_func_getloadavg+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16687 #define getloadavg innocuous_getloadavg
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char getloadavg (); below.
16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692 <limits.h> exists even on freestanding compilers. */
16695 # include <limits.h>
16697 # include <assert.h>
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16708 char getloadavg ();
16709 /* The GNU C library defines this for functions which it implements
16710 to always fail with ENOSYS. Some functions are actually named
16711 something starting with __ and the normal name is an alias. */
16712 #if defined __stub_getloadavg || defined __stub___getloadavg
16719 return getloadavg ();
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_func_getloadavg=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_func_getloadavg=no
16754 rm -f conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16758 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16759 if test $ac_cv_func_getloadavg = yes; then
16764 ) && ac_have_func=yes
16766 # On HPUX9, an unprivileged user can get load averages through this function.
16768 for ac_func in pstat_getdynamic
16770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16784 #define $ac_func innocuous_$ac_func
16786 /* System header to define __stub macros and hopefully few prototypes,
16787 which can conflict with char $ac_func (); below.
16788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16789 <limits.h> exists even on freestanding compilers. */
16792 # include <limits.h>
16794 # include <assert.h>
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16806 /* The GNU C library defines this for functions which it implements
16807 to always fail with ENOSYS. Some functions are actually named
16808 something starting with __ and the normal name is an alias. */
16809 #if defined __stub_$ac_func || defined __stub___$ac_func
16816 return $ac_func ();
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_var=no"
16851 rm -f conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855 { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16866 # Solaris has libkstat which does not require root.
16868 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16869 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16870 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lkstat $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16888 char kstat_open ();
16892 return kstat_open ();
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag"
16907 || test ! -s conftest.err'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_lib_kstat_kstat_open=yes
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_lib_kstat_kstat_open=no
16927 rm -f conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16931 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16932 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16933 if test $ac_cv_lib_kstat_kstat_open = yes; then
16934 cat >>confdefs.h <<_ACEOF
16935 #define HAVE_LIBKSTAT 1
16938 LIBS="-lkstat $LIBS"
16942 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16944 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16945 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16946 # to get the right answer into the cache.
16947 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16948 if test $ac_have_func = no; then
16949 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16950 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16951 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_check_lib_save_LIBS=$LIBS
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16963 /* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16973 return elf_begin ();
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_lib_elf_elf_begin=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_cv_lib_elf_elf_begin=no
17008 rm -f conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17012 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17013 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17014 if test $ac_cv_lib_elf_elf_begin = yes; then
17019 if test $ac_have_func = no; then
17020 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17021 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 ac_check_lib_save_LIBS=$LIBS
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17044 return kvm_open ();
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051 (eval $ac_link) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_kvm_kvm_open=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_lib_kvm_kvm_open=no
17079 rm -f conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17084 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17085 if test $ac_cv_lib_kvm_kvm_open = yes; then
17089 # Check for the 4.4BSD definition of getloadavg.
17090 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17091 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17092 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lutil $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17110 char getloadavg ();
17114 return getloadavg ();
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag"
17129 || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_cv_lib_util_getloadavg=yes
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_cv_lib_util_getloadavg=no
17149 rm -f conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17151 LIBS=$ac_check_lib_save_LIBS
17153 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17154 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17155 if test $ac_cv_lib_util_getloadavg = yes; then
17156 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17161 if test $ac_have_func = no; then
17162 # There is a commonly available library for RS/6000 AIX.
17163 # Since it is not a standard part of AIX, it might be installed locally.
17164 ac_getloadavg_LIBS=$LIBS
17165 LIBS="-L/usr/local/lib $LIBS"
17166 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17167 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17168 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lgetloadavg $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17186 char getloadavg ();
17190 return getloadavg ();
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17197 (eval $ac_link) 2>conftest.er1
17199 grep -v '^ *+' conftest.er1 >conftest.err
17201 cat conftest.err >&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -z "$ac_c_werror_flag"
17205 || test ! -s conftest.err'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest$ac_exeext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_lib_getloadavg_getloadavg=yes
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ac_cv_lib_getloadavg_getloadavg=no
17225 rm -f conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17230 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17231 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17232 LIBS="-lgetloadavg $LIBS"
17234 LIBS=$ac_getloadavg_LIBS
17239 # Make sure it is really in the library, if we think we found it,
17240 # otherwise set up the replacement function.
17242 for ac_func in getloadavg
17244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17258 #define $ac_func innocuous_$ac_func
17260 /* System header to define __stub macros and hopefully few prototypes,
17261 which can conflict with char $ac_func (); below.
17262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17263 <limits.h> exists even on freestanding compilers. */
17266 # include <limits.h>
17268 # include <assert.h>
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17280 /* The GNU C library defines this for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283 #if defined __stub_$ac_func || defined __stub___$ac_func
17290 return $ac_func ();
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 eval "$as_ac_var=yes"
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 eval "$as_ac_var=no"
17325 rm -f conftest.err conftest.$ac_objext \
17326 conftest$ac_exeext conftest.$ac_ext
17328 ac_res=`eval echo '${'$as_ac_var'}'`
17329 { echo "$as_me:$LINENO: result: $ac_res" >&5
17330 echo "${ECHO_T}$ac_res" >&6; }
17331 if test `eval echo '${'$as_ac_var'}'` = yes; then
17332 cat >>confdefs.h <<_ACEOF
17333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17337 case " $LIBOBJS " in
17338 *" getloadavg.$ac_objext "* ) ;;
17339 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17344 cat >>confdefs.h <<\_ACEOF
17345 #define C_GETLOADAVG 1
17348 # Figure out what our getloadavg.c needs.
17350 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17351 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17352 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17353 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17357 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17359 # Is the header compilable?
17360 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17361 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 $ac_includes_default
17369 #include <sys/dg_sys_info.h>
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 ac_header_compiler=yes
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 ac_header_compiler=no
17401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17403 echo "${ECHO_T}$ac_header_compiler" >&6; }
17405 # Is the header present?
17406 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17407 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 #include <sys/dg_sys_info.h>
17416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } >/dev/null; then
17424 if test -s conftest.err; then
17425 ac_cpp_err=$ac_c_preproc_warn_flag
17426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17433 if test -z "$ac_cpp_err"; then
17434 ac_header_preproc=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_header_preproc=no
17442 rm -f conftest.err conftest.$ac_ext
17443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17444 echo "${ECHO_T}$ac_header_preproc" >&6; }
17446 # So? What about this header?
17447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17449 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17450 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17452 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17453 ac_header_preproc=yes
17456 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17457 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17458 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17459 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17461 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17463 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17464 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17465 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17466 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17467 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17469 ## ------------------------------------ ##
17470 ## Report this to bug-coreutils@gnu.org ##
17471 ## ------------------------------------ ##
17473 ) | sed "s/^/$as_me: WARNING: /" >&2
17476 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17477 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17478 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17483 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17484 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17487 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17490 cat >>confdefs.h <<\_ACEOF
17495 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17496 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17497 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 ac_check_lib_save_LIBS=$LIBS
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17515 char dg_sys_info ();
17519 return dg_sys_info ();
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526 (eval $ac_link) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag"
17534 || test ! -s conftest.err'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 ac_cv_lib_dgc_dg_sys_info=yes
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 ac_cv_lib_dgc_dg_sys_info=no
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17560 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17561 cat >>confdefs.h <<_ACEOF
17562 #define HAVE_LIBDGC 1
17573 if test "${ac_cv_header_locale_h+set}" = set; then
17574 { echo "$as_me:$LINENO: checking for locale.h" >&5
17575 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17576 if test "${ac_cv_header_locale_h+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17580 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17582 # Is the header compilable?
17583 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17584 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17592 #include <locale.h>
17594 rm -f conftest.$ac_objext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596 (eval $ac_compile) 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag"
17604 || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_header_compiler=yes
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_header_compiler=no
17624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17626 echo "${ECHO_T}$ac_header_compiler" >&6; }
17628 # Is the header present?
17629 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17630 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 #include <locale.h>
17639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } >/dev/null; then
17647 if test -s conftest.err; then
17648 ac_cpp_err=$ac_c_preproc_warn_flag
17649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17656 if test -z "$ac_cpp_err"; then
17657 ac_header_preproc=yes
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_header_preproc=no
17665 rm -f conftest.err conftest.$ac_ext
17666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17667 echo "${ECHO_T}$ac_header_preproc" >&6; }
17669 # So? What about this header?
17670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17672 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17673 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17674 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17675 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17676 ac_header_preproc=yes
17679 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17680 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17682 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17683 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17684 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17686 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17688 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17690 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17692 ## ------------------------------------ ##
17693 ## Report this to bug-coreutils@gnu.org ##
17694 ## ------------------------------------ ##
17696 ) | sed "s/^/$as_me: WARNING: /" >&2
17699 { echo "$as_me:$LINENO: checking for locale.h" >&5
17700 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17701 if test "${ac_cv_header_locale_h+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 ac_cv_header_locale_h=$ac_header_preproc
17706 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17707 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17713 for ac_func in setlocale
17715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17729 #define $ac_func innocuous_$ac_func
17731 /* System header to define __stub macros and hopefully few prototypes,
17732 which can conflict with char $ac_func (); below.
17733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17734 <limits.h> exists even on freestanding compilers. */
17737 # include <limits.h>
17739 # include <assert.h>
17744 /* Override any GCC internal prototype to avoid an error.
17745 Use char because int might match the return type of a GCC
17746 builtin and then its argument prototype would still apply. */
17751 /* The GNU C library defines this for functions which it implements
17752 to always fail with ENOSYS. Some functions are actually named
17753 something starting with __ and the normal name is an alias. */
17754 #if defined __stub_$ac_func || defined __stub___$ac_func
17761 return $ac_func ();
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17770 grep -v '^ *+' conftest.er1 >conftest.err
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 eval "$as_ac_var=yes"
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 eval "$as_ac_var=no"
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17799 ac_res=`eval echo '${'$as_ac_var'}'`
17800 { echo "$as_me:$LINENO: result: $ac_res" >&5
17801 echo "${ECHO_T}$ac_res" >&6; }
17802 if test `eval echo '${'$as_ac_var'}'` = yes; then
17803 cat >>confdefs.h <<_ACEOF
17804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17812 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17813 # Irix 4.0.5F has the header but not the library.
17814 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17817 cat >>confdefs.h <<\_ACEOF
17823 if test $ac_have_func = no; then
17824 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17825 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17826 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17831 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17833 # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17835 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <inq_stats/cpustats.h>
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_compiler=no
17875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17877 echo "${ECHO_T}$ac_header_compiler" >&6; }
17879 # Is the header present?
17880 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17881 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 #include <inq_stats/cpustats.h>
17890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } >/dev/null; then
17898 if test -s conftest.err; then
17899 ac_cpp_err=$ac_c_preproc_warn_flag
17900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17907 if test -z "$ac_cpp_err"; then
17908 ac_header_preproc=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17924 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17927 ac_header_preproc=yes
17930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17933 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17935 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17937 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17943 ## ------------------------------------ ##
17944 ## Report this to bug-coreutils@gnu.org ##
17945 ## ------------------------------------ ##
17947 ) | sed "s/^/$as_me: WARNING: /" >&2
17950 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17951 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17952 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17957 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17958 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17961 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17964 cat >>confdefs.h <<\_ACEOF
17969 cat >>confdefs.h <<\_ACEOF
17978 if test $ac_have_func = no; then
17979 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17981 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17982 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17988 # Is the header compilable?
17989 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17990 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <sys/cpustats.h>
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_header_compiler=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_header_compiler=no
18030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18032 echo "${ECHO_T}$ac_header_compiler" >&6; }
18034 # Is the header present?
18035 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18036 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 #include <sys/cpustats.h>
18045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } >/dev/null; then
18053 if test -s conftest.err; then
18054 ac_cpp_err=$ac_c_preproc_warn_flag
18055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18062 if test -z "$ac_cpp_err"; then
18063 ac_header_preproc=yes
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ac_header_preproc=no
18071 rm -f conftest.err conftest.$ac_ext
18072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18073 echo "${ECHO_T}$ac_header_preproc" >&6; }
18075 # So? What about this header?
18076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18078 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18079 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18081 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18082 ac_header_preproc=yes
18085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18088 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18090 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18092 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18094 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18096 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18098 ## ------------------------------------ ##
18099 ## Report this to bug-coreutils@gnu.org ##
18100 ## ------------------------------------ ##
18102 ) | sed "s/^/$as_me: WARNING: /" >&2
18105 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18106 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18107 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18113 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18116 if test $ac_cv_header_sys_cpustats_h = yes; then
18117 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18126 if test $ac_have_func = no; then
18128 for ac_header in mach/mach.h
18130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 ac_res=`eval echo '${'$as_ac_Header'}'`
18138 { echo "$as_me:$LINENO: result: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18141 # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <$ac_header>
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_header_compiler=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_header_compiler=no
18183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18185 echo "${ECHO_T}$ac_header_compiler" >&6; }
18187 # Is the header present?
18188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #include <$ac_header>
18198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } >/dev/null; then
18206 if test -s conftest.err; then
18207 ac_cpp_err=$ac_c_preproc_warn_flag
18208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18215 if test -z "$ac_cpp_err"; then
18216 ac_header_preproc=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_header_preproc=no
18224 rm -f conftest.err conftest.$ac_ext
18225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18226 echo "${ECHO_T}$ac_header_preproc" >&6; }
18228 # So? What about this header?
18229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18235 ac_header_preproc=yes
18238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18251 ## ------------------------------------ ##
18252 ## Report this to bug-coreutils@gnu.org ##
18253 ## ------------------------------------ ##
18255 ) | sed "s/^/$as_me: WARNING: /" >&2
18258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 eval "$as_ac_Header=\$ac_header_preproc"
18265 ac_res=`eval echo '${'$as_ac_Header'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18282 for ac_header in nlist.h
18284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 ac_res=`eval echo '${'$as_ac_Header'}'`
18292 { echo "$as_me:$LINENO: result: $ac_res" >&5
18293 echo "${ECHO_T}$ac_res" >&6; }
18295 # Is the header compilable?
18296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 $ac_includes_default
18305 #include <$ac_header>
18307 rm -f conftest.$ac_objext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18309 (eval $ac_compile) 2>conftest.er1
18311 grep -v '^ *+' conftest.er1 >conftest.err
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag"
18317 || test ! -s conftest.err'
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest.$ac_objext'
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 ac_header_compiler=yes
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18334 ac_header_compiler=no
18337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18339 echo "${ECHO_T}$ac_header_compiler" >&6; }
18341 # Is the header present?
18342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18344 cat >conftest.$ac_ext <<_ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 #include <$ac_header>
18352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } >/dev/null; then
18360 if test -s conftest.err; then
18361 ac_cpp_err=$ac_c_preproc_warn_flag
18362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18369 if test -z "$ac_cpp_err"; then
18370 ac_header_preproc=yes
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 ac_header_preproc=no
18378 rm -f conftest.err conftest.$ac_ext
18379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18380 echo "${ECHO_T}$ac_header_preproc" >&6; }
18382 # So? What about this header?
18383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18389 ac_header_preproc=yes
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18405 ## ------------------------------------ ##
18406 ## Report this to bug-coreutils@gnu.org ##
18407 ## ------------------------------------ ##
18409 ) | sed "s/^/$as_me: WARNING: /" >&2
18412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 eval "$as_ac_Header=\$ac_header_preproc"
18419 ac_res=`eval echo '${'$as_ac_Header'}'`
18420 { echo "$as_me:$LINENO: result: $ac_res" >&5
18421 echo "${ECHO_T}$ac_res" >&6; }
18424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18425 cat >>confdefs.h <<_ACEOF
18426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18428 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18429 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18430 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 cat >conftest.$ac_ext <<_ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18444 static struct nlist ac_aggr;
18445 if (ac_aggr.n_un.n_name)
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_member_struct_nlist_n_un_n_name=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18489 static struct nlist ac_aggr;
18490 if (sizeof ac_aggr.n_un.n_name)
18496 rm -f conftest.$ac_objext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18498 (eval $ac_compile) 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_c_werror_flag"
18506 || test ! -s conftest.err'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } &&
18512 { ac_try='test -s conftest.$ac_objext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_member_struct_nlist_n_un_n_name=yes
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_member_struct_nlist_n_un_n_name=no
18526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18531 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18532 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18533 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18535 cat >>confdefs.h <<_ACEOF
18536 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18540 cat >>confdefs.h <<\_ACEOF
18541 #define NLIST_NAME_UNION 1
18555 # Some definitions of getloadavg require that the program be installed setgid.
18556 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18557 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18568 #ifdef LDAV_PRIVILEGED
18569 Yowza Am I SETGID yet
18572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18573 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18574 ac_cv_func_getloadavg_setgid=yes
18576 ac_cv_func_getloadavg_setgid=no
18581 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18582 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18583 if test $ac_cv_func_getloadavg_setgid = yes; then
18586 cat >>confdefs.h <<\_ACEOF
18587 #define GETLOADAVG_PRIVILEGED 1
18594 if test $ac_cv_func_getloadavg_setgid = yes; then
18595 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18596 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18597 if test "${ac_cv_group_kmem+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18601 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18602 # If we got an error (system does not support symlinks), try without -L.
18603 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18604 ac_cv_group_kmem=`echo $ac_ls_output \
18605 | sed -ne 's/[ ][ ]*/ /g;
18606 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18610 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18611 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18612 KMEM_GROUP=$ac_cv_group_kmem
18614 if test "x$ac_save_LIBS" = x; then
18615 GETLOADAVG_LIBS=$LIBS
18617 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18623 { echo "$as_me:$LINENO: checking whether getpass is declared" >&5
18624 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; }
18625 if test "${ac_cv_have_decl_getpass+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18639 char *p = (char *) getpass;
18647 rm -f conftest.$ac_objext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649 (eval $ac_compile) 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag"
18657 || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_have_decl_getpass=yes
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18674 ac_cv_have_decl_getpass=no
18677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18679 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
18680 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; }
18681 if test $ac_cv_have_decl_getpass = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_DECL_GETPASS 1
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_DECL_GETPASS 0
18723 { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
18724 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
18725 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 $ac_includes_default
18738 #ifndef fflush_unlocked
18739 char *p = (char *) fflush_unlocked;
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749 (eval $ac_compile) 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try='test -z "$ac_c_werror_flag"
18757 || test ! -s conftest.err'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_have_decl_fflush_unlocked=yes
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 ac_cv_have_decl_fflush_unlocked=no
18777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
18780 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
18781 if test $ac_cv_have_decl_fflush_unlocked = yes; then
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_DECL_FFLUSH_UNLOCKED 1
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_DECL_FFLUSH_UNLOCKED 0
18799 { echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
18800 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6; }
18801 if test "${ac_cv_have_decl_flockfile+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18815 char *p = (char *) flockfile;
18823 rm -f conftest.$ac_objext
18824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18825 (eval $ac_compile) 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -z "$ac_c_werror_flag"
18833 || test ! -s conftest.err'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } &&
18839 { ac_try='test -s conftest.$ac_objext'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_have_decl_flockfile=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_have_decl_flockfile=no
18853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
18856 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6; }
18857 if test $ac_cv_have_decl_flockfile = yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define HAVE_DECL_FLOCKFILE 1
18865 cat >>confdefs.h <<_ACEOF
18866 #define HAVE_DECL_FLOCKFILE 0
18875 { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
18876 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
18877 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18890 #ifndef fputs_unlocked
18891 char *p = (char *) fputs_unlocked;
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>conftest.er1
18903 grep -v '^ *+' conftest.er1 >conftest.err
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -z "$ac_c_werror_flag"
18909 || test ! -s conftest.err'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; } &&
18915 { ac_try='test -s conftest.$ac_objext'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 ac_cv_have_decl_fputs_unlocked=yes
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 ac_cv_have_decl_fputs_unlocked=no
18929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
18932 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
18933 if test $ac_cv_have_decl_fputs_unlocked = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_DECL_FPUTS_UNLOCKED 1
18941 cat >>confdefs.h <<_ACEOF
18942 #define HAVE_DECL_FPUTS_UNLOCKED 0
18951 { echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
18952 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6; }
18953 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 $ac_includes_default
18966 #ifndef funlockfile
18967 char *p = (char *) funlockfile;
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag"
18985 || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_have_decl_funlockfile=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_have_decl_funlockfile=no
19005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
19008 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6; }
19009 if test $ac_cv_have_decl_funlockfile = yes; then
19011 cat >>confdefs.h <<_ACEOF
19012 #define HAVE_DECL_FUNLOCKFILE 1
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_DECL_FUNLOCKFILE 0
19027 { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
19028 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
19029 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 $ac_includes_default
19042 #ifndef putc_unlocked
19043 char *p = (char *) putc_unlocked;
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_have_decl_putc_unlocked=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_have_decl_putc_unlocked=no
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
19084 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
19085 if test $ac_cv_have_decl_putc_unlocked = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_DECL_PUTC_UNLOCKED 1
19093 cat >>confdefs.h <<_ACEOF
19094 #define HAVE_DECL_PUTC_UNLOCKED 0
19112 case " $LIBOBJS " in
19113 *" getpass.$ac_objext "* ) ;;
19114 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
19163 cat >>confdefs.h <<\_ACEOF
19164 #define getpass gnu_getpass
19170 for ac_func in getusershell
19172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19186 #define $ac_func innocuous_$ac_func
19188 /* System header to define __stub macros and hopefully few prototypes,
19189 which can conflict with char $ac_func (); below.
19190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19191 <limits.h> exists even on freestanding compilers. */
19194 # include <limits.h>
19196 # include <assert.h>
19201 /* Override any GCC internal prototype to avoid an error.
19202 Use char because int might match the return type of a GCC
19203 builtin and then its argument prototype would still apply. */
19208 /* The GNU C library defines this for functions which it implements
19209 to always fail with ENOSYS. Some functions are actually named
19210 something starting with __ and the normal name is an alias. */
19211 #if defined __stub_$ac_func || defined __stub___$ac_func
19218 return $ac_func ();
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225 (eval $ac_link) 2>conftest.er1
19227 grep -v '^ *+' conftest.er1 >conftest.err
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -z "$ac_c_werror_flag"
19233 || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 eval "$as_ac_var=yes"
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 eval "$as_ac_var=no"
19253 rm -f conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19256 ac_res=`eval echo '${'$as_ac_var'}'`
19257 { echo "$as_me:$LINENO: result: $ac_res" >&5
19258 echo "${ECHO_T}$ac_res" >&6; }
19259 if test `eval echo '${'$as_ac_var'}'` = yes; then
19260 cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19265 case " $LIBOBJS " in
19266 *" $ac_func.$ac_objext "* ) ;;
19267 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19275 if test $ac_cv_func_getusershell = no; then
19288 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
19289 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
19290 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 rm -f conftest.sym conftest.file
19294 echo >conftest.file
19295 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19296 if test "$cross_compiling" = yes; then
19297 ac_cv_func_lstat_dereferences_slashed_symlink=no
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 $ac_includes_default
19310 /* Linux will dereference the symlink and fail.
19311 That is better in the sense that it means we will not
19312 have to compile and use the lstat wrapper. */
19313 return lstat ("conftest.sym/", &sbuf) != 0;
19318 rm -f conftest$ac_exeext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320 (eval $ac_link) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19331 echo "$as_me: program exited with status $ac_status" >&5
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19335 ( exit $ac_status )
19336 ac_cv_func_lstat_dereferences_slashed_symlink=no
19338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343 # If the `ln -s' command failed, then we probably don't even
19344 # have an lstat function.
19345 ac_cv_func_lstat_dereferences_slashed_symlink=no
19347 rm -f conftest.sym conftest.file
19350 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19351 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19353 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19355 cat >>confdefs.h <<_ACEOF
19356 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19360 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
19361 case " $LIBOBJS " in
19362 *" lstat.$ac_objext "* ) ;;
19363 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19377 for ac_func in memchr
19379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19383 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19393 #define $ac_func innocuous_$ac_func
19395 /* System header to define __stub macros and hopefully few prototypes,
19396 which can conflict with char $ac_func (); below.
19397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19398 <limits.h> exists even on freestanding compilers. */
19401 # include <limits.h>
19403 # include <assert.h>
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19415 /* The GNU C library defines this for functions which it implements
19416 to always fail with ENOSYS. Some functions are actually named
19417 something starting with __ and the normal name is an alias. */
19418 #if defined __stub_$ac_func || defined __stub___$ac_func
19425 return $ac_func ();
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 eval "$as_ac_var=yes"
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no"
19460 rm -f conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19472 case " $LIBOBJS " in
19473 *" $ac_func.$ac_objext "* ) ;;
19474 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19482 if test $ac_cv_func_memchr = no; then
19485 for ac_header in bp-sym.h
19487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 ac_res=`eval echo '${'$as_ac_Header'}'`
19495 { echo "$as_me:$LINENO: result: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19498 # Is the header compilable?
19499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 $ac_includes_default
19508 #include <$ac_header>
19510 rm -f conftest.$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_header_compiler=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_compiler=no
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542 echo "${ECHO_T}$ac_header_compiler" >&6; }
19544 # Is the header present?
19545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <$ac_header>
19555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } >/dev/null; then
19563 if test -s conftest.err; then
19564 ac_cpp_err=$ac_c_preproc_warn_flag
19565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19572 if test -z "$ac_cpp_err"; then
19573 ac_header_preproc=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_header_preproc=no
19581 rm -f conftest.err conftest.$ac_ext
19582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19583 echo "${ECHO_T}$ac_header_preproc" >&6; }
19585 # So? What about this header?
19586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19592 ac_header_preproc=yes
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19608 ## ------------------------------------ ##
19609 ## Report this to bug-coreutils@gnu.org ##
19610 ## ------------------------------------ ##
19612 ) | sed "s/^/$as_me: WARNING: /" >&2
19615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 eval "$as_ac_Header=\$ac_header_preproc"
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623 { echo "$as_me:$LINENO: result: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19628 cat >>confdefs.h <<_ACEOF
19629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19641 for ac_func in memcpy
19643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19665 # include <limits.h>
19667 # include <assert.h>
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19689 return $ac_func ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19696 (eval $ac_link) 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 eval "$as_ac_var=yes"
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 eval "$as_ac_var=no"
19724 rm -f conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19727 ac_res=`eval echo '${'$as_ac_var'}'`
19728 { echo "$as_me:$LINENO: result: $ac_res" >&5
19729 echo "${ECHO_T}$ac_res" >&6; }
19730 if test `eval echo '${'$as_ac_var'}'` = yes; then
19731 cat >>confdefs.h <<_ACEOF
19732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19736 case " $LIBOBJS " in
19737 *" $ac_func.$ac_objext "* ) ;;
19738 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19746 if test $ac_cv_func_memcpy = no; then
19754 for ac_func in memmove
19756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19770 #define $ac_func innocuous_$ac_func
19772 /* System header to define __stub macros and hopefully few prototypes,
19773 which can conflict with char $ac_func (); below.
19774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775 <limits.h> exists even on freestanding compilers. */
19778 # include <limits.h>
19780 # include <assert.h>
19785 /* Override any GCC internal prototype to avoid an error.
19786 Use char because int might match the return type of a GCC
19787 builtin and then its argument prototype would still apply. */
19792 /* The GNU C library defines this for functions which it implements
19793 to always fail with ENOSYS. Some functions are actually named
19794 something starting with __ and the normal name is an alias. */
19795 #if defined __stub_$ac_func || defined __stub___$ac_func
19802 return $ac_func ();
19807 rm -f conftest.$ac_objext conftest$ac_exeext
19808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19809 (eval $ac_link) 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
19816 { ac_try='test -z "$ac_c_werror_flag"
19817 || test ! -s conftest.err'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest$ac_exeext'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 eval "$as_ac_var=yes"
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 eval "$as_ac_var=no"
19837 rm -f conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19840 ac_res=`eval echo '${'$as_ac_var'}'`
19841 { echo "$as_me:$LINENO: result: $ac_res" >&5
19842 echo "${ECHO_T}$ac_res" >&6; }
19843 if test `eval echo '${'$as_ac_var'}'` = yes; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19849 case " $LIBOBJS " in
19850 *" $ac_func.$ac_objext "* ) ;;
19851 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19859 if test $ac_cv_func_memmove = no; then
19871 for ac_func in mempcpy
19873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 cat >conftest.$ac_ext <<_ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19887 #define $ac_func innocuous_$ac_func
19889 /* System header to define __stub macros and hopefully few prototypes,
19890 which can conflict with char $ac_func (); below.
19891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19892 <limits.h> exists even on freestanding compilers. */
19895 # include <limits.h>
19897 # include <assert.h>
19902 /* Override any GCC internal prototype to avoid an error.
19903 Use char because int might match the return type of a GCC
19904 builtin and then its argument prototype would still apply. */
19909 /* The GNU C library defines this for functions which it implements
19910 to always fail with ENOSYS. Some functions are actually named
19911 something starting with __ and the normal name is an alias. */
19912 #if defined __stub_$ac_func || defined __stub___$ac_func
19919 return $ac_func ();
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 eval "$as_ac_var=yes"
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 eval "$as_ac_var=no"
19954 rm -f conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19957 ac_res=`eval echo '${'$as_ac_var'}'`
19958 { echo "$as_me:$LINENO: result: $ac_res" >&5
19959 echo "${ECHO_T}$ac_res" >&6; }
19960 if test `eval echo '${'$as_ac_var'}'` = yes; then
19961 cat >>confdefs.h <<_ACEOF
19962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19966 case " $LIBOBJS " in
19967 *" $ac_func.$ac_objext "* ) ;;
19968 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19976 if test $ac_cv_func_mempcpy = no; then
19983 { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
19984 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6; }
19985 if test "${ac_cv_have_decl_memrchr+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 $ac_includes_default
19999 char *p = (char *) memrchr;
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009 (eval $ac_compile) 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag"
20017 || test ! -s conftest.err'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest.$ac_objext'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_have_decl_memrchr=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_cv_have_decl_memrchr=no
20037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20040 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6; }
20041 if test $ac_cv_have_decl_memrchr = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_DECL_MEMRCHR 1
20049 cat >>confdefs.h <<_ACEOF
20050 #define HAVE_DECL_MEMRCHR 0
20072 for ac_func in memrchr
20074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20088 #define $ac_func innocuous_$ac_func
20090 /* System header to define __stub macros and hopefully few prototypes,
20091 which can conflict with char $ac_func (); below.
20092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093 <limits.h> exists even on freestanding compilers. */
20096 # include <limits.h>
20098 # include <assert.h>
20103 /* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20110 /* The GNU C library defines this for functions which it implements
20111 to always fail with ENOSYS. Some functions are actually named
20112 something starting with __ and the normal name is an alias. */
20113 #if defined __stub_$ac_func || defined __stub___$ac_func
20120 return $ac_func ();
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20127 (eval $ac_link) 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest$ac_exeext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 eval "$as_ac_var=yes"
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 eval "$as_ac_var=no"
20155 rm -f conftest.err conftest.$ac_objext \
20156 conftest$ac_exeext conftest.$ac_ext
20158 ac_res=`eval echo '${'$as_ac_var'}'`
20159 { echo "$as_me:$LINENO: result: $ac_res" >&5
20160 echo "${ECHO_T}$ac_res" >&6; }
20161 if test `eval echo '${'$as_ac_var'}'` = yes; then
20162 cat >>confdefs.h <<_ACEOF
20163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20167 case " $LIBOBJS " in
20168 *" $ac_func.$ac_objext "* ) ;;
20169 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20177 if test $ac_cv_func_memrchr = no; then
20183 for ac_func in memset
20185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20199 #define $ac_func innocuous_$ac_func
20201 /* System header to define __stub macros and hopefully few prototypes,
20202 which can conflict with char $ac_func (); below.
20203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20204 <limits.h> exists even on freestanding compilers. */
20207 # include <limits.h>
20209 # include <assert.h>
20214 /* Override any GCC internal prototype to avoid an error.
20215 Use char because int might match the return type of a GCC
20216 builtin and then its argument prototype would still apply. */
20221 /* The GNU C library defines this for functions which it implements
20222 to always fail with ENOSYS. Some functions are actually named
20223 something starting with __ and the normal name is an alias. */
20224 #if defined __stub_$ac_func || defined __stub___$ac_func
20231 return $ac_func ();
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag"
20246 || test ! -s conftest.err'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 eval "$as_ac_var=yes"
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 eval "$as_ac_var=no"
20266 rm -f conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20269 ac_res=`eval echo '${'$as_ac_var'}'`
20270 { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 if test `eval echo '${'$as_ac_var'}'` = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20278 case " $LIBOBJS " in
20279 *" $ac_func.$ac_objext "* ) ;;
20280 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20288 if test $ac_cv_func_memset = no; then
20294 { echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
20295 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6; }
20296 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 # Arrange for deletion of the temporary directory this test might create.
20301 ac_clean_files="$ac_clean_files confdir-slash"
20302 if test "$cross_compiling" = yes; then
20303 gl_cv_func_mkdir_trailing_slash_bug=yes
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 # include <sys/types.h>
20314 # include <sys/stat.h>
20315 # include <stdlib.h>
20318 rmdir ("confdir-slash");
20319 exit (mkdir ("confdir-slash/", 0700));
20323 rm -f conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325 (eval $ac_link) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 gl_cv_func_mkdir_trailing_slash_bug=no
20336 echo "$as_me: program exited with status $ac_status" >&5
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ( exit $ac_status )
20341 gl_cv_func_mkdir_trailing_slash_bug=yes
20343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
20351 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6; }
20353 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
20354 case " $LIBOBJS " in
20355 *" mkdir.$ac_objext "* ) ;;
20356 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
20361 cat >>confdefs.h <<\_ACEOF
20362 #define mkdir rpl_mkdir
20388 { echo "$as_me:$LINENO: checking for working mktime" >&5
20389 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
20390 if test "${ac_cv_func_working_mktime+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 if test "$cross_compiling" = yes; then
20394 ac_cv_func_working_mktime=no
20396 cat >conftest.$ac_ext <<_ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 /* Test program from Paul Eggert and Tony Leneis. */
20403 #if TIME_WITH_SYS_TIME
20404 # include <sys/time.h>
20407 # if HAVE_SYS_TIME_H
20408 # include <sys/time.h>
20414 #include <stdlib.h>
20415 #include <unistd.h>
20418 # define alarm(X) /* empty */
20421 /* Work around redefinition to rpl_putenv by other config tests. */
20424 static time_t time_t_max;
20425 static time_t time_t_min;
20427 /* Values we'll use to set the TZ environment variable. */
20428 static char *tz_strings[] = {
20429 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20430 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20432 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20434 /* Fail if mktime fails to convert a date in the spring-forward gap.
20435 Based on a problem report from Andreas Jaeger. */
20437 spring_forward_gap ()
20439 /* glibc (up to about 1998-10-07) failed this test. */
20442 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20443 instead of "TZ=America/Vancouver" in order to detect the bug even
20444 on systems that don't support the Olson extension, or don't have the
20445 full zoneinfo tables installed. */
20446 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20455 if (mktime (&tm) == (time_t)-1)
20464 if ((lt = localtime (&now)) && mktime (lt) != now)
20472 mktime_test1 (now);
20473 mktime_test1 ((time_t) (time_t_max - now));
20474 mktime_test1 ((time_t) (time_t_min + now));
20480 /* Based on code from Ariel Faigon. */
20490 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20500 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20501 now = mktime (&tm);
20502 if (now != (time_t) -1)
20504 struct tm *lt = localtime (&now);
20506 && lt->tm_year == tm.tm_year
20507 && lt->tm_mon == tm.tm_mon
20508 && lt->tm_mday == tm.tm_mday
20509 && lt->tm_hour == tm.tm_hour
20510 && lt->tm_min == tm.tm_min
20511 && lt->tm_sec == tm.tm_sec
20512 && lt->tm_yday == tm.tm_yday
20513 && lt->tm_wday == tm.tm_wday
20514 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20515 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20526 /* This test makes some buggy mktime implementations loop.
20527 Give up after 60 seconds; a mktime slower than that
20528 isn't worth using anyway. */
20531 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20534 if ((time_t) -1 < 0)
20535 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20537 delta = time_t_max / 997; /* a suitable prime number */
20538 for (i = 0; i < N_STRINGS; i++)
20541 putenv (tz_strings[i]);
20543 for (t = 0; t <= time_t_max - delta; t += delta)
20545 mktime_test ((time_t) 1);
20546 mktime_test ((time_t) (60 * 60));
20547 mktime_test ((time_t) (60 * 60 * 24));
20549 for (j = 1; 0 < j; j *= 2)
20551 bigtime_test (j - 1);
20554 spring_forward_gap ();
20558 rm -f conftest$ac_exeext
20559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20560 (eval $ac_link) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 ac_cv_func_working_mktime=yes
20571 echo "$as_me: program exited with status $ac_status" >&5
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ( exit $ac_status )
20576 ac_cv_func_working_mktime=no
20578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20584 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
20585 if test $ac_cv_func_working_mktime = no; then
20586 case " $LIBOBJS " in
20587 *" mktime.$ac_objext "* ) ;;
20588 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
20596 if test $ac_cv_func_working_mktime = no; then
20598 cat >>confdefs.h <<\_ACEOF
20599 #define mktime rpl_mktime
20606 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
20607 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
20608 if test "${ac_cv_have_decl_getenv+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 cat >conftest.$ac_ext <<_ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20622 char *p = (char *) getenv;
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632 (eval $ac_compile) 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_cv_have_decl_getenv=yes
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_cv_have_decl_getenv=no
20660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20662 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
20663 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
20664 if test $ac_cv_have_decl_getenv = yes; then
20666 cat >>confdefs.h <<_ACEOF
20667 #define HAVE_DECL_GETENV 1
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_DECL_GETENV 0
20682 for ac_func in mkstemp
20684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 cat >conftest.$ac_ext <<_ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20698 #define $ac_func innocuous_$ac_func
20700 /* System header to define __stub macros and hopefully few prototypes,
20701 which can conflict with char $ac_func (); below.
20702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20703 <limits.h> exists even on freestanding compilers. */
20706 # include <limits.h>
20708 # include <assert.h>
20713 /* Override any GCC internal prototype to avoid an error.
20714 Use char because int might match the return type of a GCC
20715 builtin and then its argument prototype would still apply. */
20720 /* The GNU C library defines this for functions which it implements
20721 to always fail with ENOSYS. Some functions are actually named
20722 something starting with __ and the normal name is an alias. */
20723 #if defined __stub_$ac_func || defined __stub___$ac_func
20730 return $ac_func ();
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737 (eval $ac_link) 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag"
20745 || test ! -s conftest.err'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest$ac_exeext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 eval "$as_ac_var=yes"
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 eval "$as_ac_var=no"
20765 rm -f conftest.err conftest.$ac_objext \
20766 conftest$ac_exeext conftest.$ac_ext
20768 ac_res=`eval echo '${'$as_ac_var'}'`
20769 { echo "$as_me:$LINENO: result: $ac_res" >&5
20770 echo "${ECHO_T}$ac_res" >&6; }
20771 if test `eval echo '${'$as_ac_var'}'` = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20777 case " $LIBOBJS " in
20778 *" $ac_func.$ac_objext "* ) ;;
20779 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20787 if test $ac_cv_func_mkstemp = no; then
20788 gl_cv_func_mkstemp_limitations=yes
20790 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
20791 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
20792 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 mkdir conftest.mkstemp
20797 if test "$cross_compiling" = yes; then
20798 gl_cv_func_mkstemp_limitations=yes
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 # include <stdlib.h>
20809 # include <unistd.h>
20813 for (i = 0; i < 70; i++)
20815 char template[] = "conftest.mkstemp/coXXXXXX";
20816 int fd = mkstemp (template);
20825 rm -f conftest$ac_exeext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20827 (eval $ac_link) 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 gl_cv_func_mkstemp_limitations=no
20838 echo "$as_me: program exited with status $ac_status" >&5
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ( exit $ac_status )
20843 gl_cv_func_mkstemp_limitations=yes
20845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20849 rm -rf conftest.mkstemp
20853 { echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
20854 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6; }
20857 if test $gl_cv_func_mkstemp_limitations = yes; then
20858 case " $LIBOBJS " in
20859 *" mkstemp.$ac_objext "* ) ;;
20860 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
20864 case " $LIBOBJS " in
20865 *" tempname.$ac_objext "* ) ;;
20866 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
20871 cat >>confdefs.h <<\_ACEOF
20872 #define mkstemp rpl_mkstemp
20887 for ac_func in __secure_getenv gettimeofday
20889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 cat >conftest.$ac_ext <<_ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20903 #define $ac_func innocuous_$ac_func
20905 /* System header to define __stub macros and hopefully few prototypes,
20906 which can conflict with char $ac_func (); below.
20907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20908 <limits.h> exists even on freestanding compilers. */
20911 # include <limits.h>
20913 # include <assert.h>
20918 /* Override any GCC internal prototype to avoid an error.
20919 Use char because int might match the return type of a GCC
20920 builtin and then its argument prototype would still apply. */
20925 /* The GNU C library defines this for functions which it implements
20926 to always fail with ENOSYS. Some functions are actually named
20927 something starting with __ and the normal name is an alias. */
20928 #if defined __stub_$ac_func || defined __stub___$ac_func
20935 return $ac_func ();
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>conftest.er1
20944 grep -v '^ *+' conftest.er1 >conftest.err
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -z "$ac_c_werror_flag"
20950 || test ! -s conftest.err'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 eval "$as_ac_var=yes"
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20967 eval "$as_ac_var=no"
20970 rm -f conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
20973 ac_res=`eval echo '${'$as_ac_var'}'`
20974 { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_var'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20996 { echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
20997 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6; }
20998 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 $ac_includes_default
21012 char *p = (char *) euidaccess;
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_have_decl_euidaccess=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_have_decl_euidaccess=no
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
21053 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6; }
21054 if test $ac_cv_have_decl_euidaccess = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_DECL_EUIDACCESS 1
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE_DECL_EUIDACCESS 0
21078 { echo "$as_me:$LINENO: checking whether setregid is declared" >&5
21079 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6; }
21080 if test "${ac_cv_have_decl_setregid+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 $ac_includes_default
21094 char *p = (char *) setregid;
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104 (eval $ac_compile) 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -z "$ac_c_werror_flag"
21112 || test ! -s conftest.err'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_have_decl_setregid=yes
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ac_cv_have_decl_setregid=no
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
21135 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6; }
21136 if test $ac_cv_have_decl_setregid = yes; then
21138 cat >>confdefs.h <<_ACEOF
21139 #define HAVE_DECL_SETREGID 1
21144 cat >>confdefs.h <<_ACEOF
21145 #define HAVE_DECL_SETREGID 0
21153 { echo "$as_me:$LINENO: checking for getgroups" >&5
21154 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
21155 if test "${ac_cv_func_getgroups+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
21165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21166 #define getgroups innocuous_getgroups
21168 /* System header to define __stub macros and hopefully few prototypes,
21169 which can conflict with char getgroups (); below.
21170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171 <limits.h> exists even on freestanding compilers. */
21174 # include <limits.h>
21176 # include <assert.h>
21181 /* Override any GCC internal prototype to avoid an error.
21182 Use char because int might match the return type of a GCC
21183 builtin and then its argument prototype would still apply. */
21188 /* The GNU C library defines this for functions which it implements
21189 to always fail with ENOSYS. Some functions are actually named
21190 something starting with __ and the normal name is an alias. */
21191 #if defined __stub_getgroups || defined __stub___getgroups
21198 return getgroups ();
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21205 (eval $ac_link) 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } &&
21212 { ac_try='test -z "$ac_c_werror_flag"
21213 || test ! -s conftest.err'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest$ac_exeext'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 ac_cv_func_getgroups=yes
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 ac_cv_func_getgroups=no
21233 rm -f conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
21237 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
21240 # If we don't yet have getgroups, see if it's in -lbsd.
21241 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
21243 if test $ac_cv_func_getgroups = no; then
21244 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
21245 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
21246 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 ac_check_lib_save_LIBS=$LIBS
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21258 /* Override any GCC internal prototype to avoid an error.
21259 Use char because int might match the return type of a GCC
21260 builtin and then its argument prototype would still apply. */
21268 return getgroups ();
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag"
21283 || test ! -s conftest.err'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest$ac_exeext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_lib_bsd_getgroups=yes
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_cv_lib_bsd_getgroups=no
21303 rm -f conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
21308 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
21309 if test $ac_cv_lib_bsd_getgroups = yes; then
21310 GETGROUPS_LIB=-lbsd
21315 # Run the program to test the functionality of the system-supplied
21316 # getgroups function only if there is such a function.
21317 if test $ac_cv_func_getgroups = yes; then
21318 { echo "$as_me:$LINENO: checking for working getgroups" >&5
21319 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
21320 if test "${ac_cv_func_getgroups_works+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 if test "$cross_compiling" = yes; then
21324 ac_cv_func_getgroups_works=no
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 $ac_includes_default
21336 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
21337 return getgroups (0, 0) == -1;
21342 rm -f conftest$ac_exeext
21343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21344 (eval $ac_link) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 ac_cv_func_getgroups_works=yes
21355 echo "$as_me: program exited with status $ac_status" >&5
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ( exit $ac_status )
21360 ac_cv_func_getgroups_works=no
21362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21368 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
21369 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
21370 if test $ac_cv_func_getgroups_works = yes; then
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_GETGROUPS 1
21391 for ac_func in euidaccess
21393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 cat >conftest.$ac_ext <<_ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21407 #define $ac_func innocuous_$ac_func
21409 /* System header to define __stub macros and hopefully few prototypes,
21410 which can conflict with char $ac_func (); below.
21411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21412 <limits.h> exists even on freestanding compilers. */
21415 # include <limits.h>
21417 # include <assert.h>
21422 /* Override any GCC internal prototype to avoid an error.
21423 Use char because int might match the return type of a GCC
21424 builtin and then its argument prototype would still apply. */
21429 /* The GNU C library defines this for functions which it implements
21430 to always fail with ENOSYS. Some functions are actually named
21431 something starting with __ and the normal name is an alias. */
21432 #if defined __stub_$ac_func || defined __stub___$ac_func
21439 return $ac_func ();
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag"
21454 || test ! -s conftest.err'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest$ac_exeext'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 eval "$as_ac_var=yes"
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 eval "$as_ac_var=no"
21474 rm -f conftest.err conftest.$ac_objext \
21475 conftest$ac_exeext conftest.$ac_ext
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21486 case " $LIBOBJS " in
21487 *" $ac_func.$ac_objext "* ) ;;
21488 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21496 if test $ac_cv_func_euidaccess = no; then
21514 # Solaris 9 needs -lgen to get the eaccess function.
21515 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
21516 # programs in the package would end up linked with that potentially-shared
21517 # library, inducing unnecessary run-time overhead.
21518 gl_saved_libs=$LIBS
21519 { echo "$as_me:$LINENO: checking for library containing eaccess" >&5
21520 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6; }
21521 if test "${ac_cv_search_eaccess+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 ac_func_search_save_LIBS=$LIBS
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21547 for ac_lib in '' gen; do
21548 if test -z "$ac_lib"; then
21549 ac_res="none required"
21552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21554 rm -f conftest.$ac_objext conftest$ac_exeext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21556 (eval $ac_link) 2>conftest.er1
21558 grep -v '^ *+' conftest.er1 >conftest.err
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest$ac_exeext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 ac_cv_search_eaccess=$ac_res
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21584 rm -f conftest.err conftest.$ac_objext \
21586 if test "${ac_cv_search_eaccess+set}" = set; then
21590 if test "${ac_cv_search_eaccess+set}" = set; then
21593 ac_cv_search_eaccess=no
21595 rm conftest.$ac_ext
21596 LIBS=$ac_func_search_save_LIBS
21598 { echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
21599 echo "${ECHO_T}$ac_cv_search_eaccess" >&6; }
21600 ac_res=$ac_cv_search_eaccess
21601 if test "$ac_res" != no; then
21602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21603 test "$ac_cv_search_eaccess" = "none required" ||
21604 LIB_EACCESS=$ac_cv_search_eaccess
21609 for ac_func in eaccess
21611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21625 #define $ac_func innocuous_$ac_func
21627 /* System header to define __stub macros and hopefully few prototypes,
21628 which can conflict with char $ac_func (); below.
21629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21630 <limits.h> exists even on freestanding compilers. */
21633 # include <limits.h>
21635 # include <assert.h>
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21647 /* The GNU C library defines this for functions which it implements
21648 to always fail with ENOSYS. Some functions are actually named
21649 something starting with __ and the normal name is an alias. */
21650 #if defined __stub_$ac_func || defined __stub___$ac_func
21657 return $ac_func ();
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664 (eval $ac_link) 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest$ac_exeext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 eval "$as_ac_var=yes"
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 eval "$as_ac_var=no"
21692 rm -f conftest.err conftest.$ac_objext \
21693 conftest$ac_exeext conftest.$ac_ext
21695 ac_res=`eval echo '${'$as_ac_var'}'`
21696 { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21698 if test `eval echo '${'$as_ac_var'}'` = yes; then
21699 cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21706 LIBS=$gl_saved_libs
21713 cat >>confdefs.h <<\_ACEOF
21714 #define PREFER_NONREENTRANT_EUIDACCESS 1
21720 for ac_func in readlink
21722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21736 #define $ac_func innocuous_$ac_func
21738 /* System header to define __stub macros and hopefully few prototypes,
21739 which can conflict with char $ac_func (); below.
21740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21741 <limits.h> exists even on freestanding compilers. */
21744 # include <limits.h>
21746 # include <assert.h>
21751 /* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21758 /* The GNU C library defines this for functions which it implements
21759 to always fail with ENOSYS. Some functions are actually named
21760 something starting with __ and the normal name is an alias. */
21761 #if defined __stub_$ac_func || defined __stub___$ac_func
21768 return $ac_func ();
21773 rm -f conftest.$ac_objext conftest$ac_exeext
21774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21775 (eval $ac_link) 2>conftest.er1
21777 grep -v '^ *+' conftest.er1 >conftest.err
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
21782 { ac_try='test -z "$ac_c_werror_flag"
21783 || test ! -s conftest.err'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest$ac_exeext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 eval "$as_ac_var=yes"
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 eval "$as_ac_var=no"
21803 rm -f conftest.err conftest.$ac_objext \
21804 conftest$ac_exeext conftest.$ac_ext
21806 ac_res=`eval echo '${'$as_ac_var'}'`
21807 { echo "$as_me:$LINENO: result: $ac_res" >&5
21808 echo "${ECHO_T}$ac_res" >&6; }
21809 if test `eval echo '${'$as_ac_var'}'` = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21817 if test $ac_cv_func_readlink = no; then
21818 case " $LIBOBJS " in
21819 *" readlink.$ac_objext "* ) ;;
21820 *) LIBOBJS="$LIBOBJS readlink.$ac_objext"
21831 for ac_func in rmdir
21833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21847 #define $ac_func innocuous_$ac_func
21849 /* System header to define __stub macros and hopefully few prototypes,
21850 which can conflict with char $ac_func (); below.
21851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21852 <limits.h> exists even on freestanding compilers. */
21855 # include <limits.h>
21857 # include <assert.h>
21862 /* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
21869 /* The GNU C library defines this for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872 #if defined __stub_$ac_func || defined __stub___$ac_func
21879 return $ac_func ();
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886 (eval $ac_link) 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
21893 { ac_try='test -z "$ac_c_werror_flag"
21894 || test ! -s conftest.err'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; } &&
21900 { ac_try='test -s conftest$ac_exeext'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; }; then
21906 eval "$as_ac_var=yes"
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 eval "$as_ac_var=no"
21914 rm -f conftest.err conftest.$ac_objext \
21915 conftest$ac_exeext conftest.$ac_ext
21917 ac_res=`eval echo '${'$as_ac_var'}'`
21918 { echo "$as_me:$LINENO: result: $ac_res" >&5
21919 echo "${ECHO_T}$ac_res" >&6; }
21920 if test `eval echo '${'$as_ac_var'}'` = yes; then
21921 cat >>confdefs.h <<_ACEOF
21922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21926 case " $LIBOBJS " in
21927 *" $ac_func.$ac_objext "* ) ;;
21928 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21939 for ac_func in rpmatch
21941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21955 #define $ac_func innocuous_$ac_func
21957 /* System header to define __stub macros and hopefully few prototypes,
21958 which can conflict with char $ac_func (); below.
21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960 <limits.h> exists even on freestanding compilers. */
21963 # include <limits.h>
21965 # include <assert.h>
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21977 /* The GNU C library defines this for functions which it implements
21978 to always fail with ENOSYS. Some functions are actually named
21979 something starting with __ and the normal name is an alias. */
21980 #if defined __stub_$ac_func || defined __stub___$ac_func
21987 return $ac_func ();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994 (eval $ac_link) 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag"
22002 || test ! -s conftest.err'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 eval "$as_ac_var=yes"
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 eval "$as_ac_var=no"
22022 rm -f conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22025 ac_res=`eval echo '${'$as_ac_var'}'`
22026 { echo "$as_me:$LINENO: result: $ac_res" >&5
22027 echo "${ECHO_T}$ac_res" >&6; }
22028 if test `eval echo '${'$as_ac_var'}'` = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22034 case " $LIBOBJS " in
22035 *" $ac_func.$ac_objext "* ) ;;
22036 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22044 if test $ac_cv_func_rpmatch = no; then
22059 for ac_func in setenv unsetenv
22061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22075 #define $ac_func innocuous_$ac_func
22077 /* System header to define __stub macros and hopefully few prototypes,
22078 which can conflict with char $ac_func (); below.
22079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22080 <limits.h> exists even on freestanding compilers. */
22083 # include <limits.h>
22085 # include <assert.h>
22090 /* Override any GCC internal prototype to avoid an error.
22091 Use char because int might match the return type of a GCC
22092 builtin and then its argument prototype would still apply. */
22097 /* The GNU C library defines this for functions which it implements
22098 to always fail with ENOSYS. Some functions are actually named
22099 something starting with __ and the normal name is an alias. */
22100 #if defined __stub_$ac_func || defined __stub___$ac_func
22107 return $ac_func ();
22112 rm -f conftest.$ac_objext conftest$ac_exeext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22114 (eval $ac_link) 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } &&
22121 { ac_try='test -z "$ac_c_werror_flag"
22122 || test ! -s conftest.err'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest$ac_exeext'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 eval "$as_ac_var=yes"
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 eval "$as_ac_var=no"
22142 rm -f conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146 { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22149 cat >>confdefs.h <<_ACEOF
22150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22154 case " $LIBOBJS " in
22155 *" $ac_func.$ac_objext "* ) ;;
22156 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22164 if test $ac_cv_func_setenv = no; then
22175 for ac_header in search.h
22177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 ac_res=`eval echo '${'$as_ac_Header'}'`
22185 { echo "$as_me:$LINENO: result: $ac_res" >&5
22186 echo "${ECHO_T}$ac_res" >&6; }
22188 # Is the header compilable?
22189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 $ac_includes_default
22198 #include <$ac_header>
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_header_compiler=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_header_compiler=no
22230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22232 echo "${ECHO_T}$ac_header_compiler" >&6; }
22234 # Is the header present?
22235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <$ac_header>
22245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22248 grep -v '^ *+' conftest.er1 >conftest.err
22250 cat conftest.err >&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } >/dev/null; then
22253 if test -s conftest.err; then
22254 ac_cpp_err=$ac_c_preproc_warn_flag
22255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22262 if test -z "$ac_cpp_err"; then
22263 ac_header_preproc=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_header_preproc=no
22271 rm -f conftest.err conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22273 echo "${ECHO_T}$ac_header_preproc" >&6; }
22275 # So? What about this header?
22276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22282 ac_header_preproc=yes
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22298 ## ------------------------------------ ##
22299 ## Report this to bug-coreutils@gnu.org ##
22300 ## ------------------------------------ ##
22302 ) | sed "s/^/$as_me: WARNING: /" >&2
22305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 eval "$as_ac_Header=\$ac_header_preproc"
22312 ac_res=`eval echo '${'$as_ac_Header'}'`
22313 { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22318 cat >>confdefs.h <<_ACEOF
22319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22327 for ac_func in tsearch
22329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22343 #define $ac_func innocuous_$ac_func
22345 /* System header to define __stub macros and hopefully few prototypes,
22346 which can conflict with char $ac_func (); below.
22347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22348 <limits.h> exists even on freestanding compilers. */
22351 # include <limits.h>
22353 # include <assert.h>
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22365 /* The GNU C library defines this for functions which it implements
22366 to always fail with ENOSYS. Some functions are actually named
22367 something starting with __ and the normal name is an alias. */
22368 #if defined __stub_$ac_func || defined __stub___$ac_func
22375 return $ac_func ();
22380 rm -f conftest.$ac_objext conftest$ac_exeext
22381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22382 (eval $ac_link) 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
22389 { ac_try='test -z "$ac_c_werror_flag"
22390 || test ! -s conftest.err'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; } &&
22396 { ac_try='test -s conftest$ac_exeext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 eval "$as_ac_var=yes"
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 eval "$as_ac_var=no"
22410 rm -f conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22413 ac_res=`eval echo '${'$as_ac_var'}'`
22414 { echo "$as_me:$LINENO: result: $ac_res" >&5
22415 echo "${ECHO_T}$ac_res" >&6; }
22416 if test `eval echo '${'$as_ac_var'}'` = yes; then
22417 cat >>confdefs.h <<_ACEOF
22418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22426 { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22427 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
22428 if test "${gt_cv_var_errno_declaration+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22439 extern struct { int foo; } errno;
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22452 grep -v '^ *+' conftest.er1 >conftest.err
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -z "$ac_c_werror_flag"
22458 || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 gt_cv_var_errno_declaration=no
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 gt_cv_var_errno_declaration=yes
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22481 { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22482 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
22483 if test $gt_cv_var_errno_declaration = yes; then
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_ERRNO_DECL 1
22493 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22494 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
22495 if test "${gt_cv_var_environ_declaration+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22499 cat >conftest.$ac_ext <<_ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 #include <unistd.h>
22506 extern struct { int foo; } environ;
22515 rm -f conftest.$ac_objext
22516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22517 (eval $ac_compile) 2>conftest.er1
22519 grep -v '^ *+' conftest.er1 >conftest.err
22521 cat conftest.err >&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } &&
22524 { ac_try='test -z "$ac_c_werror_flag"
22525 || test ! -s conftest.err'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; } &&
22531 { ac_try='test -s conftest.$ac_objext'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 gt_cv_var_environ_declaration=no
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 gt_cv_var_environ_declaration=yes
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22548 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22549 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
22550 if test $gt_cv_var_environ_declaration = yes; then
22552 cat >>confdefs.h <<\_ACEOF
22553 #define HAVE_ENVIRON_DECL 1
22560 if test $ac_cv_func_unsetenv = no; then
22571 { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22572 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
22573 if test "${gt_cv_var_errno_declaration+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 cat >conftest.$ac_ext <<_ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22584 extern struct { int foo; } errno;
22593 rm -f conftest.$ac_objext
22594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22595 (eval $ac_compile) 2>conftest.er1
22597 grep -v '^ *+' conftest.er1 >conftest.err
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } &&
22602 { ac_try='test -z "$ac_c_werror_flag"
22603 || test ! -s conftest.err'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; } &&
22609 { ac_try='test -s conftest.$ac_objext'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615 gt_cv_var_errno_declaration=no
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 gt_cv_var_errno_declaration=yes
22623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22626 { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22627 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
22628 if test $gt_cv_var_errno_declaration = yes; then
22630 cat >>confdefs.h <<\_ACEOF
22631 #define HAVE_ERRNO_DECL 1
22638 { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22639 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
22640 if test "${gt_cv_var_environ_declaration+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 cat >conftest.$ac_ext <<_ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 #include <unistd.h>
22651 extern struct { int foo; } environ;
22660 rm -f conftest.$ac_objext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22662 (eval $ac_compile) 2>conftest.er1
22664 grep -v '^ *+' conftest.er1 >conftest.err
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } &&
22669 { ac_try='test -z "$ac_c_werror_flag"
22670 || test ! -s conftest.err'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 gt_cv_var_environ_declaration=no
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 gt_cv_var_environ_declaration=yes
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22693 { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22694 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
22695 if test $gt_cv_var_environ_declaration = yes; then
22697 cat >>confdefs.h <<\_ACEOF
22698 #define HAVE_ENVIRON_DECL 1
22705 { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
22706 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
22707 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include <stdlib.h>
22721 #if defined(__STDC__) || defined(__cplusplus)
22722 int unsetenv (const char *name);
22735 rm -f conftest.$ac_objext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22737 (eval $ac_compile) 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } &&
22744 { ac_try='test -z "$ac_c_werror_flag"
22745 || test ! -s conftest.err'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest.$ac_objext'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 gt_cv_func_unsetenv_ret='int'
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 gt_cv_func_unsetenv_ret='void'
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
22768 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
22769 if test $gt_cv_func_unsetenv_ret = 'void'; then
22771 cat >>confdefs.h <<\_ACEOF
22772 #define VOID_UNSETENV 1
22782 for ac_func in sig2str
22784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22790 cat >conftest.$ac_ext <<_ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22798 #define $ac_func innocuous_$ac_func
22800 /* System header to define __stub macros and hopefully few prototypes,
22801 which can conflict with char $ac_func (); below.
22802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22803 <limits.h> exists even on freestanding compilers. */
22806 # include <limits.h>
22808 # include <assert.h>
22813 /* Override any GCC internal prototype to avoid an error.
22814 Use char because int might match the return type of a GCC
22815 builtin and then its argument prototype would still apply. */
22820 /* The GNU C library defines this for functions which it implements
22821 to always fail with ENOSYS. Some functions are actually named
22822 something starting with __ and the normal name is an alias. */
22823 #if defined __stub_$ac_func || defined __stub___$ac_func
22830 return $ac_func ();
22835 rm -f conftest.$ac_objext conftest$ac_exeext
22836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22837 (eval $ac_link) 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
22844 { ac_try='test -z "$ac_c_werror_flag"
22845 || test ! -s conftest.err'
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; } &&
22851 { ac_try='test -s conftest$ac_exeext'
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 eval "$as_ac_var=yes"
22859 echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 eval "$as_ac_var=no"
22865 rm -f conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
22868 ac_res=`eval echo '${'$as_ac_var'}'`
22869 { echo "$as_me:$LINENO: result: $ac_res" >&5
22870 echo "${ECHO_T}$ac_res" >&6; }
22871 if test `eval echo '${'$as_ac_var'}'` = yes; then
22872 cat >>confdefs.h <<_ACEOF
22873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22877 case " $LIBOBJS " in
22878 *" $ac_func.$ac_objext "* ) ;;
22879 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22887 if test $ac_cv_func_sig2str = no; then
22897 for ac_func in stpcpy
22899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 cat >conftest.$ac_ext <<_ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22913 #define $ac_func innocuous_$ac_func
22915 /* System header to define __stub macros and hopefully few prototypes,
22916 which can conflict with char $ac_func (); below.
22917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22918 <limits.h> exists even on freestanding compilers. */
22921 # include <limits.h>
22923 # include <assert.h>
22928 /* Override any GCC internal prototype to avoid an error.
22929 Use char because int might match the return type of a GCC
22930 builtin and then its argument prototype would still apply. */
22935 /* The GNU C library defines this for functions which it implements
22936 to always fail with ENOSYS. Some functions are actually named
22937 something starting with __ and the normal name is an alias. */
22938 #if defined __stub_$ac_func || defined __stub___$ac_func
22945 return $ac_func ();
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 (eval $ac_link) 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } &&
22959 { ac_try='test -z "$ac_c_werror_flag"
22960 || test ! -s conftest.err'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; } &&
22966 { ac_try='test -s conftest$ac_exeext'
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 eval "$as_ac_var=yes"
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 eval "$as_ac_var=no"
22980 rm -f conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22983 ac_res=`eval echo '${'$as_ac_var'}'`
22984 { echo "$as_me:$LINENO: result: $ac_res" >&5
22985 echo "${ECHO_T}$ac_res" >&6; }
22986 if test `eval echo '${'$as_ac_var'}'` = yes; then
22987 cat >>confdefs.h <<_ACEOF
22988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22992 case " $LIBOBJS " in
22993 *" $ac_func.$ac_objext "* ) ;;
22994 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23002 if test $ac_cv_func_stpcpy = no; then
23010 for ac_func in strcspn
23012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23026 #define $ac_func innocuous_$ac_func
23028 /* System header to define __stub macros and hopefully few prototypes,
23029 which can conflict with char $ac_func (); below.
23030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23031 <limits.h> exists even on freestanding compilers. */
23034 # include <limits.h>
23036 # include <assert.h>
23041 /* Override any GCC internal prototype to avoid an error.
23042 Use char because int might match the return type of a GCC
23043 builtin and then its argument prototype would still apply. */
23048 /* The GNU C library defines this for functions which it implements
23049 to always fail with ENOSYS. Some functions are actually named
23050 something starting with __ and the normal name is an alias. */
23051 #if defined __stub_$ac_func || defined __stub___$ac_func
23058 return $ac_func ();
23063 rm -f conftest.$ac_objext conftest$ac_exeext
23064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23065 (eval $ac_link) 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } &&
23072 { ac_try='test -z "$ac_c_werror_flag"
23073 || test ! -s conftest.err'
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; } &&
23079 { ac_try='test -s conftest$ac_exeext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 eval "$as_ac_var=yes"
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 eval "$as_ac_var=no"
23093 rm -f conftest.err conftest.$ac_objext \
23094 conftest$ac_exeext conftest.$ac_ext
23096 ac_res=`eval echo '${'$as_ac_var'}'`
23097 { echo "$as_me:$LINENO: result: $ac_res" >&5
23098 echo "${ECHO_T}$ac_res" >&6; }
23099 if test `eval echo '${'$as_ac_var'}'` = yes; then
23100 cat >>confdefs.h <<_ACEOF
23101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23105 case " $LIBOBJS " in
23106 *" $ac_func.$ac_objext "* ) ;;
23107 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23115 if test $ac_cv_func_strcspn = no; then
23120 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
23121 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
23122 if test "${ac_cv_have_decl_strdup+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 $ac_includes_default
23136 char *p = (char *) strdup;
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_strdup=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_cv_have_decl_strdup=no
23174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
23177 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
23178 if test $ac_cv_have_decl_strdup = yes; then
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_STRDUP 1
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_STRDUP 0
23199 for ac_func in strdup
23201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23215 #define $ac_func innocuous_$ac_func
23217 /* System header to define __stub macros and hopefully few prototypes,
23218 which can conflict with char $ac_func (); below.
23219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23220 <limits.h> exists even on freestanding compilers. */
23223 # include <limits.h>
23225 # include <assert.h>
23230 /* Override any GCC internal prototype to avoid an error.
23231 Use char because int might match the return type of a GCC
23232 builtin and then its argument prototype would still apply. */
23237 /* The GNU C library defines this for functions which it implements
23238 to always fail with ENOSYS. Some functions are actually named
23239 something starting with __ and the normal name is an alias. */
23240 #if defined __stub_$ac_func || defined __stub___$ac_func
23247 return $ac_func ();
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254 (eval $ac_link) 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } &&
23261 { ac_try='test -z "$ac_c_werror_flag"
23262 || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 eval "$as_ac_var=yes"
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 eval "$as_ac_var=no"
23282 rm -f conftest.err conftest.$ac_objext \
23283 conftest$ac_exeext conftest.$ac_ext
23285 ac_res=`eval echo '${'$as_ac_var'}'`
23286 { echo "$as_me:$LINENO: result: $ac_res" >&5
23287 echo "${ECHO_T}$ac_res" >&6; }
23288 if test `eval echo '${'$as_ac_var'}'` = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23294 case " $LIBOBJS " in
23295 *" $ac_func.$ac_objext "* ) ;;
23296 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23319 for ac_func in strndup
23321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23335 #define $ac_func innocuous_$ac_func
23337 /* System header to define __stub macros and hopefully few prototypes,
23338 which can conflict with char $ac_func (); below.
23339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23340 <limits.h> exists even on freestanding compilers. */
23343 # include <limits.h>
23345 # include <assert.h>
23350 /* Override any GCC internal prototype to avoid an error.
23351 Use char because int might match the return type of a GCC
23352 builtin and then its argument prototype would still apply. */
23357 /* The GNU C library defines this for functions which it implements
23358 to always fail with ENOSYS. Some functions are actually named
23359 something starting with __ and the normal name is an alias. */
23360 #if defined __stub_$ac_func || defined __stub___$ac_func
23367 return $ac_func ();
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374 (eval $ac_link) 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
23381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 eval "$as_ac_var=yes"
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 eval "$as_ac_var=no"
23402 rm -f conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23405 ac_res=`eval echo '${'$as_ac_var'}'`
23406 { echo "$as_me:$LINENO: result: $ac_res" >&5
23407 echo "${ECHO_T}$ac_res" >&6; }
23408 if test `eval echo '${'$as_ac_var'}'` = yes; then
23409 cat >>confdefs.h <<_ACEOF
23410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23414 case " $LIBOBJS " in
23415 *" $ac_func.$ac_objext "* ) ;;
23416 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23424 if test $ac_cv_func_strndup = no; then
23429 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
23430 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; }
23431 if test "${ac_cv_have_decl_strnlen+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 $ac_includes_default
23445 char *p = (char *) strnlen;
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455 (eval $ac_compile) 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -z "$ac_c_werror_flag"
23463 || test ! -s conftest.err'
23464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465 (eval $ac_try) 2>&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); }; } &&
23469 { ac_try='test -s conftest.$ac_objext'
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 ac_cv_have_decl_strnlen=yes
23477 echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 ac_cv_have_decl_strnlen=no
23483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23485 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
23486 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; }
23487 if test $ac_cv_have_decl_strnlen = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_DECL_STRNLEN 1
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_DECL_STRNLEN 0
23509 { echo "$as_me:$LINENO: checking for working strnlen" >&5
23510 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
23511 if test "${ac_cv_func_strnlen_working+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 if test "$cross_compiling" = yes; then
23515 ac_cv_func_strnlen_working=no
23517 cat >conftest.$ac_ext <<_ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23523 $ac_includes_default
23529 #define S_LEN (sizeof S - 1)
23531 /* At least one implementation is buggy: that of AIX 4.3 would
23532 give strnlen (S, 1) == 3. */
23535 for (i = 0; i < S_LEN + 1; ++i)
23537 int expected = i <= S_LEN ? i : S_LEN;
23538 if (strnlen (S, i) != expected)
23547 rm -f conftest$ac_exeext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549 (eval $ac_link) 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ac_cv_func_strnlen_working=yes
23560 echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ( exit $ac_status )
23565 ac_cv_func_strnlen_working=no
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23572 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
23573 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
23574 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
23575 *" strnlen.$ac_objext "* ) ;;
23576 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
23581 if test $ac_cv_func_strnlen_working = no; then
23582 # This is necessary because automake-1.6.1 doens't understand
23583 # that the above use of AC_FUNC_STRNLEN means we may have to use
23585 #AC_LIBOBJ(strnlen)
23587 cat >>confdefs.h <<\_ACEOF
23588 #define strnlen rpl_strnlen
23604 for ac_func in strpbrk
23606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23620 #define $ac_func innocuous_$ac_func
23622 /* System header to define __stub macros and hopefully few prototypes,
23623 which can conflict with char $ac_func (); below.
23624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23625 <limits.h> exists even on freestanding compilers. */
23628 # include <limits.h>
23630 # include <assert.h>
23635 /* Override any GCC internal prototype to avoid an error.
23636 Use char because int might match the return type of a GCC
23637 builtin and then its argument prototype would still apply. */
23642 /* The GNU C library defines this for functions which it implements
23643 to always fail with ENOSYS. Some functions are actually named
23644 something starting with __ and the normal name is an alias. */
23645 #if defined __stub_$ac_func || defined __stub___$ac_func
23652 return $ac_func ();
23657 rm -f conftest.$ac_objext conftest$ac_exeext
23658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23659 (eval $ac_link) 2>conftest.er1
23661 grep -v '^ *+' conftest.er1 >conftest.err
23663 cat conftest.err >&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } &&
23666 { ac_try='test -z "$ac_c_werror_flag"
23667 || test ! -s conftest.err'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; } &&
23673 { ac_try='test -s conftest$ac_exeext'
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23679 eval "$as_ac_var=yes"
23681 echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23684 eval "$as_ac_var=no"
23687 rm -f conftest.err conftest.$ac_objext \
23688 conftest$ac_exeext conftest.$ac_ext
23690 ac_res=`eval echo '${'$as_ac_var'}'`
23691 { echo "$as_me:$LINENO: result: $ac_res" >&5
23692 echo "${ECHO_T}$ac_res" >&6; }
23693 if test `eval echo '${'$as_ac_var'}'` = yes; then
23694 cat >>confdefs.h <<_ACEOF
23695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23699 case " $LIBOBJS " in
23700 *" $ac_func.$ac_objext "* ) ;;
23701 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23709 if test $ac_cv_func_strpbrk = no; then
23714 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
23715 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
23716 if test "${gl_cv_func_mbrtowc+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23730 char const s[] = "";
23733 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23740 (eval $ac_link) 2>conftest.er1
23742 grep -v '^ *+' conftest.er1 >conftest.err
23744 cat conftest.err >&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } &&
23747 { ac_try='test -z "$ac_c_werror_flag"
23748 || test ! -s conftest.err'
23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; } &&
23754 { ac_try='test -s conftest$ac_exeext'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; }; then
23760 gl_cv_func_mbrtowc=yes
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 gl_cv_func_mbrtowc=no
23768 rm -f conftest.err conftest.$ac_objext \
23769 conftest$ac_exeext conftest.$ac_ext
23771 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
23772 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
23773 if test $gl_cv_func_mbrtowc = yes; then
23775 cat >>confdefs.h <<\_ACEOF
23776 #define HAVE_MBRTOWC 1
23782 case " $LIBOBJS " in
23783 *" strstr.$ac_objext "* ) ;;
23784 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
23793 { echo "$as_me:$LINENO: checking for working strtod" >&5
23794 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
23795 if test "${ac_cv_func_strtod+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23798 if test "$cross_compiling" = yes; then
23799 ac_cv_func_strtod=no
23801 cat >conftest.$ac_ext <<_ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23808 $ac_includes_default
23816 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23817 char *string = " +69";
23820 value = strtod (string, &term);
23821 if (value != 69 || term != (string + 4))
23826 /* Under Solaris 2.4, strtod returns the wrong value for the
23827 terminating character under some conditions. */
23828 char *string = "NaN";
23830 strtod (string, &term);
23831 if (term != string && *(term - 1) == 0)
23838 rm -f conftest$ac_exeext
23839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23840 (eval $ac_link) 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 ac_cv_func_strtod=yes
23851 echo "$as_me: program exited with status $ac_status" >&5
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ( exit $ac_status )
23856 ac_cv_func_strtod=no
23858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23863 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
23864 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
23865 if test $ac_cv_func_strtod = no; then
23866 case " $LIBOBJS " in
23867 *" strtod.$ac_objext "* ) ;;
23868 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23872 { echo "$as_me:$LINENO: checking for pow" >&5
23873 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
23874 if test "${ac_cv_func_pow+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
23884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23885 #define pow innocuous_pow
23887 /* System header to define __stub macros and hopefully few prototypes,
23888 which can conflict with char pow (); below.
23889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23890 <limits.h> exists even on freestanding compilers. */
23893 # include <limits.h>
23895 # include <assert.h>
23900 /* Override any GCC internal prototype to avoid an error.
23901 Use char because int might match the return type of a GCC
23902 builtin and then its argument prototype would still apply. */
23907 /* The GNU C library defines this for functions which it implements
23908 to always fail with ENOSYS. Some functions are actually named
23909 something starting with __ and the normal name is an alias. */
23910 #if defined __stub_pow || defined __stub___pow
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924 (eval $ac_link) 2>conftest.er1
23926 grep -v '^ *+' conftest.er1 >conftest.err
23928 cat conftest.err >&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } &&
23931 { ac_try='test -z "$ac_c_werror_flag"
23932 || test ! -s conftest.err'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; } &&
23938 { ac_try='test -s conftest$ac_exeext'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23952 rm -f conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
23955 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
23956 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
23958 if test $ac_cv_func_pow = no; then
23959 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
23960 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
23961 if test "${ac_cv_lib_m_pow+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23964 ac_check_lib_save_LIBS=$LIBS
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23973 /* Override any GCC internal prototype to avoid an error.
23974 Use char because int might match the return type of a GCC
23975 builtin and then its argument prototype would still apply. */
23988 rm -f conftest.$ac_objext conftest$ac_exeext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990 (eval $ac_link) 2>conftest.er1
23992 grep -v '^ *+' conftest.er1 >conftest.err
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } &&
23997 { ac_try='test -z "$ac_c_werror_flag"
23998 || test ! -s conftest.err'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; } &&
24004 { ac_try='test -s conftest$ac_exeext'
24005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006 (eval $ac_try) 2>&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_cv_lib_m_pow=yes
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24018 rm -f conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
24020 LIBS=$ac_check_lib_save_LIBS
24022 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
24023 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
24024 if test $ac_cv_lib_m_pow = yes; then
24027 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
24028 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24037 if test $ac_cv_func_strtod = no; then
24039 cat >>confdefs.h <<\_ACEOF
24040 #define strtod rpl_strtod
24059 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24060 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; }
24061 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 cat >conftest.$ac_ext <<_ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 #include <inttypes.h>
24072 inttypes_h_defines_strtoimax
24075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24076 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
24077 jm_cv_func_strtoimax_macro=yes
24079 jm_cv_func_strtoimax_macro=no
24084 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24085 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; }
24087 if test "$jm_cv_func_strtoimax_macro" != yes; then
24089 for ac_func in strtoimax
24091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24105 #define $ac_func innocuous_$ac_func
24107 /* System header to define __stub macros and hopefully few prototypes,
24108 which can conflict with char $ac_func (); below.
24109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24110 <limits.h> exists even on freestanding compilers. */
24113 # include <limits.h>
24115 # include <assert.h>
24120 /* Override any GCC internal prototype to avoid an error.
24121 Use char because int might match the return type of a GCC
24122 builtin and then its argument prototype would still apply. */
24127 /* The GNU C library defines this for functions which it implements
24128 to always fail with ENOSYS. Some functions are actually named
24129 something starting with __ and the normal name is an alias. */
24130 #if defined __stub_$ac_func || defined __stub___$ac_func
24137 return $ac_func ();
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24144 (eval $ac_link) 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
24151 { ac_try='test -z "$ac_c_werror_flag"
24152 || test ! -s conftest.err'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest$ac_exeext'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; }; then
24164 eval "$as_ac_var=yes"
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 eval "$as_ac_var=no"
24172 rm -f conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
24175 ac_res=`eval echo '${'$as_ac_var'}'`
24176 { echo "$as_me:$LINENO: result: $ac_res" >&5
24177 echo "${ECHO_T}$ac_res" >&6; }
24178 if test `eval echo '${'$as_ac_var'}'` = yes; then
24179 cat >>confdefs.h <<_ACEOF
24180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24184 case " $LIBOBJS " in
24185 *" $ac_func.$ac_objext "* ) ;;
24186 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24194 if test $ac_cv_func_strtoimax = no; then
24199 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24201 test $ac_cv_type_long_long = yes \
24202 && ac_type='long long' \
24205 cat >>confdefs.h <<_ACEOF
24206 #define intmax_t $ac_type
24211 cat >>confdefs.h <<\_ACEOF
24212 #define HAVE_INTMAX_T 1
24217 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24218 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; }
24219 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24222 cat >conftest.$ac_ext <<_ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24228 $ac_includes_default
24233 char *p = (char *) strtoll;
24241 rm -f conftest.$ac_objext
24242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24243 (eval $ac_compile) 2>conftest.er1
24245 grep -v '^ *+' conftest.er1 >conftest.err
24247 cat conftest.err >&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } &&
24250 { ac_try='test -z "$ac_c_werror_flag"
24251 || test ! -s conftest.err'
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; } &&
24257 { ac_try='test -s conftest.$ac_objext'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; }; then
24263 ac_cv_have_decl_strtoll=yes
24265 echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24268 ac_cv_have_decl_strtoll=no
24271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24274 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; }
24275 if test $ac_cv_have_decl_strtoll = yes; then
24277 cat >>confdefs.h <<_ACEOF
24278 #define HAVE_DECL_STRTOLL 1
24283 cat >>confdefs.h <<_ACEOF
24284 #define HAVE_DECL_STRTOLL 0
24298 if test "$ac_cv_type_long_long" = yes; then
24300 for ac_func in strtoll
24302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24306 echo $ECHO_N "(cached) $ECHO_C" >&6
24308 cat >conftest.$ac_ext <<_ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24316 #define $ac_func innocuous_$ac_func
24318 /* System header to define __stub macros and hopefully few prototypes,
24319 which can conflict with char $ac_func (); below.
24320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24321 <limits.h> exists even on freestanding compilers. */
24324 # include <limits.h>
24326 # include <assert.h>
24331 /* Override any GCC internal prototype to avoid an error.
24332 Use char because int might match the return type of a GCC
24333 builtin and then its argument prototype would still apply. */
24338 /* The GNU C library defines this for functions which it implements
24339 to always fail with ENOSYS. Some functions are actually named
24340 something starting with __ and the normal name is an alias. */
24341 #if defined __stub_$ac_func || defined __stub___$ac_func
24348 return $ac_func ();
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355 (eval $ac_link) 2>conftest.er1
24357 grep -v '^ *+' conftest.er1 >conftest.err
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_c_werror_flag"
24363 || test ! -s conftest.err'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; } &&
24369 { ac_try='test -s conftest$ac_exeext'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 eval "$as_ac_var=yes"
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 eval "$as_ac_var=no"
24383 rm -f conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24386 ac_res=`eval echo '${'$as_ac_var'}'`
24387 { echo "$as_me:$LINENO: result: $ac_res" >&5
24388 echo "${ECHO_T}$ac_res" >&6; }
24389 if test `eval echo '${'$as_ac_var'}'` = yes; then
24390 cat >>confdefs.h <<_ACEOF
24391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24395 case " $LIBOBJS " in
24396 *" $ac_func.$ac_objext "* ) ;;
24397 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24405 if test $ac_cv_func_strtoll = no; then
24414 for ac_func in strtol
24416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24430 #define $ac_func innocuous_$ac_func
24432 /* System header to define __stub macros and hopefully few prototypes,
24433 which can conflict with char $ac_func (); below.
24434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24435 <limits.h> exists even on freestanding compilers. */
24438 # include <limits.h>
24440 # include <assert.h>
24445 /* Override any GCC internal prototype to avoid an error.
24446 Use char because int might match the return type of a GCC
24447 builtin and then its argument prototype would still apply. */
24452 /* The GNU C library defines this for functions which it implements
24453 to always fail with ENOSYS. Some functions are actually named
24454 something starting with __ and the normal name is an alias. */
24455 #if defined __stub_$ac_func || defined __stub___$ac_func
24462 return $ac_func ();
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469 (eval $ac_link) 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag"
24477 || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 eval "$as_ac_var=yes"
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 eval "$as_ac_var=no"
24497 rm -f conftest.err conftest.$ac_objext \
24498 conftest$ac_exeext conftest.$ac_ext
24500 ac_res=`eval echo '${'$as_ac_var'}'`
24501 { echo "$as_me:$LINENO: result: $ac_res" >&5
24502 echo "${ECHO_T}$ac_res" >&6; }
24503 if test `eval echo '${'$as_ac_var'}'` = yes; then
24504 cat >>confdefs.h <<_ACEOF
24505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24509 case " $LIBOBJS " in
24510 *" $ac_func.$ac_objext "* ) ;;
24511 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24519 if test $ac_cv_func_strtol = no; then
24534 if test "$ac_cv_type_unsigned_long_long" = yes; then
24536 for ac_func in strtoull
24538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 cat >conftest.$ac_ext <<_ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24552 #define $ac_func innocuous_$ac_func
24554 /* System header to define __stub macros and hopefully few prototypes,
24555 which can conflict with char $ac_func (); below.
24556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24557 <limits.h> exists even on freestanding compilers. */
24560 # include <limits.h>
24562 # include <assert.h>
24567 /* Override any GCC internal prototype to avoid an error.
24568 Use char because int might match the return type of a GCC
24569 builtin and then its argument prototype would still apply. */
24574 /* The GNU C library defines this for functions which it implements
24575 to always fail with ENOSYS. Some functions are actually named
24576 something starting with __ and the normal name is an alias. */
24577 #if defined __stub_$ac_func || defined __stub___$ac_func
24584 return $ac_func ();
24589 rm -f conftest.$ac_objext conftest$ac_exeext
24590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24591 (eval $ac_link) 2>conftest.er1
24593 grep -v '^ *+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try='test -z "$ac_c_werror_flag"
24599 || test ! -s conftest.err'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; } &&
24605 { ac_try='test -s conftest$ac_exeext'
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; }; then
24611 eval "$as_ac_var=yes"
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24616 eval "$as_ac_var=no"
24619 rm -f conftest.err conftest.$ac_objext \
24620 conftest$ac_exeext conftest.$ac_ext
24622 ac_res=`eval echo '${'$as_ac_var'}'`
24623 { echo "$as_me:$LINENO: result: $ac_res" >&5
24624 echo "${ECHO_T}$ac_res" >&6; }
24625 if test `eval echo '${'$as_ac_var'}'` = yes; then
24626 cat >>confdefs.h <<_ACEOF
24627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24631 case " $LIBOBJS " in
24632 *" $ac_func.$ac_objext "* ) ;;
24633 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24641 if test $ac_cv_func_strtoull = no; then
24650 for ac_func in strtoul
24652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24658 cat >conftest.$ac_ext <<_ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h. */
24664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24666 #define $ac_func innocuous_$ac_func
24668 /* System header to define __stub macros and hopefully few prototypes,
24669 which can conflict with char $ac_func (); below.
24670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24671 <limits.h> exists even on freestanding compilers. */
24674 # include <limits.h>
24676 # include <assert.h>
24681 /* Override any GCC internal prototype to avoid an error.
24682 Use char because int might match the return type of a GCC
24683 builtin and then its argument prototype would still apply. */
24688 /* The GNU C library defines this for functions which it implements
24689 to always fail with ENOSYS. Some functions are actually named
24690 something starting with __ and the normal name is an alias. */
24691 #if defined __stub_$ac_func || defined __stub___$ac_func
24698 return $ac_func ();
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705 (eval $ac_link) 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -z "$ac_c_werror_flag"
24713 || test ! -s conftest.err'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 eval "$as_ac_var=yes"
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 eval "$as_ac_var=no"
24733 rm -f conftest.err conftest.$ac_objext \
24734 conftest$ac_exeext conftest.$ac_ext
24736 ac_res=`eval echo '${'$as_ac_var'}'`
24737 { echo "$as_me:$LINENO: result: $ac_res" >&5
24738 echo "${ECHO_T}$ac_res" >&6; }
24739 if test `eval echo '${'$as_ac_var'}'` = yes; then
24740 cat >>confdefs.h <<_ACEOF
24741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24745 case " $LIBOBJS " in
24746 *" $ac_func.$ac_objext "* ) ;;
24747 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24755 if test $ac_cv_func_strtoul = no; then
24774 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24775 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; }
24776 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24785 #include <inttypes.h>
24787 inttypes_h_defines_strtoumax
24790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24791 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24792 jm_cv_func_strtoumax_macro=yes
24794 jm_cv_func_strtoumax_macro=no
24799 { echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24800 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; }
24802 if test "$jm_cv_func_strtoumax_macro" != yes; then
24804 for ac_func in strtoumax
24806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24820 #define $ac_func innocuous_$ac_func
24822 /* System header to define __stub macros and hopefully few prototypes,
24823 which can conflict with char $ac_func (); below.
24824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24825 <limits.h> exists even on freestanding compilers. */
24828 # include <limits.h>
24830 # include <assert.h>
24835 /* Override any GCC internal prototype to avoid an error.
24836 Use char because int might match the return type of a GCC
24837 builtin and then its argument prototype would still apply. */
24842 /* The GNU C library defines this for functions which it implements
24843 to always fail with ENOSYS. Some functions are actually named
24844 something starting with __ and the normal name is an alias. */
24845 #if defined __stub_$ac_func || defined __stub___$ac_func
24852 return $ac_func ();
24857 rm -f conftest.$ac_objext conftest$ac_exeext
24858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24859 (eval $ac_link) 2>conftest.er1
24861 grep -v '^ *+' conftest.er1 >conftest.err
24863 cat conftest.err >&5
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); } &&
24866 { ac_try='test -z "$ac_c_werror_flag"
24867 || test ! -s conftest.err'
24868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869 (eval $ac_try) 2>&5
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); }; } &&
24873 { ac_try='test -s conftest$ac_exeext'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; }; then
24879 eval "$as_ac_var=yes"
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 eval "$as_ac_var=no"
24887 rm -f conftest.err conftest.$ac_objext \
24888 conftest$ac_exeext conftest.$ac_ext
24890 ac_res=`eval echo '${'$as_ac_var'}'`
24891 { echo "$as_me:$LINENO: result: $ac_res" >&5
24892 echo "${ECHO_T}$ac_res" >&6; }
24893 if test `eval echo '${'$as_ac_var'}'` = yes; then
24894 cat >>confdefs.h <<_ACEOF
24895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24899 case " $LIBOBJS " in
24900 *" $ac_func.$ac_objext "* ) ;;
24901 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24909 if test $ac_cv_func_strtoumax = no; then
24914 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24916 test $ac_cv_type_unsigned_long_long = yes \
24917 && ac_type='unsigned long long' \
24918 || ac_type='unsigned long'
24920 cat >>confdefs.h <<_ACEOF
24921 #define uintmax_t $ac_type
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_UINTMAX_T 1
24932 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
24933 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; }
24934 if test "${ac_cv_have_decl_strtoull+set}" = set; then
24935 echo $ECHO_N "(cached) $ECHO_C" >&6
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24943 $ac_includes_default
24948 char *p = (char *) strtoull;
24956 rm -f conftest.$ac_objext
24957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24958 (eval $ac_compile) 2>conftest.er1
24960 grep -v '^ *+' conftest.er1 >conftest.err
24962 cat conftest.err >&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } &&
24965 { ac_try='test -z "$ac_c_werror_flag"
24966 || test ! -s conftest.err'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest.$ac_objext'
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_have_decl_strtoull=yes
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ac_cv_have_decl_strtoull=no
24986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
24989 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; }
24990 if test $ac_cv_have_decl_strtoull = yes; then
24992 cat >>confdefs.h <<_ACEOF
24993 #define HAVE_DECL_STRTOULL 1
24998 cat >>confdefs.h <<_ACEOF
24999 #define HAVE_DECL_STRTOULL 0
25017 for ac_func in strverscmp
25019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25033 #define $ac_func innocuous_$ac_func
25035 /* System header to define __stub macros and hopefully few prototypes,
25036 which can conflict with char $ac_func (); below.
25037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25038 <limits.h> exists even on freestanding compilers. */
25041 # include <limits.h>
25043 # include <assert.h>
25048 /* Override any GCC internal prototype to avoid an error.
25049 Use char because int might match the return type of a GCC
25050 builtin and then its argument prototype would still apply. */
25055 /* The GNU C library defines this for functions which it implements
25056 to always fail with ENOSYS. Some functions are actually named
25057 something starting with __ and the normal name is an alias. */
25058 #if defined __stub_$ac_func || defined __stub___$ac_func
25065 return $ac_func ();
25070 rm -f conftest.$ac_objext conftest$ac_exeext
25071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25072 (eval $ac_link) 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } &&
25079 { ac_try='test -z "$ac_c_werror_flag"
25080 || test ! -s conftest.err'
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; } &&
25086 { ac_try='test -s conftest$ac_exeext'
25087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088 (eval $ac_try) 2>&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; }; then
25092 eval "$as_ac_var=yes"
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25097 eval "$as_ac_var=no"
25100 rm -f conftest.err conftest.$ac_objext \
25101 conftest$ac_exeext conftest.$ac_ext
25103 ac_res=`eval echo '${'$as_ac_var'}'`
25104 { echo "$as_me:$LINENO: result: $ac_res" >&5
25105 echo "${ECHO_T}$ac_res" >&6; }
25106 if test `eval echo '${'$as_ac_var'}'` = yes; then
25107 cat >>confdefs.h <<_ACEOF
25108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25112 case " $LIBOBJS " in
25113 *" $ac_func.$ac_objext "* ) ;;
25114 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25122 if test $ac_cv_func_strverscmp = no; then
25130 { echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
25131 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6; }
25132 if test "${gl_cv_func_tzset_clobber+set}" = set; then
25133 echo $ECHO_N "(cached) $ECHO_C" >&6
25136 if test "$cross_compiling" = yes; then
25137 gl_cv_func_tzset_clobber=yes
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25146 #if TIME_WITH_SYS_TIME
25147 # include <sys/time.h>
25150 # if HAVE_SYS_TIME_H
25151 # include <sys/time.h>
25156 #include <stdlib.h>
25161 time_t t1 = 853958121;
25163 putenv ("TZ=GMT0");
25164 p = localtime (&t1);
25166 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
25168 exit (p->tm_year != s.tm_year
25169 || p->tm_mon != s.tm_mon
25170 || p->tm_mday != s.tm_mday
25171 || p->tm_hour != s.tm_hour
25172 || p->tm_min != s.tm_min
25173 || p->tm_sec != s.tm_sec);
25177 rm -f conftest$ac_exeext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25179 (eval $ac_link) 2>&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; }; then
25188 gl_cv_func_tzset_clobber=no
25190 echo "$as_me: program exited with status $ac_status" >&5
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 ( exit $ac_status )
25195 gl_cv_func_tzset_clobber=yes
25197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25202 { echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
25203 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6; }
25206 cat >>confdefs.h <<\_ACEOF
25207 #define HAVE_RUN_TZSET_TEST 1
25211 if test $gl_cv_func_tzset_clobber = yes; then
25213 case " $LIBOBJS " in
25214 *" gettimeofday.$ac_objext "* ) ;;
25215 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
25220 cat >>confdefs.h <<\_ACEOF
25221 #define gmtime rpl_gmtime
25225 cat >>confdefs.h <<\_ACEOF
25226 #define localtime rpl_localtime
25232 cat >>confdefs.h <<\_ACEOF
25233 #define tzset rpl_tzset
25237 cat >>confdefs.h <<\_ACEOF
25238 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
25245 { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
25246 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
25247 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 cat >conftest.$ac_ext <<_ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h. */
25264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25265 $EGREP "yes" >/dev/null 2>&1; then
25270 if test -n "$have_eoverflow"; then
25271 ac_cv_decl_EOVERFLOW=yes
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25280 #define _XOPEN_SOURCE_EXTENDED 1
25287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25288 $EGREP "yes" >/dev/null 2>&1; then
25293 if test -n "$have_eoverflow"; then
25294 if test "$cross_compiling" = yes; then
25295 # Depending upon the size, compute the lo and hi bounds.
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 #define _XOPEN_SOURCE_EXTENDED 1
25305 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25307 #include <stdlib.h>
25312 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
25319 rm -f conftest.$ac_objext
25320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25321 (eval $ac_compile) 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } &&
25328 { ac_try='test -z "$ac_c_werror_flag"
25329 || test ! -s conftest.err'
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; } &&
25335 { ac_try='test -s conftest.$ac_objext'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25350 #define _XOPEN_SOURCE_EXTENDED 1
25352 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25354 #include <stdlib.h>
25359 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
25366 rm -f conftest.$ac_objext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25368 (eval $ac_compile) 2>conftest.er1
25370 grep -v '^ *+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
25375 { ac_try='test -z "$ac_c_werror_flag"
25376 || test ! -s conftest.err'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest.$ac_objext'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_hi=$ac_mid; break
25390 echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25393 ac_lo=`expr $ac_mid + 1`
25394 if test $ac_lo -le $ac_mid; then
25398 ac_mid=`expr 2 '*' $ac_mid + 1`
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25404 echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25407 cat >conftest.$ac_ext <<_ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25414 #define _XOPEN_SOURCE_EXTENDED 1
25416 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25418 #include <stdlib.h>
25423 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
25430 rm -f conftest.$ac_objext
25431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25432 (eval $ac_compile) 2>conftest.er1
25434 grep -v '^ *+' conftest.er1 >conftest.err
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag"
25440 || test ! -s conftest.err'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; } &&
25446 { ac_try='test -s conftest.$ac_objext'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25461 #define _XOPEN_SOURCE_EXTENDED 1
25463 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25465 #include <stdlib.h>
25470 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
25477 rm -f conftest.$ac_objext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25479 (eval $ac_compile) 2>conftest.er1
25481 grep -v '^ *+' conftest.er1 >conftest.err
25483 cat conftest.err >&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); } &&
25486 { ac_try='test -z "$ac_c_werror_flag"
25487 || test ! -s conftest.err'
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; } &&
25493 { ac_try='test -s conftest.$ac_objext'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; }; then
25499 ac_lo=$ac_mid; break
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_hi=`expr '(' $ac_mid ')' - 1`
25505 if test $ac_mid -le $ac_hi; then
25509 ac_mid=`expr 2 '*' $ac_mid`
25512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25515 echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25525 # Binary search between lo and hi bounds.
25526 while test "x$ac_lo" != "x$ac_hi"; do
25527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25528 cat >conftest.$ac_ext <<_ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h. */
25535 #define _XOPEN_SOURCE_EXTENDED 1
25537 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25539 #include <stdlib.h>
25544 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553 (eval $ac_compile) 2>conftest.er1
25555 grep -v '^ *+' conftest.er1 >conftest.err
25557 cat conftest.err >&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
25560 { ac_try='test -z "$ac_c_werror_flag"
25561 || test ! -s conftest.err'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ac_lo=`expr '(' $ac_mid ')' + 1`
25581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25584 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
25588 cat >conftest.$ac_ext <<_ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25595 #define _XOPEN_SOURCE_EXTENDED 1
25597 /* The following two lines are a workaround against an autoconf-2.52 bug. */
25599 #include <stdlib.h>
25601 static long int longval () { return EOVERFLOW; }
25602 static unsigned long int ulongval () { return EOVERFLOW; }
25604 #include <stdlib.h>
25609 FILE *f = fopen ("conftest.val", "w");
25612 if ((EOVERFLOW) < 0)
25614 long int i = longval ();
25615 if (i != (EOVERFLOW))
25617 fprintf (f, "%ld\n", i);
25621 unsigned long int i = ulongval ();
25622 if (i != (EOVERFLOW))
25624 fprintf (f, "%lu\n", i);
25626 return ferror (f) || fclose (f) != 0;
25632 rm -f conftest$ac_exeext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25634 (eval $ac_link) 2>&5
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); }; }; then
25643 ac_cv_decl_EOVERFLOW=`cat conftest.val`
25645 echo "$as_me: program exited with status $ac_status" >&5
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25654 ac_cv_decl_EOVERFLOW=E2BIG
25659 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
25660 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
25661 if test "$ac_cv_decl_EOVERFLOW" != yes; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
25667 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
25672 { echo "$as_me:$LINENO: checking for signed" >&5
25673 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
25674 if test "${bh_cv_c_signed+set}" = set; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25692 rm -f conftest.$ac_objext
25693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25694 (eval $ac_compile) 2>conftest.er1
25696 grep -v '^ *+' conftest.er1 >conftest.err
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } &&
25701 { ac_try='test -z "$ac_c_werror_flag"
25702 || test ! -s conftest.err'
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; } &&
25708 { ac_try='test -s conftest.$ac_objext'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; }; then
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
25725 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
25726 if test $bh_cv_c_signed = no; then
25728 cat >>confdefs.h <<\_ACEOF
25735 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25736 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25737 if test "${gt_cv_c_wchar_t+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <stddef.h>
25747 wchar_t foo = (wchar_t)'\0';
25756 rm -f conftest.$ac_objext
25757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25758 (eval $ac_compile) 2>conftest.er1
25760 grep -v '^ *+' conftest.er1 >conftest.err
25762 cat conftest.err >&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); } &&
25765 { ac_try='test -z "$ac_c_werror_flag"
25766 || test ! -s conftest.err'
25767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768 (eval $ac_try) 2>&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); }; } &&
25772 { ac_try='test -s conftest.$ac_objext'
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; }; then
25778 gt_cv_c_wchar_t=yes
25780 echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25789 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
25790 if test $gt_cv_c_wchar_t = yes; then
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_WCHAR_T 1
25799 { echo "$as_me:$LINENO: checking for wint_t" >&5
25800 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
25801 if test "${gt_cv_c_wint_t+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25811 wint_t foo = (wchar_t)'\0';
25820 rm -f conftest.$ac_objext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822 (eval $ac_compile) 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
25829 { ac_try='test -z "$ac_c_werror_flag"
25830 || test ! -s conftest.err'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; } &&
25836 { ac_try='test -s conftest.$ac_objext'
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25844 echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25852 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
25853 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
25854 if test $gt_cv_c_wint_t = yes; then
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_WINT_T 1
25865 { echo "$as_me:$LINENO: checking for intmax_t" >&5
25866 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
25867 if test "${gt_cv_c_intmax_t+set}" = set; then
25868 echo $ECHO_N "(cached) $ECHO_C" >&6
25870 cat >conftest.$ac_ext <<_ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h. */
25877 #include <stddef.h>
25878 #include <stdlib.h>
25879 #if HAVE_STDINT_H_WITH_UINTMAX
25880 #include <stdint.h>
25882 #if HAVE_INTTYPES_H_WITH_UINTMAX
25883 #include <inttypes.h>
25894 rm -f conftest.$ac_objext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25896 (eval $ac_compile) 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } &&
25903 { ac_try='test -z "$ac_c_werror_flag"
25904 || test ! -s conftest.err'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; } &&
25910 { ac_try='test -s conftest.$ac_objext'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 gt_cv_c_intmax_t=yes
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 gt_cv_c_intmax_t=no
25924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
25927 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
25928 if test $gt_cv_c_intmax_t = yes; then
25930 cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_INTMAX_T 1
25936 test $ac_cv_type_long_long = yes \
25937 && ac_type='long long' \
25940 cat >>confdefs.h <<_ACEOF
25941 #define intmax_t $ac_type
25949 for ac_func in vasnprintf
25951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25955 echo $ECHO_N "(cached) $ECHO_C" >&6
25957 cat >conftest.$ac_ext <<_ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h. */
25963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25965 #define $ac_func innocuous_$ac_func
25967 /* System header to define __stub macros and hopefully few prototypes,
25968 which can conflict with char $ac_func (); below.
25969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25970 <limits.h> exists even on freestanding compilers. */
25973 # include <limits.h>
25975 # include <assert.h>
25980 /* Override any GCC internal prototype to avoid an error.
25981 Use char because int might match the return type of a GCC
25982 builtin and then its argument prototype would still apply. */
25987 /* The GNU C library defines this for functions which it implements
25988 to always fail with ENOSYS. Some functions are actually named
25989 something starting with __ and the normal name is an alias. */
25990 #if defined __stub_$ac_func || defined __stub___$ac_func
25997 return $ac_func ();
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26004 (eval $ac_link) 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
26011 { ac_try='test -z "$ac_c_werror_flag"
26012 || test ! -s conftest.err'
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024 eval "$as_ac_var=yes"
26026 echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26029 eval "$as_ac_var=no"
26032 rm -f conftest.err conftest.$ac_objext \
26033 conftest$ac_exeext conftest.$ac_ext
26035 ac_res=`eval echo '${'$as_ac_var'}'`
26036 { echo "$as_me:$LINENO: result: $ac_res" >&5
26037 echo "${ECHO_T}$ac_res" >&6; }
26038 if test `eval echo '${'$as_ac_var'}'` = yes; then
26039 cat >>confdefs.h <<_ACEOF
26040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26044 case " $LIBOBJS " in
26045 *" $ac_func.$ac_objext "* ) ;;
26046 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26054 if test $ac_cv_func_vasnprintf = no; then
26055 case " $LIBOBJS " in
26056 *" printf-args.$ac_objext "* ) ;;
26057 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext"
26061 case " $LIBOBJS " in
26062 *" printf-parse.$ac_objext "* ) ;;
26063 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
26067 case " $LIBOBJS " in
26068 *" asnprintf.$ac_objext "* ) ;;
26069 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
26086 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26087 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26088 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 cat >conftest.$ac_ext <<_ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 $ac_includes_default
26098 typedef ptrdiff_t ac__type_new_;
26102 if ((ac__type_new_ *) 0)
26104 if (sizeof (ac__type_new_))
26110 rm -f conftest.$ac_objext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26112 (eval $ac_compile) 2>conftest.er1
26114 grep -v '^ *+' conftest.er1 >conftest.err
26116 cat conftest.err >&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } &&
26119 { ac_try='test -z "$ac_c_werror_flag"
26120 || test ! -s conftest.err'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; } &&
26126 { ac_try='test -s conftest.$ac_objext'
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; }; then
26132 ac_cv_type_ptrdiff_t=yes
26134 echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26137 ac_cv_type_ptrdiff_t=no
26140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26142 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26143 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26144 if test $ac_cv_type_ptrdiff_t = yes; then
26146 cat >>confdefs.h <<_ACEOF
26147 #define HAVE_PTRDIFF_T 1
26163 for ac_func in snprintf wcslen
26165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26169 echo $ECHO_N "(cached) $ECHO_C" >&6
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26179 #define $ac_func innocuous_$ac_func
26181 /* System header to define __stub macros and hopefully few prototypes,
26182 which can conflict with char $ac_func (); below.
26183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26184 <limits.h> exists even on freestanding compilers. */
26187 # include <limits.h>
26189 # include <assert.h>
26194 /* Override any GCC internal prototype to avoid an error.
26195 Use char because int might match the return type of a GCC
26196 builtin and then its argument prototype would still apply. */
26201 /* The GNU C library defines this for functions which it implements
26202 to always fail with ENOSYS. Some functions are actually named
26203 something starting with __ and the normal name is an alias. */
26204 #if defined __stub_$ac_func || defined __stub___$ac_func
26211 return $ac_func ();
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26218 (eval $ac_link) 2>conftest.er1
26220 grep -v '^ *+' conftest.er1 >conftest.err
26222 cat conftest.err >&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
26225 { ac_try='test -z "$ac_c_werror_flag"
26226 || test ! -s conftest.err'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest$ac_exeext'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26238 eval "$as_ac_var=yes"
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243 eval "$as_ac_var=no"
26246 rm -f conftest.err conftest.$ac_objext \
26247 conftest$ac_exeext conftest.$ac_ext
26249 ac_res=`eval echo '${'$as_ac_var'}'`
26250 { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26252 if test `eval echo '${'$as_ac_var'}'` = yes; then
26253 cat >>confdefs.h <<_ACEOF
26254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26267 for ac_func in vasprintf
26269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26283 #define $ac_func innocuous_$ac_func
26285 /* System header to define __stub macros and hopefully few prototypes,
26286 which can conflict with char $ac_func (); below.
26287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288 <limits.h> exists even on freestanding compilers. */
26291 # include <limits.h>
26293 # include <assert.h>
26298 /* Override any GCC internal prototype to avoid an error.
26299 Use char because int might match the return type of a GCC
26300 builtin and then its argument prototype would still apply. */
26305 /* The GNU C library defines this for functions which it implements
26306 to always fail with ENOSYS. Some functions are actually named
26307 something starting with __ and the normal name is an alias. */
26308 #if defined __stub_$ac_func || defined __stub___$ac_func
26315 return $ac_func ();
26320 rm -f conftest.$ac_objext conftest$ac_exeext
26321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26322 (eval $ac_link) 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } &&
26329 { ac_try='test -z "$ac_c_werror_flag"
26330 || test ! -s conftest.err'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; } &&
26336 { ac_try='test -s conftest$ac_exeext'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; }; then
26342 eval "$as_ac_var=yes"
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 eval "$as_ac_var=no"
26350 rm -f conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354 { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357 cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26362 case " $LIBOBJS " in
26363 *" $ac_func.$ac_objext "* ) ;;
26364 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26372 if test $ac_cv_func_vasprintf = no; then
26373 case " $LIBOBJS " in
26374 *" asprintf.$ac_objext "* ) ;;
26375 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
26408 { echo "$as_me:$LINENO: checking for struct timespec" >&5
26409 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
26410 if test "${fu_cv_sys_struct_timespec+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 cat >conftest.$ac_ext <<_ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26420 # if TIME_WITH_SYS_TIME
26421 # include <sys/time.h>
26424 # if HAVE_SYS_TIME_H
26425 # include <sys/time.h>
26434 static struct timespec x; x.tv_sec = x.tv_nsec;
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441 (eval $ac_compile) 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 fu_cv_sys_struct_timespec=yes
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26466 fu_cv_sys_struct_timespec=no
26469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26472 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
26473 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6; }
26475 if test $fu_cv_sys_struct_timespec = yes; then
26477 cat >>confdefs.h <<\_ACEOF
26478 #define HAVE_STRUCT_TIMESPEC 1
26486 { echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
26487 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6; }
26488 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
26489 echo $ECHO_N "(cached) $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26503 char *p = (char *) nanosleep;
26511 rm -f conftest.$ac_objext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26513 (eval $ac_compile) 2>conftest.er1
26515 grep -v '^ *+' conftest.er1 >conftest.err
26517 cat conftest.err >&5
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); } &&
26520 { ac_try='test -z "$ac_c_werror_flag"
26521 || test ! -s conftest.err'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; } &&
26527 { ac_try='test -s conftest.$ac_objext'
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; }; then
26533 ac_cv_have_decl_nanosleep=yes
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 ac_cv_have_decl_nanosleep=no
26541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26543 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
26544 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6; }
26545 if test $ac_cv_have_decl_nanosleep = yes; then
26547 cat >>confdefs.h <<_ACEOF
26548 #define HAVE_DECL_NANOSLEEP 1
26553 cat >>confdefs.h <<_ACEOF
26554 #define HAVE_DECL_NANOSLEEP 0
26563 # getdate.y works with bison only.
26564 : ${YACC='bison -y'}
26567 { echo "$as_me:$LINENO: checking for compound literals" >&5
26568 echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
26569 if test "${gl_cv_compound_literals+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26572 cat >conftest.$ac_ext <<_ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26578 struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
26582 struct s t = (struct s) { 3, 4 };
26587 rm -f conftest.$ac_objext
26588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26589 (eval $ac_compile) 2>conftest.er1
26591 grep -v '^ *+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } &&
26596 { ac_try='test -z "$ac_c_werror_flag"
26597 || test ! -s conftest.err'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; } &&
26603 { ac_try='test -s conftest.$ac_objext'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; }; then
26609 gl_cv_compound_literals=yes
26611 echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26614 gl_cv_compound_literals=no
26617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26619 { echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
26620 echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
26621 if test $gl_cv_compound_literals = yes; then
26623 cat >>confdefs.h <<\_ACEOF
26624 #define HAVE_COMPOUND_LITERALS 1
26629 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26630 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
26631 if test "${ac_cv_struct_tm+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <sys/types.h>
26646 struct tm *tp; tp->tm_sec;
26651 rm -f conftest.$ac_objext
26652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26653 (eval $ac_compile) 2>conftest.er1
26655 grep -v '^ *+' conftest.er1 >conftest.err
26657 cat conftest.err >&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } &&
26660 { ac_try='test -z "$ac_c_werror_flag"
26661 || test ! -s conftest.err'
26662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 (eval $ac_try) 2>&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; } &&
26667 { ac_try='test -s conftest.$ac_objext'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; }; then
26673 ac_cv_struct_tm=time.h
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678 ac_cv_struct_tm=sys/time.h
26681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
26685 if test $ac_cv_struct_tm = sys/time.h; then
26687 cat >>confdefs.h <<\_ACEOF
26688 #define TM_IN_SYS_TIME 1
26696 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
26697 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
26699 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
26700 # programs in the package would end up linked with that potentially-shared
26701 # library, inducing unnecessary run-time overhead.
26702 gl_saved_libs=$LIBS
26703 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
26704 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
26705 if test "${ac_cv_search_clock_gettime+set}" = set; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 ac_func_search_save_LIBS=$LIBS
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26716 /* Override any GCC internal prototype to avoid an error.
26717 Use char because int might match the return type of a GCC
26718 builtin and then its argument prototype would still apply. */
26722 char clock_gettime ();
26726 return clock_gettime ();
26731 for ac_lib in '' rt posix4; do
26732 if test -z "$ac_lib"; then
26733 ac_res="none required"
26736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26738 rm -f conftest.$ac_objext conftest$ac_exeext
26739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26740 (eval $ac_link) 2>conftest.er1
26742 grep -v '^ *+' conftest.er1 >conftest.err
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -z "$ac_c_werror_flag"
26748 || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest$ac_exeext'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_cv_search_clock_gettime=$ac_res
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26768 rm -f conftest.err conftest.$ac_objext \
26770 if test "${ac_cv_search_clock_gettime+set}" = set; then
26774 if test "${ac_cv_search_clock_gettime+set}" = set; then
26777 ac_cv_search_clock_gettime=no
26779 rm conftest.$ac_ext
26780 LIBS=$ac_func_search_save_LIBS
26782 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
26783 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
26784 ac_res=$ac_cv_search_clock_gettime
26785 if test "$ac_res" != no; then
26786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26787 test "$ac_cv_search_clock_gettime" = "none required" ||
26788 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
26794 for ac_func in clock_gettime clock_settime
26796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26800 echo $ECHO_N "(cached) $ECHO_C" >&6
26802 cat >conftest.$ac_ext <<_ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26810 #define $ac_func innocuous_$ac_func
26812 /* System header to define __stub macros and hopefully few prototypes,
26813 which can conflict with char $ac_func (); below.
26814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26815 <limits.h> exists even on freestanding compilers. */
26818 # include <limits.h>
26820 # include <assert.h>
26825 /* Override any GCC internal prototype to avoid an error.
26826 Use char because int might match the return type of a GCC
26827 builtin and then its argument prototype would still apply. */
26832 /* The GNU C library defines this for functions which it implements
26833 to always fail with ENOSYS. Some functions are actually named
26834 something starting with __ and the normal name is an alias. */
26835 #if defined __stub_$ac_func || defined __stub___$ac_func
26842 return $ac_func ();
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849 (eval $ac_link) 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } &&
26856 { ac_try='test -z "$ac_c_werror_flag"
26857 || test ! -s conftest.err'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; } &&
26863 { ac_try='test -s conftest$ac_exeext'
26864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865 (eval $ac_try) 2>&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; }; then
26869 eval "$as_ac_var=yes"
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 eval "$as_ac_var=no"
26877 rm -f conftest.err conftest.$ac_objext \
26878 conftest$ac_exeext conftest.$ac_ext
26880 ac_res=`eval echo '${'$as_ac_var'}'`
26881 { echo "$as_me:$LINENO: result: $ac_res" >&5
26882 echo "${ECHO_T}$ac_res" >&6; }
26883 if test `eval echo '${'$as_ac_var'}'` = yes; then
26884 cat >>confdefs.h <<_ACEOF
26885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26891 LIBS=$gl_saved_libs
26894 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26895 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
26896 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26910 static struct tm ac_aggr;
26911 if (ac_aggr.tm_gmtoff)
26917 rm -f conftest.$ac_objext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26919 (eval $ac_compile) 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } &&
26926 { ac_try='test -z "$ac_c_werror_flag"
26927 || test ! -s conftest.err'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest.$ac_objext'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_cv_member_struct_tm_tm_gmtoff=yes
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26944 cat >conftest.$ac_ext <<_ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26955 static struct tm ac_aggr;
26956 if (sizeof ac_aggr.tm_gmtoff)
26962 rm -f conftest.$ac_objext
26963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26964 (eval $ac_compile) 2>conftest.er1
26966 grep -v '^ *+' conftest.er1 >conftest.err
26968 cat conftest.err >&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } &&
26971 { ac_try='test -z "$ac_c_werror_flag"
26972 || test ! -s conftest.err'
26973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974 (eval $ac_try) 2>&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; } &&
26978 { ac_try='test -s conftest.$ac_objext'
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 ac_cv_member_struct_tm_tm_gmtoff=yes
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 ac_cv_member_struct_tm_tm_gmtoff=no
26992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26998 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
26999 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
27001 cat >>confdefs.h <<\_ACEOF
27002 #define HAVE_TM_GMTOFF 1
27010 case " $LIBOBJS " in
27011 *" getdate.$ac_objext "* ) ;;
27012 *) LIBOBJS="$LIBOBJS getdate.$ac_objext"
27030 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27031 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
27032 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27035 cat >conftest.$ac_ext <<_ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 #include <sys/types.h>
27042 #include <$ac_cv_struct_tm>
27048 static struct tm ac_aggr;
27049 if (ac_aggr.tm_zone)
27055 rm -f conftest.$ac_objext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27057 (eval $ac_compile) 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
27064 { ac_try='test -z "$ac_c_werror_flag"
27065 || test ! -s conftest.err'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest.$ac_objext'
27072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ac_cv_member_struct_tm_tm_zone=yes
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 cat >conftest.$ac_ext <<_ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h. */
27088 #include <sys/types.h>
27089 #include <$ac_cv_struct_tm>
27095 static struct tm ac_aggr;
27096 if (sizeof ac_aggr.tm_zone)
27102 rm -f conftest.$ac_objext
27103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27104 (eval $ac_compile) 2>conftest.er1
27106 grep -v '^ *+' conftest.er1 >conftest.err
27108 cat conftest.err >&5
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); } &&
27111 { ac_try='test -z "$ac_c_werror_flag"
27112 || test ! -s conftest.err'
27113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114 (eval $ac_try) 2>&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; } &&
27118 { ac_try='test -s conftest.$ac_objext'
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_member_struct_tm_tm_zone=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ac_cv_member_struct_tm_tm_zone=no
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27137 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27138 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
27139 if test $ac_cv_member_struct_tm_tm_zone = yes; then
27141 cat >>confdefs.h <<_ACEOF
27142 #define HAVE_STRUCT_TM_TM_ZONE 1
27148 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27150 cat >>confdefs.h <<\_ACEOF
27151 #define HAVE_TM_ZONE 1
27155 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27156 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
27157 if test "${ac_cv_have_decl_tzname+set}" = set; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27172 char *p = (char *) tzname;
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 ac_cv_have_decl_tzname=yes
27204 echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27207 ac_cv_have_decl_tzname=no
27210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27213 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
27214 if test $ac_cv_have_decl_tzname = yes; then
27216 cat >>confdefs.h <<_ACEOF
27217 #define HAVE_DECL_TZNAME 1
27222 cat >>confdefs.h <<_ACEOF
27223 #define HAVE_DECL_TZNAME 0
27230 { echo "$as_me:$LINENO: checking for tzname" >&5
27231 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
27232 if test "${ac_cv_var_tzname+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27242 #if !HAVE_DECL_TZNAME
27243 extern char *tzname[];
27249 return tzname[0][0];
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256 (eval $ac_link) 2>conftest.er1
27258 grep -v '^ *+' conftest.er1 >conftest.err
27260 cat conftest.err >&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
27263 { ac_try='test -z "$ac_c_werror_flag"
27264 || test ! -s conftest.err'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; } &&
27270 { ac_try='test -s conftest$ac_exeext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 ac_cv_var_tzname=yes
27278 echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27281 ac_cv_var_tzname=no
27284 rm -f conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
27287 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27288 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
27289 if test $ac_cv_var_tzname = yes; then
27291 cat >>confdefs.h <<\_ACEOF
27292 #define HAVE_TZNAME 1
27303 { echo "$as_me:$LINENO: checking for arithmetic hrtime_t" >&5
27304 echo $ECHO_N "checking for arithmetic hrtime_t... $ECHO_C" >&6; }
27305 if test "${gl_cv_arithmetic_hrtime_t+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27318 hrtime_t x = 0; return x/x;
27323 rm -f conftest.$ac_objext
27324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27325 (eval $ac_compile) 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } &&
27332 { ac_try='test -z "$ac_c_werror_flag"
27333 || test ! -s conftest.err'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; } &&
27339 { ac_try='test -s conftest.$ac_objext'
27340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341 (eval $ac_try) 2>&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
27345 gl_cv_arithmetic_hrtime_t=yes
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27350 gl_cv_arithmetic_hrtime_t=no
27353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27355 { echo "$as_me:$LINENO: result: $gl_cv_arithmetic_hrtime_t" >&5
27356 echo "${ECHO_T}$gl_cv_arithmetic_hrtime_t" >&6; }
27357 if test $gl_cv_arithmetic_hrtime_t = yes; then
27359 cat >>confdefs.h <<\_ACEOF
27360 #define HAVE_ARITHMETIC_HRTIME_T 1
27387 { echo "$as_me:$LINENO: checking whether gethrtime is declared" >&5
27388 echo $ECHO_N "checking whether gethrtime is declared... $ECHO_C" >&6; }
27389 if test "${ac_cv_have_decl_gethrtime+set}" = set; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27392 cat >conftest.$ac_ext <<_ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27404 char *p = (char *) gethrtime;
27412 rm -f conftest.$ac_objext
27413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414 (eval $ac_compile) 2>conftest.er1
27416 grep -v '^ *+' conftest.er1 >conftest.err
27418 cat conftest.err >&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); } &&
27421 { ac_try='test -z "$ac_c_werror_flag"
27422 || test ! -s conftest.err'
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; } &&
27428 { ac_try='test -s conftest.$ac_objext'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; }; then
27434 ac_cv_have_decl_gethrtime=yes
27436 echo "$as_me: failed program was:" >&5
27437 sed 's/^/| /' conftest.$ac_ext >&5
27439 ac_cv_have_decl_gethrtime=no
27442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethrtime" >&5
27445 echo "${ECHO_T}$ac_cv_have_decl_gethrtime" >&6; }
27446 if test $ac_cv_have_decl_gethrtime = yes; then
27448 cat >>confdefs.h <<_ACEOF
27449 #define HAVE_DECL_GETHRTIME 1
27454 cat >>confdefs.h <<_ACEOF
27455 #define HAVE_DECL_GETHRTIME 0
27462 case $ac_cv_have_decl_gethrtime,$gl_cv_arithmetic_hrtime_t in
27465 case " $LIBOBJS " in
27466 *" gethrxtime.$ac_objext "* ) ;;
27467 *) LIBOBJS="$LIBOBJS gethrxtime.$ac_objext"
27485 if test $ac_cv_func_nanouptime != yes; then
27487 { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is defined" >&5
27488 echo $ECHO_N "checking whether CLOCK_MONOTONIC is defined... $ECHO_C" >&6; }
27489 if test "${gl_cv_have_CLOCK_MONOTONIC+set}" = set; then
27490 echo $ECHO_N "(cached) $ECHO_C" >&6
27492 cat >conftest.$ac_ext <<_ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h. */
27500 # ifdef CLOCK_MONOTONIC
27501 have_CLOCK_MONOTONIC
27505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27506 $EGREP "have_CLOCK_MONOTONIC" >/dev/null 2>&1; then
27507 gl_cv_have_CLOCK_MONOTONIC=yes
27509 gl_cv_have_CLOCK_MONOTONIC=no
27514 { echo "$as_me:$LINENO: result: $gl_cv_have_CLOCK_MONOTONIC" >&5
27515 echo "${ECHO_T}$gl_cv_have_CLOCK_MONOTONIC" >&6; }
27516 if test $gl_cv_have_CLOCK_MONOTONIC = yes; then
27517 LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
27525 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
27526 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
27527 case " $LIBOBJS " in
27528 *" getndelim2.$ac_objext "* ) ;;
27529 *) case " $LIBOBJS " in
27530 *" getndelim2.$ac_objext "* ) ;;
27531 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
27542 if test -z "$GETOPT_H"; then
27544 for ac_header in getopt.h
27546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 ac_res=`eval echo '${'$as_ac_Header'}'`
27554 { echo "$as_me:$LINENO: result: $ac_res" >&5
27555 echo "${ECHO_T}$ac_res" >&6; }
27557 # Is the header compilable?
27558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27560 cat >conftest.$ac_ext <<_ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566 $ac_includes_default
27567 #include <$ac_header>
27569 rm -f conftest.$ac_objext
27570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27571 (eval $ac_compile) 2>conftest.er1
27573 grep -v '^ *+' conftest.er1 >conftest.err
27575 cat conftest.err >&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); } &&
27578 { ac_try='test -z "$ac_c_werror_flag"
27579 || test ! -s conftest.err'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest.$ac_objext'
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 ac_header_compiler=yes
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ac_header_compiler=no
27599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 echo "${ECHO_T}$ac_header_compiler" >&6; }
27603 # Is the header present?
27604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 #include <$ac_header>
27614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } >/dev/null; then
27622 if test -s conftest.err; then
27623 ac_cpp_err=$ac_c_preproc_warn_flag
27624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27631 if test -z "$ac_cpp_err"; then
27632 ac_header_preproc=yes
27634 echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27637 ac_header_preproc=no
27640 rm -f conftest.err conftest.$ac_ext
27641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27642 echo "${ECHO_T}$ac_header_preproc" >&6; }
27644 # So? What about this header?
27645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27651 ac_header_preproc=yes
27654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27667 ## ------------------------------------ ##
27668 ## Report this to bug-coreutils@gnu.org ##
27669 ## ------------------------------------ ##
27671 ) | sed "s/^/$as_me: WARNING: /" >&2
27674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27677 echo $ECHO_N "(cached) $ECHO_C" >&6
27679 eval "$as_ac_Header=\$ac_header_preproc"
27681 ac_res=`eval echo '${'$as_ac_Header'}'`
27682 { echo "$as_me:$LINENO: result: $ac_res" >&5
27683 echo "${ECHO_T}$ac_res" >&6; }
27686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27687 cat >>confdefs.h <<_ACEOF
27688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27699 if test -z "$GETOPT_H"; then
27701 for ac_func in getopt_long_only
27703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27707 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27717 #define $ac_func innocuous_$ac_func
27719 /* System header to define __stub macros and hopefully few prototypes,
27720 which can conflict with char $ac_func (); below.
27721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722 <limits.h> exists even on freestanding compilers. */
27725 # include <limits.h>
27727 # include <assert.h>
27732 /* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27739 /* The GNU C library defines this for functions which it implements
27740 to always fail with ENOSYS. Some functions are actually named
27741 something starting with __ and the normal name is an alias. */
27742 #if defined __stub_$ac_func || defined __stub___$ac_func
27749 return $ac_func ();
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756 (eval $ac_link) 2>conftest.er1
27758 grep -v '^ *+' conftest.er1 >conftest.err
27760 cat conftest.err >&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } &&
27763 { ac_try='test -z "$ac_c_werror_flag"
27764 || test ! -s conftest.err'
27765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766 (eval $ac_try) 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest$ac_exeext'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 eval "$as_ac_var=yes"
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 eval "$as_ac_var=no"
27784 rm -f conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext conftest.$ac_ext
27787 ac_res=`eval echo '${'$as_ac_var'}'`
27788 { echo "$as_me:$LINENO: result: $ac_res" >&5
27789 echo "${ECHO_T}$ac_res" >&6; }
27790 if test `eval echo '${'$as_ac_var'}'` = yes; then
27791 cat >>confdefs.h <<_ACEOF
27792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27802 if test -z "$GETOPT_H"; then
27803 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
27804 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
27805 if test "${ac_cv_have_decl_optreset+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27808 cat >conftest.$ac_ext <<_ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h. */
27814 #include <getopt.h>
27820 char *p = (char *) optreset;
27828 rm -f conftest.$ac_objext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27830 (eval $ac_compile) 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest.$ac_objext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_have_decl_optreset=yes
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 ac_cv_have_decl_optreset=no
27858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
27861 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
27862 if test $ac_cv_have_decl_optreset = yes; then
27868 if test -z "$GETOPT_H"; then
27869 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
27870 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
27871 if test "${gl_cv_func_gnu_getopt+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 if test "$cross_compiling" = yes; then
27875 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
27876 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
27877 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
27878 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27886 #include <getopt.h>
27891 #ifndef getopt_clip
27892 char *p = (char *) getopt_clip;
27900 rm -f conftest.$ac_objext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27902 (eval $ac_compile) 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag"
27910 || test ! -s conftest.err'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; } &&
27916 { ac_try='test -s conftest.$ac_objext'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; }; then
27922 ac_cv_have_decl_getopt_clip=yes
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27927 ac_cv_have_decl_getopt_clip=no
27930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27932 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
27933 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
27934 if test $ac_cv_have_decl_getopt_clip = yes; then
27935 gl_cv_func_gnu_getopt=no
27937 gl_cv_func_gnu_getopt=yes
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27947 #include <getopt.h>
27953 myargv[0] = "conftest";
27956 return getopt (2, myargv, "+a") != '?';
27962 rm -f conftest$ac_exeext
27963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27964 (eval $ac_link) 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 gl_cv_func_gnu_getopt=yes
27975 echo "$as_me: program exited with status $ac_status" >&5
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 ( exit $ac_status )
27980 gl_cv_func_gnu_getopt=no
27982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27987 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
27988 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
27989 if test "$gl_cv_func_gnu_getopt" = "no"; then
27996 if test -n "$GETOPT_H"; then
27998 case " $LIBOBJS " in
27999 *" getopt.$ac_objext "* ) ;;
28000 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
28004 case " $LIBOBJS " in
28005 *" getopt1.$ac_objext "* ) ;;
28006 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
28013 cat >>confdefs.h <<\_ACEOF
28014 #define __GETOPT_PREFIX rpl_
28043 for ac_header in OS.h
28045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 ac_res=`eval echo '${'$as_ac_Header'}'`
28053 { echo "$as_me:$LINENO: result: $ac_res" >&5
28054 echo "${ECHO_T}$ac_res" >&6; }
28056 # Is the header compilable?
28057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28059 cat >conftest.$ac_ext <<_ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h. */
28065 $ac_includes_default
28066 #include <$ac_header>
28068 rm -f conftest.$ac_objext
28069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28070 (eval $ac_compile) 2>conftest.er1
28072 grep -v '^ *+' conftest.er1 >conftest.err
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag"
28078 || test ! -s conftest.err'
28079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080 (eval $ac_try) 2>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest.$ac_objext'
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; }; then
28090 ac_header_compiler=yes
28092 echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28095 ac_header_compiler=no
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28100 echo "${ECHO_T}$ac_header_compiler" >&6; }
28102 # Is the header present?
28103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 #include <$ac_header>
28113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28116 grep -v '^ *+' conftest.er1 >conftest.err
28118 cat conftest.err >&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); } >/dev/null; then
28121 if test -s conftest.err; then
28122 ac_cpp_err=$ac_c_preproc_warn_flag
28123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28130 if test -z "$ac_cpp_err"; then
28131 ac_header_preproc=yes
28133 echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28136 ac_header_preproc=no
28139 rm -f conftest.err conftest.$ac_ext
28140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28141 echo "${ECHO_T}$ac_header_preproc" >&6; }
28143 # So? What about this header?
28144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28150 ac_header_preproc=yes
28153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28166 ## ------------------------------------ ##
28167 ## Report this to bug-coreutils@gnu.org ##
28168 ## ------------------------------------ ##
28170 ) | sed "s/^/$as_me: WARNING: /" >&2
28173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28178 eval "$as_ac_Header=\$ac_header_preproc"
28180 ac_res=`eval echo '${'$as_ac_Header'}'`
28181 { echo "$as_me:$LINENO: result: $ac_res" >&5
28182 echo "${ECHO_T}$ac_res" >&6; }
28185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28186 cat >>confdefs.h <<_ACEOF
28187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28195 for ac_func in getpagesize
28197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28201 echo $ECHO_N "(cached) $ECHO_C" >&6
28203 cat >conftest.$ac_ext <<_ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h. */
28209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28211 #define $ac_func innocuous_$ac_func
28213 /* System header to define __stub macros and hopefully few prototypes,
28214 which can conflict with char $ac_func (); below.
28215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28216 <limits.h> exists even on freestanding compilers. */
28219 # include <limits.h>
28221 # include <assert.h>
28226 /* Override any GCC internal prototype to avoid an error.
28227 Use char because int might match the return type of a GCC
28228 builtin and then its argument prototype would still apply. */
28233 /* The GNU C library defines this for functions which it implements
28234 to always fail with ENOSYS. Some functions are actually named
28235 something starting with __ and the normal name is an alias. */
28236 #if defined __stub_$ac_func || defined __stub___$ac_func
28243 return $ac_func ();
28248 rm -f conftest.$ac_objext conftest$ac_exeext
28249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28250 (eval $ac_link) 2>conftest.er1
28252 grep -v '^ *+' conftest.er1 >conftest.err
28254 cat conftest.err >&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); } &&
28257 { ac_try='test -z "$ac_c_werror_flag"
28258 || test ! -s conftest.err'
28259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28260 (eval $ac_try) 2>&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270 eval "$as_ac_var=yes"
28272 echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28275 eval "$as_ac_var=no"
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28281 ac_res=`eval echo '${'$as_ac_var'}'`
28282 { echo "$as_me:$LINENO: result: $ac_res" >&5
28283 echo "${ECHO_T}$ac_res" >&6; }
28284 if test `eval echo '${'$as_ac_var'}'` = yes; then
28285 cat >>confdefs.h <<_ACEOF
28286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28307 case " $LIBOBJS " in
28308 *" gettime.$ac_objext "* ) ;;
28309 *) LIBOBJS="$LIBOBJS gettime.$ac_objext"
28329 case " $LIBOBJS " in
28330 *" getugroups.$ac_objext "* ) ;;
28331 *) LIBOBJS="$LIBOBJS getugroups.$ac_objext"
28336 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
28337 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
28338 if test "${ac_cv_type_getgroups+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28341 if test "$cross_compiling" = yes; then
28342 ac_cv_type_getgroups=cross
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28350 /* Thanks to Mike Rendell for this test. */
28351 $ac_includes_default
28354 #define MAX(x, y) ((x) > (y) ? (x) : (y))
28359 gid_t gidset[NGID];
28361 union { gid_t gval; long int lval; } val;
28364 for (i = 0; i < NGID; i++)
28365 gidset[i] = val.gval;
28366 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
28368 /* Exit non-zero if getgroups seems to require an array of ints. This
28369 happens when gid_t is short int but getgroups modifies an array
28371 return n > 0 && gidset[n] != val.gval;
28374 rm -f conftest$ac_exeext
28375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28376 (eval $ac_link) 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381 (eval $ac_try) 2>&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); }; }; then
28385 ac_cv_type_getgroups=gid_t
28387 echo "$as_me: program exited with status $ac_status" >&5
28388 echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28391 ( exit $ac_status )
28392 ac_cv_type_getgroups=int
28394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28398 if test $ac_cv_type_getgroups = cross; then
28399 cat >conftest.$ac_ext <<_ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h. */
28405 #include <unistd.h>
28408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
28410 ac_cv_type_getgroups=gid_t
28412 ac_cv_type_getgroups=int
28418 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
28419 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
28421 cat >>confdefs.h <<_ACEOF
28422 #define GETGROUPS_T $ac_cv_type_getgroups
28429 case " $LIBOBJS " in
28430 *" hard-locale.$ac_objext "* ) ;;
28431 *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext"
28438 case " $LIBOBJS " in
28439 *" hash.$ac_objext "* ) ;;
28440 *) LIBOBJS="$LIBOBJS hash.$ac_objext"
28449 case " $LIBOBJS " in
28450 *" hash-pjw.$ac_objext "* ) ;;
28451 *) LIBOBJS="$LIBOBJS hash-pjw.$ac_objext"
28459 case " $LIBOBJS " in
28460 *" human.$ac_objext "* ) ;;
28461 *) LIBOBJS="$LIBOBJS human.$ac_objext"
28473 case " $LIBOBJS " in
28474 *" idcache.$ac_objext "* ) ;;
28475 *) LIBOBJS="$LIBOBJS idcache.$ac_objext"
28485 case " $LIBOBJS " in
28486 *" imaxtostr.$ac_objext "* ) ;;
28487 *) LIBOBJS="$LIBOBJS imaxtostr.$ac_objext"
28491 case " $LIBOBJS " in
28492 *" offtostr.$ac_objext "* ) ;;
28493 *) LIBOBJS="$LIBOBJS offtostr.$ac_objext"
28497 case " $LIBOBJS " in
28498 *" umaxtostr.$ac_objext "* ) ;;
28499 *) LIBOBJS="$LIBOBJS umaxtostr.$ac_objext"
28516 case " $LIBOBJS " in
28517 *" linebuffer.$ac_objext "* ) ;;
28518 *) LIBOBJS="$LIBOBJS linebuffer.$ac_objext"
28545 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
28546 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
28547 if test "${am_cv_langinfo_codeset+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 #include <langinfo.h>
28560 char* cs = nl_langinfo(CODESET);
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567 (eval $ac_link) 2>conftest.er1
28569 grep -v '^ *+' conftest.er1 >conftest.err
28571 cat conftest.err >&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); } &&
28574 { ac_try='test -z "$ac_c_werror_flag"
28575 || test ! -s conftest.err'
28576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577 (eval $ac_try) 2>&5
28579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 (exit $ac_status); }; } &&
28581 { ac_try='test -s conftest$ac_exeext'
28582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583 (eval $ac_try) 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; }; then
28587 am_cv_langinfo_codeset=yes
28589 echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28592 am_cv_langinfo_codeset=no
28595 rm -f conftest.err conftest.$ac_objext \
28596 conftest$ac_exeext conftest.$ac_ext
28599 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
28600 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
28601 if test $am_cv_langinfo_codeset = yes; then
28603 cat >>confdefs.h <<\_ACEOF
28604 #define HAVE_LANGINFO_CODESET 1
28610 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28611 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
28612 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28613 echo $ECHO_N "(cached) $ECHO_C" >&6
28615 cat >conftest.$ac_ext <<_ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h. */
28621 $ac_includes_default
28625 #ifndef getc_unlocked
28626 char *p = (char *) getc_unlocked;
28634 rm -f conftest.$ac_objext
28635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28636 (eval $ac_compile) 2>conftest.er1
28638 grep -v '^ *+' conftest.er1 >conftest.err
28640 cat conftest.err >&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } &&
28643 { ac_try='test -z "$ac_c_werror_flag"
28644 || test ! -s conftest.err'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; } &&
28650 { ac_try='test -s conftest.$ac_objext'
28651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652 (eval $ac_try) 2>&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); }; }; then
28656 ac_cv_have_decl_getc_unlocked=yes
28658 echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28661 ac_cv_have_decl_getc_unlocked=no
28664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28667 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
28668 if test $ac_cv_have_decl_getc_unlocked = yes; then
28670 cat >>confdefs.h <<_ACEOF
28671 #define HAVE_DECL_GETC_UNLOCKED 1
28676 cat >>confdefs.h <<_ACEOF
28677 #define HAVE_DECL_GETC_UNLOCKED 0
28692 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
28693 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
28694 if test "${ac_cv_gnu_library_2_1+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28697 cat >conftest.$ac_ext <<_ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28704 #include <features.h>
28705 #ifdef __GNU_LIBRARY__
28706 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
28712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28713 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28714 ac_cv_gnu_library_2_1=yes
28716 ac_cv_gnu_library_2_1=no
28723 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
28724 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
28726 GLIBC21="$ac_cv_gnu_library_2_1"
28764 case " $LIBOBJS " in
28765 *" long-options.$ac_objext "* ) ;;
28766 *) LIBOBJS="$LIBOBJS long-options.$ac_objext"
28796 if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
28797 case " $LIBOBJS " in
28798 *" mbchar.$ac_objext "* ) ;;
28799 *) LIBOBJS="$LIBOBJS mbchar.$ac_objext"
28848 for ac_func in iswcntrl wcwidth
28850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28864 #define $ac_func innocuous_$ac_func
28866 /* System header to define __stub macros and hopefully few prototypes,
28867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28872 # include <limits.h>
28874 # include <assert.h>
28879 /* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28886 /* The GNU C library defines this for functions which it implements
28887 to always fail with ENOSYS. Some functions are actually named
28888 something starting with __ and the normal name is an alias. */
28889 #if defined __stub_$ac_func || defined __stub___$ac_func
28896 return $ac_func ();
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903 (eval $ac_link) 2>conftest.er1
28905 grep -v '^ *+' conftest.er1 >conftest.err
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
28910 { ac_try='test -z "$ac_c_werror_flag"
28911 || test ! -s conftest.err'
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest$ac_exeext'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 eval "$as_ac_var=yes"
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 eval "$as_ac_var=no"
28931 rm -f conftest.err conftest.$ac_objext \
28932 conftest$ac_exeext conftest.$ac_ext
28934 ac_res=`eval echo '${'$as_ac_var'}'`
28935 { echo "$as_me:$LINENO: result: $ac_res" >&5
28936 echo "${ECHO_T}$ac_res" >&6; }
28937 if test `eval echo '${'$as_ac_var'}'` = yes; then
28938 cat >>confdefs.h <<_ACEOF
28939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28946 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
28947 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
28948 if test "${gl_cv_func_mbrtowc+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 cat >conftest.$ac_ext <<_ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h. */
28962 char const s[] = "";
28965 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
28970 rm -f conftest.$ac_objext conftest$ac_exeext
28971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28972 (eval $ac_link) 2>conftest.er1
28974 grep -v '^ *+' conftest.er1 >conftest.err
28976 cat conftest.err >&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
28979 { ac_try='test -z "$ac_c_werror_flag"
28980 || test ! -s conftest.err'
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest$ac_exeext'
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
28992 gl_cv_func_mbrtowc=yes
28994 echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28997 gl_cv_func_mbrtowc=no
29000 rm -f conftest.err conftest.$ac_objext \
29001 conftest$ac_exeext conftest.$ac_ext
29003 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
29004 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
29005 if test $gl_cv_func_mbrtowc = yes; then
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_MBRTOWC 1
29014 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
29015 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
29016 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29019 cat >conftest.$ac_ext <<_ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h. */
29026 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29028 # include <string.h>
29031 # include <wchar.h>
29039 char *p = (char *) wcwidth;
29046 rm -f conftest.$ac_objext
29047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29048 (eval $ac_compile) 2>conftest.er1
29050 grep -v '^ *+' conftest.er1 >conftest.err
29052 cat conftest.err >&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); } &&
29055 { ac_try='test -z "$ac_c_werror_flag"
29056 || test ! -s conftest.err'
29057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29058 (eval $ac_try) 2>&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); }; } &&
29062 { ac_try='test -s conftest.$ac_objext'
29063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29064 (eval $ac_try) 2>&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); }; }; then
29068 ac_cv_have_decl_wcwidth=yes
29070 echo "$as_me: failed program was:" >&5
29071 sed 's/^/| /' conftest.$ac_ext >&5
29073 ac_cv_have_decl_wcwidth=no
29076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29078 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
29079 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
29080 if test $ac_cv_have_decl_wcwidth = yes; then
29086 cat >>confdefs.h <<_ACEOF
29087 #define HAVE_DECL_WCWIDTH $ac_val
29091 { echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
29092 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6; }
29093 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29096 cat >conftest.$ac_ext <<_ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29104 # include <wchar.h>
29111 char *p = (char *) mbswidth;
29117 rm -f conftest.$ac_objext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29119 (eval $ac_compile) 2>conftest.er1
29121 grep -v '^ *+' conftest.er1 >conftest.err
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
29126 { ac_try='test -z "$ac_c_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_have_decl_mbswidth=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_have_decl_mbswidth=no
29147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29149 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
29150 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; }
29151 if test $ac_cv_have_decl_mbswidth = yes; then
29157 cat >>confdefs.h <<_ACEOF
29158 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
29162 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
29163 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
29164 if test "${ac_cv_type_mbstate_t+set}" = set; then
29165 echo $ECHO_N "(cached) $ECHO_C" >&6
29167 cat >conftest.$ac_ext <<_ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29173 $ac_includes_default
29174 # include <wchar.h>
29178 mbstate_t x; return sizeof x;
29183 rm -f conftest.$ac_objext
29184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29185 (eval $ac_compile) 2>conftest.er1
29187 grep -v '^ *+' conftest.er1 >conftest.err
29189 cat conftest.err >&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); } &&
29192 { ac_try='test -z "$ac_c_werror_flag"
29193 || test ! -s conftest.err'
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest.$ac_objext'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_type_mbstate_t=yes
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 ac_cv_type_mbstate_t=no
29213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29215 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
29216 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
29217 if test $ac_cv_type_mbstate_t = yes; then
29219 cat >>confdefs.h <<\_ACEOF
29220 #define HAVE_MBSTATE_T 1
29225 cat >>confdefs.h <<\_ACEOF
29226 #define mbstate_t int
29233 case " $LIBOBJS " in
29234 *" md5.$ac_objext "* ) ;;
29235 *) LIBOBJS="$LIBOBJS md5.$ac_objext"
29245 case " $LIBOBJS " in
29246 *" memcoll.$ac_objext "* ) ;;
29247 *) LIBOBJS="$LIBOBJS memcoll.$ac_objext"
29252 { echo "$as_me:$LINENO: checking for working strcoll" >&5
29253 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
29254 if test "${ac_cv_func_strcoll_works+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 if test "$cross_compiling" = yes; then
29258 ac_cv_func_strcoll_works=no
29260 cat >conftest.$ac_ext <<_ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 $ac_includes_default
29270 return (strcoll ("abc", "def") >= 0 ||
29271 strcoll ("ABC", "DEF") >= 0 ||
29272 strcoll ("123", "456") >= 0)
29277 rm -f conftest$ac_exeext
29278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29279 (eval $ac_link) 2>&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; }; then
29288 ac_cv_func_strcoll_works=yes
29290 echo "$as_me: program exited with status $ac_status" >&5
29291 echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29294 ( exit $ac_status )
29295 ac_cv_func_strcoll_works=no
29297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29302 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
29303 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
29304 if test $ac_cv_func_strcoll_works = yes; then
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_STRCOLL 1
29315 # Check whether --with-afs was given.
29316 if test "${with_afs+set}" = set; then
29317 withval=$with_afs; test "$withval" = no || with_afs=yes
29322 if test "$with_afs" = yes; then
29324 cat >>confdefs.h <<\_ACEOF
29348 case " $LIBOBJS " in
29349 *" chdir-safer.$ac_objext "* ) ;;
29350 *) LIBOBJS="$LIBOBJS chdir-safer.$ac_objext"
29357 case " $LIBOBJS " in
29358 *" mkdir-p.$ac_objext "* ) ;;
29359 *) LIBOBJS="$LIBOBJS mkdir-p.$ac_objext"
29371 case " $LIBOBJS " in
29372 *" modechange.$ac_objext "* ) ;;
29373 *) LIBOBJS="$LIBOBJS modechange.$ac_objext"
29384 for ac_func in listmntent getmntinfo
29386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29390 echo $ECHO_N "(cached) $ECHO_C" >&6
29392 cat >conftest.$ac_ext <<_ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h. */
29398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29400 #define $ac_func innocuous_$ac_func
29402 /* System header to define __stub macros and hopefully few prototypes,
29403 which can conflict with char $ac_func (); below.
29404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29405 <limits.h> exists even on freestanding compilers. */
29408 # include <limits.h>
29410 # include <assert.h>
29415 /* Override any GCC internal prototype to avoid an error.
29416 Use char because int might match the return type of a GCC
29417 builtin and then its argument prototype would still apply. */
29422 /* The GNU C library defines this for functions which it implements
29423 to always fail with ENOSYS. Some functions are actually named
29424 something starting with __ and the normal name is an alias. */
29425 #if defined __stub_$ac_func || defined __stub___$ac_func
29432 return $ac_func ();
29437 rm -f conftest.$ac_objext conftest$ac_exeext
29438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29439 (eval $ac_link) 2>conftest.er1
29441 grep -v '^ *+' conftest.er1 >conftest.err
29443 cat conftest.err >&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } &&
29446 { ac_try='test -z "$ac_c_werror_flag"
29447 || test ! -s conftest.err'
29448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29449 (eval $ac_try) 2>&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; } &&
29453 { ac_try='test -s conftest$ac_exeext'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; }; then
29459 eval "$as_ac_var=yes"
29461 echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29464 eval "$as_ac_var=no"
29467 rm -f conftest.err conftest.$ac_objext \
29468 conftest$ac_exeext conftest.$ac_ext
29470 ac_res=`eval echo '${'$as_ac_var'}'`
29471 { echo "$as_me:$LINENO: result: $ac_res" >&5
29472 echo "${ECHO_T}$ac_res" >&6; }
29473 if test `eval echo '${'$as_ac_var'}'` = yes; then
29474 cat >>confdefs.h <<_ACEOF
29475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29489 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
29490 # NGROUPS (as the array dimension for a struct member) without a definition.
29492 for ac_header in sys/ucred.h
29494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29500 cat >conftest.$ac_ext <<_ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29508 #include <$ac_header>
29510 rm -f conftest.$ac_objext
29511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29512 (eval $ac_compile) 2>conftest.er1
29514 grep -v '^ *+' conftest.er1 >conftest.err
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } &&
29519 { ac_try='test -z "$ac_c_werror_flag"
29520 || test ! -s conftest.err'
29521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29522 (eval $ac_try) 2>&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); }; } &&
29526 { ac_try='test -s conftest.$ac_objext'
29527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29528 (eval $ac_try) 2>&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); }; }; then
29532 eval "$as_ac_Header=yes"
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 eval "$as_ac_Header=no"
29540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29542 ac_res=`eval echo '${'$as_ac_Header'}'`
29543 { echo "$as_me:$LINENO: result: $ac_res" >&5
29544 echo "${ECHO_T}$ac_res" >&6; }
29545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29546 cat >>confdefs.h <<_ACEOF
29547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29556 for ac_header in sys/mount.h
29558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 cat >conftest.$ac_ext <<_ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 $ac_includes_default
29571 #if HAVE_SYS_PARAM_H
29572 #include <sys/param.h>
29575 #include <$ac_header>
29577 rm -f conftest.$ac_objext
29578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29579 (eval $ac_compile) 2>conftest.er1
29581 grep -v '^ *+' conftest.er1 >conftest.err
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } &&
29586 { ac_try='test -z "$ac_c_werror_flag"
29587 || test ! -s conftest.err'
29588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589 (eval $ac_try) 2>&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; } &&
29593 { ac_try='test -s conftest.$ac_objext'
29594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595 (eval $ac_try) 2>&5
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; }; then
29599 eval "$as_ac_Header=yes"
29601 echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29604 eval "$as_ac_Header=no"
29607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29609 ac_res=`eval echo '${'$as_ac_Header'}'`
29610 { echo "$as_me:$LINENO: result: $ac_res" >&5
29611 echo "${ECHO_T}$ac_res" >&6; }
29612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29613 cat >>confdefs.h <<_ACEOF
29614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29624 for ac_header in mntent.h sys/fs_types.h
29626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 ac_res=`eval echo '${'$as_ac_Header'}'`
29634 { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29637 # Is the header compilable?
29638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29640 cat >conftest.$ac_ext <<_ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h. */
29646 $ac_includes_default
29647 #include <$ac_header>
29649 rm -f conftest.$ac_objext
29650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29651 (eval $ac_compile) 2>conftest.er1
29653 grep -v '^ *+' conftest.er1 >conftest.err
29655 cat conftest.err >&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); } &&
29658 { ac_try='test -z "$ac_c_werror_flag"
29659 || test ! -s conftest.err'
29660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661 (eval $ac_try) 2>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; } &&
29665 { ac_try='test -s conftest.$ac_objext'
29666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29667 (eval $ac_try) 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 ac_header_compiler=yes
29673 echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29676 ac_header_compiler=no
29679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29681 echo "${ECHO_T}$ac_header_compiler" >&6; }
29683 # Is the header present?
29684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29686 cat >conftest.$ac_ext <<_ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h. */
29692 #include <$ac_header>
29694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29697 grep -v '^ *+' conftest.er1 >conftest.err
29699 cat conftest.err >&5
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } >/dev/null; then
29702 if test -s conftest.err; then
29703 ac_cpp_err=$ac_c_preproc_warn_flag
29704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29711 if test -z "$ac_cpp_err"; then
29712 ac_header_preproc=yes
29714 echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29717 ac_header_preproc=no
29720 rm -f conftest.err conftest.$ac_ext
29721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29722 echo "${ECHO_T}$ac_header_preproc" >&6; }
29724 # So? What about this header?
29725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29731 ac_header_preproc=yes
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29747 ## ------------------------------------ ##
29748 ## Report this to bug-coreutils@gnu.org ##
29749 ## ------------------------------------ ##
29751 ) | sed "s/^/$as_me: WARNING: /" >&2
29754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29759 eval "$as_ac_Header=\$ac_header_preproc"
29761 ac_res=`eval echo '${'$as_ac_Header'}'`
29762 { echo "$as_me:$LINENO: result: $ac_res" >&5
29763 echo "${ECHO_T}$ac_res" >&6; }
29766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29767 cat >>confdefs.h <<_ACEOF
29768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29775 getfsstat_includes="\
29776 $ac_includes_default
29777 #if HAVE_SYS_PARAM_H
29778 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
29780 #if HAVE_SYS_UCRED_H
29781 # include <grp.h> /* needed for definition of NGROUPS */
29782 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
29784 #if HAVE_SYS_MOUNT_H
29785 # include <sys/mount.h>
29787 #if HAVE_SYS_FS_TYPES_H
29788 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
29791 { echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
29792 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6; }
29793 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29796 cat >conftest.$ac_ext <<_ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h. */
29802 $getfsstat_includes
29807 static struct fsstat ac_aggr;
29808 if (ac_aggr.f_fstypename)
29814 rm -f conftest.$ac_objext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29816 (eval $ac_compile) 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_c_werror_flag"
29824 || test ! -s conftest.err'
29825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826 (eval $ac_try) 2>&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_member_struct_fsstat_f_fstypename=yes
29838 echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29841 cat >conftest.$ac_ext <<_ACEOF
29844 cat confdefs.h >>conftest.$ac_ext
29845 cat >>conftest.$ac_ext <<_ACEOF
29846 /* end confdefs.h. */
29847 $getfsstat_includes
29852 static struct fsstat ac_aggr;
29853 if (sizeof ac_aggr.f_fstypename)
29859 rm -f conftest.$ac_objext
29860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29861 (eval $ac_compile) 2>conftest.er1
29863 grep -v '^ *+' conftest.er1 >conftest.err
29865 cat conftest.err >&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } &&
29868 { ac_try='test -z "$ac_c_werror_flag"
29869 || test ! -s conftest.err'
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; } &&
29875 { ac_try='test -s conftest.$ac_objext'
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; }; then
29881 ac_cv_member_struct_fsstat_f_fstypename=yes
29883 echo "$as_me: failed program was:" >&5
29884 sed 's/^/| /' conftest.$ac_ext >&5
29886 ac_cv_member_struct_fsstat_f_fstypename=no
29889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
29895 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6; }
29896 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
29898 cat >>confdefs.h <<_ACEOF
29899 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
29906 # Determine how to get the list of mounted file systems.
29907 ac_list_mounted_fs=
29909 # If the getmntent function is available but not in the standard library,
29910 # make sure LIBS contains the appropriate -l option.
29911 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29912 # -lseq on Dynix/PTX, -lgen on Unixware.
29913 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29914 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29915 if test "${ac_cv_search_getmntent+set}" = set; then
29916 echo $ECHO_N "(cached) $ECHO_C" >&6
29918 ac_func_search_save_LIBS=$LIBS
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29926 /* Override any GCC internal prototype to avoid an error.
29927 Use char because int might match the return type of a GCC
29928 builtin and then its argument prototype would still apply. */
29936 return getmntent ();
29941 for ac_lib in '' sun seq gen; do
29942 if test -z "$ac_lib"; then
29943 ac_res="none required"
29946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29948 rm -f conftest.$ac_objext conftest$ac_exeext
29949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29950 (eval $ac_link) 2>conftest.er1
29952 grep -v '^ *+' conftest.er1 >conftest.err
29954 cat conftest.err >&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); } &&
29957 { ac_try='test -z "$ac_c_werror_flag"
29958 || test ! -s conftest.err'
29959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960 (eval $ac_try) 2>&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; } &&
29964 { ac_try='test -s conftest$ac_exeext'
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; }; then
29970 ac_cv_search_getmntent=$ac_res
29972 echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29978 rm -f conftest.err conftest.$ac_objext \
29980 if test "${ac_cv_search_getmntent+set}" = set; then
29984 if test "${ac_cv_search_getmntent+set}" = set; then
29987 ac_cv_search_getmntent=no
29989 rm conftest.$ac_ext
29990 LIBS=$ac_func_search_save_LIBS
29992 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29993 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29994 ac_res=$ac_cv_search_getmntent
29995 if test "$ac_res" != no; then
29996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30001 for ac_func in getmntent
30003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30007 echo $ECHO_N "(cached) $ECHO_C" >&6
30009 cat >conftest.$ac_ext <<_ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h. */
30015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30017 #define $ac_func innocuous_$ac_func
30019 /* System header to define __stub macros and hopefully few prototypes,
30020 which can conflict with char $ac_func (); below.
30021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30022 <limits.h> exists even on freestanding compilers. */
30025 # include <limits.h>
30027 # include <assert.h>
30032 /* Override any GCC internal prototype to avoid an error.
30033 Use char because int might match the return type of a GCC
30034 builtin and then its argument prototype would still apply. */
30039 /* The GNU C library defines this for functions which it implements
30040 to always fail with ENOSYS. Some functions are actually named
30041 something starting with __ and the normal name is an alias. */
30042 #if defined __stub_$ac_func || defined __stub___$ac_func
30049 return $ac_func ();
30054 rm -f conftest.$ac_objext conftest$ac_exeext
30055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30056 (eval $ac_link) 2>conftest.er1
30058 grep -v '^ *+' conftest.er1 >conftest.err
30060 cat conftest.err >&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); } &&
30063 { ac_try='test -z "$ac_c_werror_flag"
30064 || test ! -s conftest.err'
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
30070 { ac_try='test -s conftest$ac_exeext'
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 eval "$as_ac_var=yes"
30078 echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30081 eval "$as_ac_var=no"
30084 rm -f conftest.err conftest.$ac_objext \
30085 conftest$ac_exeext conftest.$ac_ext
30087 ac_res=`eval echo '${'$as_ac_var'}'`
30088 { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30090 if test `eval echo '${'$as_ac_var'}'` = yes; then
30091 cat >>confdefs.h <<_ACEOF
30092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30100 # This test must precede the ones for getmntent because Unicos-9 is
30101 # reported to have the getmntent function, but its support is incompatible
30102 # with other getmntent implementations.
30104 # NOTE: Normally, I wouldn't use a check for system type as I've done for
30105 # `CRAY' below since that goes against the whole autoconf philosophy. But
30106 # I think there is too great a chance that some non-Cray system has a
30107 # function named listmntent to risk the false positive.
30109 if test -z "$ac_list_mounted_fs"; then
30111 { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
30112 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
30113 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 fu_cv_sys_mounted_cray_listmntent=no
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30129 $EGREP "yes" >/dev/null 2>&1; then
30130 test $ac_cv_func_listmntent = yes \
30131 && fu_cv_sys_mounted_cray_listmntent=yes
30140 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
30141 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
30142 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
30143 ac_list_mounted_fs=found
30145 cat >>confdefs.h <<\_ACEOF
30146 #define MOUNTED_LISTMNTENT 1
30152 if test -z "$ac_list_mounted_fs"; then
30154 { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
30155 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
30156 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30165 #include <fshelp.h>
30167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30170 grep -v '^ *+' conftest.er1 >conftest.err
30172 cat conftest.err >&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } >/dev/null; then
30175 if test -s conftest.err; then
30176 ac_cpp_err=$ac_c_preproc_warn_flag
30177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30184 if test -z "$ac_cpp_err"; then
30185 fu_cv_sys_mounted_vmount=yes
30187 echo "$as_me: failed program was:" >&5
30188 sed 's/^/| /' conftest.$ac_ext >&5
30190 fu_cv_sys_mounted_vmount=no
30193 rm -f conftest.err conftest.$ac_ext
30196 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
30197 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
30198 if test $fu_cv_sys_mounted_vmount = yes; then
30199 ac_list_mounted_fs=found
30201 cat >>confdefs.h <<\_ACEOF
30202 #define MOUNTED_VMOUNT 1
30208 if test $ac_cv_func_getmntent = yes; then
30210 # This system has the getmntent function.
30211 # Determine whether it's the one-argument variant or the two-argument one.
30213 if test -z "$ac_list_mounted_fs"; then
30214 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
30215 { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
30216 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
30217 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30220 cat >conftest.$ac_ext <<_ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h. */
30227 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
30230 #include <mntent.h>
30231 #if !defined MOUNTED
30232 # if defined _PATH_MOUNTED /* GNU libc */
30233 # define MOUNTED _PATH_MOUNTED
30235 # if defined MNT_MNTTAB /* HP-UX. */
30236 # define MOUNTED MNT_MNTTAB
30238 # if defined MNTTABNAME /* Dynix. */
30239 # define MOUNTED MNTTABNAME
30246 struct mntent *mnt = 0; char *table = MOUNTED;
30251 rm -f conftest.$ac_objext
30252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30253 (eval $ac_compile) 2>conftest.er1
30255 grep -v '^ *+' conftest.er1 >conftest.err
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } &&
30260 { ac_try='test -z "$ac_c_werror_flag"
30261 || test ! -s conftest.err'
30262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30263 (eval $ac_try) 2>&5
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); }; } &&
30267 { ac_try='test -s conftest.$ac_objext'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; }; then
30273 fu_cv_sys_mounted_getmntent1=yes
30275 echo "$as_me: failed program was:" >&5
30276 sed 's/^/| /' conftest.$ac_ext >&5
30278 fu_cv_sys_mounted_getmntent1=no
30281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30284 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
30285 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
30286 if test $fu_cv_sys_mounted_getmntent1 = yes; then
30287 ac_list_mounted_fs=found
30289 cat >>confdefs.h <<\_ACEOF
30290 #define MOUNTED_GETMNTENT1 1
30296 if test -z "$ac_list_mounted_fs"; then
30298 { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
30299 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
30300 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 #include <sys/mnttab.h>
30312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30313 $EGREP "getmntent" >/dev/null 2>&1; then
30314 fu_cv_sys_mounted_getmntent2=yes
30316 fu_cv_sys_mounted_getmntent2=no
30322 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
30323 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
30324 if test $fu_cv_sys_mounted_getmntent2 = yes; then
30325 ac_list_mounted_fs=found
30327 cat >>confdefs.h <<\_ACEOF
30328 #define MOUNTED_GETMNTENT2 1
30336 if test -z "$ac_list_mounted_fs"; then
30337 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
30338 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
30340 { echo "$as_me:$LINENO: checking for getfsstat function" >&5
30341 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
30342 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30352 #include <sys/types.h>
30353 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
30354 # define FS_TYPE(Ent) ((Ent).f_fstypename)
30356 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
30358 $getfsstat_includes
30363 struct statfs *stats;
30364 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
30365 char *t = FS_TYPE (*stats);
30370 rm -f conftest.$ac_objext conftest$ac_exeext
30371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30372 (eval $ac_link) 2>conftest.er1
30374 grep -v '^ *+' conftest.er1 >conftest.err
30376 cat conftest.err >&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
30379 { ac_try='test -z "$ac_c_werror_flag"
30380 || test ! -s conftest.err'
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest$ac_exeext'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; }; then
30392 fu_cv_sys_mounted_getfsstat=yes
30394 echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30397 fu_cv_sys_mounted_getfsstat=no
30400 rm -f conftest.err conftest.$ac_objext \
30401 conftest$ac_exeext conftest.$ac_ext
30404 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
30405 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6; }
30406 if test $fu_cv_sys_mounted_getfsstat = yes; then
30407 ac_list_mounted_fs=found
30409 cat >>confdefs.h <<\_ACEOF
30410 #define MOUNTED_GETFSSTAT 1
30416 if test -z "$ac_list_mounted_fs"; then
30418 { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
30419 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
30420 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 cat >conftest.$ac_ext <<_ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h. */
30430 #include <sys/statfs.h>
30431 #include <sys/fstyp.h>
30432 #include <mnttab.h>
30434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30437 grep -v '^ *+' conftest.er1 >conftest.err
30439 cat conftest.err >&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } >/dev/null; then
30442 if test -s conftest.err; then
30443 ac_cpp_err=$ac_c_preproc_warn_flag
30444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30451 if test -z "$ac_cpp_err"; then
30452 fu_cv_sys_mounted_fread_fstyp=yes
30454 echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30457 fu_cv_sys_mounted_fread_fstyp=no
30460 rm -f conftest.err conftest.$ac_ext
30463 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
30464 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
30465 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
30466 ac_list_mounted_fs=found
30468 cat >>confdefs.h <<\_ACEOF
30469 #define MOUNTED_FREAD_FSTYP 1
30475 if test -z "$ac_list_mounted_fs"; then
30476 # 4.4BSD and DEC OSF/1.
30477 { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
30478 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
30479 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30483 test "$ac_cv_func_getmntinfo" = yes \
30484 && fu_cv_sys_mounted_getmntinfo=yes \
30485 || fu_cv_sys_mounted_getmntinfo=no
30489 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
30490 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
30491 if test $fu_cv_sys_mounted_getmntinfo = yes; then
30492 ac_list_mounted_fs=found
30494 cat >>confdefs.h <<\_ACEOF
30495 #define MOUNTED_GETMNTINFO 1
30501 if test -z "$ac_list_mounted_fs"; then
30503 { echo "$as_me:$LINENO: checking for getmnt function" >&5
30504 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
30505 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30508 cat >conftest.$ac_ext <<_ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h. */
30515 #include <sys/fs_types.h>
30516 #include <sys/mount.h>
30518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30521 grep -v '^ *+' conftest.er1 >conftest.err
30523 cat conftest.err >&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } >/dev/null; then
30526 if test -s conftest.err; then
30527 ac_cpp_err=$ac_c_preproc_warn_flag
30528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30535 if test -z "$ac_cpp_err"; then
30536 fu_cv_sys_mounted_getmnt=yes
30538 echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30541 fu_cv_sys_mounted_getmnt=no
30544 rm -f conftest.err conftest.$ac_ext
30547 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
30548 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
30549 if test $fu_cv_sys_mounted_getmnt = yes; then
30550 ac_list_mounted_fs=found
30552 cat >>confdefs.h <<\_ACEOF
30553 #define MOUNTED_GETMNT 1
30559 if test -z "$ac_list_mounted_fs"; then
30563 for ac_func in next_dev fs_stat_dev
30565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30579 #define $ac_func innocuous_$ac_func
30581 /* System header to define __stub macros and hopefully few prototypes,
30582 which can conflict with char $ac_func (); below.
30583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30584 <limits.h> exists even on freestanding compilers. */
30587 # include <limits.h>
30589 # include <assert.h>
30594 /* Override any GCC internal prototype to avoid an error.
30595 Use char because int might match the return type of a GCC
30596 builtin and then its argument prototype would still apply. */
30601 /* The GNU C library defines this for functions which it implements
30602 to always fail with ENOSYS. Some functions are actually named
30603 something starting with __ and the normal name is an alias. */
30604 #if defined __stub_$ac_func || defined __stub___$ac_func
30611 return $ac_func ();
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30618 (eval $ac_link) 2>conftest.er1
30620 grep -v '^ *+' conftest.er1 >conftest.err
30622 cat conftest.err >&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
30625 { ac_try='test -z "$ac_c_werror_flag"
30626 || test ! -s conftest.err'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest$ac_exeext'
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; }; then
30638 eval "$as_ac_var=yes"
30640 echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30643 eval "$as_ac_var=no"
30646 rm -f conftest.err conftest.$ac_objext \
30647 conftest$ac_exeext conftest.$ac_ext
30649 ac_res=`eval echo '${'$as_ac_var'}'`
30650 { echo "$as_me:$LINENO: result: $ac_res" >&5
30651 echo "${ECHO_T}$ac_res" >&6; }
30652 if test `eval echo '${'$as_ac_var'}'` = yes; then
30653 cat >>confdefs.h <<_ACEOF
30654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30661 for ac_header in fs_info.h
30663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668 echo $ECHO_N "(cached) $ECHO_C" >&6
30670 ac_res=`eval echo '${'$as_ac_Header'}'`
30671 { echo "$as_me:$LINENO: result: $ac_res" >&5
30672 echo "${ECHO_T}$ac_res" >&6; }
30674 # Is the header compilable?
30675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30677 cat >conftest.$ac_ext <<_ACEOF
30680 cat confdefs.h >>conftest.$ac_ext
30681 cat >>conftest.$ac_ext <<_ACEOF
30682 /* end confdefs.h. */
30683 $ac_includes_default
30684 #include <$ac_header>
30686 rm -f conftest.$ac_objext
30687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30688 (eval $ac_compile) 2>conftest.er1
30690 grep -v '^ *+' conftest.er1 >conftest.err
30692 cat conftest.err >&5
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); } &&
30695 { ac_try='test -z "$ac_c_werror_flag"
30696 || test ! -s conftest.err'
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; } &&
30702 { ac_try='test -s conftest.$ac_objext'
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; }; then
30708 ac_header_compiler=yes
30710 echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30713 ac_header_compiler=no
30716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30718 echo "${ECHO_T}$ac_header_compiler" >&6; }
30720 # Is the header present?
30721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30723 cat >conftest.$ac_ext <<_ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h. */
30729 #include <$ac_header>
30731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30734 grep -v '^ *+' conftest.er1 >conftest.err
30736 cat conftest.err >&5
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); } >/dev/null; then
30739 if test -s conftest.err; then
30740 ac_cpp_err=$ac_c_preproc_warn_flag
30741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30748 if test -z "$ac_cpp_err"; then
30749 ac_header_preproc=yes
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30754 ac_header_preproc=no
30757 rm -f conftest.err conftest.$ac_ext
30758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30759 echo "${ECHO_T}$ac_header_preproc" >&6; }
30761 # So? What about this header?
30762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30768 ac_header_preproc=yes
30771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30784 ## ------------------------------------ ##
30785 ## Report this to bug-coreutils@gnu.org ##
30786 ## ------------------------------------ ##
30788 ) | sed "s/^/$as_me: WARNING: /" >&2
30791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 eval "$as_ac_Header=\$ac_header_preproc"
30798 ac_res=`eval echo '${'$as_ac_Header'}'`
30799 { echo "$as_me:$LINENO: result: $ac_res" >&5
30800 echo "${ECHO_T}$ac_res" >&6; }
30803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30804 cat >>confdefs.h <<_ACEOF
30805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30812 { echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
30813 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6; }
30814 if test $ac_cv_header_fs_info_h = yes \
30815 && test $ac_cv_func_next_dev = yes \
30816 && test $ac_cv_func_fs_stat_dev = yes; then
30821 { echo "$as_me:$LINENO: result: $fu_result" >&5
30822 echo "${ECHO_T}$fu_result" >&6; }
30823 if test $fu_result = yes; then
30824 ac_list_mounted_fs=found
30826 cat >>confdefs.h <<\_ACEOF
30827 #define MOUNTED_FS_STAT_DEV 1
30833 if test -z "$ac_list_mounted_fs"; then
30835 { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
30836 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
30837 if test "${fu_cv_sys_mounted_fread+set}" = set; then
30838 echo $ECHO_N "(cached) $ECHO_C" >&6
30840 cat >conftest.$ac_ext <<_ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h. */
30846 #include <mnttab.h>
30848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30851 grep -v '^ *+' conftest.er1 >conftest.err
30853 cat conftest.err >&5
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } >/dev/null; then
30856 if test -s conftest.err; then
30857 ac_cpp_err=$ac_c_preproc_warn_flag
30858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30865 if test -z "$ac_cpp_err"; then
30866 fu_cv_sys_mounted_fread=yes
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30871 fu_cv_sys_mounted_fread=no
30874 rm -f conftest.err conftest.$ac_ext
30877 { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
30878 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
30879 if test $fu_cv_sys_mounted_fread = yes; then
30880 ac_list_mounted_fs=found
30882 cat >>confdefs.h <<\_ACEOF
30883 #define MOUNTED_FREAD 1
30889 if test -z "$ac_list_mounted_fs"; then
30890 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
30891 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
30892 { (exit 1); exit 1; }; }
30893 # FIXME -- no need to abort building the whole package
30894 # Can't build mountlist.c or anything that needs its functions
30897 if test $ac_list_mounted_fs = found; then
30898 gl_cv_list_mounted_fs=yes
30900 gl_cv_list_mounted_fs=no
30905 if test $gl_cv_list_mounted_fs = yes; then
30906 case " $LIBOBJS " in
30907 *" mountlist.$ac_objext "* ) ;;
30908 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
30914 for ac_header in sys/mntent.h
30916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921 echo $ECHO_N "(cached) $ECHO_C" >&6
30923 ac_res=`eval echo '${'$as_ac_Header'}'`
30924 { echo "$as_me:$LINENO: result: $ac_res" >&5
30925 echo "${ECHO_T}$ac_res" >&6; }
30927 # Is the header compilable?
30928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 $ac_includes_default
30937 #include <$ac_header>
30939 rm -f conftest.$ac_objext
30940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30941 (eval $ac_compile) 2>conftest.er1
30943 grep -v '^ *+' conftest.er1 >conftest.err
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
30948 { ac_try='test -z "$ac_c_werror_flag"
30949 || test ! -s conftest.err'
30950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30951 (eval $ac_try) 2>&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; } &&
30955 { ac_try='test -s conftest.$ac_objext'
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961 ac_header_compiler=yes
30963 echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30966 ac_header_compiler=no
30969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30971 echo "${ECHO_T}$ac_header_compiler" >&6; }
30973 # Is the header present?
30974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30975 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
30984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30987 grep -v '^ *+' conftest.er1 >conftest.err
30989 cat conftest.err >&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } >/dev/null; then
30992 if test -s conftest.err; then
30993 ac_cpp_err=$ac_c_preproc_warn_flag
30994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31001 if test -z "$ac_cpp_err"; then
31002 ac_header_preproc=yes
31004 echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31007 ac_header_preproc=no
31010 rm -f conftest.err conftest.$ac_ext
31011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31012 echo "${ECHO_T}$ac_header_preproc" >&6; }
31014 # So? What about this header?
31015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31021 ac_header_preproc=yes
31024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31037 ## ------------------------------------ ##
31038 ## Report this to bug-coreutils@gnu.org ##
31039 ## ------------------------------------ ##
31041 ) | sed "s/^/$as_me: WARNING: /" >&2
31044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31047 echo $ECHO_N "(cached) $ECHO_C" >&6
31049 eval "$as_ac_Header=\$ac_header_preproc"
31051 ac_res=`eval echo '${'$as_ac_Header'}'`
31052 { echo "$as_me:$LINENO: result: $ac_res" >&5
31053 echo "${ECHO_T}$ac_res" >&6; }
31056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31057 cat >>confdefs.h <<_ACEOF
31058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31066 { echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
31067 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6; }
31068 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
31072 cat >conftest.$ac_ext <<_ACEOF
31075 cat confdefs.h >>conftest.$ac_ext
31076 cat >>conftest.$ac_ext <<_ACEOF
31077 /* end confdefs.h. */
31079 #include <sys/param.h>
31080 #include <sys/types.h>
31081 #include <sys/mount.h>
31086 struct statfs s; int i = sizeof s.f_fstypename;
31091 rm -f conftest.$ac_objext
31092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31093 (eval $ac_compile) 2>conftest.er1
31095 grep -v '^ *+' conftest.er1 >conftest.err
31097 cat conftest.err >&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
31100 { ac_try='test -z "$ac_c_werror_flag"
31101 || test ! -s conftest.err'
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; } &&
31107 { ac_try='test -s conftest.$ac_objext'
31108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109 (eval $ac_try) 2>&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); }; }; then
31113 fu_cv_sys_f_fstypename_in_statfs=yes
31115 echo "$as_me: failed program was:" >&5
31116 sed 's/^/| /' conftest.$ac_ext >&5
31118 fu_cv_sys_f_fstypename_in_statfs=no
31122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31126 { echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
31127 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6; }
31129 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
31131 cat >>confdefs.h <<\_ACEOF
31132 #define HAVE_F_FSTYPENAME_IN_STATFS 1
31142 { echo "$as_me:$LINENO: checking for obstacks" >&5
31143 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
31144 if test "${ac_cv_func_obstack+set}" = set; then
31145 echo $ECHO_N "(cached) $ECHO_C" >&6
31147 cat >conftest.$ac_ext <<_ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h. */
31153 #include "obstack.h"
31157 struct obstack *mem; obstack_free(mem,(char *) 0)
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164 (eval $ac_link) 2>conftest.er1
31166 grep -v '^ *+' conftest.er1 >conftest.err
31168 cat conftest.err >&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } &&
31171 { ac_try='test -z "$ac_c_werror_flag"
31172 || test ! -s conftest.err'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; } &&
31178 { ac_try='test -s conftest$ac_exeext'
31179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180 (eval $ac_try) 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 ac_cv_func_obstack=yes
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31189 ac_cv_func_obstack=no
31192 rm -f conftest.err conftest.$ac_objext \
31193 conftest$ac_exeext conftest.$ac_ext
31195 { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
31196 echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
31197 if test $ac_cv_func_obstack = yes; then
31199 cat >>confdefs.h <<\_ACEOF
31200 #define HAVE_OBSTACK 1
31204 case " $LIBOBJS " in
31205 *" obstack.$ac_objext "* ) ;;
31206 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
31212 if test $ac_cv_func_obstack = no; then
31232 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
31233 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
31234 if test "${gl_cv_var__system_configuration+set}" = set; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31237 cat >conftest.$ac_ext <<_ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 #include <sys/systemcfg.h>
31248 double x = _system_configuration.physmem;
31253 rm -f conftest.$ac_objext conftest$ac_exeext
31254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31255 (eval $ac_link) 2>conftest.er1
31257 grep -v '^ *+' conftest.er1 >conftest.err
31259 cat conftest.err >&5
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); } &&
31262 { ac_try='test -z "$ac_c_werror_flag"
31263 || test ! -s conftest.err'
31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265 (eval $ac_try) 2>&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; } &&
31269 { ac_try='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 gl_cv_var__system_configuration=yes
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31280 gl_cv_var__system_configuration=no
31283 rm -f conftest.err conftest.$ac_objext \
31284 conftest$ac_exeext conftest.$ac_ext
31286 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
31287 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
31289 if test $gl_cv_var__system_configuration = yes; then
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE__SYSTEM_CONFIGURATION 1
31300 case " $LIBOBJS " in
31301 *" physmem.$ac_objext "* ) ;;
31302 *) LIBOBJS="$LIBOBJS physmem.$ac_objext"
31307 # Prerequisites of lib/physmem.c.
31316 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
31317 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
31320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332 $ac_includes_default
31334 #include <$ac_header>
31336 rm -f conftest.$ac_objext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31338 (eval $ac_compile) 2>conftest.er1
31340 grep -v '^ *+' conftest.er1 >conftest.err
31342 cat conftest.err >&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); } &&
31345 { ac_try='test -z "$ac_c_werror_flag"
31346 || test ! -s conftest.err'
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; } &&
31352 { ac_try='test -s conftest.$ac_objext'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
31358 eval "$as_ac_Header=yes"
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 eval "$as_ac_Header=no"
31366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31368 ac_res=`eval echo '${'$as_ac_Header'}'`
31369 { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31372 cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31387 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
31389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31393 echo $ECHO_N "(cached) $ECHO_C" >&6
31395 cat >conftest.$ac_ext <<_ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h. */
31401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31403 #define $ac_func innocuous_$ac_func
31405 /* System header to define __stub macros and hopefully few prototypes,
31406 which can conflict with char $ac_func (); below.
31407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31408 <limits.h> exists even on freestanding compilers. */
31411 # include <limits.h>
31413 # include <assert.h>
31418 /* Override any GCC internal prototype to avoid an error.
31419 Use char because int might match the return type of a GCC
31420 builtin and then its argument prototype would still apply. */
31425 /* The GNU C library defines this for functions which it implements
31426 to always fail with ENOSYS. Some functions are actually named
31427 something starting with __ and the normal name is an alias. */
31428 #if defined __stub_$ac_func || defined __stub___$ac_func
31435 return $ac_func ();
31440 rm -f conftest.$ac_objext conftest$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442 (eval $ac_link) 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag"
31450 || test ! -s conftest.err'
31451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452 (eval $ac_try) 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; } &&
31456 { ac_try='test -s conftest$ac_exeext'
31457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458 (eval $ac_try) 2>&5
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31462 eval "$as_ac_var=yes"
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467 eval "$as_ac_var=no"
31470 rm -f conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
31473 ac_res=`eval echo '${'$as_ac_var'}'`
31474 { echo "$as_me:$LINENO: result: $ac_res" >&5
31475 echo "${ECHO_T}$ac_res" >&6; }
31476 if test `eval echo '${'$as_ac_var'}'` = yes; then
31477 cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31488 case " $LIBOBJS " in
31489 *" posixtm.$ac_objext "* ) ;;
31490 *) LIBOBJS="$LIBOBJS posixtm.$ac_objext"
31495 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31496 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31497 if test "${ac_cv_struct_tm+set}" = set; then
31498 echo $ECHO_N "(cached) $ECHO_C" >&6
31500 cat >conftest.$ac_ext <<_ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h. */
31506 #include <sys/types.h>
31512 struct tm *tp; tp->tm_sec;
31517 rm -f conftest.$ac_objext
31518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31519 (eval $ac_compile) 2>conftest.er1
31521 grep -v '^ *+' conftest.er1 >conftest.err
31523 cat conftest.err >&5
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); } &&
31526 { ac_try='test -z "$ac_c_werror_flag"
31527 || test ! -s conftest.err'
31528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31529 (eval $ac_try) 2>&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); }; } &&
31533 { ac_try='test -s conftest.$ac_objext'
31534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31535 (eval $ac_try) 2>&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; }; then
31539 ac_cv_struct_tm=time.h
31541 echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31544 ac_cv_struct_tm=sys/time.h
31547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31549 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31550 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31551 if test $ac_cv_struct_tm = sys/time.h; then
31553 cat >>confdefs.h <<\_ACEOF
31554 #define TM_IN_SYS_TIME 1
31562 case " $LIBOBJS " in
31563 *" posixver.$ac_objext "* ) ;;
31564 *) LIBOBJS="$LIBOBJS posixver.$ac_objext"
31573 case " $LIBOBJS " in
31574 *" quotearg.$ac_objext "* ) ;;
31575 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext"
31600 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
31601 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
31602 if test "${ac_cv_type_mbstate_t+set}" = set; then
31603 echo $ECHO_N "(cached) $ECHO_C" >&6
31605 cat >conftest.$ac_ext <<_ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h. */
31611 $ac_includes_default
31612 # include <wchar.h>
31616 mbstate_t x; return sizeof x;
31621 rm -f conftest.$ac_objext
31622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31623 (eval $ac_compile) 2>conftest.er1
31625 grep -v '^ *+' conftest.er1 >conftest.err
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } &&
31630 { ac_try='test -z "$ac_c_werror_flag"
31631 || test ! -s conftest.err'
31632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633 (eval $ac_try) 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; } &&
31637 { ac_try='test -s conftest.$ac_objext'
31638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639 (eval $ac_try) 2>&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; }; then
31643 ac_cv_type_mbstate_t=yes
31645 echo "$as_me: failed program was:" >&5
31646 sed 's/^/| /' conftest.$ac_ext >&5
31648 ac_cv_type_mbstate_t=no
31651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31653 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31654 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
31655 if test $ac_cv_type_mbstate_t = yes; then
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_MBSTATE_T 1
31663 cat >>confdefs.h <<\_ACEOF
31664 #define mbstate_t int
31669 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
31670 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
31671 if test "${gl_cv_func_mbrtowc+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 cat >conftest.$ac_ext <<_ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h. */
31685 char const s[] = "";
31688 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
31693 rm -f conftest.$ac_objext conftest$ac_exeext
31694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31695 (eval $ac_link) 2>conftest.er1
31697 grep -v '^ *+' conftest.er1 >conftest.err
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } &&
31702 { ac_try='test -z "$ac_c_werror_flag"
31703 || test ! -s conftest.err'
31704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705 (eval $ac_try) 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest$ac_exeext'
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 gl_cv_func_mbrtowc=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 gl_cv_func_mbrtowc=no
31723 rm -f conftest.err conftest.$ac_objext \
31724 conftest$ac_exeext conftest.$ac_ext
31726 { echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
31727 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
31728 if test $gl_cv_func_mbrtowc = yes; then
31730 cat >>confdefs.h <<\_ACEOF
31731 #define HAVE_MBRTOWC 1
31739 case " $LIBOBJS " in
31740 *" quote.$ac_objext "* ) ;;
31741 *) LIBOBJS="$LIBOBJS quote.$ac_objext"
31749 case " $LIBOBJS " in
31750 *" readtokens.$ac_objext "* ) ;;
31751 *) LIBOBJS="$LIBOBJS readtokens.$ac_objext"
31759 { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
31760 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; }
31761 if test "${gl_cv_func_free+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31764 cat >conftest.$ac_ext <<_ACEOF
31767 cat confdefs.h >>conftest.$ac_ext
31768 cat >>conftest.$ac_ext <<_ACEOF
31769 /* end confdefs.h. */
31770 #include <unistd.h>
31774 #if _POSIX_VERSION < 199009L && \
31775 (defined unix || defined _unix || defined _unix_ \
31776 || defined __unix || defined __unix__)
31777 #error "'free (NULL)' is not known to work"
31783 rm -f conftest.$ac_objext
31784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31785 (eval $ac_compile) 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag"
31793 || test ! -s conftest.err'
31794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795 (eval $ac_try) 2>&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; } &&
31799 { ac_try='test -s conftest.$ac_objext'
31800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801 (eval $ac_try) 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 gl_cv_func_free=yes
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31815 { echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
31816 echo "${ECHO_T}$gl_cv_func_free" >&6; }
31818 if test $gl_cv_func_free = no; then
31819 case " $LIBOBJS " in
31820 *" free.$ac_objext "* ) ;;
31821 *) LIBOBJS="$LIBOBJS free.$ac_objext"
31826 cat >>confdefs.h <<\_ACEOF
31827 #define free rpl_free
31852 case " $LIBOBJS " in
31853 *" readutmp.$ac_objext "* ) ;;
31854 *) LIBOBJS="$LIBOBJS readutmp.$ac_objext"
31881 { echo "$as_me:$LINENO: checking whether getutent is declared" >&5
31882 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6; }
31883 if test "${ac_cv_have_decl_getutent+set}" = set; then
31884 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 cat >conftest.$ac_ext <<_ACEOF
31889 cat confdefs.h >>conftest.$ac_ext
31890 cat >>conftest.$ac_ext <<_ACEOF
31891 /* end confdefs.h. */
31902 char *p = (char *) getutent;
31910 rm -f conftest.$ac_objext
31911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31912 (eval $ac_compile) 2>conftest.er1
31914 grep -v '^ *+' conftest.er1 >conftest.err
31916 cat conftest.err >&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); } &&
31919 { ac_try='test -z "$ac_c_werror_flag"
31920 || test ! -s conftest.err'
31921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922 (eval $ac_try) 2>&5
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; } &&
31926 { ac_try='test -s conftest.$ac_objext'
31927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928 (eval $ac_try) 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; }; then
31932 ac_cv_have_decl_getutent=yes
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_cv_have_decl_getutent=no
31940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31942 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
31943 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6; }
31944 if test $ac_cv_have_decl_getutent = yes; then
31946 cat >>confdefs.h <<_ACEOF
31947 #define HAVE_DECL_GETUTENT 1
31952 cat >>confdefs.h <<_ACEOF
31953 #define HAVE_DECL_GETUTENT 0
31960 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
31962 $ac_includes_default
31963 #ifdef HAVE_UTMPX_H
31964 # include <utmpx.h>
31970 { echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
31971 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6; }
31972 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31986 static struct utmpx ac_aggr;
31987 if (ac_aggr.ut_user)
31993 rm -f conftest.$ac_objext
31994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31995 (eval $ac_compile) 2>conftest.er1
31997 grep -v '^ *+' conftest.er1 >conftest.err
31999 cat conftest.err >&5
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); } &&
32002 { ac_try='test -z "$ac_c_werror_flag"
32003 || test ! -s conftest.err'
32004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32005 (eval $ac_try) 2>&5
32007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008 (exit $ac_status); }; } &&
32009 { ac_try='test -s conftest.$ac_objext'
32010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32011 (eval $ac_try) 2>&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; }; then
32015 ac_cv_member_struct_utmpx_ut_user=yes
32017 echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32020 cat >conftest.$ac_ext <<_ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h. */
32031 static struct utmpx ac_aggr;
32032 if (sizeof ac_aggr.ut_user)
32038 rm -f conftest.$ac_objext
32039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32040 (eval $ac_compile) 2>conftest.er1
32042 grep -v '^ *+' conftest.er1 >conftest.err
32044 cat conftest.err >&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } &&
32047 { ac_try='test -z "$ac_c_werror_flag"
32048 || test ! -s conftest.err'
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest.$ac_objext'
32055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056 (eval $ac_try) 2>&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; }; then
32060 ac_cv_member_struct_utmpx_ut_user=yes
32062 echo "$as_me: failed program was:" >&5
32063 sed 's/^/| /' conftest.$ac_ext >&5
32065 ac_cv_member_struct_utmpx_ut_user=no
32068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32073 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
32074 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6; }
32075 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
32077 cat >>confdefs.h <<_ACEOF
32078 #define HAVE_STRUCT_UTMPX_UT_USER 1
32084 { echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
32085 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
32086 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
32087 echo $ECHO_N "(cached) $ECHO_C" >&6
32089 cat >conftest.$ac_ext <<_ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32100 static struct utmp ac_aggr;
32101 if (ac_aggr.ut_user)
32107 rm -f conftest.$ac_objext
32108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32109 (eval $ac_compile) 2>conftest.er1
32111 grep -v '^ *+' conftest.er1 >conftest.err
32113 cat conftest.err >&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
32116 { ac_try='test -z "$ac_c_werror_flag"
32117 || test ! -s conftest.err'
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest.$ac_objext'
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 ac_cv_member_struct_utmp_ut_user=yes
32131 echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32134 cat >conftest.$ac_ext <<_ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32145 static struct utmp ac_aggr;
32146 if (sizeof ac_aggr.ut_user)
32152 rm -f conftest.$ac_objext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32154 (eval $ac_compile) 2>conftest.er1
32156 grep -v '^ *+' conftest.er1 >conftest.err
32158 cat conftest.err >&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_c_werror_flag"
32162 || test ! -s conftest.err'
32163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 (eval $ac_try) 2>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; } &&
32168 { ac_try='test -s conftest.$ac_objext'
32169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32170 (eval $ac_try) 2>&5
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); }; }; then
32174 ac_cv_member_struct_utmp_ut_user=yes
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 ac_cv_member_struct_utmp_ut_user=no
32182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32187 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
32188 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
32189 if test $ac_cv_member_struct_utmp_ut_user = yes; then
32191 cat >>confdefs.h <<_ACEOF
32192 #define HAVE_STRUCT_UTMP_UT_USER 1
32198 { echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
32199 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6; }
32200 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32214 static struct utmpx ac_aggr;
32215 if (ac_aggr.ut_name)
32221 rm -f conftest.$ac_objext
32222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32223 (eval $ac_compile) 2>conftest.er1
32225 grep -v '^ *+' conftest.er1 >conftest.err
32227 cat conftest.err >&5
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); } &&
32230 { ac_try='test -z "$ac_c_werror_flag"
32231 || test ! -s conftest.err'
32232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233 (eval $ac_try) 2>&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; } &&
32237 { ac_try='test -s conftest.$ac_objext'
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 ac_cv_member_struct_utmpx_ut_name=yes
32245 echo "$as_me: failed program was:" >&5
32246 sed 's/^/| /' conftest.$ac_ext >&5
32248 cat >conftest.$ac_ext <<_ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h. */
32259 static struct utmpx ac_aggr;
32260 if (sizeof ac_aggr.ut_name)
32266 rm -f conftest.$ac_objext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32268 (eval $ac_compile) 2>conftest.er1
32270 grep -v '^ *+' conftest.er1 >conftest.err
32272 cat conftest.err >&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
32275 { ac_try='test -z "$ac_c_werror_flag"
32276 || test ! -s conftest.err'
32277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278 (eval $ac_try) 2>&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest.$ac_objext'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_member_struct_utmpx_ut_name=yes
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_cv_member_struct_utmpx_ut_name=no
32296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32301 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
32302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6; }
32303 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
32305 cat >>confdefs.h <<_ACEOF
32306 #define HAVE_STRUCT_UTMPX_UT_NAME 1
32312 { echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
32313 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6; }
32314 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
32315 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32328 static struct utmp ac_aggr;
32329 if (ac_aggr.ut_name)
32335 rm -f conftest.$ac_objext
32336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32337 (eval $ac_compile) 2>conftest.er1
32339 grep -v '^ *+' conftest.er1 >conftest.err
32341 cat conftest.err >&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_c_werror_flag"
32345 || test ! -s conftest.err'
32346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32347 (eval $ac_try) 2>&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); }; } &&
32351 { ac_try='test -s conftest.$ac_objext'
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; }; then
32357 ac_cv_member_struct_utmp_ut_name=yes
32359 echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32362 cat >conftest.$ac_ext <<_ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h. */
32373 static struct utmp ac_aggr;
32374 if (sizeof ac_aggr.ut_name)
32380 rm -f conftest.$ac_objext
32381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32382 (eval $ac_compile) 2>conftest.er1
32384 grep -v '^ *+' conftest.er1 >conftest.err
32386 cat conftest.err >&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } &&
32389 { ac_try='test -z "$ac_c_werror_flag"
32390 || test ! -s conftest.err'
32391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392 (eval $ac_try) 2>&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); }; } &&
32396 { ac_try='test -s conftest.$ac_objext'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32402 ac_cv_member_struct_utmp_ut_name=yes
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32407 ac_cv_member_struct_utmp_ut_name=no
32410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32415 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
32416 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6; }
32417 if test $ac_cv_member_struct_utmp_ut_name = yes; then
32419 cat >>confdefs.h <<_ACEOF
32420 #define HAVE_STRUCT_UTMP_UT_NAME 1
32426 { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
32427 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
32428 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 cat >conftest.$ac_ext <<_ACEOF
32434 cat confdefs.h >>conftest.$ac_ext
32435 cat >>conftest.$ac_ext <<_ACEOF
32436 /* end confdefs.h. */
32442 static struct utmpx ac_aggr;
32443 if (ac_aggr.ut_type)
32449 rm -f conftest.$ac_objext
32450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32451 (eval $ac_compile) 2>conftest.er1
32453 grep -v '^ *+' conftest.er1 >conftest.err
32455 cat conftest.err >&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); } &&
32458 { ac_try='test -z "$ac_c_werror_flag"
32459 || test ! -s conftest.err'
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; } &&
32465 { ac_try='test -s conftest.$ac_objext'
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; }; then
32471 ac_cv_member_struct_utmpx_ut_type=yes
32473 echo "$as_me: failed program was:" >&5
32474 sed 's/^/| /' conftest.$ac_ext >&5
32476 cat >conftest.$ac_ext <<_ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h. */
32487 static struct utmpx ac_aggr;
32488 if (sizeof ac_aggr.ut_type)
32494 rm -f conftest.$ac_objext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32496 (eval $ac_compile) 2>conftest.er1
32498 grep -v '^ *+' conftest.er1 >conftest.err
32500 cat conftest.err >&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } &&
32503 { ac_try='test -z "$ac_c_werror_flag"
32504 || test ! -s conftest.err'
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; }; then
32516 ac_cv_member_struct_utmpx_ut_type=yes
32518 echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32521 ac_cv_member_struct_utmpx_ut_type=no
32524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32529 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
32530 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
32531 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
32533 cat >>confdefs.h <<_ACEOF
32534 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
32540 { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
32541 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
32542 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32545 cat >conftest.$ac_ext <<_ACEOF
32548 cat confdefs.h >>conftest.$ac_ext
32549 cat >>conftest.$ac_ext <<_ACEOF
32550 /* end confdefs.h. */
32556 static struct utmp ac_aggr;
32557 if (ac_aggr.ut_type)
32563 rm -f conftest.$ac_objext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32565 (eval $ac_compile) 2>conftest.er1
32567 grep -v '^ *+' conftest.er1 >conftest.err
32569 cat conftest.err >&5
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } &&
32572 { ac_try='test -z "$ac_c_werror_flag"
32573 || test ! -s conftest.err'
32574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575 (eval $ac_try) 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; }; then
32585 ac_cv_member_struct_utmp_ut_type=yes
32587 echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32590 cat >conftest.$ac_ext <<_ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h. */
32601 static struct utmp ac_aggr;
32602 if (sizeof ac_aggr.ut_type)
32608 rm -f conftest.$ac_objext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32610 (eval $ac_compile) 2>conftest.er1
32612 grep -v '^ *+' conftest.er1 >conftest.err
32614 cat conftest.err >&5
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } &&
32617 { ac_try='test -z "$ac_c_werror_flag"
32618 || test ! -s conftest.err'
32619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620 (eval $ac_try) 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest.$ac_objext'
32625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626 (eval $ac_try) 2>&5
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; }; then
32630 ac_cv_member_struct_utmp_ut_type=yes
32632 echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32635 ac_cv_member_struct_utmp_ut_type=no
32638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32643 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
32644 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
32645 if test $ac_cv_member_struct_utmp_ut_type = yes; then
32647 cat >>confdefs.h <<_ACEOF
32648 #define HAVE_STRUCT_UTMP_UT_TYPE 1
32654 { echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
32655 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6; }
32656 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
32657 echo $ECHO_N "(cached) $ECHO_C" >&6
32659 cat >conftest.$ac_ext <<_ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32670 static struct utmpx ac_aggr;
32671 if (ac_aggr.ut_pid)
32677 rm -f conftest.$ac_objext
32678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32679 (eval $ac_compile) 2>conftest.er1
32681 grep -v '^ *+' conftest.er1 >conftest.err
32683 cat conftest.err >&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); } &&
32686 { ac_try='test -z "$ac_c_werror_flag"
32687 || test ! -s conftest.err'
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; } &&
32693 { ac_try='test -s conftest.$ac_objext'
32694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695 (eval $ac_try) 2>&5
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; }; then
32699 ac_cv_member_struct_utmpx_ut_pid=yes
32701 echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32704 cat >conftest.$ac_ext <<_ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h. */
32715 static struct utmpx ac_aggr;
32716 if (sizeof ac_aggr.ut_pid)
32722 rm -f conftest.$ac_objext
32723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32724 (eval $ac_compile) 2>conftest.er1
32726 grep -v '^ *+' conftest.er1 >conftest.err
32728 cat conftest.err >&5
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); } &&
32731 { ac_try='test -z "$ac_c_werror_flag"
32732 || test ! -s conftest.err'
32733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32734 (eval $ac_try) 2>&5
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); }; } &&
32738 { ac_try='test -s conftest.$ac_objext'
32739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32740 (eval $ac_try) 2>&5
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); }; }; then
32744 ac_cv_member_struct_utmpx_ut_pid=yes
32746 echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32749 ac_cv_member_struct_utmpx_ut_pid=no
32752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
32758 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6; }
32759 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
32761 cat >>confdefs.h <<_ACEOF
32762 #define HAVE_STRUCT_UTMPX_UT_PID 1
32768 { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
32769 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
32770 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32773 cat >conftest.$ac_ext <<_ACEOF
32776 cat confdefs.h >>conftest.$ac_ext
32777 cat >>conftest.$ac_ext <<_ACEOF
32778 /* end confdefs.h. */
32784 static struct utmp ac_aggr;
32785 if (ac_aggr.ut_pid)
32791 rm -f conftest.$ac_objext
32792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32793 (eval $ac_compile) 2>conftest.er1
32795 grep -v '^ *+' conftest.er1 >conftest.err
32797 cat conftest.err >&5
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); } &&
32800 { ac_try='test -z "$ac_c_werror_flag"
32801 || test ! -s conftest.err'
32802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803 (eval $ac_try) 2>&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809 (eval $ac_try) 2>&5
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 ac_cv_member_struct_utmp_ut_pid=yes
32815 echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32818 cat >conftest.$ac_ext <<_ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32829 static struct utmp ac_aggr;
32830 if (sizeof ac_aggr.ut_pid)
32836 rm -f conftest.$ac_objext
32837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32838 (eval $ac_compile) 2>conftest.er1
32840 grep -v '^ *+' conftest.er1 >conftest.err
32842 cat conftest.err >&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } &&
32845 { ac_try='test -z "$ac_c_werror_flag"
32846 || test ! -s conftest.err'
32847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848 (eval $ac_try) 2>&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; } &&
32852 { ac_try='test -s conftest.$ac_objext'
32853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854 (eval $ac_try) 2>&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; }; then
32858 ac_cv_member_struct_utmp_ut_pid=yes
32860 echo "$as_me: failed program was:" >&5
32861 sed 's/^/| /' conftest.$ac_ext >&5
32863 ac_cv_member_struct_utmp_ut_pid=no
32866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
32872 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
32873 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
32875 cat >>confdefs.h <<_ACEOF
32876 #define HAVE_STRUCT_UTMP_UT_PID 1
32882 { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
32883 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
32884 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
32885 echo $ECHO_N "(cached) $ECHO_C" >&6
32887 cat >conftest.$ac_ext <<_ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h. */
32898 static struct utmpx ac_aggr;
32905 rm -f conftest.$ac_objext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32907 (eval $ac_compile) 2>conftest.er1
32909 grep -v '^ *+' conftest.er1 >conftest.err
32911 cat conftest.err >&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); } &&
32914 { ac_try='test -z "$ac_c_werror_flag"
32915 || test ! -s conftest.err'
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; } &&
32921 { ac_try='test -s conftest.$ac_objext'
32922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923 (eval $ac_try) 2>&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); }; }; then
32927 ac_cv_member_struct_utmpx_ut_id=yes
32929 echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32932 cat >conftest.$ac_ext <<_ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32943 static struct utmpx ac_aggr;
32944 if (sizeof ac_aggr.ut_id)
32950 rm -f conftest.$ac_objext
32951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32952 (eval $ac_compile) 2>conftest.er1
32954 grep -v '^ *+' conftest.er1 >conftest.err
32956 cat conftest.err >&5
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); } &&
32959 { ac_try='test -z "$ac_c_werror_flag"
32960 || test ! -s conftest.err'
32961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32962 (eval $ac_try) 2>&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; } &&
32966 { ac_try='test -s conftest.$ac_objext'
32967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32968 (eval $ac_try) 2>&5
32970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971 (exit $ac_status); }; }; then
32972 ac_cv_member_struct_utmpx_ut_id=yes
32974 echo "$as_me: failed program was:" >&5
32975 sed 's/^/| /' conftest.$ac_ext >&5
32977 ac_cv_member_struct_utmpx_ut_id=no
32980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
32986 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
32987 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
32989 cat >>confdefs.h <<_ACEOF
32990 #define HAVE_STRUCT_UTMPX_UT_ID 1
32996 { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
32997 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
32998 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
32999 echo $ECHO_N "(cached) $ECHO_C" >&6
33001 cat >conftest.$ac_ext <<_ACEOF
33004 cat confdefs.h >>conftest.$ac_ext
33005 cat >>conftest.$ac_ext <<_ACEOF
33006 /* end confdefs.h. */
33012 static struct utmp ac_aggr;
33019 rm -f conftest.$ac_objext
33020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33021 (eval $ac_compile) 2>conftest.er1
33023 grep -v '^ *+' conftest.er1 >conftest.err
33025 cat conftest.err >&5
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 (exit $ac_status); } &&
33028 { ac_try='test -z "$ac_c_werror_flag"
33029 || test ! -s conftest.err'
33030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33031 (eval $ac_try) 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; } &&
33035 { ac_try='test -s conftest.$ac_objext'
33036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037 (eval $ac_try) 2>&5
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; }; then
33041 ac_cv_member_struct_utmp_ut_id=yes
33043 echo "$as_me: failed program was:" >&5
33044 sed 's/^/| /' conftest.$ac_ext >&5
33046 cat >conftest.$ac_ext <<_ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h. */
33057 static struct utmp ac_aggr;
33058 if (sizeof ac_aggr.ut_id)
33064 rm -f conftest.$ac_objext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33066 (eval $ac_compile) 2>conftest.er1
33068 grep -v '^ *+' conftest.er1 >conftest.err
33070 cat conftest.err >&5
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); } &&
33073 { ac_try='test -z "$ac_c_werror_flag"
33074 || test ! -s conftest.err'
33075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076 (eval $ac_try) 2>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; }; then
33086 ac_cv_member_struct_utmp_ut_id=yes
33088 echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33091 ac_cv_member_struct_utmp_ut_id=no
33094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33099 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
33100 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
33101 if test $ac_cv_member_struct_utmp_ut_id = yes; then
33103 cat >>confdefs.h <<_ACEOF
33104 #define HAVE_STRUCT_UTMP_UT_ID 1
33110 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
33111 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6; }
33112 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
33113 echo $ECHO_N "(cached) $ECHO_C" >&6
33115 cat >conftest.$ac_ext <<_ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h. */
33126 static struct utmpx ac_aggr;
33127 if (ac_aggr.ut_exit)
33133 rm -f conftest.$ac_objext
33134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33135 (eval $ac_compile) 2>conftest.er1
33137 grep -v '^ *+' conftest.er1 >conftest.err
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
33142 { ac_try='test -z "$ac_c_werror_flag"
33143 || test ! -s conftest.err'
33144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145 (eval $ac_try) 2>&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest.$ac_objext'
33150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151 (eval $ac_try) 2>&5
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); }; }; then
33155 ac_cv_member_struct_utmpx_ut_exit=yes
33157 echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33160 cat >conftest.$ac_ext <<_ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h. */
33171 static struct utmpx ac_aggr;
33172 if (sizeof ac_aggr.ut_exit)
33178 rm -f conftest.$ac_objext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33180 (eval $ac_compile) 2>conftest.er1
33182 grep -v '^ *+' conftest.er1 >conftest.err
33184 cat conftest.err >&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); } &&
33187 { ac_try='test -z "$ac_c_werror_flag"
33188 || test ! -s conftest.err'
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest.$ac_objext'
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200 ac_cv_member_struct_utmpx_ut_exit=yes
33202 echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33205 ac_cv_member_struct_utmpx_ut_exit=no
33208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
33214 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6; }
33215 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
33217 cat >>confdefs.h <<_ACEOF
33218 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
33224 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
33225 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
33226 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33229 cat >conftest.$ac_ext <<_ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h. */
33240 static struct utmp ac_aggr;
33241 if (ac_aggr.ut_exit)
33247 rm -f conftest.$ac_objext
33248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33249 (eval $ac_compile) 2>conftest.er1
33251 grep -v '^ *+' conftest.er1 >conftest.err
33253 cat conftest.err >&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); } &&
33256 { ac_try='test -z "$ac_c_werror_flag"
33257 || test ! -s conftest.err'
33258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33259 (eval $ac_try) 2>&5
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); }; } &&
33263 { ac_try='test -s conftest.$ac_objext'
33264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265 (eval $ac_try) 2>&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; }; then
33269 ac_cv_member_struct_utmp_ut_exit=yes
33271 echo "$as_me: failed program was:" >&5
33272 sed 's/^/| /' conftest.$ac_ext >&5
33274 cat >conftest.$ac_ext <<_ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33285 static struct utmp ac_aggr;
33286 if (sizeof ac_aggr.ut_exit)
33292 rm -f conftest.$ac_objext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33294 (eval $ac_compile) 2>conftest.er1
33296 grep -v '^ *+' conftest.er1 >conftest.err
33298 cat conftest.err >&5
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } &&
33301 { ac_try='test -z "$ac_c_werror_flag"
33302 || test ! -s conftest.err'
33303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304 (eval $ac_try) 2>&5
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); }; } &&
33308 { ac_try='test -s conftest.$ac_objext'
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 ac_cv_member_struct_utmp_ut_exit=yes
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33319 ac_cv_member_struct_utmp_ut_exit=no
33322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33327 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
33328 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
33329 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
33331 cat >>confdefs.h <<_ACEOF
33332 #define HAVE_STRUCT_UTMP_UT_EXIT 1
33339 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
33340 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6; }
33341 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
33342 echo $ECHO_N "(cached) $ECHO_C" >&6
33344 cat >conftest.$ac_ext <<_ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33355 static struct utmpx ac_aggr;
33356 if (ac_aggr.ut_exit.ut_exit)
33362 rm -f conftest.$ac_objext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33364 (eval $ac_compile) 2>conftest.er1
33366 grep -v '^ *+' conftest.er1 >conftest.err
33368 cat conftest.err >&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
33371 { ac_try='test -z "$ac_c_werror_flag"
33372 || test ! -s conftest.err'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
33386 echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33389 cat >conftest.$ac_ext <<_ACEOF
33392 cat confdefs.h >>conftest.$ac_ext
33393 cat >>conftest.$ac_ext <<_ACEOF
33394 /* end confdefs.h. */
33400 static struct utmpx ac_aggr;
33401 if (sizeof ac_aggr.ut_exit.ut_exit)
33407 rm -f conftest.$ac_objext
33408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33409 (eval $ac_compile) 2>conftest.er1
33411 grep -v '^ *+' conftest.er1 >conftest.err
33413 cat conftest.err >&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); } &&
33416 { ac_try='test -z "$ac_c_werror_flag"
33417 || test ! -s conftest.err'
33418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419 (eval $ac_try) 2>&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); }; } &&
33423 { ac_try='test -s conftest.$ac_objext'
33424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425 (eval $ac_try) 2>&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; }; then
33429 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
33431 echo "$as_me: failed program was:" >&5
33432 sed 's/^/| /' conftest.$ac_ext >&5
33434 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
33437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33442 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
33443 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6; }
33444 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
33446 cat >>confdefs.h <<_ACEOF
33447 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
33453 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
33454 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6; }
33455 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33458 cat >conftest.$ac_ext <<_ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h. */
33469 static struct utmp ac_aggr;
33470 if (ac_aggr.ut_exit.ut_exit)
33476 rm -f conftest.$ac_objext
33477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33478 (eval $ac_compile) 2>conftest.er1
33480 grep -v '^ *+' conftest.er1 >conftest.err
33482 cat conftest.err >&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } &&
33485 { ac_try='test -z "$ac_c_werror_flag"
33486 || test ! -s conftest.err'
33487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33488 (eval $ac_try) 2>&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); }; } &&
33492 { ac_try='test -s conftest.$ac_objext'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 cat >conftest.$ac_ext <<_ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33514 static struct utmp ac_aggr;
33515 if (sizeof ac_aggr.ut_exit.ut_exit)
33521 rm -f conftest.$ac_objext
33522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33523 (eval $ac_compile) 2>conftest.er1
33525 grep -v '^ *+' conftest.er1 >conftest.err
33527 cat conftest.err >&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); } &&
33530 { ac_try='test -z "$ac_c_werror_flag"
33531 || test ! -s conftest.err'
33532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533 (eval $ac_try) 2>&5
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); }; } &&
33537 { ac_try='test -s conftest.$ac_objext'
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; }; then
33543 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
33545 echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33548 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
33551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33556 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
33557 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6; }
33558 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
33560 cat >>confdefs.h <<_ACEOF
33561 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
33567 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
33568 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6; }
33569 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
33570 echo $ECHO_N "(cached) $ECHO_C" >&6
33572 cat >conftest.$ac_ext <<_ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h. */
33583 static struct utmpx ac_aggr;
33584 if (ac_aggr.ut_exit.e_exit)
33590 rm -f conftest.$ac_objext
33591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33592 (eval $ac_compile) 2>conftest.er1
33594 grep -v '^ *+' conftest.er1 >conftest.err
33596 cat conftest.err >&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
33599 { ac_try='test -z "$ac_c_werror_flag"
33600 || test ! -s conftest.err'
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; } &&
33606 { ac_try='test -s conftest.$ac_objext'
33607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608 (eval $ac_try) 2>&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
33612 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33628 static struct utmpx ac_aggr;
33629 if (sizeof ac_aggr.ut_exit.e_exit)
33635 rm -f conftest.$ac_objext
33636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33637 (eval $ac_compile) 2>conftest.er1
33639 grep -v '^ *+' conftest.er1 >conftest.err
33641 cat conftest.err >&5
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); } &&
33644 { ac_try='test -z "$ac_c_werror_flag"
33645 || test ! -s conftest.err'
33646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33647 (eval $ac_try) 2>&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); }; } &&
33651 { ac_try='test -s conftest.$ac_objext'
33652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33653 (eval $ac_try) 2>&5
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; }; then
33657 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
33665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33670 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
33671 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6; }
33672 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
33674 cat >>confdefs.h <<_ACEOF
33675 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
33681 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
33682 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6; }
33683 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33686 cat >conftest.$ac_ext <<_ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h. */
33697 static struct utmp ac_aggr;
33698 if (ac_aggr.ut_exit.e_exit)
33704 rm -f conftest.$ac_objext
33705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33706 (eval $ac_compile) 2>conftest.er1
33708 grep -v '^ *+' conftest.er1 >conftest.err
33710 cat conftest.err >&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } &&
33713 { ac_try='test -z "$ac_c_werror_flag"
33714 || test ! -s conftest.err'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; } &&
33720 { ac_try='test -s conftest.$ac_objext'
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
33728 echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33731 cat >conftest.$ac_ext <<_ACEOF
33734 cat confdefs.h >>conftest.$ac_ext
33735 cat >>conftest.$ac_ext <<_ACEOF
33736 /* end confdefs.h. */
33742 static struct utmp ac_aggr;
33743 if (sizeof ac_aggr.ut_exit.e_exit)
33749 rm -f conftest.$ac_objext
33750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33751 (eval $ac_compile) 2>conftest.er1
33753 grep -v '^ *+' conftest.er1 >conftest.err
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
33758 { ac_try='test -z "$ac_c_werror_flag"
33759 || test ! -s conftest.err'
33760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761 (eval $ac_try) 2>&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; } &&
33765 { ac_try='test -s conftest.$ac_objext'
33766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767 (eval $ac_try) 2>&5
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
33773 echo "$as_me: failed program was:" >&5
33774 sed 's/^/| /' conftest.$ac_ext >&5
33776 ac_cv_member_struct_utmp_ut_exit_e_exit=no
33779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
33785 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6; }
33786 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
33788 cat >>confdefs.h <<_ACEOF
33789 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
33796 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
33797 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6; }
33798 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33801 cat >conftest.$ac_ext <<_ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h. */
33812 static struct utmpx ac_aggr;
33813 if (ac_aggr.ut_exit.ut_termination)
33819 rm -f conftest.$ac_objext
33820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33821 (eval $ac_compile) 2>conftest.er1
33823 grep -v '^ *+' conftest.er1 >conftest.err
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } &&
33828 { ac_try='test -z "$ac_c_werror_flag"
33829 || test ! -s conftest.err'
33830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33831 (eval $ac_try) 2>&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; } &&
33835 { ac_try='test -s conftest.$ac_objext'
33836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33837 (eval $ac_try) 2>&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); }; }; then
33841 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
33843 echo "$as_me: failed program was:" >&5
33844 sed 's/^/| /' conftest.$ac_ext >&5
33846 cat >conftest.$ac_ext <<_ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h. */
33857 static struct utmpx ac_aggr;
33858 if (sizeof ac_aggr.ut_exit.ut_termination)
33864 rm -f conftest.$ac_objext
33865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33866 (eval $ac_compile) 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest.$ac_objext'
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; }; then
33886 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33891 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
33894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33899 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
33900 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6; }
33901 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
33903 cat >>confdefs.h <<_ACEOF
33904 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
33910 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
33911 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6; }
33912 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33915 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33926 static struct utmp ac_aggr;
33927 if (ac_aggr.ut_exit.ut_termination)
33933 rm -f conftest.$ac_objext
33934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33935 (eval $ac_compile) 2>conftest.er1
33937 grep -v '^ *+' conftest.er1 >conftest.err
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } &&
33942 { ac_try='test -z "$ac_c_werror_flag"
33943 || test ! -s conftest.err'
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; } &&
33949 { ac_try='test -s conftest.$ac_objext'
33950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951 (eval $ac_try) 2>&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; }; then
33955 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
33957 echo "$as_me: failed program was:" >&5
33958 sed 's/^/| /' conftest.$ac_ext >&5
33960 cat >conftest.$ac_ext <<_ACEOF
33963 cat confdefs.h >>conftest.$ac_ext
33964 cat >>conftest.$ac_ext <<_ACEOF
33965 /* end confdefs.h. */
33971 static struct utmp ac_aggr;
33972 if (sizeof ac_aggr.ut_exit.ut_termination)
33978 rm -f conftest.$ac_objext
33979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33980 (eval $ac_compile) 2>conftest.er1
33982 grep -v '^ *+' conftest.er1 >conftest.err
33984 cat conftest.err >&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } &&
33987 { ac_try='test -z "$ac_c_werror_flag"
33988 || test ! -s conftest.err'
33989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33990 (eval $ac_try) 2>&5
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); }; } &&
33994 { ac_try='test -s conftest.$ac_objext'
33995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33996 (eval $ac_try) 2>&5
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
34000 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
34002 echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34005 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
34008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34013 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
34014 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6; }
34015 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
34017 cat >>confdefs.h <<_ACEOF
34018 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
34024 { echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
34025 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6; }
34026 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34040 static struct utmpx ac_aggr;
34041 if (ac_aggr.ut_exit.e_termination)
34047 rm -f conftest.$ac_objext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34049 (eval $ac_compile) 2>conftest.er1
34051 grep -v '^ *+' conftest.er1 >conftest.err
34053 cat conftest.err >&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } &&
34056 { ac_try='test -z "$ac_c_werror_flag"
34057 || test ! -s conftest.err'
34058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059 (eval $ac_try) 2>&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); }; } &&
34063 { ac_try='test -s conftest.$ac_objext'
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
34069 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34074 cat >conftest.$ac_ext <<_ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h. */
34085 static struct utmpx ac_aggr;
34086 if (sizeof ac_aggr.ut_exit.e_termination)
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094 (eval $ac_compile) 2>conftest.er1
34096 grep -v '^ *+' conftest.er1 >conftest.err
34098 cat conftest.err >&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
34101 { ac_try='test -z "$ac_c_werror_flag"
34102 || test ! -s conftest.err'
34103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34104 (eval $ac_try) 2>&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); }; } &&
34108 { ac_try='test -s conftest.$ac_objext'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
34122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34127 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
34128 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6; }
34129 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
34131 cat >>confdefs.h <<_ACEOF
34132 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
34138 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
34139 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6; }
34140 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34143 cat >conftest.$ac_ext <<_ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h. */
34154 static struct utmp ac_aggr;
34155 if (ac_aggr.ut_exit.e_termination)
34161 rm -f conftest.$ac_objext
34162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34163 (eval $ac_compile) 2>conftest.er1
34165 grep -v '^ *+' conftest.er1 >conftest.err
34167 cat conftest.err >&5
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); } &&
34170 { ac_try='test -z "$ac_c_werror_flag"
34171 || test ! -s conftest.err'
34172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173 (eval $ac_try) 2>&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); }; } &&
34177 { ac_try='test -s conftest.$ac_objext'
34178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179 (eval $ac_try) 2>&5
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; }; then
34183 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
34185 echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34188 cat >conftest.$ac_ext <<_ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h. */
34199 static struct utmp ac_aggr;
34200 if (sizeof ac_aggr.ut_exit.e_termination)
34206 rm -f conftest.$ac_objext
34207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34208 (eval $ac_compile) 2>conftest.er1
34210 grep -v '^ *+' conftest.er1 >conftest.err
34212 cat conftest.err >&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); } &&
34215 { ac_try='test -z "$ac_c_werror_flag"
34216 || test ! -s conftest.err'
34217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34218 (eval $ac_try) 2>&5
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; } &&
34222 { ac_try='test -s conftest.$ac_objext'
34223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224 (eval $ac_try) 2>&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); }; }; then
34228 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
34230 echo "$as_me: failed program was:" >&5
34231 sed 's/^/| /' conftest.$ac_ext >&5
34233 ac_cv_member_struct_utmp_ut_exit_e_termination=no
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34241 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
34242 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6; }
34243 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
34245 cat >>confdefs.h <<_ACEOF
34246 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
34288 # Check whether --with-included-regex was given.
34289 if test "${with_included_regex+set}" = set; then
34290 withval=$with_included_regex;
34294 case $with_included_regex in #(
34295 yes|no) ac_use_included_regex=$with_included_regex
34298 # If the system regex support is good enough that it passes the the
34299 # following run test, then default to *not* using the included regex.c.
34300 # If cross compiling, assume the test would fail and use the included
34301 # regex.c. The first failing regular expression is from `Spencer ere
34302 # test #75' in grep-2.3.
34303 { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34304 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
34305 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34308 if test "$cross_compiling" = yes; then
34309 gl_cv_func_re_compile_pattern_working=no
34311 cat >conftest.$ac_ext <<_ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h. */
34317 $ac_includes_default
34318 #include <limits.h>
34324 static struct re_pattern_buffer regex;
34325 unsigned char folded_chars[UCHAR_MAX + 1];
34328 struct re_registers regs;
34329 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
34330 memset (®ex, 0, sizeof (regex));
34331 for (i = 0; i <= UCHAR_MAX; i++)
34332 folded_chars[i] = i;
34333 regex.translate = folded_chars;
34334 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
34335 /* This should fail with _Invalid character class name_ error. */
34339 /* This should succeed, but does not for e.g. glibc-2.1.3. */
34340 memset (®ex, 0, sizeof (regex));
34341 s = re_compile_pattern ("{1", 2, ®ex);
34346 /* The following example is derived from a problem report
34347 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
34348 memset (®ex, 0, sizeof (regex));
34349 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
34353 /* This should match, but does not for e.g. glibc-2.2.1. */
34354 if (re_match (®ex, "an", 2, 0, ®s) != 2)
34357 memset (®ex, 0, sizeof (regex));
34358 s = re_compile_pattern ("x", 1, ®ex);
34362 /* The version of regex.c in e.g. GNU libc-2.2.93 did not
34363 work with a negative RANGE argument. */
34364 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
34367 /* The version of regex.c in older versions of gnulib
34368 ignored RE_ICASE. Detect that problem too. */
34369 memset (®ex, 0, sizeof (regex));
34370 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
34371 s = re_compile_pattern ("x", 1, ®ex);
34375 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
34378 /* REG_STARTEND was added to glibc on 2004-01-15.
34379 Reject older versions. */
34380 if (! REG_STARTEND)
34383 /* Reject hosts whose regoff_t values are too narrow.
34384 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
34386 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
34387 || sizeof (regoff_t) < sizeof (ssize_t))
34395 rm -f conftest$ac_exeext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34397 (eval $ac_link) 2>&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; }; then
34406 gl_cv_func_re_compile_pattern_working=yes
34408 echo "$as_me: program exited with status $ac_status" >&5
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34412 ( exit $ac_status )
34413 gl_cv_func_re_compile_pattern_working=no
34415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34420 { echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
34421 echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
34422 case $gl_cv_func_re_compile_pattern_working in #(
34423 yes) ac_use_included_regex=no;; #(
34424 no) ac_use_included_regex=yes;;
34427 *) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
34428 echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
34429 { (exit 1); exit 1; }; }
34433 if test $ac_use_included_regex = yes; then
34435 cat >>confdefs.h <<\_ACEOF
34436 #define _REGEX_LARGE_OFFSETS 1
34440 cat >>confdefs.h <<\_ACEOF
34441 #define re_syntax_options rpl_re_syntax_options
34445 cat >>confdefs.h <<\_ACEOF
34446 #define re_set_syntax rpl_re_set_syntax
34450 cat >>confdefs.h <<\_ACEOF
34451 #define re_compile_pattern rpl_re_compile_pattern
34455 cat >>confdefs.h <<\_ACEOF
34456 #define re_compile_fastmap rpl_re_compile_fastmap
34460 cat >>confdefs.h <<\_ACEOF
34461 #define re_search rpl_re_search
34465 cat >>confdefs.h <<\_ACEOF
34466 #define re_search_2 rpl_re_search_2
34470 cat >>confdefs.h <<\_ACEOF
34471 #define re_match rpl_re_match
34475 cat >>confdefs.h <<\_ACEOF
34476 #define re_match_2 rpl_re_match_2
34480 cat >>confdefs.h <<\_ACEOF
34481 #define re_set_registers rpl_re_set_registers
34485 cat >>confdefs.h <<\_ACEOF
34486 #define re_comp rpl_re_comp
34490 cat >>confdefs.h <<\_ACEOF
34491 #define re_exec rpl_re_exec
34495 cat >>confdefs.h <<\_ACEOF
34496 #define regcomp rpl_regcomp
34500 cat >>confdefs.h <<\_ACEOF
34501 #define regexec rpl_regexec
34505 cat >>confdefs.h <<\_ACEOF
34506 #define regerror rpl_regerror
34510 cat >>confdefs.h <<\_ACEOF
34511 #define regfree rpl_regfree
34514 case " $LIBOBJS " in
34515 *" regex.$ac_objext "* ) ;;
34516 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
34561 case " $LIBOBJS " in
34562 *" safe-read.$ac_objext "* ) ;;
34563 *) LIBOBJS="$LIBOBJS safe-read.$ac_objext"
34574 case " $LIBOBJS " in
34575 *" safe-write.$ac_objext "* ) ;;
34576 *) LIBOBJS="$LIBOBJS safe-write.$ac_objext"
34589 case " $LIBOBJS " in
34590 *" same.$ac_objext "* ) ;;
34591 *) LIBOBJS="$LIBOBJS same.$ac_objext"
34605 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
34606 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
34607 if test "${ac_cv_func_closedir_void+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34610 if test "$cross_compiling" = yes; then
34611 ac_cv_func_closedir_void=yes
34613 cat >conftest.$ac_ext <<_ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h. */
34619 $ac_includes_default
34620 #include <$ac_header_dirent>
34621 #ifndef __cplusplus
34628 return closedir (opendir (".")) != 0;
34633 rm -f conftest$ac_exeext
34634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34635 (eval $ac_link) 2>&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640 (eval $ac_try) 2>&5
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); }; }; then
34644 ac_cv_func_closedir_void=no
34646 echo "$as_me: program exited with status $ac_status" >&5
34647 echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34650 ( exit $ac_status )
34651 ac_cv_func_closedir_void=yes
34653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34658 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
34659 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
34660 if test $ac_cv_func_closedir_void = yes; then
34662 cat >>confdefs.h <<\_ACEOF
34663 #define CLOSEDIR_VOID 1
34670 case " $LIBOBJS " in
34671 *" savedir.$ac_objext "* ) ;;
34672 *) LIBOBJS="$LIBOBJS savedir.$ac_objext"
34688 case " $LIBOBJS " in
34689 *" save-cwd.$ac_objext "* ) ;;
34690 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext"
34716 case " $LIBOBJS " in
34717 *" settime.$ac_objext "* ) ;;
34718 *) LIBOBJS="$LIBOBJS settime.$ac_objext"
34738 case " $LIBOBJS " in
34739 *" sha1.$ac_objext "* ) ;;
34740 *) LIBOBJS="$LIBOBJS sha1.$ac_objext"
34750 case " $LIBOBJS " in
34751 *" sha256.$ac_objext "* ) ;;
34752 *) LIBOBJS="$LIBOBJS sha256.$ac_objext"
34762 case " $LIBOBJS " in
34763 *" sha512.$ac_objext "* ) ;;
34764 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
34772 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
34773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
34774 if test "${ac_cv_header_stat_broken+set}" = set; then
34775 echo $ECHO_N "(cached) $ECHO_C" >&6
34777 cat >conftest.$ac_ext <<_ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h. */
34783 #include <sys/types.h>
34784 #include <sys/stat.h>
34786 #if defined S_ISBLK && defined S_IFDIR
34787 # if S_ISBLK (S_IFDIR)
34792 #if defined S_ISBLK && defined S_IFCHR
34793 # if S_ISBLK (S_IFCHR)
34798 #if defined S_ISLNK && defined S_IFREG
34799 # if S_ISLNK (S_IFREG)
34804 #if defined S_ISSOCK && defined S_IFREG
34805 # if S_ISSOCK (S_IFREG)
34811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34812 $EGREP "You lose" >/dev/null 2>&1; then
34813 ac_cv_header_stat_broken=yes
34815 ac_cv_header_stat_broken=no
34820 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
34821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
34822 if test $ac_cv_header_stat_broken = yes; then
34824 cat >>confdefs.h <<\_ACEOF
34825 #define STAT_MACROS_BROKEN 1
34841 { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
34842 echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
34843 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
34844 echo $ECHO_N "(cached) $ECHO_C" >&6
34846 cat >conftest.$ac_ext <<_ACEOF
34849 cat confdefs.h >>conftest.$ac_ext
34850 cat >>conftest.$ac_ext <<_ACEOF
34851 /* end confdefs.h. */
34852 #include <sys/types.h>
34853 #include <sys/stat.h>
34858 static struct stat ac_aggr;
34859 if (ac_aggr.st_atim.tv_nsec)
34865 rm -f conftest.$ac_objext
34866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867 (eval $ac_compile) 2>conftest.er1
34869 grep -v '^ *+' conftest.er1 >conftest.err
34871 cat conftest.err >&5
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); } &&
34874 { ac_try='test -z "$ac_c_werror_flag"
34875 || test ! -s conftest.err'
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; } &&
34881 { ac_try='test -s conftest.$ac_objext'
34882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883 (eval $ac_try) 2>&5
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; }; then
34887 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
34889 echo "$as_me: failed program was:" >&5
34890 sed 's/^/| /' conftest.$ac_ext >&5
34892 cat >conftest.$ac_ext <<_ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h. */
34898 #include <sys/types.h>
34899 #include <sys/stat.h>
34904 static struct stat ac_aggr;
34905 if (sizeof ac_aggr.st_atim.tv_nsec)
34911 rm -f conftest.$ac_objext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34913 (eval $ac_compile) 2>conftest.er1
34915 grep -v '^ *+' conftest.er1 >conftest.err
34917 cat conftest.err >&5
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); } &&
34920 { ac_try='test -z "$ac_c_werror_flag"
34921 || test ! -s conftest.err'
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; } &&
34927 { ac_try='test -s conftest.$ac_objext'
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
34935 echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34938 ac_cv_member_struct_stat_st_atim_tv_nsec=no
34941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
34947 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
34948 if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
34950 cat >>confdefs.h <<_ACEOF
34951 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
34954 { echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
34955 echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
34956 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34959 cat >conftest.$ac_ext <<_ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34966 #include <sys/types.h>
34967 #if TIME_WITH_SYS_TIME
34968 # include <sys/time.h>
34971 # if HAVE_SYS_TIME_H
34972 # include <sys/time.h>
34977 #include <sys/stat.h>
34978 struct timespec ts;
34991 rm -f conftest.$ac_objext
34992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34993 (eval $ac_compile) 2>conftest.er1
34995 grep -v '^ *+' conftest.er1 >conftest.err
34997 cat conftest.err >&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); } &&
35000 { ac_try='test -z "$ac_c_werror_flag"
35001 || test ! -s conftest.err'
35002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003 (eval $ac_try) 2>&5
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); }; } &&
35007 { ac_try='test -s conftest.$ac_objext'
35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009 (eval $ac_try) 2>&5
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); }; }; then
35013 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
35015 echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35018 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
35021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35023 { echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
35024 echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
35025 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
35027 cat >>confdefs.h <<\_ACEOF
35028 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
35033 { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
35034 echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
35035 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
35036 echo $ECHO_N "(cached) $ECHO_C" >&6
35038 cat >conftest.$ac_ext <<_ACEOF
35041 cat confdefs.h >>conftest.$ac_ext
35042 cat >>conftest.$ac_ext <<_ACEOF
35043 /* end confdefs.h. */
35044 #include <sys/types.h>
35045 #include <sys/stat.h>
35050 static struct stat ac_aggr;
35051 if (ac_aggr.st_atimespec.tv_nsec)
35057 rm -f conftest.$ac_objext
35058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35059 (eval $ac_compile) 2>conftest.er1
35061 grep -v '^ *+' conftest.er1 >conftest.err
35063 cat conftest.err >&5
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); } &&
35066 { ac_try='test -z "$ac_c_werror_flag"
35067 || test ! -s conftest.err'
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; } &&
35073 { ac_try='test -s conftest.$ac_objext'
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; }; then
35079 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
35081 echo "$as_me: failed program was:" >&5
35082 sed 's/^/| /' conftest.$ac_ext >&5
35084 cat >conftest.$ac_ext <<_ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h. */
35090 #include <sys/types.h>
35091 #include <sys/stat.h>
35096 static struct stat ac_aggr;
35097 if (sizeof ac_aggr.st_atimespec.tv_nsec)
35103 rm -f conftest.$ac_objext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35105 (eval $ac_compile) 2>conftest.er1
35107 grep -v '^ *+' conftest.er1 >conftest.err
35109 cat conftest.err >&5
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } &&
35112 { ac_try='test -z "$ac_c_werror_flag"
35113 || test ! -s conftest.err'
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; } &&
35119 { ac_try='test -s conftest.$ac_objext'
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; }; then
35125 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
35127 echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35130 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
35133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
35139 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
35140 if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
35142 cat >>confdefs.h <<_ACEOF
35143 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
35148 { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
35149 echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
35150 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35153 cat >conftest.$ac_ext <<_ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h. */
35159 #include <sys/types.h>
35160 #include <sys/stat.h>
35165 static struct stat ac_aggr;
35166 if (ac_aggr.st_atimensec)
35172 rm -f conftest.$ac_objext
35173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35174 (eval $ac_compile) 2>conftest.er1
35176 grep -v '^ *+' conftest.er1 >conftest.err
35178 cat conftest.err >&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); } &&
35181 { ac_try='test -z "$ac_c_werror_flag"
35182 || test ! -s conftest.err'
35183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184 (eval $ac_try) 2>&5
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest.$ac_objext'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; }; then
35194 ac_cv_member_struct_stat_st_atimensec=yes
35196 echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35199 cat >conftest.$ac_ext <<_ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h. */
35205 #include <sys/types.h>
35206 #include <sys/stat.h>
35211 static struct stat ac_aggr;
35212 if (sizeof ac_aggr.st_atimensec)
35218 rm -f conftest.$ac_objext
35219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35220 (eval $ac_compile) 2>conftest.er1
35222 grep -v '^ *+' conftest.er1 >conftest.err
35224 cat conftest.err >&5
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); } &&
35227 { ac_try='test -z "$ac_c_werror_flag"
35228 || test ! -s conftest.err'
35229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35230 (eval $ac_try) 2>&5
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); }; } &&
35234 { ac_try='test -s conftest.$ac_objext'
35235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35236 (eval $ac_try) 2>&5
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); }; }; then
35240 ac_cv_member_struct_stat_st_atimensec=yes
35242 echo "$as_me: failed program was:" >&5
35243 sed 's/^/| /' conftest.$ac_ext >&5
35245 ac_cv_member_struct_stat_st_atimensec=no
35248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
35254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
35255 if test $ac_cv_member_struct_stat_st_atimensec = yes; then
35257 cat >>confdefs.h <<_ACEOF
35258 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
35263 { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
35264 echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
35265 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
35266 echo $ECHO_N "(cached) $ECHO_C" >&6
35268 cat >conftest.$ac_ext <<_ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h. */
35274 #include <sys/types.h>
35275 #include <sys/stat.h>
35280 static struct stat ac_aggr;
35281 if (ac_aggr.st_atim.st__tim.tv_nsec)
35287 rm -f conftest.$ac_objext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35289 (eval $ac_compile) 2>conftest.er1
35291 grep -v '^ *+' conftest.er1 >conftest.err
35293 cat conftest.err >&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
35296 { ac_try='test -z "$ac_c_werror_flag"
35297 || test ! -s conftest.err'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; } &&
35303 { ac_try='test -s conftest.$ac_objext'
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; }; then
35309 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
35311 echo "$as_me: failed program was:" >&5
35312 sed 's/^/| /' conftest.$ac_ext >&5
35314 cat >conftest.$ac_ext <<_ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h. */
35320 #include <sys/types.h>
35321 #include <sys/stat.h>
35326 static struct stat ac_aggr;
35327 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
35333 rm -f conftest.$ac_objext
35334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35335 (eval $ac_compile) 2>conftest.er1
35337 grep -v '^ *+' conftest.er1 >conftest.err
35339 cat conftest.err >&5
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } &&
35342 { ac_try='test -z "$ac_c_werror_flag"
35343 || test ! -s conftest.err'
35344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35345 (eval $ac_try) 2>&5
35347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348 (exit $ac_status); }; } &&
35349 { ac_try='test -s conftest.$ac_objext'
35350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351 (eval $ac_try) 2>&5
35353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354 (exit $ac_status); }; }; then
35355 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
35357 echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35360 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
35363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
35369 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
35370 if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
35372 cat >>confdefs.h <<_ACEOF
35373 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
35378 { echo "$as_me:$LINENO: checking for struct stat.st_spare1" >&5
35379 echo $ECHO_N "checking for struct stat.st_spare1... $ECHO_C" >&6; }
35380 if test "${ac_cv_member_struct_stat_st_spare1+set}" = set; then
35381 echo $ECHO_N "(cached) $ECHO_C" >&6
35383 cat >conftest.$ac_ext <<_ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h. */
35389 #include <sys/types.h>
35390 #include <sys/stat.h>
35395 static struct stat ac_aggr;
35396 if (ac_aggr.st_spare1)
35402 rm -f conftest.$ac_objext
35403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35404 (eval $ac_compile) 2>conftest.er1
35406 grep -v '^ *+' conftest.er1 >conftest.err
35408 cat conftest.err >&5
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); } &&
35411 { ac_try='test -z "$ac_c_werror_flag"
35412 || test ! -s conftest.err'
35413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35414 (eval $ac_try) 2>&5
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); }; } &&
35418 { ac_try='test -s conftest.$ac_objext'
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; }; then
35424 ac_cv_member_struct_stat_st_spare1=yes
35426 echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 #include <sys/types.h>
35436 #include <sys/stat.h>
35441 static struct stat ac_aggr;
35442 if (sizeof ac_aggr.st_spare1)
35448 rm -f conftest.$ac_objext
35449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35450 (eval $ac_compile) 2>conftest.er1
35452 grep -v '^ *+' conftest.er1 >conftest.err
35454 cat conftest.err >&5
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); } &&
35457 { ac_try='test -z "$ac_c_werror_flag"
35458 || test ! -s conftest.err'
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; } &&
35464 { ac_try='test -s conftest.$ac_objext'
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; }; then
35470 ac_cv_member_struct_stat_st_spare1=yes
35472 echo "$as_me: failed program was:" >&5
35473 sed 's/^/| /' conftest.$ac_ext >&5
35475 ac_cv_member_struct_stat_st_spare1=no
35478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35483 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_spare1" >&5
35484 echo "${ECHO_T}$ac_cv_member_struct_stat_st_spare1" >&6; }
35485 if test $ac_cv_member_struct_stat_st_spare1 = yes; then
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_STRUCT_STAT_ST_SPARE1 1
35504 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
35505 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
35506 if test "${gt_cv_header_inttypes_h+set}" = set; then
35507 echo $ECHO_N "(cached) $ECHO_C" >&6
35510 cat >conftest.$ac_ext <<_ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h. */
35516 #include <sys/types.h>
35517 #include <inttypes.h>
35526 rm -f conftest.$ac_objext
35527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35528 (eval $ac_compile) 2>conftest.er1
35530 grep -v '^ *+' conftest.er1 >conftest.err
35532 cat conftest.err >&5
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } &&
35535 { ac_try='test -z "$ac_c_werror_flag"
35536 || test ! -s conftest.err'
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; } &&
35542 { ac_try='test -s conftest.$ac_objext'
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; }; then
35548 gt_cv_header_inttypes_h=yes
35550 echo "$as_me: failed program was:" >&5
35551 sed 's/^/| /' conftest.$ac_ext >&5
35553 gt_cv_header_inttypes_h=no
35556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35559 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
35560 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
35561 if test $gt_cv_header_inttypes_h = yes; then
35563 cat >>confdefs.h <<_ACEOF
35564 #define HAVE_INTTYPES_H 1
35571 for ac_header in sys/inttypes.h
35573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35578 echo $ECHO_N "(cached) $ECHO_C" >&6
35580 ac_res=`eval echo '${'$as_ac_Header'}'`
35581 { echo "$as_me:$LINENO: result: $ac_res" >&5
35582 echo "${ECHO_T}$ac_res" >&6; }
35584 # Is the header compilable?
35585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35587 cat >conftest.$ac_ext <<_ACEOF
35590 cat confdefs.h >>conftest.$ac_ext
35591 cat >>conftest.$ac_ext <<_ACEOF
35592 /* end confdefs.h. */
35593 $ac_includes_default
35594 #include <$ac_header>
35596 rm -f conftest.$ac_objext
35597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35598 (eval $ac_compile) 2>conftest.er1
35600 grep -v '^ *+' conftest.er1 >conftest.err
35602 cat conftest.err >&5
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); } &&
35605 { ac_try='test -z "$ac_c_werror_flag"
35606 || test ! -s conftest.err'
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; } &&
35612 { ac_try='test -s conftest.$ac_objext'
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; }; then
35618 ac_header_compiler=yes
35620 echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35623 ac_header_compiler=no
35626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35628 echo "${ECHO_T}$ac_header_compiler" >&6; }
35630 # Is the header present?
35631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35633 cat >conftest.$ac_ext <<_ACEOF
35636 cat confdefs.h >>conftest.$ac_ext
35637 cat >>conftest.$ac_ext <<_ACEOF
35638 /* end confdefs.h. */
35639 #include <$ac_header>
35641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } >/dev/null; then
35649 if test -s conftest.err; then
35650 ac_cpp_err=$ac_c_preproc_warn_flag
35651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35658 if test -z "$ac_cpp_err"; then
35659 ac_header_preproc=yes
35661 echo "$as_me: failed program was:" >&5
35662 sed 's/^/| /' conftest.$ac_ext >&5
35664 ac_header_preproc=no
35667 rm -f conftest.err conftest.$ac_ext
35668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35669 echo "${ECHO_T}$ac_header_preproc" >&6; }
35671 # So? What about this header?
35672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35678 ac_header_preproc=yes
35681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35694 ## ------------------------------------ ##
35695 ## Report this to bug-coreutils@gnu.org ##
35696 ## ------------------------------------ ##
35698 ) | sed "s/^/$as_me: WARNING: /" >&2
35701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35704 echo $ECHO_N "(cached) $ECHO_C" >&6
35706 eval "$as_ac_Header=\$ac_header_preproc"
35708 ac_res=`eval echo '${'$as_ac_Header'}'`
35709 { echo "$as_me:$LINENO: result: $ac_res" >&5
35710 echo "${ECHO_T}$ac_res" >&6; }
35713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35714 cat >>confdefs.h <<_ACEOF
35715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35723 for ac_header in sys/bitypes.h
35725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35730 echo $ECHO_N "(cached) $ECHO_C" >&6
35732 ac_res=`eval echo '${'$as_ac_Header'}'`
35733 { echo "$as_me:$LINENO: result: $ac_res" >&5
35734 echo "${ECHO_T}$ac_res" >&6; }
35736 # Is the header compilable?
35737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35739 cat >conftest.$ac_ext <<_ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h. */
35745 $ac_includes_default
35746 #include <$ac_header>
35748 rm -f conftest.$ac_objext
35749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35750 (eval $ac_compile) 2>conftest.er1
35752 grep -v '^ *+' conftest.er1 >conftest.err
35754 cat conftest.err >&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } &&
35757 { ac_try='test -z "$ac_c_werror_flag"
35758 || test ! -s conftest.err'
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; } &&
35764 { ac_try='test -s conftest.$ac_objext'
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; }; then
35770 ac_header_compiler=yes
35772 echo "$as_me: failed program was:" >&5
35773 sed 's/^/| /' conftest.$ac_ext >&5
35775 ac_header_compiler=no
35778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35780 echo "${ECHO_T}$ac_header_compiler" >&6; }
35782 # Is the header present?
35783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35785 cat >conftest.$ac_ext <<_ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h. */
35791 #include <$ac_header>
35793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35796 grep -v '^ *+' conftest.er1 >conftest.err
35798 cat conftest.err >&5
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); } >/dev/null; then
35801 if test -s conftest.err; then
35802 ac_cpp_err=$ac_c_preproc_warn_flag
35803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35810 if test -z "$ac_cpp_err"; then
35811 ac_header_preproc=yes
35813 echo "$as_me: failed program was:" >&5
35814 sed 's/^/| /' conftest.$ac_ext >&5
35816 ac_header_preproc=no
35819 rm -f conftest.err conftest.$ac_ext
35820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35821 echo "${ECHO_T}$ac_header_preproc" >&6; }
35823 # So? What about this header?
35824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35830 ac_header_preproc=yes
35833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35846 ## ------------------------------------ ##
35847 ## Report this to bug-coreutils@gnu.org ##
35848 ## ------------------------------------ ##
35850 ) | sed "s/^/$as_me: WARNING: /" >&2
35853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35856 echo $ECHO_N "(cached) $ECHO_C" >&6
35858 eval "$as_ac_Header=\$ac_header_preproc"
35860 ac_res=`eval echo '${'$as_ac_Header'}'`
35861 { echo "$as_me:$LINENO: result: $ac_res" >&5
35862 echo "${ECHO_T}$ac_res" >&6; }
35865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35866 cat >>confdefs.h <<_ACEOF
35867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35875 { echo "$as_me:$LINENO: checking for stdint.h" >&5
35876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
35877 if test "${gl_cv_header_stdint_h+set}" = set; then
35878 echo $ECHO_N "(cached) $ECHO_C" >&6
35881 cat >conftest.$ac_ext <<_ACEOF
35884 cat confdefs.h >>conftest.$ac_ext
35885 cat >>conftest.$ac_ext <<_ACEOF
35886 /* end confdefs.h. */
35887 #include <stdint.h>
35896 rm -f conftest.$ac_objext
35897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35898 (eval $ac_compile) 2>conftest.er1
35900 grep -v '^ *+' conftest.er1 >conftest.err
35902 cat conftest.err >&5
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); } &&
35905 { ac_try='test -z "$ac_c_werror_flag"
35906 || test ! -s conftest.err'
35907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35908 (eval $ac_try) 2>&5
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); }; } &&
35912 { ac_try='test -s conftest.$ac_objext'
35913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35914 (eval $ac_try) 2>&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); }; }; then
35918 gl_cv_header_stdint_h=yes
35920 echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.$ac_ext >&5
35923 gl_cv_header_stdint_h=no
35926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35929 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
35930 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
35931 if test $gl_cv_header_stdint_h = yes; then
35933 cat >>confdefs.h <<\_ACEOF
35934 #define HAVE_STDINT_H 1
35939 STDINT_H='stdint.h'
35941 { echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
35942 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6; }
35943 if test "${gl_cv_long_bitsize_64+set}" = set; then
35944 echo $ECHO_N "(cached) $ECHO_C" >&6
35947 cat >conftest.$ac_ext <<_ACEOF
35950 cat confdefs.h >>conftest.$ac_ext
35951 cat >>conftest.$ac_ext <<_ACEOF
35952 /* end confdefs.h. */
35954 #define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
35955 #define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
35956 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
35966 rm -f conftest.$ac_objext
35967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35968 (eval $ac_compile) 2>conftest.er1
35970 grep -v '^ *+' conftest.er1 >conftest.err
35972 cat conftest.err >&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } &&
35975 { ac_try='test -z "$ac_c_werror_flag"
35976 || test ! -s conftest.err'
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; } &&
35982 { ac_try='test -s conftest.$ac_objext'
35983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35984 (eval $ac_try) 2>&5
35986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 (exit $ac_status); }; }; then
35988 gl_cv_long_bitsize_64=yes
35990 echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35993 gl_cv_long_bitsize_64=no
35996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35998 { echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
35999 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6; }
36000 if test $gl_cv_long_bitsize_64 = yes; then
36007 { echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
36008 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6; }
36009 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
36010 echo $ECHO_N "(cached) $ECHO_C" >&6
36013 cat >conftest.$ac_ext <<_ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h. */
36020 #define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
36021 #define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
36022 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
36032 rm -f conftest.$ac_objext
36033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36034 (eval $ac_compile) 2>conftest.er1
36036 grep -v '^ *+' conftest.er1 >conftest.err
36038 cat conftest.err >&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } &&
36041 { ac_try='test -z "$ac_c_werror_flag"
36042 || test ! -s conftest.err'
36043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044 (eval $ac_try) 2>&5
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); }; } &&
36048 { ac_try='test -s conftest.$ac_objext'
36049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050 (eval $ac_try) 2>&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); }; }; then
36054 gl_cv_longlong_bitsize_64=yes
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 gl_cv_longlong_bitsize_64=no
36062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36064 { echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
36065 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6; }
36066 if test $gl_cv_longlong_bitsize_64 = yes; then
36067 HAVE_LONG_LONG_64BIT=1
36069 HAVE_LONG_LONG_64BIT=0
36078 case " $LIBOBJS " in
36079 *" fopen-safer.$ac_objext "* ) ;;
36080 *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext"
36087 case " $LIBOBJS " in
36088 *" mkstemp-safer.$ac_objext "* ) ;;
36089 *) LIBOBJS="$LIBOBJS mkstemp-safer.$ac_objext"
36096 case " $LIBOBJS " in
36097 *" strcasecmp.$ac_objext "* ) ;;
36098 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
36103 cat >>confdefs.h <<\_ACEOF
36104 #define strcasecmp rpl_strcasecmp
36114 for ac_func in strncasecmp
36116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36120 echo $ECHO_N "(cached) $ECHO_C" >&6
36122 cat >conftest.$ac_ext <<_ACEOF
36125 cat confdefs.h >>conftest.$ac_ext
36126 cat >>conftest.$ac_ext <<_ACEOF
36127 /* end confdefs.h. */
36128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36130 #define $ac_func innocuous_$ac_func
36132 /* System header to define __stub macros and hopefully few prototypes,
36133 which can conflict with char $ac_func (); below.
36134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36135 <limits.h> exists even on freestanding compilers. */
36138 # include <limits.h>
36140 # include <assert.h>
36145 /* Override any GCC internal prototype to avoid an error.
36146 Use char because int might match the return type of a GCC
36147 builtin and then its argument prototype would still apply. */
36152 /* The GNU C library defines this for functions which it implements
36153 to always fail with ENOSYS. Some functions are actually named
36154 something starting with __ and the normal name is an alias. */
36155 #if defined __stub_$ac_func || defined __stub___$ac_func
36162 return $ac_func ();
36167 rm -f conftest.$ac_objext conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169 (eval $ac_link) 2>conftest.er1
36171 grep -v '^ *+' conftest.er1 >conftest.err
36173 cat conftest.err >&5
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } &&
36176 { ac_try='test -z "$ac_c_werror_flag"
36177 || test ! -s conftest.err'
36178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_exeext'
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; }; then
36189 eval "$as_ac_var=yes"
36191 echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36194 eval "$as_ac_var=no"
36197 rm -f conftest.err conftest.$ac_objext \
36198 conftest$ac_exeext conftest.$ac_ext
36200 ac_res=`eval echo '${'$as_ac_var'}'`
36201 { echo "$as_me:$LINENO: result: $ac_res" >&5
36202 echo "${ECHO_T}$ac_res" >&6; }
36203 if test `eval echo '${'$as_ac_var'}'` = yes; then
36204 cat >>confdefs.h <<_ACEOF
36205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36209 case " $LIBOBJS " in
36210 *" $ac_func.$ac_objext "* ) ;;
36211 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
36219 if test $ac_cv_func_strncasecmp = no; then
36226 { echo "$as_me:$LINENO: checking for inline" >&5
36227 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
36228 if test "${ac_cv_c_inline+set}" = set; then
36229 echo $ECHO_N "(cached) $ECHO_C" >&6
36232 for ac_kw in inline __inline__ __inline; do
36233 cat >conftest.$ac_ext <<_ACEOF
36236 cat confdefs.h >>conftest.$ac_ext
36237 cat >>conftest.$ac_ext <<_ACEOF
36238 /* end confdefs.h. */
36239 #ifndef __cplusplus
36241 static $ac_kw foo_t static_foo () {return 0; }
36242 $ac_kw foo_t foo () {return 0; }
36246 rm -f conftest.$ac_objext
36247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36248 (eval $ac_compile) 2>conftest.er1
36250 grep -v '^ *+' conftest.er1 >conftest.err
36252 cat conftest.err >&5
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); } &&
36255 { ac_try='test -z "$ac_c_werror_flag"
36256 || test ! -s conftest.err'
36257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36258 (eval $ac_try) 2>&5
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); }; } &&
36262 { ac_try='test -s conftest.$ac_objext'
36263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264 (eval $ac_try) 2>&5
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); }; }; then
36268 ac_cv_c_inline=$ac_kw
36270 echo "$as_me: failed program was:" >&5
36271 sed 's/^/| /' conftest.$ac_ext >&5
36276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36277 test "$ac_cv_c_inline" != no && break
36281 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
36282 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
36285 case $ac_cv_c_inline in
36288 case $ac_cv_c_inline in
36290 *) ac_val=$ac_cv_c_inline;;
36292 cat >>confdefs.h <<_ACEOF
36293 #ifndef __cplusplus
36294 #define inline $ac_val
36302 case " $LIBOBJS " in
36303 *" strintcmp.$ac_objext "* ) ;;
36304 *) LIBOBJS="$LIBOBJS strintcmp.$ac_objext"
36313 case " $LIBOBJS " in
36314 *" strnumcmp.$ac_objext "* ) ;;
36315 *) LIBOBJS="$LIBOBJS strnumcmp.$ac_objext"
36324 case " $LIBOBJS " in
36325 *" stripslash.$ac_objext "* ) ;;
36326 *) LIBOBJS="$LIBOBJS stripslash.$ac_objext"
36338 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
36339 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; }
36340 if test "${gl_cv_time_r_posix+set}" = set; then
36341 echo $ECHO_N "(cached) $ECHO_C" >&6
36343 cat >conftest.$ac_ext <<_ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h. */
36353 /* We don't need to append 'restrict's to the argument types,
36354 even though the POSIX signature has the 'restrict's,
36355 since C99 says they can't affect type compatibility. */
36356 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
36361 rm -f conftest.$ac_objext
36362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36363 (eval $ac_compile) 2>conftest.er1
36365 grep -v '^ *+' conftest.er1 >conftest.err
36367 cat conftest.err >&5
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); } &&
36370 { ac_try='test -z "$ac_c_werror_flag"
36371 || test ! -s conftest.err'
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; } &&
36377 { ac_try='test -s conftest.$ac_objext'
36378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379 (eval $ac_try) 2>&5
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); }; }; then
36383 gl_cv_time_r_posix=yes
36385 echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36388 gl_cv_time_r_posix=no
36391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36393 { echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
36394 echo "${ECHO_T}$gl_cv_time_r_posix" >&6; }
36395 if test $gl_cv_time_r_posix = yes; then
36397 cat >>confdefs.h <<\_ACEOF
36398 #define HAVE_TIME_R_POSIX 1
36402 case " $LIBOBJS " in
36403 *" time_r.$ac_objext "* ) ;;
36404 *) LIBOBJS="$LIBOBJS time_r.$ac_objext"
36418 case " $LIBOBJS " in
36419 *" dup-safer.$ac_objext "* ) ;;
36420 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext"
36424 case " $LIBOBJS " in
36425 *" fd-safer.$ac_objext "* ) ;;
36426 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext"
36430 case " $LIBOBJS " in
36431 *" pipe-safer.$ac_objext "* ) ;;
36432 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext"
36448 case " $LIBOBJS " in
36449 *" unlinkdir.$ac_objext "* ) ;;
36450 *) LIBOBJS="$LIBOBJS unlinkdir.$ac_objext"
36455 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
36456 # and Cygwin never let anyone (even root) unlink directories.
36457 # If anyone knows of another system for which unlink can never
36458 # remove a directory, please report it to <bug-coreutils@gnu.org>.
36459 # Unfortunately this is difficult to test for, since it requires root access
36460 # and might create garbage in the file system,
36461 # so the code below simply relies on the kernel name and version number.
36464 *-*-linux-* | *-*-linux | \
36465 *-*-freebsd2.2* | *-*-freebsd3-9* | *-*-freebsd1-90-9* | \
36468 cat >>confdefs.h <<\_ACEOF
36469 #define UNLINK_CANNOT_UNLINK_DIR 1
36476 case " $LIBOBJS " in
36477 *" userspec.$ac_objext "* ) ;;
36478 *) LIBOBJS="$LIBOBJS userspec.$ac_objext"
36492 { echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
36493 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6; }
36494 if test "${gl_cv_func_working_utimes+set}" = set; then
36495 echo $ECHO_N "(cached) $ECHO_C" >&6
36498 if test "$cross_compiling" = yes; then
36499 gl_cv_func_working_utimes=no
36501 cat >conftest.$ac_ext <<_ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h. */
36508 #include <sys/types.h>
36509 #include <sys/stat.h>
36511 #include <sys/time.h>
36513 #include <unistd.h>
36514 #include <stdlib.h>
36521 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
36523 char const *file = "conftest.utimes";
36528 int ok = ((f = fopen (file, "w"))
36530 && utimes (file, timeval) == 0
36531 && lstat (file, &sbuf) == 0
36532 && sbuf.st_atime == timeval[0].tv_sec
36533 && sbuf.st_mtime == timeval[1].tv_sec);
36539 ((f = fopen (file, "w"))
36541 && time (&now) != (time_t)-1
36542 && utimes (file, NULL) == 0
36543 && lstat (file, &sbuf) == 0
36544 && now - sbuf.st_atime <= 2
36545 && now - sbuf.st_mtime <= 2);
36550 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
36552 && utimes (file, NULL) == 0);
36559 rm -f conftest$ac_exeext
36560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36561 (eval $ac_link) 2>&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566 (eval $ac_try) 2>&5
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); }; }; then
36570 gl_cv_func_working_utimes=yes
36572 echo "$as_me: program exited with status $ac_status" >&5
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36576 ( exit $ac_status )
36577 gl_cv_func_working_utimes=no
36579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36584 { echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
36585 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6; }
36587 if test $gl_cv_func_working_utimes = yes; then
36589 cat >>confdefs.h <<\_ACEOF
36590 #define HAVE_WORKING_UTIMES 1
36597 case " $LIBOBJS " in
36598 *" utimecmp.$ac_objext "* ) ;;
36599 *) LIBOBJS="$LIBOBJS utimecmp.$ac_objext"
36626 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
36627 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
36628 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
36629 echo $ECHO_N "(cached) $ECHO_C" >&6
36631 cat >conftest.$ac_ext <<_ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h. */
36638 #ifdef TIME_WITH_SYS_TIME
36639 # include <sys/time.h>
36642 # ifdef HAVE_SYS_TIME_H
36643 # include <sys/time.h>
36648 #ifdef HAVE_UTIME_H
36649 # include <utime.h>
36655 static struct utimbuf x; x.actime = x.modtime;
36660 rm -f conftest.$ac_objext
36661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36662 (eval $ac_compile) 2>conftest.er1
36664 grep -v '^ *+' conftest.er1 >conftest.err
36666 cat conftest.err >&5
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); } &&
36669 { ac_try='test -z "$ac_c_werror_flag"
36670 || test ! -s conftest.err'
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; } &&
36676 { ac_try='test -s conftest.$ac_objext'
36677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678 (eval $ac_try) 2>&5
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); }; }; then
36682 fu_cv_sys_struct_utimbuf=yes
36684 echo "$as_me: failed program was:" >&5
36685 sed 's/^/| /' conftest.$ac_ext >&5
36687 fu_cv_sys_struct_utimbuf=no
36690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36693 { echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
36694 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6; }
36696 if test $fu_cv_sys_struct_utimbuf = yes; then
36698 cat >>confdefs.h <<\_ACEOF
36699 #define HAVE_STRUCT_UTIMBUF 1
36718 case " $LIBOBJS " in
36719 *" utimens.$ac_objext "* ) ;;
36720 *) LIBOBJS="$LIBOBJS utimens.$ac_objext"
36742 case " $LIBOBJS " in
36743 *" xmalloc.$ac_objext "* ) ;;
36744 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
36760 { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
36761 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
36762 if test "${gl_cv_func_getcwd_null+set}" = set; then
36763 echo $ECHO_N "(cached) $ECHO_C" >&6
36765 if test "$cross_compiling" = yes; then
36766 gl_cv_func_getcwd_null=no
36768 cat >conftest.$ac_ext <<_ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h. */
36775 # include <stdlib.h>
36776 # include <unistd.h>
36783 if (chdir ("/") != 0)
36787 char *f = getcwd (NULL, 0);
36788 exit (! (f && f[0] == '/' && !f[1]));
36792 rm -f conftest$ac_exeext
36793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36794 (eval $ac_link) 2>&5
36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 (eval $ac_try) 2>&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); }; }; then
36803 gl_cv_func_getcwd_null=yes
36805 echo "$as_me: program exited with status $ac_status" >&5
36806 echo "$as_me: failed program was:" >&5
36807 sed 's/^/| /' conftest.$ac_ext >&5
36809 ( exit $ac_status )
36810 gl_cv_func_getcwd_null=no
36812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36817 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
36818 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6; }
36821 { echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
36822 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6; }
36823 if test "${ac_cv_have_decl_getcwd+set}" = set; then
36824 echo $ECHO_N "(cached) $ECHO_C" >&6
36826 cat >conftest.$ac_ext <<_ACEOF
36829 cat confdefs.h >>conftest.$ac_ext
36830 cat >>conftest.$ac_ext <<_ACEOF
36831 /* end confdefs.h. */
36832 $ac_includes_default
36837 char *p = (char *) getcwd;
36845 rm -f conftest.$ac_objext
36846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36847 (eval $ac_compile) 2>conftest.er1
36849 grep -v '^ *+' conftest.er1 >conftest.err
36851 cat conftest.err >&5
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); } &&
36854 { ac_try='test -z "$ac_c_werror_flag"
36855 || test ! -s conftest.err'
36856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 (eval $ac_try) 2>&5
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); }; } &&
36861 { ac_try='test -s conftest.$ac_objext'
36862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863 (eval $ac_try) 2>&5
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); }; }; then
36867 ac_cv_have_decl_getcwd=yes
36869 echo "$as_me: failed program was:" >&5
36870 sed 's/^/| /' conftest.$ac_ext >&5
36872 ac_cv_have_decl_getcwd=no
36875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36877 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
36878 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6; }
36879 if test $ac_cv_have_decl_getcwd = yes; then
36881 cat >>confdefs.h <<_ACEOF
36882 #define HAVE_DECL_GETCWD 1
36887 cat >>confdefs.h <<_ACEOF
36888 #define HAVE_DECL_GETCWD 0
36899 case $gl_cv_func_getcwd_null in
36909 { echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
36910 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6; }
36911 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
36912 echo $ECHO_N "(cached) $ECHO_C" >&6
36914 # Arrange for deletion of the temporary directory this test creates.
36915 ac_clean_files="$ac_clean_files confdir3"
36916 if test "$cross_compiling" = yes; then
36917 gl_cv_func_getcwd_path_max=no
36919 cat >conftest.$ac_ext <<_ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h. */
36927 #include <stdlib.h>
36928 #include <unistd.h>
36929 #include <string.h>
36930 #include <limits.h>
36931 #include <sys/stat.h>
36932 #include <sys/types.h>
36936 # define AT_FDCWD 0
36938 #ifdef ENAMETOOLONG
36939 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
36941 # define is_ENAMETOOLONG(x) 0
36944 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
36948 # define S_IRWXU 0700
36951 /* The length of this name must be 8. */
36952 #define DIR_NAME "confdir3"
36953 #define DIR_NAME_LEN 8
36954 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
36956 /* The length of "../". */
36957 #define DOTDOTSLASH_LEN 3
36959 /* Leftover bytes in the buffer, to work around library or OS bugs. */
36960 #define BUF_SLOP 20
36966 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
36967 at least not on a local file system. And if we were to start worrying
36968 about remote file systems, we'd have to enable the wrapper function
36969 all of the time, just to be safe. That's not worth the cost. */
36971 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
36972 - DIR_NAME_SIZE - BUF_SLOP) \
36974 /* FIXME: Assuming there's a system for which this is true,
36975 this should be done in a compile test. */
36978 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
36979 + DIR_NAME_SIZE + BUF_SLOP];
36980 char *cwd = getcwd (buf, PATH_MAX);
36981 size_t initial_cwd_len;
36984 size_t n_chdirs = 0;
36989 cwd_len = initial_cwd_len = strlen (cwd);
36993 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
36996 cwd_len += DIR_NAME_SIZE;
36997 /* If mkdir or chdir fails, it could be that this system cannot create
36998 any file with an absolute name longer than PATH_MAX, such as cygwin.
36999 If so, leave fail as 0, because the current working directory can't
37000 be too long for getcwd if it can't even be created. For other
37001 errors, be pessimistic and consider that as a failure, too. */
37002 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
37004 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
37009 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
37011 c = getcwd (buf, PATH_MAX);
37012 if (!c && errno == ENOENT)
37017 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
37024 if (dotdot_max <= cwd_len - initial_cwd_len)
37026 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
37028 c = getcwd (buf, cwd_len + 1);
37031 if (! (errno == ERANGE || errno == ENOENT
37032 || is_ENAMETOOLONG (errno)))
37037 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
37045 if (c && strlen (c) != cwd_len)
37053 /* Leaving behind such a deep directory is not polite.
37054 So clean up here, right away, even though the driving
37055 shell script would also clean up. */
37059 /* Unlink first, in case the chdir failed. */
37061 for (i = 0; i <= n_chdirs; i++)
37063 if (chdir ("..") < 0)
37074 rm -f conftest$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076 (eval $ac_link) 2>&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081 (eval $ac_try) 2>&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; }; then
37085 gl_cv_func_getcwd_path_max=yes
37087 echo "$as_me: program exited with status $ac_status" >&5
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37091 ( exit $ac_status )
37093 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
37094 *) gl_cv_func_getcwd_path_max=no;;
37097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37103 { echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
37104 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6; }
37105 case $gl_cv_func_getcwd_path_max in
37108 cat >>confdefs.h <<\_ACEOF
37109 #define HAVE_PARTLY_WORKING_GETCWD 1
37116 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
37119 case " $LIBOBJS " in
37120 *" getcwd.$ac_objext "* ) ;;
37121 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
37126 cat >>confdefs.h <<\_ACEOF
37127 #define __GETCWD_PREFIX rpl_
37140 case " $LIBOBJS " in
37141 *" xgetcwd.$ac_objext "* ) ;;
37142 *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext"
37151 case " $LIBOBJS " in
37152 *" xnanosleep.$ac_objext "* ) ;;
37153 *) LIBOBJS="$LIBOBJS xnanosleep.$ac_objext"
37160 case " $LIBOBJS " in
37161 *" xreadlink.$ac_objext "* ) ;;
37162 *) LIBOBJS="$LIBOBJS xreadlink.$ac_objext"
37171 case " $LIBOBJS " in
37172 *" xstrtod.$ac_objext "* ) ;;
37173 *) LIBOBJS="$LIBOBJS xstrtod.$ac_objext"
37192 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
37193 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
37194 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37197 cat >conftest.$ac_ext <<_ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h. */
37203 $ac_includes_default
37208 char *p = (char *) strtoimax;
37216 rm -f conftest.$ac_objext
37217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37218 (eval $ac_compile) 2>conftest.er1
37220 grep -v '^ *+' conftest.er1 >conftest.err
37222 cat conftest.err >&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); } &&
37225 { ac_try='test -z "$ac_c_werror_flag"
37226 || test ! -s conftest.err'
37227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37228 (eval $ac_try) 2>&5
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); }; } &&
37232 { ac_try='test -s conftest.$ac_objext'
37233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234 (eval $ac_try) 2>&5
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); }; }; then
37238 ac_cv_have_decl_strtoimax=yes
37240 echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37243 ac_cv_have_decl_strtoimax=no
37246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
37249 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
37250 if test $ac_cv_have_decl_strtoimax = yes; then
37252 cat >>confdefs.h <<_ACEOF
37253 #define HAVE_DECL_STRTOIMAX 1
37258 cat >>confdefs.h <<_ACEOF
37259 #define HAVE_DECL_STRTOIMAX 0
37264 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
37265 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
37266 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
37267 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 cat >conftest.$ac_ext <<_ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h. */
37275 $ac_includes_default
37280 char *p = (char *) strtoumax;
37288 rm -f conftest.$ac_objext
37289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37290 (eval $ac_compile) 2>conftest.er1
37292 grep -v '^ *+' conftest.er1 >conftest.err
37294 cat conftest.err >&5
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); } &&
37297 { ac_try='test -z "$ac_c_werror_flag"
37298 || test ! -s conftest.err'
37299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300 (eval $ac_try) 2>&5
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); }; } &&
37304 { ac_try='test -s conftest.$ac_objext'
37305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306 (eval $ac_try) 2>&5
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); }; }; then
37310 ac_cv_have_decl_strtoumax=yes
37312 echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37315 ac_cv_have_decl_strtoumax=no
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
37321 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
37322 if test $ac_cv_have_decl_strtoumax = yes; then
37324 cat >>confdefs.h <<_ACEOF
37325 #define HAVE_DECL_STRTOUMAX 1
37330 cat >>confdefs.h <<_ACEOF
37331 #define HAVE_DECL_STRTOUMAX 0
37344 case " $LIBOBJS " in
37345 *" xstrtol.$ac_objext "* ) ;;
37346 *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext"
37350 case " $LIBOBJS " in
37351 *" xstrtoul.$ac_objext "* ) ;;
37352 *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext"
37362 case " $LIBOBJS " in
37363 *" yesno.$ac_objext "* ) ;;
37364 *) LIBOBJS="$LIBOBJS yesno.$ac_objext"
37371 { echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
37372 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6; }
37373 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
37374 echo $ECHO_N "(cached) $ECHO_C" >&6
37376 if test "$cross_compiling" = yes; then
37377 ac_cv_func_calloc_0_nonnull=no
37379 cat >conftest.$ac_ext <<_ACEOF
37382 cat confdefs.h >>conftest.$ac_ext
37383 cat >>conftest.$ac_ext <<_ACEOF
37384 /* end confdefs.h. */
37385 $ac_includes_default
37389 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
37394 rm -f conftest$ac_exeext
37395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37396 (eval $ac_link) 2>&5
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; }; then
37405 ac_cv_func_calloc_0_nonnull=yes
37407 echo "$as_me: program exited with status $ac_status" >&5
37408 echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37411 ( exit $ac_status )
37412 ac_cv_func_calloc_0_nonnull=no
37414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37419 { echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
37420 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6; }
37421 if test $ac_cv_func_calloc_0_nonnull = yes; then
37423 cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_CALLOC 1
37428 cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_CALLOC 0
37432 case " $LIBOBJS " in
37433 *" calloc.$ac_objext "* ) ;;
37434 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
37439 cat >>confdefs.h <<\_ACEOF
37440 #define calloc rpl_calloc
37448 { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
37449 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
37450 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
37451 echo $ECHO_N "(cached) $ECHO_C" >&6
37453 cat >conftest.$ac_ext <<_ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h. */
37459 $ac_includes_default
37463 #ifndef clearerr_unlocked
37464 char *p = (char *) clearerr_unlocked;
37472 rm -f conftest.$ac_objext
37473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37474 (eval $ac_compile) 2>conftest.er1
37476 grep -v '^ *+' conftest.er1 >conftest.err
37478 cat conftest.err >&5
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); } &&
37481 { ac_try='test -z "$ac_c_werror_flag"
37482 || test ! -s conftest.err'
37483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484 (eval $ac_try) 2>&5
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); }; } &&
37488 { ac_try='test -s conftest.$ac_objext'
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; }; then
37494 ac_cv_have_decl_clearerr_unlocked=yes
37496 echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37499 ac_cv_have_decl_clearerr_unlocked=no
37502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37504 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
37505 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
37506 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
37508 cat >>confdefs.h <<_ACEOF
37509 #define HAVE_DECL_CLEARERR_UNLOCKED 1
37514 cat >>confdefs.h <<_ACEOF
37515 #define HAVE_DECL_CLEARERR_UNLOCKED 0
37524 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
37525 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
37526 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
37527 echo $ECHO_N "(cached) $ECHO_C" >&6
37529 cat >conftest.$ac_ext <<_ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h. */
37535 $ac_includes_default
37539 #ifndef feof_unlocked
37540 char *p = (char *) feof_unlocked;
37548 rm -f conftest.$ac_objext
37549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37550 (eval $ac_compile) 2>conftest.er1
37552 grep -v '^ *+' conftest.er1 >conftest.err
37554 cat conftest.err >&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); } &&
37557 { ac_try='test -z "$ac_c_werror_flag"
37558 || test ! -s conftest.err'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; } &&
37564 { ac_try='test -s conftest.$ac_objext'
37565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566 (eval $ac_try) 2>&5
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; }; then
37570 ac_cv_have_decl_feof_unlocked=yes
37572 echo "$as_me: failed program was:" >&5
37573 sed 's/^/| /' conftest.$ac_ext >&5
37575 ac_cv_have_decl_feof_unlocked=no
37578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
37581 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
37582 if test $ac_cv_have_decl_feof_unlocked = yes; then
37584 cat >>confdefs.h <<_ACEOF
37585 #define HAVE_DECL_FEOF_UNLOCKED 1
37590 cat >>confdefs.h <<_ACEOF
37591 #define HAVE_DECL_FEOF_UNLOCKED 0
37600 { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
37601 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
37602 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
37603 echo $ECHO_N "(cached) $ECHO_C" >&6
37605 cat >conftest.$ac_ext <<_ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h. */
37611 $ac_includes_default
37615 #ifndef ferror_unlocked
37616 char *p = (char *) ferror_unlocked;
37624 rm -f conftest.$ac_objext
37625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37626 (eval $ac_compile) 2>conftest.er1
37628 grep -v '^ *+' conftest.er1 >conftest.err
37630 cat conftest.err >&5
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); } &&
37633 { ac_try='test -z "$ac_c_werror_flag"
37634 || test ! -s conftest.err'
37635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 (eval $ac_try) 2>&5
37638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); }; } &&
37640 { ac_try='test -s conftest.$ac_objext'
37641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37642 (eval $ac_try) 2>&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); }; }; then
37646 ac_cv_have_decl_ferror_unlocked=yes
37648 echo "$as_me: failed program was:" >&5
37649 sed 's/^/| /' conftest.$ac_ext >&5
37651 ac_cv_have_decl_ferror_unlocked=no
37654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37656 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
37657 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
37658 if test $ac_cv_have_decl_ferror_unlocked = yes; then
37660 cat >>confdefs.h <<_ACEOF
37661 #define HAVE_DECL_FERROR_UNLOCKED 1
37666 cat >>confdefs.h <<_ACEOF
37667 #define HAVE_DECL_FERROR_UNLOCKED 0
37676 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
37677 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
37678 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
37679 echo $ECHO_N "(cached) $ECHO_C" >&6
37681 cat >conftest.$ac_ext <<_ACEOF
37684 cat confdefs.h >>conftest.$ac_ext
37685 cat >>conftest.$ac_ext <<_ACEOF
37686 /* end confdefs.h. */
37687 $ac_includes_default
37691 #ifndef fgets_unlocked
37692 char *p = (char *) fgets_unlocked;
37700 rm -f conftest.$ac_objext
37701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37702 (eval $ac_compile) 2>conftest.er1
37704 grep -v '^ *+' conftest.er1 >conftest.err
37706 cat conftest.err >&5
37707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708 (exit $ac_status); } &&
37709 { ac_try='test -z "$ac_c_werror_flag"
37710 || test ! -s conftest.err'
37711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712 (eval $ac_try) 2>&5
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); }; } &&
37716 { ac_try='test -s conftest.$ac_objext'
37717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37718 (eval $ac_try) 2>&5
37720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721 (exit $ac_status); }; }; then
37722 ac_cv_have_decl_fgets_unlocked=yes
37724 echo "$as_me: failed program was:" >&5
37725 sed 's/^/| /' conftest.$ac_ext >&5
37727 ac_cv_have_decl_fgets_unlocked=no
37730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37732 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
37733 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
37734 if test $ac_cv_have_decl_fgets_unlocked = yes; then
37736 cat >>confdefs.h <<_ACEOF
37737 #define HAVE_DECL_FGETS_UNLOCKED 1
37742 cat >>confdefs.h <<_ACEOF
37743 #define HAVE_DECL_FGETS_UNLOCKED 0
37752 { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
37753 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
37754 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37757 cat >conftest.$ac_ext <<_ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h. */
37763 $ac_includes_default
37767 #ifndef fputc_unlocked
37768 char *p = (char *) fputc_unlocked;
37776 rm -f conftest.$ac_objext
37777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37778 (eval $ac_compile) 2>conftest.er1
37780 grep -v '^ *+' conftest.er1 >conftest.err
37782 cat conftest.err >&5
37783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784 (exit $ac_status); } &&
37785 { ac_try='test -z "$ac_c_werror_flag"
37786 || test ! -s conftest.err'
37787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37788 (eval $ac_try) 2>&5
37790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791 (exit $ac_status); }; } &&
37792 { ac_try='test -s conftest.$ac_objext'
37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794 (eval $ac_try) 2>&5
37796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); }; }; then
37798 ac_cv_have_decl_fputc_unlocked=yes
37800 echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37803 ac_cv_have_decl_fputc_unlocked=no
37806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37808 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
37809 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
37810 if test $ac_cv_have_decl_fputc_unlocked = yes; then
37812 cat >>confdefs.h <<_ACEOF
37813 #define HAVE_DECL_FPUTC_UNLOCKED 1
37818 cat >>confdefs.h <<_ACEOF
37819 #define HAVE_DECL_FPUTC_UNLOCKED 0
37828 { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
37829 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
37830 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
37831 echo $ECHO_N "(cached) $ECHO_C" >&6
37833 cat >conftest.$ac_ext <<_ACEOF
37836 cat confdefs.h >>conftest.$ac_ext
37837 cat >>conftest.$ac_ext <<_ACEOF
37838 /* end confdefs.h. */
37839 $ac_includes_default
37843 #ifndef fread_unlocked
37844 char *p = (char *) fread_unlocked;
37852 rm -f conftest.$ac_objext
37853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37854 (eval $ac_compile) 2>conftest.er1
37856 grep -v '^ *+' conftest.er1 >conftest.err
37858 cat conftest.err >&5
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); } &&
37861 { ac_try='test -z "$ac_c_werror_flag"
37862 || test ! -s conftest.err'
37863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37864 (eval $ac_try) 2>&5
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); }; } &&
37868 { ac_try='test -s conftest.$ac_objext'
37869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37870 (eval $ac_try) 2>&5
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); }; }; then
37874 ac_cv_have_decl_fread_unlocked=yes
37876 echo "$as_me: failed program was:" >&5
37877 sed 's/^/| /' conftest.$ac_ext >&5
37879 ac_cv_have_decl_fread_unlocked=no
37882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
37885 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
37886 if test $ac_cv_have_decl_fread_unlocked = yes; then
37888 cat >>confdefs.h <<_ACEOF
37889 #define HAVE_DECL_FREAD_UNLOCKED 1
37894 cat >>confdefs.h <<_ACEOF
37895 #define HAVE_DECL_FREAD_UNLOCKED 0
37904 { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
37905 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
37906 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37909 cat >conftest.$ac_ext <<_ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h. */
37915 $ac_includes_default
37919 #ifndef fwrite_unlocked
37920 char *p = (char *) fwrite_unlocked;
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930 (eval $ac_compile) 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag"
37938 || test ! -s conftest.err'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; } &&
37944 { ac_try='test -s conftest.$ac_objext'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; }; then
37950 ac_cv_have_decl_fwrite_unlocked=yes
37952 echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37955 ac_cv_have_decl_fwrite_unlocked=no
37958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
37961 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
37962 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
37964 cat >>confdefs.h <<_ACEOF
37965 #define HAVE_DECL_FWRITE_UNLOCKED 1
37970 cat >>confdefs.h <<_ACEOF
37971 #define HAVE_DECL_FWRITE_UNLOCKED 0
37980 { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
37981 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
37982 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
37983 echo $ECHO_N "(cached) $ECHO_C" >&6
37985 cat >conftest.$ac_ext <<_ACEOF
37988 cat confdefs.h >>conftest.$ac_ext
37989 cat >>conftest.$ac_ext <<_ACEOF
37990 /* end confdefs.h. */
37991 $ac_includes_default
37995 #ifndef getchar_unlocked
37996 char *p = (char *) getchar_unlocked;
38004 rm -f conftest.$ac_objext
38005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38006 (eval $ac_compile) 2>conftest.er1
38008 grep -v '^ *+' conftest.er1 >conftest.err
38010 cat conftest.err >&5
38011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012 (exit $ac_status); } &&
38013 { ac_try='test -z "$ac_c_werror_flag"
38014 || test ! -s conftest.err'
38015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38016 (eval $ac_try) 2>&5
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); }; } &&
38020 { ac_try='test -s conftest.$ac_objext'
38021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38022 (eval $ac_try) 2>&5
38024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025 (exit $ac_status); }; }; then
38026 ac_cv_have_decl_getchar_unlocked=yes
38028 echo "$as_me: failed program was:" >&5
38029 sed 's/^/| /' conftest.$ac_ext >&5
38031 ac_cv_have_decl_getchar_unlocked=no
38034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38036 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
38037 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
38038 if test $ac_cv_have_decl_getchar_unlocked = yes; then
38040 cat >>confdefs.h <<_ACEOF
38041 #define HAVE_DECL_GETCHAR_UNLOCKED 1
38046 cat >>confdefs.h <<_ACEOF
38047 #define HAVE_DECL_GETCHAR_UNLOCKED 0
38056 { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
38057 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
38058 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
38059 echo $ECHO_N "(cached) $ECHO_C" >&6
38061 cat >conftest.$ac_ext <<_ACEOF
38064 cat confdefs.h >>conftest.$ac_ext
38065 cat >>conftest.$ac_ext <<_ACEOF
38066 /* end confdefs.h. */
38067 $ac_includes_default
38071 #ifndef putchar_unlocked
38072 char *p = (char *) putchar_unlocked;
38080 rm -f conftest.$ac_objext
38081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38082 (eval $ac_compile) 2>conftest.er1
38084 grep -v '^ *+' conftest.er1 >conftest.err
38086 cat conftest.err >&5
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); } &&
38089 { ac_try='test -z "$ac_c_werror_flag"
38090 || test ! -s conftest.err'
38091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38092 (eval $ac_try) 2>&5
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); }; } &&
38096 { ac_try='test -s conftest.$ac_objext'
38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098 (eval $ac_try) 2>&5
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; }; then
38102 ac_cv_have_decl_putchar_unlocked=yes
38104 echo "$as_me: failed program was:" >&5
38105 sed 's/^/| /' conftest.$ac_ext >&5
38107 ac_cv_have_decl_putchar_unlocked=no
38110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38112 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
38113 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
38114 if test $ac_cv_have_decl_putchar_unlocked = yes; then
38116 cat >>confdefs.h <<_ACEOF
38117 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
38122 cat >>confdefs.h <<_ACEOF
38123 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
38135 cat >>confdefs.h <<\_ACEOF
38136 #define USE_UNLOCKED_IO 1
38187 for ac_func in strftime
38189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38193 echo $ECHO_N "(cached) $ECHO_C" >&6
38195 cat >conftest.$ac_ext <<_ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38203 #define $ac_func innocuous_$ac_func
38205 /* System header to define __stub macros and hopefully few prototypes,
38206 which can conflict with char $ac_func (); below.
38207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38208 <limits.h> exists even on freestanding compilers. */
38211 # include <limits.h>
38213 # include <assert.h>
38218 /* Override any GCC internal prototype to avoid an error.
38219 Use char because int might match the return type of a GCC
38220 builtin and then its argument prototype would still apply. */
38225 /* The GNU C library defines this for functions which it implements
38226 to always fail with ENOSYS. Some functions are actually named
38227 something starting with __ and the normal name is an alias. */
38228 #if defined __stub_$ac_func || defined __stub___$ac_func
38235 return $ac_func ();
38240 rm -f conftest.$ac_objext conftest$ac_exeext
38241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38242 (eval $ac_link) 2>conftest.er1
38244 grep -v '^ *+' conftest.er1 >conftest.err
38246 cat conftest.err >&5
38247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248 (exit $ac_status); } &&
38249 { ac_try='test -z "$ac_c_werror_flag"
38250 || test ! -s conftest.err'
38251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38252 (eval $ac_try) 2>&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); }; } &&
38256 { ac_try='test -s conftest$ac_exeext'
38257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38258 (eval $ac_try) 2>&5
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); }; }; then
38262 eval "$as_ac_var=yes"
38264 echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38267 eval "$as_ac_var=no"
38270 rm -f conftest.err conftest.$ac_objext \
38271 conftest$ac_exeext conftest.$ac_ext
38273 ac_res=`eval echo '${'$as_ac_var'}'`
38274 { echo "$as_me:$LINENO: result: $ac_res" >&5
38275 echo "${ECHO_T}$ac_res" >&6; }
38276 if test `eval echo '${'$as_ac_var'}'` = yes; then
38277 cat >>confdefs.h <<_ACEOF
38278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38282 # strftime is in -lintl on SCO UNIX.
38283 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38284 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38285 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38286 echo $ECHO_N "(cached) $ECHO_C" >&6
38288 ac_check_lib_save_LIBS=$LIBS
38289 LIBS="-lintl $LIBS"
38290 cat >conftest.$ac_ext <<_ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h. */
38297 /* Override any GCC internal prototype to avoid an error.
38298 Use char because int might match the return type of a GCC
38299 builtin and then its argument prototype would still apply. */
38307 return strftime ();
38312 rm -f conftest.$ac_objext conftest$ac_exeext
38313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38314 (eval $ac_link) 2>conftest.er1
38316 grep -v '^ *+' conftest.er1 >conftest.err
38318 cat conftest.err >&5
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); } &&
38321 { ac_try='test -z "$ac_c_werror_flag"
38322 || test ! -s conftest.err'
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; } &&
38328 { ac_try='test -s conftest$ac_exeext'
38329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330 (eval $ac_try) 2>&5
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); }; }; then
38334 ac_cv_lib_intl_strftime=yes
38336 echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38339 ac_cv_lib_intl_strftime=no
38342 rm -f conftest.err conftest.$ac_objext \
38343 conftest$ac_exeext conftest.$ac_ext
38344 LIBS=$ac_check_lib_save_LIBS
38346 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
38348 if test $ac_cv_lib_intl_strftime = yes; then
38349 cat >>confdefs.h <<\_ACEOF
38350 #define HAVE_STRFTIME 1
38353 LIBS="-lintl $LIBS"
38379 case " $LIBOBJS " in
38380 *" strftime.$ac_objext "* ) ;;
38381 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
38386 # strftime.c uses the underyling system strftime if it exists.
38389 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
38424 cat >>confdefs.h <<\_ACEOF
38425 #define my_strftime nstrftime
38431 for ac_header in stdlib.h
38433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38438 echo $ECHO_N "(cached) $ECHO_C" >&6
38440 ac_res=`eval echo '${'$as_ac_Header'}'`
38441 { echo "$as_me:$LINENO: result: $ac_res" >&5
38442 echo "${ECHO_T}$ac_res" >&6; }
38444 # Is the header compilable?
38445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38453 $ac_includes_default
38454 #include <$ac_header>
38456 rm -f conftest.$ac_objext
38457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38458 (eval $ac_compile) 2>conftest.er1
38460 grep -v '^ *+' conftest.er1 >conftest.err
38462 cat conftest.err >&5
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); } &&
38465 { ac_try='test -z "$ac_c_werror_flag"
38466 || test ! -s conftest.err'
38467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468 (eval $ac_try) 2>&5
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; } &&
38472 { ac_try='test -s conftest.$ac_objext'
38473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38474 (eval $ac_try) 2>&5
38476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477 (exit $ac_status); }; }; then
38478 ac_header_compiler=yes
38480 echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38483 ac_header_compiler=no
38486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38488 echo "${ECHO_T}$ac_header_compiler" >&6; }
38490 # Is the header present?
38491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38493 cat >conftest.$ac_ext <<_ACEOF
38496 cat confdefs.h >>conftest.$ac_ext
38497 cat >>conftest.$ac_ext <<_ACEOF
38498 /* end confdefs.h. */
38499 #include <$ac_header>
38501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38504 grep -v '^ *+' conftest.er1 >conftest.err
38506 cat conftest.err >&5
38507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508 (exit $ac_status); } >/dev/null; then
38509 if test -s conftest.err; then
38510 ac_cpp_err=$ac_c_preproc_warn_flag
38511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38518 if test -z "$ac_cpp_err"; then
38519 ac_header_preproc=yes
38521 echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38524 ac_header_preproc=no
38527 rm -f conftest.err conftest.$ac_ext
38528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38529 echo "${ECHO_T}$ac_header_preproc" >&6; }
38531 # So? What about this header?
38532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38538 ac_header_preproc=yes
38541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38554 ## ------------------------------------ ##
38555 ## Report this to bug-coreutils@gnu.org ##
38556 ## ------------------------------------ ##
38558 ) | sed "s/^/$as_me: WARNING: /" >&2
38561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38564 echo $ECHO_N "(cached) $ECHO_C" >&6
38566 eval "$as_ac_Header=\$ac_header_preproc"
38568 ac_res=`eval echo '${'$as_ac_Header'}'`
38569 { echo "$as_me:$LINENO: result: $ac_res" >&5
38570 echo "${ECHO_T}$ac_res" >&6; }
38573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38574 cat >>confdefs.h <<_ACEOF
38575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38582 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
38583 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
38584 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
38585 echo $ECHO_N "(cached) $ECHO_C" >&6
38587 if test "$cross_compiling" = yes; then
38588 ac_cv_func_malloc_0_nonnull=no
38590 cat >conftest.$ac_ext <<_ACEOF
38593 cat confdefs.h >>conftest.$ac_ext
38594 cat >>conftest.$ac_ext <<_ACEOF
38595 /* end confdefs.h. */
38596 #if STDC_HEADERS || HAVE_STDLIB_H
38597 # include <stdlib.h>
38605 return ! malloc (0);
38610 rm -f conftest$ac_exeext
38611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38612 (eval $ac_link) 2>&5
38614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38617 (eval $ac_try) 2>&5
38619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38620 (exit $ac_status); }; }; then
38621 ac_cv_func_malloc_0_nonnull=yes
38623 echo "$as_me: program exited with status $ac_status" >&5
38624 echo "$as_me: failed program was:" >&5
38625 sed 's/^/| /' conftest.$ac_ext >&5
38627 ( exit $ac_status )
38628 ac_cv_func_malloc_0_nonnull=no
38630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38635 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
38636 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
38637 if test $ac_cv_func_malloc_0_nonnull = yes; then
38639 cat >>confdefs.h <<\_ACEOF
38640 #define HAVE_MALLOC 1
38644 cat >>confdefs.h <<\_ACEOF
38645 #define HAVE_MALLOC 0
38648 case " $LIBOBJS " in
38649 *" malloc.$ac_objext "* ) ;;
38650 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
38655 cat >>confdefs.h <<\_ACEOF
38656 #define malloc rpl_malloc
38663 { echo "$as_me:$LINENO: checking for working memcmp" >&5
38664 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
38665 if test "${ac_cv_func_memcmp_working+set}" = set; then
38666 echo $ECHO_N "(cached) $ECHO_C" >&6
38668 if test "$cross_compiling" = yes; then
38669 ac_cv_func_memcmp_working=no
38671 cat >conftest.$ac_ext <<_ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h. */
38677 $ac_includes_default
38682 /* Some versions of memcmp are not 8-bit clean. */
38683 char c0 = '\100', c1 = '\200', c2 = '\201';
38684 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38687 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38688 or more and with at least one buffer not starting on a 4-byte boundary.
38689 William Lewis provided this test program. */
38694 for (i = 0; i < 4; i++)
38698 strcpy (a, "--------01111111");
38699 strcpy (b, "--------10000000");
38700 if (memcmp (a, b, 16) >= 0)
38710 rm -f conftest$ac_exeext
38711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38712 (eval $ac_link) 2>&5
38714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38717 (eval $ac_try) 2>&5
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); }; }; then
38721 ac_cv_func_memcmp_working=yes
38723 echo "$as_me: program exited with status $ac_status" >&5
38724 echo "$as_me: failed program was:" >&5
38725 sed 's/^/| /' conftest.$ac_ext >&5
38727 ( exit $ac_status )
38728 ac_cv_func_memcmp_working=no
38730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38735 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38736 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
38737 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
38738 *" memcmp.$ac_objext "* ) ;;
38739 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
38746 if test $ac_cv_func_memcmp_working = no; then
38748 cat >>confdefs.h <<\_ACEOF
38749 #define memcmp rpl_memcmp
38764 nanosleep_save_libs=$LIBS
38766 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
38767 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
38768 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
38769 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
38770 if test "${ac_cv_search_nanosleep+set}" = set; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38773 ac_func_search_save_LIBS=$LIBS
38774 cat >conftest.$ac_ext <<_ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h. */
38781 /* Override any GCC internal prototype to avoid an error.
38782 Use char because int might match the return type of a GCC
38783 builtin and then its argument prototype would still apply. */
38791 return nanosleep ();
38796 for ac_lib in '' rt posix4; do
38797 if test -z "$ac_lib"; then
38798 ac_res="none required"
38801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
38803 rm -f conftest.$ac_objext conftest$ac_exeext
38804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38805 (eval $ac_link) 2>conftest.er1
38807 grep -v '^ *+' conftest.er1 >conftest.err
38809 cat conftest.err >&5
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); } &&
38812 { ac_try='test -z "$ac_c_werror_flag"
38813 || test ! -s conftest.err'
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; } &&
38819 { ac_try='test -s conftest$ac_exeext'
38820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38821 (eval $ac_try) 2>&5
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); }; }; then
38825 ac_cv_search_nanosleep=$ac_res
38827 echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38833 rm -f conftest.err conftest.$ac_objext \
38835 if test "${ac_cv_search_nanosleep+set}" = set; then
38839 if test "${ac_cv_search_nanosleep+set}" = set; then
38842 ac_cv_search_nanosleep=no
38844 rm conftest.$ac_ext
38845 LIBS=$ac_func_search_save_LIBS
38847 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
38848 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
38849 ac_res=$ac_cv_search_nanosleep
38850 if test "$ac_res" != no; then
38851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38852 test "$ac_cv_search_nanosleep" = "none required" ||
38853 LIB_NANOSLEEP=$ac_cv_search_nanosleep
38858 { echo "$as_me:$LINENO: checking whether nanosleep works" >&5
38859 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6; }
38860 if test "${jm_cv_func_nanosleep_works+set}" = set; then
38861 echo $ECHO_N "(cached) $ECHO_C" >&6
38874 if test "$cross_compiling" = yes; then
38875 jm_cv_func_nanosleep_works=no
38877 cat >conftest.$ac_ext <<_ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h. */
38884 # if TIME_WITH_SYS_TIME
38885 # include <sys/time.h>
38888 # if HAVE_SYS_TIME_H
38889 # include <sys/time.h>
38898 struct timespec ts_sleep, ts_remaining;
38899 ts_sleep.tv_sec = 0;
38900 ts_sleep.tv_nsec = 1;
38901 return nanosleep (&ts_sleep, &ts_remaining) != 0;
38905 rm -f conftest$ac_exeext
38906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38907 (eval $ac_link) 2>&5
38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; }; then
38916 jm_cv_func_nanosleep_works=yes
38918 echo "$as_me: program exited with status $ac_status" >&5
38919 echo "$as_me: failed program was:" >&5
38920 sed 's/^/| /' conftest.$ac_ext >&5
38922 ( exit $ac_status )
38923 jm_cv_func_nanosleep_works=no
38925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38931 { echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
38932 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6; }
38933 if test $jm_cv_func_nanosleep_works = no; then
38934 case " $LIBOBJS " in
38935 *" nanosleep.$ac_objext "* ) ;;
38936 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
38941 cat >>confdefs.h <<\_ACEOF
38942 #define nanosleep rpl_nanosleep
38956 LIBS=$nanosleep_save_libs
38958 { echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
38959 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6; }
38960 if test "${jm_cv_func_svid_putenv+set}" = set; then
38961 echo $ECHO_N "(cached) $ECHO_C" >&6
38963 if test "$cross_compiling" = yes; then
38964 jm_cv_func_svid_putenv=no
38966 cat >conftest.$ac_ext <<_ACEOF
38969 cat confdefs.h >>conftest.$ac_ext
38970 cat >>conftest.$ac_ext <<_ACEOF
38971 /* end confdefs.h. */
38976 /* Put it in env. */
38977 if (putenv ("CONFTEST_putenv=val"))
38980 /* Try to remove it. */
38981 if (putenv ("CONFTEST_putenv"))
38984 /* Make sure it was deleted. */
38985 if (getenv ("CONFTEST_putenv") != 0)
38992 rm -f conftest$ac_exeext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38994 (eval $ac_link) 2>&5
38996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; }; then
39003 jm_cv_func_svid_putenv=yes
39005 echo "$as_me: program exited with status $ac_status" >&5
39006 echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39009 ( exit $ac_status )
39010 jm_cv_func_svid_putenv=no
39012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39018 { echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
39019 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6; }
39020 if test $jm_cv_func_svid_putenv = no; then
39021 case " $LIBOBJS " in
39022 *" putenv.$ac_objext "* ) ;;
39023 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
39028 cat >>confdefs.h <<\_ACEOF
39029 #define putenv rpl_putenv
39035 for ac_header in stdlib.h
39037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39042 echo $ECHO_N "(cached) $ECHO_C" >&6
39044 ac_res=`eval echo '${'$as_ac_Header'}'`
39045 { echo "$as_me:$LINENO: result: $ac_res" >&5
39046 echo "${ECHO_T}$ac_res" >&6; }
39048 # Is the header compilable?
39049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39051 cat >conftest.$ac_ext <<_ACEOF
39054 cat confdefs.h >>conftest.$ac_ext
39055 cat >>conftest.$ac_ext <<_ACEOF
39056 /* end confdefs.h. */
39057 $ac_includes_default
39058 #include <$ac_header>
39060 rm -f conftest.$ac_objext
39061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39062 (eval $ac_compile) 2>conftest.er1
39064 grep -v '^ *+' conftest.er1 >conftest.err
39066 cat conftest.err >&5
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); } &&
39069 { ac_try='test -z "$ac_c_werror_flag"
39070 || test ! -s conftest.err'
39071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39072 (eval $ac_try) 2>&5
39074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075 (exit $ac_status); }; } &&
39076 { ac_try='test -s conftest.$ac_objext'
39077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078 (eval $ac_try) 2>&5
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); }; }; then
39082 ac_header_compiler=yes
39084 echo "$as_me: failed program was:" >&5
39085 sed 's/^/| /' conftest.$ac_ext >&5
39087 ac_header_compiler=no
39090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39092 echo "${ECHO_T}$ac_header_compiler" >&6; }
39094 # Is the header present?
39095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39097 cat >conftest.$ac_ext <<_ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h. */
39103 #include <$ac_header>
39105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39108 grep -v '^ *+' conftest.er1 >conftest.err
39110 cat conftest.err >&5
39111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112 (exit $ac_status); } >/dev/null; then
39113 if test -s conftest.err; then
39114 ac_cpp_err=$ac_c_preproc_warn_flag
39115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39122 if test -z "$ac_cpp_err"; then
39123 ac_header_preproc=yes
39125 echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39128 ac_header_preproc=no
39131 rm -f conftest.err conftest.$ac_ext
39132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39133 echo "${ECHO_T}$ac_header_preproc" >&6; }
39135 # So? What about this header?
39136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39142 ac_header_preproc=yes
39145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39158 ## ------------------------------------ ##
39159 ## Report this to bug-coreutils@gnu.org ##
39160 ## ------------------------------------ ##
39162 ) | sed "s/^/$as_me: WARNING: /" >&2
39165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39168 echo $ECHO_N "(cached) $ECHO_C" >&6
39170 eval "$as_ac_Header=\$ac_header_preproc"
39172 ac_res=`eval echo '${'$as_ac_Header'}'`
39173 { echo "$as_me:$LINENO: result: $ac_res" >&5
39174 echo "${ECHO_T}$ac_res" >&6; }
39177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39178 cat >>confdefs.h <<_ACEOF
39179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39186 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
39187 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
39188 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
39189 echo $ECHO_N "(cached) $ECHO_C" >&6
39191 if test "$cross_compiling" = yes; then
39192 ac_cv_func_realloc_0_nonnull=no
39194 cat >conftest.$ac_ext <<_ACEOF
39197 cat confdefs.h >>conftest.$ac_ext
39198 cat >>conftest.$ac_ext <<_ACEOF
39199 /* end confdefs.h. */
39200 #if STDC_HEADERS || HAVE_STDLIB_H
39201 # include <stdlib.h>
39209 return ! realloc (0, 0);
39214 rm -f conftest$ac_exeext
39215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39216 (eval $ac_link) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221 (eval $ac_try) 2>&5
39223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); }; }; then
39225 ac_cv_func_realloc_0_nonnull=yes
39227 echo "$as_me: program exited with status $ac_status" >&5
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39231 ( exit $ac_status )
39232 ac_cv_func_realloc_0_nonnull=no
39234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39239 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
39240 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
39241 if test $ac_cv_func_realloc_0_nonnull = yes; then
39243 cat >>confdefs.h <<\_ACEOF
39244 #define HAVE_REALLOC 1
39248 cat >>confdefs.h <<\_ACEOF
39249 #define HAVE_REALLOC 0
39252 case " $LIBOBJS " in
39253 *" realloc.$ac_objext "* ) ;;
39254 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
39259 cat >>confdefs.h <<\_ACEOF
39260 #define realloc rpl_realloc
39267 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
39268 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
39269 if test "${ac_cv_func_utime_null+set}" = set; then
39270 echo $ECHO_N "(cached) $ECHO_C" >&6
39272 rm -f conftest.data; >conftest.data
39273 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
39274 if test "$cross_compiling" = yes; then
39275 ac_cv_func_utime_null=no
39277 cat >conftest.$ac_ext <<_ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h. */
39283 $ac_includes_default
39288 return ! (stat ("conftest.data", &s) == 0
39289 && utime ("conftest.data", 0) == 0
39290 && stat ("conftest.data", &t) == 0
39291 && t.st_mtime >= s.st_mtime
39292 && t.st_mtime - s.st_mtime < 120);
39297 rm -f conftest$ac_exeext
39298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39299 (eval $ac_link) 2>&5
39301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39304 (eval $ac_try) 2>&5
39306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39307 (exit $ac_status); }; }; then
39308 ac_cv_func_utime_null=yes
39310 echo "$as_me: program exited with status $ac_status" >&5
39311 echo "$as_me: failed program was:" >&5
39312 sed 's/^/| /' conftest.$ac_ext >&5
39314 ( exit $ac_status )
39315 ac_cv_func_utime_null=no
39317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39322 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
39323 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
39324 if test $ac_cv_func_utime_null = yes; then
39326 cat >>confdefs.h <<\_ACEOF
39327 #define HAVE_UTIME_NULL 1
39331 rm -f conftest.data
39335 if test $ac_cv_func_utime_null = no; then
39336 case " $LIBOBJS " in
39337 *" utime.$ac_objext "* ) ;;
39338 *) LIBOBJS="$LIBOBJS utime.$ac_objext"
39343 cat >>confdefs.h <<\_ACEOF
39344 #define utime rpl_utime
39356 { echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
39357 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6; }
39358 if test "${ac_cv_func_utimes_null+set}" = set; then
39359 echo $ECHO_N "(cached) $ECHO_C" >&6
39361 rm -f conftest.data; > conftest.data
39362 if test "$cross_compiling" = yes; then
39363 ac_cv_func_utimes_null=no
39365 cat >conftest.$ac_ext <<_ACEOF
39368 cat confdefs.h >>conftest.$ac_ext
39369 cat >>conftest.$ac_ext <<_ACEOF
39370 /* end confdefs.h. */
39372 /* In case stat has been defined to rpl_stat, undef it here. */
39374 #include <sys/types.h>
39375 #include <sys/stat.h>
39376 #include <sys/time.h>
39380 return ! (stat ("conftest.data", &s) == 0
39381 && utimes ("conftest.data", 0) == 0
39382 && stat ("conftest.data", &t) == 0
39383 && t.st_mtime >= s.st_mtime
39384 && t.st_mtime - s.st_mtime < 120));
39387 rm -f conftest$ac_exeext
39388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39389 (eval $ac_link) 2>&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394 (eval $ac_try) 2>&5
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); }; }; then
39398 ac_cv_func_utimes_null=yes
39400 echo "$as_me: program exited with status $ac_status" >&5
39401 echo "$as_me: failed program was:" >&5
39402 sed 's/^/| /' conftest.$ac_ext >&5
39404 ( exit $ac_status )
39405 ac_cv_func_utimes_null=no
39407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39411 rm -f core core.* *.core
39413 { echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
39414 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6; }
39416 if test $ac_cv_func_utimes_null = yes; then
39418 cat >>confdefs.h <<\_ACEOF
39419 #define HAVE_UTIMES_NULL 1
39437 { echo "$as_me:$LINENO: checking whether rename is broken" >&5
39438 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6; }
39439 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
39440 echo $ECHO_N "(cached) $ECHO_C" >&6
39443 rm -rf conftest.d1 conftest.d2
39444 mkdir conftest.d1 ||
39445 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
39446 echo "$as_me: error: cannot create temporary directory" >&2;}
39447 { (exit 1); exit 1; }; }
39448 if test "$cross_compiling" = yes; then
39449 vb_cv_func_rename_trailing_slash_bug=yes
39451 cat >conftest.$ac_ext <<_ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h. */
39458 # include <stdio.h>
39459 # include <stdlib.h>
39463 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
39467 rm -f conftest$ac_exeext
39468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39469 (eval $ac_link) 2>&5
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
39478 vb_cv_func_rename_trailing_slash_bug=no
39480 echo "$as_me: program exited with status $ac_status" >&5
39481 echo "$as_me: failed program was:" >&5
39482 sed 's/^/| /' conftest.$ac_ext >&5
39484 ( exit $ac_status )
39485 vb_cv_func_rename_trailing_slash_bug=yes
39487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39492 rm -rf conftest.d1 conftest.d2
39495 { echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
39496 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6; }
39497 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
39498 case " $LIBOBJS " in
39499 *" rename.$ac_objext "* ) ;;
39500 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
39505 cat >>confdefs.h <<\_ACEOF
39506 #define rename rpl_rename
39510 cat >>confdefs.h <<\_ACEOF
39511 #define RENAME_TRAILING_SLASH_BUG 1
39529 # No system provides these functions; compile them unconditionally.
39530 case " $LIBOBJS " in
39531 *" mkdirat.$ac_objext "* ) ;;
39532 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
39536 case " $LIBOBJS " in
39537 *" fchmodat.$ac_objext "* ) ;;
39538 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
39543 case " $LIBOBJS " in
39544 *" openat-die.$ac_objext "* ) ;;
39545 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
39565 for ac_func in openat
39567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39571 echo $ECHO_N "(cached) $ECHO_C" >&6
39573 cat >conftest.$ac_ext <<_ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h. */
39579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39581 #define $ac_func innocuous_$ac_func
39583 /* System header to define __stub macros and hopefully few prototypes,
39584 which can conflict with char $ac_func (); below.
39585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39586 <limits.h> exists even on freestanding compilers. */
39589 # include <limits.h>
39591 # include <assert.h>
39596 /* Override any GCC internal prototype to avoid an error.
39597 Use char because int might match the return type of a GCC
39598 builtin and then its argument prototype would still apply. */
39603 /* The GNU C library defines this for functions which it implements
39604 to always fail with ENOSYS. Some functions are actually named
39605 something starting with __ and the normal name is an alias. */
39606 #if defined __stub_$ac_func || defined __stub___$ac_func
39613 return $ac_func ();
39618 rm -f conftest.$ac_objext conftest$ac_exeext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39620 (eval $ac_link) 2>conftest.er1
39622 grep -v '^ *+' conftest.er1 >conftest.err
39624 cat conftest.err >&5
39625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626 (exit $ac_status); } &&
39627 { ac_try='test -z "$ac_c_werror_flag"
39628 || test ! -s conftest.err'
39629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630 (eval $ac_try) 2>&5
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); }; } &&
39634 { ac_try='test -s conftest$ac_exeext'
39635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636 (eval $ac_try) 2>&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); }; }; then
39640 eval "$as_ac_var=yes"
39642 echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39645 eval "$as_ac_var=no"
39648 rm -f conftest.err conftest.$ac_objext \
39649 conftest$ac_exeext conftest.$ac_ext
39651 ac_res=`eval echo '${'$as_ac_var'}'`
39652 { echo "$as_me:$LINENO: result: $ac_res" >&5
39653 echo "${ECHO_T}$ac_res" >&6; }
39654 if test `eval echo '${'$as_ac_var'}'` = yes; then
39655 cat >>confdefs.h <<_ACEOF
39656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39660 case " $LIBOBJS " in
39661 *" $ac_func.$ac_objext "* ) ;;
39662 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39670 case $ac_cv_func_openat in
39674 cat >>confdefs.h <<\_ACEOF
39675 #define __OPENAT_PREFIX rpl_
39686 case " $LIBOBJS " in
39687 *" fts.$ac_objext "* ) ;;
39688 *) LIBOBJS="$LIBOBJS fts.$ac_objext"
39695 # Checks for header files.
39711 case " $LIBOBJS " in
39712 *" memcasecmp.$ac_objext "* ) ;;
39713 *) LIBOBJS="$LIBOBJS memcasecmp.$ac_objext"
39729 case " $LIBOBJS " in
39730 *" argmatch.$ac_objext "* ) ;;
39731 *) LIBOBJS="$LIBOBJS argmatch.$ac_objext"
39738 case " $LIBOBJS " in
39739 *" cycle-check.$ac_objext "* ) ;;
39740 *) LIBOBJS="$LIBOBJS cycle-check.$ac_objext"
39749 case " $LIBOBJS " in
39750 *" euidaccess-stat.$ac_objext "* ) ;;
39751 *) LIBOBJS="$LIBOBJS euidaccess-stat.$ac_objext"
39757 # We don't yet use c-stack.c.
39758 # AC_REQUIRE([gl_C_STACK])
39920 ac_header_dirent=no
39921 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39922 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39923 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
39924 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
39925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39926 echo $ECHO_N "(cached) $ECHO_C" >&6
39928 cat >conftest.$ac_ext <<_ACEOF
39931 cat confdefs.h >>conftest.$ac_ext
39932 cat >>conftest.$ac_ext <<_ACEOF
39933 /* end confdefs.h. */
39934 #include <sys/types.h>
39946 rm -f conftest.$ac_objext
39947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39948 (eval $ac_compile) 2>conftest.er1
39950 grep -v '^ *+' conftest.er1 >conftest.err
39952 cat conftest.err >&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } &&
39955 { ac_try='test -z "$ac_c_werror_flag"
39956 || test ! -s conftest.err'
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; }; then
39968 eval "$as_ac_Header=yes"
39970 echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39973 eval "$as_ac_Header=no"
39976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39978 ac_res=`eval echo '${'$as_ac_Header'}'`
39979 { echo "$as_me:$LINENO: result: $ac_res" >&5
39980 echo "${ECHO_T}$ac_res" >&6; }
39981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39982 cat >>confdefs.h <<_ACEOF
39983 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39986 ac_header_dirent=$ac_hdr; break
39990 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39991 if test $ac_header_dirent = dirent.h; then
39992 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
39993 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
39994 if test "${ac_cv_search_opendir+set}" = set; then
39995 echo $ECHO_N "(cached) $ECHO_C" >&6
39997 ac_func_search_save_LIBS=$LIBS
39998 cat >conftest.$ac_ext <<_ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h. */
40005 /* Override any GCC internal prototype to avoid an error.
40006 Use char because int might match the return type of a GCC
40007 builtin and then its argument prototype would still apply. */
40020 for ac_lib in '' dir; do
40021 if test -z "$ac_lib"; then
40022 ac_res="none required"
40025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40027 rm -f conftest.$ac_objext conftest$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029 (eval $ac_link) 2>conftest.er1
40031 grep -v '^ *+' conftest.er1 >conftest.err
40033 cat conftest.err >&5
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); } &&
40036 { ac_try='test -z "$ac_c_werror_flag"
40037 || test ! -s conftest.err'
40038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40039 (eval $ac_try) 2>&5
40041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042 (exit $ac_status); }; } &&
40043 { ac_try='test -s conftest$ac_exeext'
40044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045 (eval $ac_try) 2>&5
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); }; }; then
40049 ac_cv_search_opendir=$ac_res
40051 echo "$as_me: failed program was:" >&5
40052 sed 's/^/| /' conftest.$ac_ext >&5
40057 rm -f conftest.err conftest.$ac_objext \
40059 if test "${ac_cv_search_opendir+set}" = set; then
40063 if test "${ac_cv_search_opendir+set}" = set; then
40066 ac_cv_search_opendir=no
40068 rm conftest.$ac_ext
40069 LIBS=$ac_func_search_save_LIBS
40071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
40073 ac_res=$ac_cv_search_opendir
40074 if test "$ac_res" != no; then
40075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40080 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
40081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
40082 if test "${ac_cv_search_opendir+set}" = set; then
40083 echo $ECHO_N "(cached) $ECHO_C" >&6
40085 ac_func_search_save_LIBS=$LIBS
40086 cat >conftest.$ac_ext <<_ACEOF
40089 cat confdefs.h >>conftest.$ac_ext
40090 cat >>conftest.$ac_ext <<_ACEOF
40091 /* end confdefs.h. */
40093 /* Override any GCC internal prototype to avoid an error.
40094 Use char because int might match the return type of a GCC
40095 builtin and then its argument prototype would still apply. */
40108 for ac_lib in '' x; do
40109 if test -z "$ac_lib"; then
40110 ac_res="none required"
40113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40115 rm -f conftest.$ac_objext conftest$ac_exeext
40116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40117 (eval $ac_link) 2>conftest.er1
40119 grep -v '^ *+' conftest.er1 >conftest.err
40121 cat conftest.err >&5
40122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40123 (exit $ac_status); } &&
40124 { ac_try='test -z "$ac_c_werror_flag"
40125 || test ! -s conftest.err'
40126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127 (eval $ac_try) 2>&5
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); }; } &&
40131 { ac_try='test -s conftest$ac_exeext'
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; }; then
40137 ac_cv_search_opendir=$ac_res
40139 echo "$as_me: failed program was:" >&5
40140 sed 's/^/| /' conftest.$ac_ext >&5
40145 rm -f conftest.err conftest.$ac_objext \
40147 if test "${ac_cv_search_opendir+set}" = set; then
40151 if test "${ac_cv_search_opendir+set}" = set; then
40154 ac_cv_search_opendir=no
40156 rm conftest.$ac_ext
40157 LIBS=$ac_func_search_save_LIBS
40159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
40161 ac_res=$ac_cv_search_opendir
40162 if test "$ac_res" != no; then
40163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40171 # include <dirent.h>
40172 #else /* not HAVE_DIRENT_H */
40173 # define dirent direct
40174 # if HAVE_SYS_NDIR_H
40175 # include <sys/ndir.h>
40176 # endif /* HAVE_SYS_NDIR_H */
40177 # if HAVE_SYS_DIR_H
40178 # include <sys/dir.h>
40179 # endif /* HAVE_SYS_DIR_H */
40182 # endif /* HAVE_NDIR_H */
40183 #endif /* HAVE_DIRENT_H */
40186 for ac_func in dirfd
40188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40192 echo $ECHO_N "(cached) $ECHO_C" >&6
40194 cat >conftest.$ac_ext <<_ACEOF
40197 cat confdefs.h >>conftest.$ac_ext
40198 cat >>conftest.$ac_ext <<_ACEOF
40199 /* end confdefs.h. */
40200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40202 #define $ac_func innocuous_$ac_func
40204 /* System header to define __stub macros and hopefully few prototypes,
40205 which can conflict with char $ac_func (); below.
40206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40207 <limits.h> exists even on freestanding compilers. */
40210 # include <limits.h>
40212 # include <assert.h>
40217 /* Override any GCC internal prototype to avoid an error.
40218 Use char because int might match the return type of a GCC
40219 builtin and then its argument prototype would still apply. */
40224 /* The GNU C library defines this for functions which it implements
40225 to always fail with ENOSYS. Some functions are actually named
40226 something starting with __ and the normal name is an alias. */
40227 #if defined __stub_$ac_func || defined __stub___$ac_func
40234 return $ac_func ();
40239 rm -f conftest.$ac_objext conftest$ac_exeext
40240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40241 (eval $ac_link) 2>conftest.er1
40243 grep -v '^ *+' conftest.er1 >conftest.err
40245 cat conftest.err >&5
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); } &&
40248 { ac_try='test -z "$ac_c_werror_flag"
40249 || test ! -s conftest.err'
40250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251 (eval $ac_try) 2>&5
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); }; } &&
40255 { ac_try='test -s conftest$ac_exeext'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
40261 eval "$as_ac_var=yes"
40263 echo "$as_me: failed program was:" >&5
40264 sed 's/^/| /' conftest.$ac_ext >&5
40266 eval "$as_ac_var=no"
40269 rm -f conftest.err conftest.$ac_objext \
40270 conftest$ac_exeext conftest.$ac_ext
40272 ac_res=`eval echo '${'$as_ac_var'}'`
40273 { echo "$as_me:$LINENO: result: $ac_res" >&5
40274 echo "${ECHO_T}$ac_res" >&6; }
40275 if test `eval echo '${'$as_ac_var'}'` = yes; then
40276 cat >>confdefs.h <<_ACEOF
40277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40283 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
40284 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
40285 if test "${ac_cv_have_decl_dirfd+set}" = set; then
40286 echo $ECHO_N "(cached) $ECHO_C" >&6
40288 cat >conftest.$ac_ext <<_ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h. */
40300 char *p = (char *) dirfd;
40308 rm -f conftest.$ac_objext
40309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40310 (eval $ac_compile) 2>conftest.er1
40312 grep -v '^ *+' conftest.er1 >conftest.err
40314 cat conftest.err >&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); } &&
40317 { ac_try='test -z "$ac_c_werror_flag"
40318 || test ! -s conftest.err'
40319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40320 (eval $ac_try) 2>&5
40322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323 (exit $ac_status); }; } &&
40324 { ac_try='test -s conftest.$ac_objext'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; }; then
40330 ac_cv_have_decl_dirfd=yes
40332 echo "$as_me: failed program was:" >&5
40333 sed 's/^/| /' conftest.$ac_ext >&5
40335 ac_cv_have_decl_dirfd=no
40338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
40341 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
40342 if test $ac_cv_have_decl_dirfd = yes; then
40344 cat >>confdefs.h <<_ACEOF
40345 #define HAVE_DECL_DIRFD 1
40350 cat >>confdefs.h <<_ACEOF
40351 #define HAVE_DECL_DIRFD 0
40359 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
40360 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
40361 if test "${gl_cv_func_dirfd_macro+set}" = set; then
40362 echo $ECHO_N "(cached) $ECHO_C" >&6
40364 cat >conftest.$ac_ext <<_ACEOF
40367 cat confdefs.h >>conftest.$ac_ext
40368 cat >>conftest.$ac_ext <<_ACEOF
40369 /* end confdefs.h. */
40372 dirent_header_defines_dirfd
40375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40376 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
40377 gl_cv_func_dirfd_macro=yes
40379 gl_cv_func_dirfd_macro=no
40384 { echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
40385 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6; }
40387 # Use the replacement only if we have no function, macro,
40388 # or declaration with that name.
40389 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
40392 for ac_func in dirfd
40394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40398 echo $ECHO_N "(cached) $ECHO_C" >&6
40400 cat >conftest.$ac_ext <<_ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h. */
40406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40408 #define $ac_func innocuous_$ac_func
40410 /* System header to define __stub macros and hopefully few prototypes,
40411 which can conflict with char $ac_func (); below.
40412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40413 <limits.h> exists even on freestanding compilers. */
40416 # include <limits.h>
40418 # include <assert.h>
40423 /* Override any GCC internal prototype to avoid an error.
40424 Use char because int might match the return type of a GCC
40425 builtin and then its argument prototype would still apply. */
40430 /* The GNU C library defines this for functions which it implements
40431 to always fail with ENOSYS. Some functions are actually named
40432 something starting with __ and the normal name is an alias. */
40433 #if defined __stub_$ac_func || defined __stub___$ac_func
40440 return $ac_func ();
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40447 (eval $ac_link) 2>conftest.er1
40449 grep -v '^ *+' conftest.er1 >conftest.err
40451 cat conftest.err >&5
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); } &&
40454 { ac_try='test -z "$ac_c_werror_flag"
40455 || test ! -s conftest.err'
40456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40457 (eval $ac_try) 2>&5
40459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460 (exit $ac_status); }; } &&
40461 { ac_try='test -s conftest$ac_exeext'
40462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463 (eval $ac_try) 2>&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); }; }; then
40467 eval "$as_ac_var=yes"
40469 echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40472 eval "$as_ac_var=no"
40475 rm -f conftest.err conftest.$ac_objext \
40476 conftest$ac_exeext conftest.$ac_ext
40478 ac_res=`eval echo '${'$as_ac_var'}'`
40479 { echo "$as_me:$LINENO: result: $ac_res" >&5
40480 echo "${ECHO_T}$ac_res" >&6; }
40481 if test `eval echo '${'$as_ac_var'}'` = yes; then
40482 cat >>confdefs.h <<_ACEOF
40483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40487 case " $LIBOBJS " in
40488 *" $ac_func.$ac_objext "* ) ;;
40489 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
40497 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
40498 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
40499 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
40500 echo $ECHO_N "(cached) $ECHO_C" >&6
40503 dirfd_save_CFLAGS=$CFLAGS
40504 for ac_expr in d_fd dd_fd; do
40506 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
40507 cat >conftest.$ac_ext <<_ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h. */
40518 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
40523 rm -f conftest.$ac_objext
40524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40525 (eval $ac_compile) 2>conftest.er1
40527 grep -v '^ *+' conftest.er1 >conftest.err
40529 cat conftest.err >&5
40530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531 (exit $ac_status); } &&
40532 { ac_try='test -z "$ac_c_werror_flag"
40533 || test ! -s conftest.err'
40534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40535 (eval $ac_try) 2>&5
40537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538 (exit $ac_status); }; } &&
40539 { ac_try='test -s conftest.$ac_objext'
40540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40541 (eval $ac_try) 2>&5
40543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544 (exit $ac_status); }; }; then
40548 echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.$ac_ext >&5
40554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40555 CFLAGS=$dirfd_save_CFLAGS
40556 test "$dir_fd_found" = yes && break
40558 test "$dir_fd_found" = yes || ac_expr=no_such_member
40560 gl_cv_sys_dir_fd_member_name=$ac_expr
40564 { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
40565 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
40566 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
40568 cat >>confdefs.h <<_ACEOF
40569 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
40579 case " $LIBOBJS " in
40580 *" acl.$ac_objext "* ) ;;
40581 *) LIBOBJS="$LIBOBJS acl.$ac_objext"
40587 for ac_header in sys/acl.h
40589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40594 echo $ECHO_N "(cached) $ECHO_C" >&6
40596 ac_res=`eval echo '${'$as_ac_Header'}'`
40597 { echo "$as_me:$LINENO: result: $ac_res" >&5
40598 echo "${ECHO_T}$ac_res" >&6; }
40600 # Is the header compilable?
40601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40603 cat >conftest.$ac_ext <<_ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h. */
40609 $ac_includes_default
40610 #include <$ac_header>
40612 rm -f conftest.$ac_objext
40613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40614 (eval $ac_compile) 2>conftest.er1
40616 grep -v '^ *+' conftest.er1 >conftest.err
40618 cat conftest.err >&5
40619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40620 (exit $ac_status); } &&
40621 { ac_try='test -z "$ac_c_werror_flag"
40622 || test ! -s conftest.err'
40623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40624 (eval $ac_try) 2>&5
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); }; } &&
40628 { ac_try='test -s conftest.$ac_objext'
40629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630 (eval $ac_try) 2>&5
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); }; }; then
40634 ac_header_compiler=yes
40636 echo "$as_me: failed program was:" >&5
40637 sed 's/^/| /' conftest.$ac_ext >&5
40639 ac_header_compiler=no
40642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40644 echo "${ECHO_T}$ac_header_compiler" >&6; }
40646 # Is the header present?
40647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40649 cat >conftest.$ac_ext <<_ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h. */
40655 #include <$ac_header>
40657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40660 grep -v '^ *+' conftest.er1 >conftest.err
40662 cat conftest.err >&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } >/dev/null; then
40665 if test -s conftest.err; then
40666 ac_cpp_err=$ac_c_preproc_warn_flag
40667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40674 if test -z "$ac_cpp_err"; then
40675 ac_header_preproc=yes
40677 echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40680 ac_header_preproc=no
40683 rm -f conftest.err conftest.$ac_ext
40684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40685 echo "${ECHO_T}$ac_header_preproc" >&6; }
40687 # So? What about this header?
40688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40694 ac_header_preproc=yes
40697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40710 ## ------------------------------------ ##
40711 ## Report this to bug-coreutils@gnu.org ##
40712 ## ------------------------------------ ##
40714 ) | sed "s/^/$as_me: WARNING: /" >&2
40717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40720 echo $ECHO_N "(cached) $ECHO_C" >&6
40722 eval "$as_ac_Header=\$ac_header_preproc"
40724 ac_res=`eval echo '${'$as_ac_Header'}'`
40725 { echo "$as_me:$LINENO: result: $ac_res" >&5
40726 echo "${ECHO_T}$ac_res" >&6; }
40729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40730 cat >>confdefs.h <<_ACEOF
40731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40738 if test "$ac_cv_header_sys_acl_h" = yes; then
40744 cat >>confdefs.h <<_ACEOF
40745 #define USE_ACL $use_acl
40751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40755 echo $ECHO_N "(cached) $ECHO_C" >&6
40757 cat >conftest.$ac_ext <<_ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h. */
40763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40765 #define $ac_func innocuous_$ac_func
40767 /* System header to define __stub macros and hopefully few prototypes,
40768 which can conflict with char $ac_func (); below.
40769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40770 <limits.h> exists even on freestanding compilers. */
40773 # include <limits.h>
40775 # include <assert.h>
40780 /* Override any GCC internal prototype to avoid an error.
40781 Use char because int might match the return type of a GCC
40782 builtin and then its argument prototype would still apply. */
40787 /* The GNU C library defines this for functions which it implements
40788 to always fail with ENOSYS. Some functions are actually named
40789 something starting with __ and the normal name is an alias. */
40790 #if defined __stub_$ac_func || defined __stub___$ac_func
40797 return $ac_func ();
40802 rm -f conftest.$ac_objext conftest$ac_exeext
40803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40804 (eval $ac_link) 2>conftest.er1
40806 grep -v '^ *+' conftest.er1 >conftest.err
40808 cat conftest.err >&5
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); } &&
40811 { ac_try='test -z "$ac_c_werror_flag"
40812 || test ! -s conftest.err'
40813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814 (eval $ac_try) 2>&5
40816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817 (exit $ac_status); }; } &&
40818 { ac_try='test -s conftest$ac_exeext'
40819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 (eval $ac_try) 2>&5
40822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 (exit $ac_status); }; }; then
40824 eval "$as_ac_var=yes"
40826 echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40829 eval "$as_ac_var=no"
40832 rm -f conftest.err conftest.$ac_objext \
40833 conftest$ac_exeext conftest.$ac_ext
40835 ac_res=`eval echo '${'$as_ac_var'}'`
40836 { echo "$as_me:$LINENO: result: $ac_res" >&5
40837 echo "${ECHO_T}$ac_res" >&6; }
40838 if test `eval echo '${'$as_ac_var'}'` = yes; then
40839 cat >>confdefs.h <<_ACEOF
40840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40846 ac_save_LIBS="$LIBS"
40847 { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
40848 echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; }
40849 if test "${ac_cv_search_acl_get_file+set}" = set; then
40850 echo $ECHO_N "(cached) $ECHO_C" >&6
40852 ac_func_search_save_LIBS=$LIBS
40853 cat >conftest.$ac_ext <<_ACEOF
40856 cat confdefs.h >>conftest.$ac_ext
40857 cat >>conftest.$ac_ext <<_ACEOF
40858 /* end confdefs.h. */
40860 /* Override any GCC internal prototype to avoid an error.
40861 Use char because int might match the return type of a GCC
40862 builtin and then its argument prototype would still apply. */
40866 char acl_get_file ();
40870 return acl_get_file ();
40875 for ac_lib in '' acl; do
40876 if test -z "$ac_lib"; then
40877 ac_res="none required"
40880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40882 rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884 (eval $ac_link) 2>conftest.er1
40886 grep -v '^ *+' conftest.er1 >conftest.err
40888 cat conftest.err >&5
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); } &&
40891 { ac_try='test -z "$ac_c_werror_flag"
40892 || test ! -s conftest.err'
40893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40894 (eval $ac_try) 2>&5
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); }; } &&
40898 { ac_try='test -s conftest$ac_exeext'
40899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900 (eval $ac_try) 2>&5
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); }; }; then
40904 ac_cv_search_acl_get_file=$ac_res
40906 echo "$as_me: failed program was:" >&5
40907 sed 's/^/| /' conftest.$ac_ext >&5
40912 rm -f conftest.err conftest.$ac_objext \
40914 if test "${ac_cv_search_acl_get_file+set}" = set; then
40918 if test "${ac_cv_search_acl_get_file+set}" = set; then
40921 ac_cv_search_acl_get_file=no
40923 rm conftest.$ac_ext
40924 LIBS=$ac_func_search_save_LIBS
40926 { echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
40927 echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; }
40928 ac_res=$ac_cv_search_acl_get_file
40929 if test "$ac_res" != no; then
40930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40931 test "$ac_cv_search_acl_get_file" = "none required" ||
40932 LIB_ACL=$ac_cv_search_acl_get_file
40937 for ac_header in acl/libacl.h
40939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40944 echo $ECHO_N "(cached) $ECHO_C" >&6
40946 ac_res=`eval echo '${'$as_ac_Header'}'`
40947 { echo "$as_me:$LINENO: result: $ac_res" >&5
40948 echo "${ECHO_T}$ac_res" >&6; }
40950 # Is the header compilable?
40951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40953 cat >conftest.$ac_ext <<_ACEOF
40956 cat confdefs.h >>conftest.$ac_ext
40957 cat >>conftest.$ac_ext <<_ACEOF
40958 /* end confdefs.h. */
40959 $ac_includes_default
40960 #include <$ac_header>
40962 rm -f conftest.$ac_objext
40963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40964 (eval $ac_compile) 2>conftest.er1
40966 grep -v '^ *+' conftest.er1 >conftest.err
40968 cat conftest.err >&5
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); } &&
40971 { ac_try='test -z "$ac_c_werror_flag"
40972 || test ! -s conftest.err'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; } &&
40978 { ac_try='test -s conftest.$ac_objext'
40979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980 (eval $ac_try) 2>&5
40982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983 (exit $ac_status); }; }; then
40984 ac_header_compiler=yes
40986 echo "$as_me: failed program was:" >&5
40987 sed 's/^/| /' conftest.$ac_ext >&5
40989 ac_header_compiler=no
40992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40994 echo "${ECHO_T}$ac_header_compiler" >&6; }
40996 # Is the header present?
40997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40999 cat >conftest.$ac_ext <<_ACEOF
41002 cat confdefs.h >>conftest.$ac_ext
41003 cat >>conftest.$ac_ext <<_ACEOF
41004 /* end confdefs.h. */
41005 #include <$ac_header>
41007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41010 grep -v '^ *+' conftest.er1 >conftest.err
41012 cat conftest.err >&5
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); } >/dev/null; then
41015 if test -s conftest.err; then
41016 ac_cpp_err=$ac_c_preproc_warn_flag
41017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41024 if test -z "$ac_cpp_err"; then
41025 ac_header_preproc=yes
41027 echo "$as_me: failed program was:" >&5
41028 sed 's/^/| /' conftest.$ac_ext >&5
41030 ac_header_preproc=no
41033 rm -f conftest.err conftest.$ac_ext
41034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41035 echo "${ECHO_T}$ac_header_preproc" >&6; }
41037 # So? What about this header?
41038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41044 ac_header_preproc=yes
41047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41060 ## ------------------------------------ ##
41061 ## Report this to bug-coreutils@gnu.org ##
41062 ## ------------------------------------ ##
41064 ) | sed "s/^/$as_me: WARNING: /" >&2
41067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41070 echo $ECHO_N "(cached) $ECHO_C" >&6
41072 eval "$as_ac_Header=\$ac_header_preproc"
41074 ac_res=`eval echo '${'$as_ac_Header'}'`
41075 { echo "$as_me:$LINENO: result: $ac_res" >&5
41076 echo "${ECHO_T}$ac_res" >&6; }
41079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41080 cat >>confdefs.h <<_ACEOF
41081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41099 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
41100 acl_free acl_from_mode acl_from_text acl_to_text \
41101 acl_delete_def_file acl_entries acl_extended_file
41103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41107 echo $ECHO_N "(cached) $ECHO_C" >&6
41109 cat >conftest.$ac_ext <<_ACEOF
41112 cat confdefs.h >>conftest.$ac_ext
41113 cat >>conftest.$ac_ext <<_ACEOF
41114 /* end confdefs.h. */
41115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41117 #define $ac_func innocuous_$ac_func
41119 /* System header to define __stub macros and hopefully few prototypes,
41120 which can conflict with char $ac_func (); below.
41121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41122 <limits.h> exists even on freestanding compilers. */
41125 # include <limits.h>
41127 # include <assert.h>
41132 /* Override any GCC internal prototype to avoid an error.
41133 Use char because int might match the return type of a GCC
41134 builtin and then its argument prototype would still apply. */
41139 /* The GNU C library defines this for functions which it implements
41140 to always fail with ENOSYS. Some functions are actually named
41141 something starting with __ and the normal name is an alias. */
41142 #if defined __stub_$ac_func || defined __stub___$ac_func
41149 return $ac_func ();
41154 rm -f conftest.$ac_objext conftest$ac_exeext
41155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41156 (eval $ac_link) 2>conftest.er1
41158 grep -v '^ *+' conftest.er1 >conftest.err
41160 cat conftest.err >&5
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); } &&
41163 { ac_try='test -z "$ac_c_werror_flag"
41164 || test ! -s conftest.err'
41165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166 (eval $ac_try) 2>&5
41168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169 (exit $ac_status); }; } &&
41170 { ac_try='test -s conftest$ac_exeext'
41171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172 (eval $ac_try) 2>&5
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); }; }; then
41176 eval "$as_ac_var=yes"
41178 echo "$as_me: failed program was:" >&5
41179 sed 's/^/| /' conftest.$ac_ext >&5
41181 eval "$as_ac_var=no"
41184 rm -f conftest.err conftest.$ac_objext \
41185 conftest$ac_exeext conftest.$ac_ext
41187 ac_res=`eval echo '${'$as_ac_var'}'`
41188 { echo "$as_me:$LINENO: result: $ac_res" >&5
41189 echo "${ECHO_T}$ac_res" >&6; }
41190 if test `eval echo '${'$as_ac_var'}'` = yes; then
41191 cat >>confdefs.h <<_ACEOF
41192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41198 LIBS="$ac_save_LIBS"
41201 for ac_header in unistd.h
41203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41208 echo $ECHO_N "(cached) $ECHO_C" >&6
41210 ac_res=`eval echo '${'$as_ac_Header'}'`
41211 { echo "$as_me:$LINENO: result: $ac_res" >&5
41212 echo "${ECHO_T}$ac_res" >&6; }
41214 # Is the header compilable?
41215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41217 cat >conftest.$ac_ext <<_ACEOF
41220 cat confdefs.h >>conftest.$ac_ext
41221 cat >>conftest.$ac_ext <<_ACEOF
41222 /* end confdefs.h. */
41223 $ac_includes_default
41224 #include <$ac_header>
41226 rm -f conftest.$ac_objext
41227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41228 (eval $ac_compile) 2>conftest.er1
41230 grep -v '^ *+' conftest.er1 >conftest.err
41232 cat conftest.err >&5
41233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); } &&
41235 { ac_try='test -z "$ac_c_werror_flag"
41236 || test ! -s conftest.err'
41237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41238 (eval $ac_try) 2>&5
41240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241 (exit $ac_status); }; } &&
41242 { ac_try='test -s conftest.$ac_objext'
41243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41244 (eval $ac_try) 2>&5
41246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247 (exit $ac_status); }; }; then
41248 ac_header_compiler=yes
41250 echo "$as_me: failed program was:" >&5
41251 sed 's/^/| /' conftest.$ac_ext >&5
41253 ac_header_compiler=no
41256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41258 echo "${ECHO_T}$ac_header_compiler" >&6; }
41260 # Is the header present?
41261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41263 cat >conftest.$ac_ext <<_ACEOF
41266 cat confdefs.h >>conftest.$ac_ext
41267 cat >>conftest.$ac_ext <<_ACEOF
41268 /* end confdefs.h. */
41269 #include <$ac_header>
41271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41274 grep -v '^ *+' conftest.er1 >conftest.err
41276 cat conftest.err >&5
41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); } >/dev/null; then
41279 if test -s conftest.err; then
41280 ac_cpp_err=$ac_c_preproc_warn_flag
41281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41288 if test -z "$ac_cpp_err"; then
41289 ac_header_preproc=yes
41291 echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41294 ac_header_preproc=no
41297 rm -f conftest.err conftest.$ac_ext
41298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41299 echo "${ECHO_T}$ac_header_preproc" >&6; }
41301 # So? What about this header?
41302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41308 ac_header_preproc=yes
41311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41324 ## ------------------------------------ ##
41325 ## Report this to bug-coreutils@gnu.org ##
41326 ## ------------------------------------ ##
41328 ) | sed "s/^/$as_me: WARNING: /" >&2
41331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41334 echo $ECHO_N "(cached) $ECHO_C" >&6
41336 eval "$as_ac_Header=\$ac_header_preproc"
41338 ac_res=`eval echo '${'$as_ac_Header'}'`
41339 { echo "$as_me:$LINENO: result: $ac_res" >&5
41340 echo "${ECHO_T}$ac_res" >&6; }
41343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41344 cat >>confdefs.h <<_ACEOF
41345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41352 { echo "$as_me:$LINENO: checking for working chown" >&5
41353 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
41354 if test "${ac_cv_func_chown_works+set}" = set; then
41355 echo $ECHO_N "(cached) $ECHO_C" >&6
41357 if test "$cross_compiling" = yes; then
41358 ac_cv_func_chown_works=no
41360 cat >conftest.$ac_ext <<_ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h. */
41366 $ac_includes_default
41372 char *f = "conftest.chown";
41373 struct stat before, after;
41375 if (creat (f, 0600) < 0)
41377 if (stat (f, &before) < 0)
41379 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
41381 if (stat (f, &after) < 0)
41383 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
41389 rm -f conftest$ac_exeext
41390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41391 (eval $ac_link) 2>&5
41393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41396 (eval $ac_try) 2>&5
41398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399 (exit $ac_status); }; }; then
41400 ac_cv_func_chown_works=yes
41402 echo "$as_me: program exited with status $ac_status" >&5
41403 echo "$as_me: failed program was:" >&5
41404 sed 's/^/| /' conftest.$ac_ext >&5
41406 ( exit $ac_status )
41407 ac_cv_func_chown_works=no
41409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41413 rm -f conftest.chown
41416 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
41417 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
41418 if test $ac_cv_func_chown_works = yes; then
41420 cat >>confdefs.h <<\_ACEOF
41421 #define HAVE_CHOWN 1
41427 { echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
41428 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6; }
41429 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
41430 echo $ECHO_N "(cached) $ECHO_C" >&6
41433 if test "$cross_compiling" = yes; then
41434 gl_cv_func_chown_follows_symlink=yes
41437 cat >conftest.$ac_ext <<_ACEOF
41440 cat confdefs.h >>conftest.$ac_ext
41441 cat >>conftest.$ac_ext <<_ACEOF
41442 /* end confdefs.h. */
41444 #include <unistd.h>
41445 #include <stdlib.h>
41451 char const *dangling_symlink = "conftest.dangle";
41453 unlink (dangling_symlink);
41454 if (symlink ("conftest.no-such", dangling_symlink))
41457 /* Exit successfully on a conforming system,
41458 i.e., where chown must fail with ENOENT. */
41459 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
41460 && errno == ENOENT));
41464 rm -f conftest$ac_exeext
41465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41466 (eval $ac_link) 2>&5
41468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41471 (eval $ac_try) 2>&5
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); }; }; then
41475 gl_cv_func_chown_follows_symlink=yes
41477 echo "$as_me: program exited with status $ac_status" >&5
41478 echo "$as_me: failed program was:" >&5
41479 sed 's/^/| /' conftest.$ac_ext >&5
41481 ( exit $ac_status )
41482 gl_cv_func_chown_follows_symlink=no
41484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41491 { echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
41492 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6; }
41494 if test $gl_cv_func_chown_follows_symlink = no; then
41496 cat >>confdefs.h <<\_ACEOF
41497 #define CHOWN_MODIFIES_SYMLINK 1
41507 if test $ac_cv_func_chown_works = no; then
41509 cat >>confdefs.h <<\_ACEOF
41510 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
41515 # If chown has either of the above problems, then we need the wrapper.
41516 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
41517 : # no wrapper needed
41519 case " $LIBOBJS " in
41520 *" chown.$ac_objext "* ) ;;
41521 *) LIBOBJS="$LIBOBJS chown.$ac_objext"
41526 cat >>confdefs.h <<\_ACEOF
41527 #define chown rpl_chown
41531 { echo "$as_me:$LINENO: checking for fchown" >&5
41532 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
41533 if test "${ac_cv_func_fchown+set}" = set; then
41534 echo $ECHO_N "(cached) $ECHO_C" >&6
41536 cat >conftest.$ac_ext <<_ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h. */
41542 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
41543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41544 #define fchown innocuous_fchown
41546 /* System header to define __stub macros and hopefully few prototypes,
41547 which can conflict with char fchown (); below.
41548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41549 <limits.h> exists even on freestanding compilers. */
41552 # include <limits.h>
41554 # include <assert.h>
41559 /* Override any GCC internal prototype to avoid an error.
41560 Use char because int might match the return type of a GCC
41561 builtin and then its argument prototype would still apply. */
41566 /* The GNU C library defines this for functions which it implements
41567 to always fail with ENOSYS. Some functions are actually named
41568 something starting with __ and the normal name is an alias. */
41569 #if defined __stub_fchown || defined __stub___fchown
41581 rm -f conftest.$ac_objext conftest$ac_exeext
41582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41583 (eval $ac_link) 2>conftest.er1
41585 grep -v '^ *+' conftest.er1 >conftest.err
41587 cat conftest.err >&5
41588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589 (exit $ac_status); } &&
41590 { ac_try='test -z "$ac_c_werror_flag"
41591 || test ! -s conftest.err'
41592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593 (eval $ac_try) 2>&5
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); }; } &&
41597 { ac_try='test -s conftest$ac_exeext'
41598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599 (eval $ac_try) 2>&5
41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); }; }; then
41603 ac_cv_func_fchown=yes
41605 echo "$as_me: failed program was:" >&5
41606 sed 's/^/| /' conftest.$ac_ext >&5
41608 ac_cv_func_fchown=no
41611 rm -f conftest.err conftest.$ac_objext \
41612 conftest$ac_exeext conftest.$ac_ext
41614 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
41615 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
41616 if test $ac_cv_func_fchown = yes; then
41619 case " $LIBOBJS " in
41620 *" fchown-stub.$ac_objext "* ) ;;
41621 *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
41636 for ac_func in lchown
41638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41642 echo $ECHO_N "(cached) $ECHO_C" >&6
41644 cat >conftest.$ac_ext <<_ACEOF
41647 cat confdefs.h >>conftest.$ac_ext
41648 cat >>conftest.$ac_ext <<_ACEOF
41649 /* end confdefs.h. */
41650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41652 #define $ac_func innocuous_$ac_func
41654 /* System header to define __stub macros and hopefully few prototypes,
41655 which can conflict with char $ac_func (); below.
41656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41657 <limits.h> exists even on freestanding compilers. */
41660 # include <limits.h>
41662 # include <assert.h>
41667 /* Override any GCC internal prototype to avoid an error.
41668 Use char because int might match the return type of a GCC
41669 builtin and then its argument prototype would still apply. */
41674 /* The GNU C library defines this for functions which it implements
41675 to always fail with ENOSYS. Some functions are actually named
41676 something starting with __ and the normal name is an alias. */
41677 #if defined __stub_$ac_func || defined __stub___$ac_func
41684 return $ac_func ();
41689 rm -f conftest.$ac_objext conftest$ac_exeext
41690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41691 (eval $ac_link) 2>conftest.er1
41693 grep -v '^ *+' conftest.er1 >conftest.err
41695 cat conftest.err >&5
41696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697 (exit $ac_status); } &&
41698 { ac_try='test -z "$ac_c_werror_flag"
41699 || test ! -s conftest.err'
41700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41701 (eval $ac_try) 2>&5
41703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41704 (exit $ac_status); }; } &&
41705 { ac_try='test -s conftest$ac_exeext'
41706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41707 (eval $ac_try) 2>&5
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; }; then
41711 eval "$as_ac_var=yes"
41713 echo "$as_me: failed program was:" >&5
41714 sed 's/^/| /' conftest.$ac_ext >&5
41716 eval "$as_ac_var=no"
41719 rm -f conftest.err conftest.$ac_objext \
41720 conftest$ac_exeext conftest.$ac_ext
41722 ac_res=`eval echo '${'$as_ac_var'}'`
41723 { echo "$as_me:$LINENO: result: $ac_res" >&5
41724 echo "${ECHO_T}$ac_res" >&6; }
41725 if test `eval echo '${'$as_ac_var'}'` = yes; then
41726 cat >>confdefs.h <<_ACEOF
41727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41731 case " $LIBOBJS " in
41732 *" $ac_func.$ac_objext "* ) ;;
41733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
41742 { echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
41743 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6; }
41744 if test "${gl_cv_func_rmdir_errno_not_empty+set}" = set; then
41745 echo $ECHO_N "(cached) $ECHO_C" >&6
41748 # Arrange for deletion of the temporary directory this test creates.
41749 ac_clean_files="$ac_clean_files confdir2"
41750 mkdir confdir2; : > confdir2/file
41751 if test "$cross_compiling" = yes; then
41752 gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY
41755 cat >conftest.$ac_ext <<_ACEOF
41758 cat confdefs.h >>conftest.$ac_ext
41759 cat >>conftest.$ac_ext <<_ACEOF
41760 /* end confdefs.h. */
41771 rmdir ("confdir2");
41773 s = fopen ("confdir2/errno", "w");
41774 fprintf (s, "%d\n", val);
41779 rm -f conftest$ac_exeext
41780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41781 (eval $ac_link) 2>&5
41783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41786 (eval $ac_try) 2>&5
41788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789 (exit $ac_status); }; }; then
41790 gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
41792 echo "$as_me: program exited with status $ac_status" >&5
41793 echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41796 ( exit $ac_status )
41797 gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
41799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41806 { echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_errno_not_empty" >&5
41807 echo "${ECHO_T}$gl_cv_func_rmdir_errno_not_empty" >&6; }
41810 cat >>confdefs.h <<_ACEOF
41811 #define RMDIR_ERRNO_NOT_EMPTY $gl_cv_func_rmdir_errno_not_empty
41815 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
41816 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
41817 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
41818 echo $ECHO_N "(cached) $ECHO_C" >&6
41820 if test "$cross_compiling" = yes; then
41821 ac_cv_func_lstat_empty_string_bug=yes
41823 cat >conftest.$ac_ext <<_ACEOF
41826 cat confdefs.h >>conftest.$ac_ext
41827 cat >>conftest.$ac_ext <<_ACEOF
41828 /* end confdefs.h. */
41829 $ac_includes_default
41834 return lstat ("", &sbuf) == 0;
41839 rm -f conftest$ac_exeext
41840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41841 (eval $ac_link) 2>&5
41843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; }; then
41850 ac_cv_func_lstat_empty_string_bug=no
41852 echo "$as_me: program exited with status $ac_status" >&5
41853 echo "$as_me: failed program was:" >&5
41854 sed 's/^/| /' conftest.$ac_ext >&5
41856 ( exit $ac_status )
41857 ac_cv_func_lstat_empty_string_bug=yes
41859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41864 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
41865 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
41866 if test $ac_cv_func_lstat_empty_string_bug = yes; then
41867 case " $LIBOBJS " in
41868 *" lstat.$ac_objext "* ) ;;
41869 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
41874 cat >>confdefs.h <<_ACEOF
41875 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
41885 { echo "$as_me:$LINENO: checking for group_member" >&5
41886 echo $ECHO_N "checking for group_member... $ECHO_C" >&6; }
41887 if test "${ac_cv_func_group_member+set}" = set; then
41888 echo $ECHO_N "(cached) $ECHO_C" >&6
41890 cat >conftest.$ac_ext <<_ACEOF
41893 cat confdefs.h >>conftest.$ac_ext
41894 cat >>conftest.$ac_ext <<_ACEOF
41895 /* end confdefs.h. */
41896 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
41897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41898 #define group_member innocuous_group_member
41900 /* System header to define __stub macros and hopefully few prototypes,
41901 which can conflict with char group_member (); below.
41902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41903 <limits.h> exists even on freestanding compilers. */
41906 # include <limits.h>
41908 # include <assert.h>
41911 #undef group_member
41913 /* Override any GCC internal prototype to avoid an error.
41914 Use char because int might match the return type of a GCC
41915 builtin and then its argument prototype would still apply. */
41919 char group_member ();
41920 /* The GNU C library defines this for functions which it implements
41921 to always fail with ENOSYS. Some functions are actually named
41922 something starting with __ and the normal name is an alias. */
41923 #if defined __stub_group_member || defined __stub___group_member
41930 return group_member ();
41935 rm -f conftest.$ac_objext conftest$ac_exeext
41936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41937 (eval $ac_link) 2>conftest.er1
41939 grep -v '^ *+' conftest.er1 >conftest.err
41941 cat conftest.err >&5
41942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943 (exit $ac_status); } &&
41944 { ac_try='test -z "$ac_c_werror_flag"
41945 || test ! -s conftest.err'
41946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41947 (eval $ac_try) 2>&5
41949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950 (exit $ac_status); }; } &&
41951 { ac_try='test -s conftest$ac_exeext'
41952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953 (eval $ac_try) 2>&5
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); }; }; then
41957 ac_cv_func_group_member=yes
41959 echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41962 ac_cv_func_group_member=no
41965 rm -f conftest.err conftest.$ac_objext \
41966 conftest$ac_exeext conftest.$ac_ext
41968 { echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
41969 echo "${ECHO_T}$ac_cv_func_group_member" >&6; }
41970 if test $ac_cv_func_group_member = yes; then
41974 case " $LIBOBJS " in
41975 *" group-member.$ac_objext "* ) ;;
41976 *) LIBOBJS="$LIBOBJS group-member.$ac_objext"
41987 { echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
41988 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
41989 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
41990 echo $ECHO_N "(cached) $ECHO_C" >&6
41993 # Create a regular file.
41994 echo > conftest.file
41995 if test "$cross_compiling" = yes; then
41996 jm_ac_cv_func_link_follows_symlink=yes
41998 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42005 # include <sys/types.h>
42006 # include <sys/stat.h>
42007 # include <unistd.h>
42009 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
42010 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
42011 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
42016 const char *file = "conftest.file";
42017 const char *sym = "conftest.sym";
42018 const char *hard = "conftest.hard";
42019 struct stat sb_file, sb_hard;
42021 /* Create a symlink to the regular file. */
42022 if (symlink (file, sym))
42025 /* Create a hard link to that symlink. */
42026 if (link (sym, hard))
42029 if (lstat (hard, &sb_hard))
42031 if (lstat (file, &sb_file))
42034 /* If the dev/inode of hard and file are the same, then
42035 the link call followed the symlink. */
42036 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
42040 rm -f conftest$ac_exeext
42041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42042 (eval $ac_link) 2>&5
42044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42047 (eval $ac_try) 2>&5
42049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050 (exit $ac_status); }; }; then
42051 jm_ac_cv_func_link_follows_symlink=yes
42053 echo "$as_me: program exited with status $ac_status" >&5
42054 echo "$as_me: failed program was:" >&5
42055 sed 's/^/| /' conftest.$ac_ext >&5
42057 ( exit $ac_status )
42058 jm_ac_cv_func_link_follows_symlink=no
42060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42066 { echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
42067 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6; }
42068 if test $jm_ac_cv_func_link_follows_symlink = yes; then
42070 cat >>confdefs.h <<\_ACEOF
42071 #define LINK_FOLLOWS_SYMLINKS 1
42080 for ac_header in stdio_ext.h
42082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42087 echo $ECHO_N "(cached) $ECHO_C" >&6
42089 ac_res=`eval echo '${'$as_ac_Header'}'`
42090 { echo "$as_me:$LINENO: result: $ac_res" >&5
42091 echo "${ECHO_T}$ac_res" >&6; }
42093 # Is the header compilable?
42094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42096 cat >conftest.$ac_ext <<_ACEOF
42099 cat confdefs.h >>conftest.$ac_ext
42100 cat >>conftest.$ac_ext <<_ACEOF
42101 /* end confdefs.h. */
42102 $ac_includes_default
42103 #include <$ac_header>
42105 rm -f conftest.$ac_objext
42106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42107 (eval $ac_compile) 2>conftest.er1
42109 grep -v '^ *+' conftest.er1 >conftest.err
42111 cat conftest.err >&5
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); } &&
42114 { ac_try='test -z "$ac_c_werror_flag"
42115 || test ! -s conftest.err'
42116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117 (eval $ac_try) 2>&5
42119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120 (exit $ac_status); }; } &&
42121 { ac_try='test -s conftest.$ac_objext'
42122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123 (eval $ac_try) 2>&5
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); }; }; then
42127 ac_header_compiler=yes
42129 echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42132 ac_header_compiler=no
42135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42137 echo "${ECHO_T}$ac_header_compiler" >&6; }
42139 # Is the header present?
42140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
42142 cat >conftest.$ac_ext <<_ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h. */
42148 #include <$ac_header>
42150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42153 grep -v '^ *+' conftest.er1 >conftest.err
42155 cat conftest.err >&5
42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157 (exit $ac_status); } >/dev/null; then
42158 if test -s conftest.err; then
42159 ac_cpp_err=$ac_c_preproc_warn_flag
42160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42167 if test -z "$ac_cpp_err"; then
42168 ac_header_preproc=yes
42170 echo "$as_me: failed program was:" >&5
42171 sed 's/^/| /' conftest.$ac_ext >&5
42173 ac_header_preproc=no
42176 rm -f conftest.err conftest.$ac_ext
42177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42178 echo "${ECHO_T}$ac_header_preproc" >&6; }
42180 # So? What about this header?
42181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42187 ac_header_preproc=yes
42190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42203 ## ------------------------------------ ##
42204 ## Report this to bug-coreutils@gnu.org ##
42205 ## ------------------------------------ ##
42207 ) | sed "s/^/$as_me: WARNING: /" >&2
42210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42213 echo $ECHO_N "(cached) $ECHO_C" >&6
42215 eval "$as_ac_Header=\$ac_header_preproc"
42217 ac_res=`eval echo '${'$as_ac_Header'}'`
42218 { echo "$as_me:$LINENO: result: $ac_res" >&5
42219 echo "${ECHO_T}$ac_res" >&6; }
42222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42223 cat >>confdefs.h <<_ACEOF
42224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42232 for ac_func in __fpending
42234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42238 echo $ECHO_N "(cached) $ECHO_C" >&6
42240 cat >conftest.$ac_ext <<_ACEOF
42243 cat confdefs.h >>conftest.$ac_ext
42244 cat >>conftest.$ac_ext <<_ACEOF
42245 /* end confdefs.h. */
42246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42248 #define $ac_func innocuous_$ac_func
42250 /* System header to define __stub macros and hopefully few prototypes,
42251 which can conflict with char $ac_func (); below.
42252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42253 <limits.h> exists even on freestanding compilers. */
42256 # include <limits.h>
42258 # include <assert.h>
42263 /* Override any GCC internal prototype to avoid an error.
42264 Use char because int might match the return type of a GCC
42265 builtin and then its argument prototype would still apply. */
42270 /* The GNU C library defines this for functions which it implements
42271 to always fail with ENOSYS. Some functions are actually named
42272 something starting with __ and the normal name is an alias. */
42273 #if defined __stub_$ac_func || defined __stub___$ac_func
42280 return $ac_func ();
42285 rm -f conftest.$ac_objext conftest$ac_exeext
42286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42287 (eval $ac_link) 2>conftest.er1
42289 grep -v '^ *+' conftest.er1 >conftest.err
42291 cat conftest.err >&5
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); } &&
42294 { ac_try='test -z "$ac_c_werror_flag"
42295 || test ! -s conftest.err'
42296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297 (eval $ac_try) 2>&5
42299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); }; } &&
42301 { ac_try='test -s conftest$ac_exeext'
42302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42303 (eval $ac_try) 2>&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306 (exit $ac_status); }; }; then
42307 eval "$as_ac_var=yes"
42309 echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42312 eval "$as_ac_var=no"
42315 rm -f conftest.err conftest.$ac_objext \
42316 conftest$ac_exeext conftest.$ac_ext
42318 ac_res=`eval echo '${'$as_ac_var'}'`
42319 { echo "$as_me:$LINENO: result: $ac_res" >&5
42320 echo "${ECHO_T}$ac_res" >&6; }
42321 if test `eval echo '${'$as_ac_var'}'` = yes; then
42322 cat >>confdefs.h <<_ACEOF
42323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42327 case " $LIBOBJS " in
42328 *" $ac_func.$ac_objext "* ) ;;
42329 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
42338 # include <stdio.h>
42339 # if HAVE_STDIO_EXT_H
42340 # include <stdio_ext.h>
42343 { echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
42344 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6; }
42345 if test "${ac_cv_have_decl___fpending+set}" = set; then
42346 echo $ECHO_N "(cached) $ECHO_C" >&6
42348 cat >conftest.$ac_ext <<_ACEOF
42351 cat confdefs.h >>conftest.$ac_ext
42352 cat >>conftest.$ac_ext <<_ACEOF
42353 /* end confdefs.h. */
42360 char *p = (char *) __fpending;
42368 rm -f conftest.$ac_objext
42369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42370 (eval $ac_compile) 2>conftest.er1
42372 grep -v '^ *+' conftest.er1 >conftest.err
42374 cat conftest.err >&5
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); } &&
42377 { ac_try='test -z "$ac_c_werror_flag"
42378 || test ! -s conftest.err'
42379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380 (eval $ac_try) 2>&5
42382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383 (exit $ac_status); }; } &&
42384 { ac_try='test -s conftest.$ac_objext'
42385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386 (eval $ac_try) 2>&5
42388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389 (exit $ac_status); }; }; then
42390 ac_cv_have_decl___fpending=yes
42392 echo "$as_me: failed program was:" >&5
42393 sed 's/^/| /' conftest.$ac_ext >&5
42395 ac_cv_have_decl___fpending=no
42398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42400 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
42401 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6; }
42402 if test $ac_cv_have_decl___fpending = yes; then
42404 cat >>confdefs.h <<_ACEOF
42405 #define HAVE_DECL___FPENDING 1
42410 cat >>confdefs.h <<_ACEOF
42411 #define HAVE_DECL___FPENDING 0
42418 if test $ac_cv_func___fpending = no; then
42419 { echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
42420 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6; }
42421 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
42422 echo $ECHO_N "(cached) $ECHO_C" >&6
42428 'fp->_IO_write_ptr - fp->_IO_write_base' \
42430 '# traditional Unix' \
42431 'fp->_ptr - fp->_base' \
42434 'fp->_p - fp->_bf._base' \
42436 '# SCO, Unixware' \
42437 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
42440 'fp->__bufp - fp->__buffer' \
42442 '# old glibc iostream?' \
42443 'fp->_pptr - fp->_pbase' \
42446 '(*fp)->_ptr - (*fp)->_base' \
42448 '# e.g., DGUX R4.11; the info is not available' \
42452 # Skip each embedded comment.
42453 case "$ac_expr" in '#'*) continue;; esac
42455 cat >conftest.$ac_ext <<_ACEOF
42458 cat confdefs.h >>conftest.$ac_ext
42459 cat >>conftest.$ac_ext <<_ACEOF
42460 /* end confdefs.h. */
42466 FILE *fp = stdin; (void) ($ac_expr);
42471 rm -f conftest.$ac_objext
42472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42473 (eval $ac_compile) 2>conftest.er1
42475 grep -v '^ *+' conftest.er1 >conftest.err
42477 cat conftest.err >&5
42478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479 (exit $ac_status); } &&
42480 { ac_try='test -z "$ac_c_werror_flag"
42481 || test ! -s conftest.err'
42482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42483 (eval $ac_try) 2>&5
42485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42486 (exit $ac_status); }; } &&
42487 { ac_try='test -s conftest.$ac_objext'
42488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489 (eval $ac_try) 2>&5
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); }; }; then
42496 echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42503 test "$fp_done" = yes && break
42506 ac_cv_sys_pending_output_n_bytes=$ac_expr
42510 { echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
42511 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6; }
42513 cat >>confdefs.h <<_ACEOF
42514 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
42521 if test $gt_cv_header_inttypes_h = yes; then
42522 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
42523 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
42524 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
42525 echo $ECHO_N "(cached) $ECHO_C" >&6
42528 cat >conftest.$ac_ext <<_ACEOF
42531 cat confdefs.h >>conftest.$ac_ext
42532 cat >>conftest.$ac_ext <<_ACEOF
42533 /* end confdefs.h. */
42534 #include <inttypes.h>
42547 rm -f conftest.$ac_objext
42548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42549 (eval $ac_compile) 2>conftest.er1
42551 grep -v '^ *+' conftest.er1 >conftest.err
42553 cat conftest.err >&5
42554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555 (exit $ac_status); } &&
42556 { ac_try='test -z "$ac_c_werror_flag"
42557 || test ! -s conftest.err'
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } &&
42563 { ac_try='test -s conftest.$ac_objext'
42564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42565 (eval $ac_try) 2>&5
42567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); }; }; then
42569 gt_cv_inttypes_pri_broken=no
42571 echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42574 gt_cv_inttypes_pri_broken=yes
42577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42580 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
42581 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
42583 if test "$gt_cv_inttypes_pri_broken" = yes; then
42585 cat >>confdefs.h <<_ACEOF
42586 #define PRI_MACROS_BROKEN 1
42592 { echo "$as_me:$LINENO: checking whether ULONG_MAX < ULLONG_MAX" >&5
42593 echo $ECHO_N "checking whether ULONG_MAX < ULLONG_MAX... $ECHO_C" >&6; }
42594 if test "${gl_cv_ulong_max_lt_ullong_max+set}" = set; then
42595 echo $ECHO_N "(cached) $ECHO_C" >&6
42597 cat >conftest.$ac_ext <<_ACEOF
42600 cat confdefs.h >>conftest.$ac_ext
42601 cat >>conftest.$ac_ext <<_ACEOF
42602 /* end confdefs.h. */
42603 $ac_includes_default
42607 static int test_array [1 - 2 * !((unsigned long int) -1 < (unsigned long long int) -1)];
42614 rm -f conftest.$ac_objext
42615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42616 (eval $ac_compile) 2>conftest.er1
42618 grep -v '^ *+' conftest.er1 >conftest.err
42620 cat conftest.err >&5
42621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622 (exit $ac_status); } &&
42623 { ac_try='test -z "$ac_c_werror_flag"
42624 || test ! -s conftest.err'
42625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42626 (eval $ac_try) 2>&5
42628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629 (exit $ac_status); }; } &&
42630 { ac_try='test -s conftest.$ac_objext'
42631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632 (eval $ac_try) 2>&5
42634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); }; }; then
42636 gl_cv_ulong_max_lt_ullong_max=yes
42638 echo "$as_me: failed program was:" >&5
42639 sed 's/^/| /' conftest.$ac_ext >&5
42641 gl_cv_ulong_max_lt_ullong_max=no
42644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42646 { echo "$as_me:$LINENO: result: $gl_cv_ulong_max_lt_ullong_max" >&5
42647 echo "${ECHO_T}$gl_cv_ulong_max_lt_ullong_max" >&6; }
42648 if test $gl_cv_ulong_max_lt_ullong_max = yes; then
42650 cat >>confdefs.h <<\_ACEOF
42651 #define ULONG_MAX_LT_ULLONG_MAX 1
42658 if test $ac_cv_func_getgroups_works = no; then
42659 case " $LIBOBJS " in
42660 *" getgroups.$ac_objext "* ) ;;
42661 *) LIBOBJS="$LIBOBJS getgroups.$ac_objext"
42666 cat >>confdefs.h <<\_ACEOF
42667 #define getgroups rpl_getgroups
42674 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
42676 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
42677 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
42678 if test "${ac_cv_sys_largefile_source+set}" = set; then
42679 echo $ECHO_N "(cached) $ECHO_C" >&6
42682 ac_cv_sys_largefile_source=no
42683 cat >conftest.$ac_ext <<_ACEOF
42686 cat confdefs.h >>conftest.$ac_ext
42687 cat >>conftest.$ac_ext <<_ACEOF
42688 /* end confdefs.h. */
42698 rm -f conftest.$ac_objext
42699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42700 (eval $ac_compile) 2>conftest.er1
42702 grep -v '^ *+' conftest.er1 >conftest.err
42704 cat conftest.err >&5
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); } &&
42707 { ac_try='test -z "$ac_c_werror_flag"
42708 || test ! -s conftest.err'
42709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710 (eval $ac_try) 2>&5
42712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); }; } &&
42714 { ac_try='test -s conftest.$ac_objext'
42715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42716 (eval $ac_try) 2>&5
42718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719 (exit $ac_status); }; }; then
42722 echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42729 cat >conftest.$ac_ext <<_ACEOF
42732 cat confdefs.h >>conftest.$ac_ext
42733 cat >>conftest.$ac_ext <<_ACEOF
42734 /* end confdefs.h. */
42735 #define _LARGEFILE_SOURCE 1
42745 rm -f conftest.$ac_objext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42747 (eval $ac_compile) 2>conftest.er1
42749 grep -v '^ *+' conftest.er1 >conftest.err
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } &&
42754 { ac_try='test -z "$ac_c_werror_flag"
42755 || test ! -s conftest.err'
42756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757 (eval $ac_try) 2>&5
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); }; } &&
42761 { ac_try='test -s conftest.$ac_objext'
42762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42763 (eval $ac_try) 2>&5
42765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766 (exit $ac_status); }; }; then
42767 ac_cv_sys_largefile_source=1; break
42769 echo "$as_me: failed program was:" >&5
42770 sed 's/^/| /' conftest.$ac_ext >&5
42775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42779 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
42780 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
42781 if test "$ac_cv_sys_largefile_source" != no; then
42783 cat >>confdefs.h <<_ACEOF
42784 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
42790 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
42791 # in glibc 2.1.3, but that breaks too many other things.
42792 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
42793 { echo "$as_me:$LINENO: checking for fseeko" >&5
42794 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
42795 if test "${ac_cv_func_fseeko+set}" = set; then
42796 echo $ECHO_N "(cached) $ECHO_C" >&6
42798 cat >conftest.$ac_ext <<_ACEOF
42801 cat confdefs.h >>conftest.$ac_ext
42802 cat >>conftest.$ac_ext <<_ACEOF
42803 /* end confdefs.h. */
42808 return fseeko && fseeko (stdin, 0, 0);
42813 rm -f conftest.$ac_objext conftest$ac_exeext
42814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42815 (eval $ac_link) 2>conftest.er1
42817 grep -v '^ *+' conftest.er1 >conftest.err
42819 cat conftest.err >&5
42820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42821 (exit $ac_status); } &&
42822 { ac_try='test -z "$ac_c_werror_flag"
42823 || test ! -s conftest.err'
42824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825 (eval $ac_try) 2>&5
42827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828 (exit $ac_status); }; } &&
42829 { ac_try='test -s conftest$ac_exeext'
42830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42831 (eval $ac_try) 2>&5
42833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834 (exit $ac_status); }; }; then
42835 ac_cv_func_fseeko=yes
42837 echo "$as_me: failed program was:" >&5
42838 sed 's/^/| /' conftest.$ac_ext >&5
42840 ac_cv_func_fseeko=no
42843 rm -f conftest.err conftest.$ac_objext \
42844 conftest$ac_exeext conftest.$ac_ext
42846 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
42847 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
42848 if test $ac_cv_func_fseeko = yes; then
42850 cat >>confdefs.h <<\_ACEOF
42851 #define HAVE_FSEEKO 1
42857 { echo "$as_me:$LINENO: checking for /proc/uptime" >&5
42858 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6; }
42859 if test "${jm_cv_have_proc_uptime+set}" = set; then
42860 echo $ECHO_N "(cached) $ECHO_C" >&6
42862 jm_cv_have_proc_uptime=no
42863 test -f /proc/uptime \
42864 && test "$cross_compiling" = no \
42865 && cat < /proc/uptime >/dev/null 2>/dev/null \
42866 && jm_cv_have_proc_uptime=yes
42868 { echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
42869 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6; }
42870 if test $jm_cv_have_proc_uptime = yes; then
42872 cat >>confdefs.h <<\_ACEOF
42873 #define HAVE_PROC_UPTIME 1
42880 for ac_func in ftruncate
42882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42886 echo $ECHO_N "(cached) $ECHO_C" >&6
42888 cat >conftest.$ac_ext <<_ACEOF
42891 cat confdefs.h >>conftest.$ac_ext
42892 cat >>conftest.$ac_ext <<_ACEOF
42893 /* end confdefs.h. */
42894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42896 #define $ac_func innocuous_$ac_func
42898 /* System header to define __stub macros and hopefully few prototypes,
42899 which can conflict with char $ac_func (); below.
42900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42901 <limits.h> exists even on freestanding compilers. */
42904 # include <limits.h>
42906 # include <assert.h>
42911 /* Override any GCC internal prototype to avoid an error.
42912 Use char because int might match the return type of a GCC
42913 builtin and then its argument prototype would still apply. */
42918 /* The GNU C library defines this for functions which it implements
42919 to always fail with ENOSYS. Some functions are actually named
42920 something starting with __ and the normal name is an alias. */
42921 #if defined __stub_$ac_func || defined __stub___$ac_func
42928 return $ac_func ();
42933 rm -f conftest.$ac_objext conftest$ac_exeext
42934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42935 (eval $ac_link) 2>conftest.er1
42937 grep -v '^ *+' conftest.er1 >conftest.err
42939 cat conftest.err >&5
42940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); } &&
42942 { ac_try='test -z "$ac_c_werror_flag"
42943 || test ! -s conftest.err'
42944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42945 (eval $ac_try) 2>&5
42947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42948 (exit $ac_status); }; } &&
42949 { ac_try='test -s conftest$ac_exeext'
42950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42951 (eval $ac_try) 2>&5
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); }; }; then
42955 eval "$as_ac_var=yes"
42957 echo "$as_me: failed program was:" >&5
42958 sed 's/^/| /' conftest.$ac_ext >&5
42960 eval "$as_ac_var=no"
42963 rm -f conftest.err conftest.$ac_objext \
42964 conftest$ac_exeext conftest.$ac_ext
42966 ac_res=`eval echo '${'$as_ac_var'}'`
42967 { echo "$as_me:$LINENO: result: $ac_res" >&5
42968 echo "${ECHO_T}$ac_res" >&6; }
42969 if test `eval echo '${'$as_ac_var'}'` = yes; then
42970 cat >>confdefs.h <<_ACEOF
42971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42975 case " $LIBOBJS " in
42976 *" $ac_func.$ac_objext "* ) ;;
42977 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
42985 if test $ac_cv_func_ftruncate = no; then
42988 for ac_func in chsize
42990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42994 echo $ECHO_N "(cached) $ECHO_C" >&6
42996 cat >conftest.$ac_ext <<_ACEOF
42999 cat confdefs.h >>conftest.$ac_ext
43000 cat >>conftest.$ac_ext <<_ACEOF
43001 /* end confdefs.h. */
43002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43004 #define $ac_func innocuous_$ac_func
43006 /* System header to define __stub macros and hopefully few prototypes,
43007 which can conflict with char $ac_func (); below.
43008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43009 <limits.h> exists even on freestanding compilers. */
43012 # include <limits.h>
43014 # include <assert.h>
43019 /* Override any GCC internal prototype to avoid an error.
43020 Use char because int might match the return type of a GCC
43021 builtin and then its argument prototype would still apply. */
43026 /* The GNU C library defines this for functions which it implements
43027 to always fail with ENOSYS. Some functions are actually named
43028 something starting with __ and the normal name is an alias. */
43029 #if defined __stub_$ac_func || defined __stub___$ac_func
43036 return $ac_func ();
43041 rm -f conftest.$ac_objext conftest$ac_exeext
43042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43043 (eval $ac_link) 2>conftest.er1
43045 grep -v '^ *+' conftest.er1 >conftest.err
43047 cat conftest.err >&5
43048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43049 (exit $ac_status); } &&
43050 { ac_try='test -z "$ac_c_werror_flag"
43051 || test ! -s conftest.err'
43052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43053 (eval $ac_try) 2>&5
43055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43056 (exit $ac_status); }; } &&
43057 { ac_try='test -s conftest$ac_exeext'
43058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43059 (eval $ac_try) 2>&5
43061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062 (exit $ac_status); }; }; then
43063 eval "$as_ac_var=yes"
43065 echo "$as_me: failed program was:" >&5
43066 sed 's/^/| /' conftest.$ac_ext >&5
43068 eval "$as_ac_var=no"
43071 rm -f conftest.err conftest.$ac_objext \
43072 conftest$ac_exeext conftest.$ac_ext
43074 ac_res=`eval echo '${'$as_ac_var'}'`
43075 { echo "$as_me:$LINENO: result: $ac_res" >&5
43076 echo "${ECHO_T}$ac_res" >&6; }
43077 if test `eval echo '${'$as_ac_var'}'` = yes; then
43078 cat >>confdefs.h <<_ACEOF
43079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43226 for ac_header in sys/mount.h
43228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43232 echo $ECHO_N "(cached) $ECHO_C" >&6
43234 cat >conftest.$ac_ext <<_ACEOF
43237 cat confdefs.h >>conftest.$ac_ext
43238 cat >>conftest.$ac_ext <<_ACEOF
43239 /* end confdefs.h. */
43240 $ac_includes_default
43241 #if HAVE_SYS_PARAM_H
43242 #include <sys/param.h>
43245 #include <$ac_header>
43247 rm -f conftest.$ac_objext
43248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43249 (eval $ac_compile) 2>conftest.er1
43251 grep -v '^ *+' conftest.er1 >conftest.err
43253 cat conftest.err >&5
43254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255 (exit $ac_status); } &&
43256 { ac_try='test -z "$ac_c_werror_flag"
43257 || test ! -s conftest.err'
43258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43259 (eval $ac_try) 2>&5
43261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262 (exit $ac_status); }; } &&
43263 { ac_try='test -s conftest.$ac_objext'
43264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43265 (eval $ac_try) 2>&5
43267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43268 (exit $ac_status); }; }; then
43269 eval "$as_ac_Header=yes"
43271 echo "$as_me: failed program was:" >&5
43272 sed 's/^/| /' conftest.$ac_ext >&5
43274 eval "$as_ac_Header=no"
43277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43279 ac_res=`eval echo '${'$as_ac_Header'}'`
43280 { echo "$as_me:$LINENO: result: $ac_res" >&5
43281 echo "${ECHO_T}$ac_res" >&6; }
43282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43283 cat >>confdefs.h <<_ACEOF
43284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43299 # For `struct statfs' on Ultrix 4.4.
43303 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
43305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43309 echo $ECHO_N "(cached) $ECHO_C" >&6
43311 cat >conftest.$ac_ext <<_ACEOF
43314 cat confdefs.h >>conftest.$ac_ext
43315 cat >>conftest.$ac_ext <<_ACEOF
43316 /* end confdefs.h. */
43317 $ac_includes_default
43319 #include <$ac_header>
43321 rm -f conftest.$ac_objext
43322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43323 (eval $ac_compile) 2>conftest.er1
43325 grep -v '^ *+' conftest.er1 >conftest.err
43327 cat conftest.err >&5
43328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329 (exit $ac_status); } &&
43330 { ac_try='test -z "$ac_c_werror_flag"
43331 || test ! -s conftest.err'
43332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43333 (eval $ac_try) 2>&5
43335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336 (exit $ac_status); }; } &&
43337 { ac_try='test -s conftest.$ac_objext'
43338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43339 (eval $ac_try) 2>&5
43341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342 (exit $ac_status); }; }; then
43343 eval "$as_ac_Header=yes"
43345 echo "$as_me: failed program was:" >&5
43346 sed 's/^/| /' conftest.$ac_ext >&5
43348 eval "$as_ac_Header=no"
43351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43353 ac_res=`eval echo '${'$as_ac_Header'}'`
43354 { echo "$as_me:$LINENO: result: $ac_res" >&5
43355 echo "${ECHO_T}$ac_res" >&6; }
43356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43357 cat >>confdefs.h <<_ACEOF
43358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43369 statxfs_includes="\
43370 $ac_includes_default
43371 #if HAVE_SYS_STATVFS_H
43372 # include <sys/statvfs.h>
43375 # include <sys/vfs.h>
43377 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
43378 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
43379 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
43380 # include <sys/param.h>
43381 # include <sys/mount.h>
43382 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
43383 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
43384 # include <netinet/in.h>
43385 # include <nfs/nfs_clnt.h>
43386 # include <nfs/vfs.h>
43390 { echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
43391 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6; }
43392 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
43393 echo $ECHO_N "(cached) $ECHO_C" >&6
43395 cat >conftest.$ac_ext <<_ACEOF
43398 cat confdefs.h >>conftest.$ac_ext
43399 cat >>conftest.$ac_ext <<_ACEOF
43400 /* end confdefs.h. */
43406 static struct statfs ac_aggr;
43407 if (ac_aggr.f_basetype)
43413 rm -f conftest.$ac_objext
43414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43415 (eval $ac_compile) 2>conftest.er1
43417 grep -v '^ *+' conftest.er1 >conftest.err
43419 cat conftest.err >&5
43420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421 (exit $ac_status); } &&
43422 { ac_try='test -z "$ac_c_werror_flag"
43423 || test ! -s conftest.err'
43424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43425 (eval $ac_try) 2>&5
43427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428 (exit $ac_status); }; } &&
43429 { ac_try='test -s conftest.$ac_objext'
43430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43431 (eval $ac_try) 2>&5
43433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434 (exit $ac_status); }; }; then
43435 ac_cv_member_struct_statfs_f_basetype=yes
43437 echo "$as_me: failed program was:" >&5
43438 sed 's/^/| /' conftest.$ac_ext >&5
43440 cat >conftest.$ac_ext <<_ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h. */
43451 static struct statfs ac_aggr;
43452 if (sizeof ac_aggr.f_basetype)
43458 rm -f conftest.$ac_objext
43459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43460 (eval $ac_compile) 2>conftest.er1
43462 grep -v '^ *+' conftest.er1 >conftest.err
43464 cat conftest.err >&5
43465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466 (exit $ac_status); } &&
43467 { ac_try='test -z "$ac_c_werror_flag"
43468 || test ! -s conftest.err'
43469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43470 (eval $ac_try) 2>&5
43472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473 (exit $ac_status); }; } &&
43474 { ac_try='test -s conftest.$ac_objext'
43475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43476 (eval $ac_try) 2>&5
43478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479 (exit $ac_status); }; }; then
43480 ac_cv_member_struct_statfs_f_basetype=yes
43482 echo "$as_me: failed program was:" >&5
43483 sed 's/^/| /' conftest.$ac_ext >&5
43485 ac_cv_member_struct_statfs_f_basetype=no
43488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43493 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
43494 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6; }
43495 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
43497 cat >>confdefs.h <<_ACEOF
43498 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
43504 { echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
43505 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6; }
43506 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
43507 echo $ECHO_N "(cached) $ECHO_C" >&6
43509 cat >conftest.$ac_ext <<_ACEOF
43512 cat confdefs.h >>conftest.$ac_ext
43513 cat >>conftest.$ac_ext <<_ACEOF
43514 /* end confdefs.h. */
43520 static struct statvfs ac_aggr;
43521 if (ac_aggr.f_basetype)
43527 rm -f conftest.$ac_objext
43528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43529 (eval $ac_compile) 2>conftest.er1
43531 grep -v '^ *+' conftest.er1 >conftest.err
43533 cat conftest.err >&5
43534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535 (exit $ac_status); } &&
43536 { ac_try='test -z "$ac_c_werror_flag"
43537 || test ! -s conftest.err'
43538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43539 (eval $ac_try) 2>&5
43541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43542 (exit $ac_status); }; } &&
43543 { ac_try='test -s conftest.$ac_objext'
43544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43545 (eval $ac_try) 2>&5
43547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43548 (exit $ac_status); }; }; then
43549 ac_cv_member_struct_statvfs_f_basetype=yes
43551 echo "$as_me: failed program was:" >&5
43552 sed 's/^/| /' conftest.$ac_ext >&5
43554 cat >conftest.$ac_ext <<_ACEOF
43557 cat confdefs.h >>conftest.$ac_ext
43558 cat >>conftest.$ac_ext <<_ACEOF
43559 /* end confdefs.h. */
43565 static struct statvfs ac_aggr;
43566 if (sizeof ac_aggr.f_basetype)
43572 rm -f conftest.$ac_objext
43573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43574 (eval $ac_compile) 2>conftest.er1
43576 grep -v '^ *+' conftest.er1 >conftest.err
43578 cat conftest.err >&5
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); } &&
43581 { ac_try='test -z "$ac_c_werror_flag"
43582 || test ! -s conftest.err'
43583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43584 (eval $ac_try) 2>&5
43586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587 (exit $ac_status); }; } &&
43588 { ac_try='test -s conftest.$ac_objext'
43589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590 (eval $ac_try) 2>&5
43592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593 (exit $ac_status); }; }; then
43594 ac_cv_member_struct_statvfs_f_basetype=yes
43596 echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43599 ac_cv_member_struct_statvfs_f_basetype=no
43602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
43608 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6; }
43609 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
43611 cat >>confdefs.h <<_ACEOF
43612 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
43618 { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
43619 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
43620 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
43621 echo $ECHO_N "(cached) $ECHO_C" >&6
43623 cat >conftest.$ac_ext <<_ACEOF
43626 cat confdefs.h >>conftest.$ac_ext
43627 cat >>conftest.$ac_ext <<_ACEOF
43628 /* end confdefs.h. */
43634 static struct statfs ac_aggr;
43635 if (ac_aggr.f_fstypename)
43641 rm -f conftest.$ac_objext
43642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43643 (eval $ac_compile) 2>conftest.er1
43645 grep -v '^ *+' conftest.er1 >conftest.err
43647 cat conftest.err >&5
43648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649 (exit $ac_status); } &&
43650 { ac_try='test -z "$ac_c_werror_flag"
43651 || test ! -s conftest.err'
43652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43653 (eval $ac_try) 2>&5
43655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656 (exit $ac_status); }; } &&
43657 { ac_try='test -s conftest.$ac_objext'
43658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43659 (eval $ac_try) 2>&5
43661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662 (exit $ac_status); }; }; then
43663 ac_cv_member_struct_statfs_f_fstypename=yes
43665 echo "$as_me: failed program was:" >&5
43666 sed 's/^/| /' conftest.$ac_ext >&5
43668 cat >conftest.$ac_ext <<_ACEOF
43671 cat confdefs.h >>conftest.$ac_ext
43672 cat >>conftest.$ac_ext <<_ACEOF
43673 /* end confdefs.h. */
43679 static struct statfs ac_aggr;
43680 if (sizeof ac_aggr.f_fstypename)
43686 rm -f conftest.$ac_objext
43687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43688 (eval $ac_compile) 2>conftest.er1
43690 grep -v '^ *+' conftest.er1 >conftest.err
43692 cat conftest.err >&5
43693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694 (exit $ac_status); } &&
43695 { ac_try='test -z "$ac_c_werror_flag"
43696 || test ! -s conftest.err'
43697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43698 (eval $ac_try) 2>&5
43700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701 (exit $ac_status); }; } &&
43702 { ac_try='test -s conftest.$ac_objext'
43703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43704 (eval $ac_try) 2>&5
43706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43707 (exit $ac_status); }; }; then
43708 ac_cv_member_struct_statfs_f_fstypename=yes
43710 echo "$as_me: failed program was:" >&5
43711 sed 's/^/| /' conftest.$ac_ext >&5
43713 ac_cv_member_struct_statfs_f_fstypename=no
43716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
43722 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
43723 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
43725 cat >>confdefs.h <<_ACEOF
43726 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
43732 { echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
43733 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6; }
43734 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
43735 echo $ECHO_N "(cached) $ECHO_C" >&6
43737 cat >conftest.$ac_ext <<_ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h. */
43748 static struct statfs ac_aggr;
43749 if (ac_aggr.f_type)
43755 rm -f conftest.$ac_objext
43756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43757 (eval $ac_compile) 2>conftest.er1
43759 grep -v '^ *+' conftest.er1 >conftest.err
43761 cat conftest.err >&5
43762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763 (exit $ac_status); } &&
43764 { ac_try='test -z "$ac_c_werror_flag"
43765 || test ! -s conftest.err'
43766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43767 (eval $ac_try) 2>&5
43769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43770 (exit $ac_status); }; } &&
43771 { ac_try='test -s conftest.$ac_objext'
43772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43773 (eval $ac_try) 2>&5
43775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43776 (exit $ac_status); }; }; then
43777 ac_cv_member_struct_statfs_f_type=yes
43779 echo "$as_me: failed program was:" >&5
43780 sed 's/^/| /' conftest.$ac_ext >&5
43782 cat >conftest.$ac_ext <<_ACEOF
43785 cat confdefs.h >>conftest.$ac_ext
43786 cat >>conftest.$ac_ext <<_ACEOF
43787 /* end confdefs.h. */
43793 static struct statfs ac_aggr;
43794 if (sizeof ac_aggr.f_type)
43800 rm -f conftest.$ac_objext
43801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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"
43810 || test ! -s conftest.err'
43811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43812 (eval $ac_try) 2>&5
43814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815 (exit $ac_status); }; } &&
43816 { ac_try='test -s conftest.$ac_objext'
43817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43818 (eval $ac_try) 2>&5
43820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43821 (exit $ac_status); }; }; then
43822 ac_cv_member_struct_statfs_f_type=yes
43824 echo "$as_me: failed program was:" >&5
43825 sed 's/^/| /' conftest.$ac_ext >&5
43827 ac_cv_member_struct_statfs_f_type=no
43830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
43836 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6; }
43837 if test $ac_cv_member_struct_statfs_f_type = yes; then
43839 cat >>confdefs.h <<_ACEOF
43840 #define HAVE_STRUCT_STATFS_F_TYPE 1
43846 { echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
43847 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6; }
43848 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
43849 echo $ECHO_N "(cached) $ECHO_C" >&6
43851 cat >conftest.$ac_ext <<_ACEOF
43854 cat confdefs.h >>conftest.$ac_ext
43855 cat >>conftest.$ac_ext <<_ACEOF
43856 /* end confdefs.h. */
43862 static struct statvfs ac_aggr;
43863 if (ac_aggr.f_type)
43869 rm -f conftest.$ac_objext
43870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43871 (eval $ac_compile) 2>conftest.er1
43873 grep -v '^ *+' conftest.er1 >conftest.err
43875 cat conftest.err >&5
43876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877 (exit $ac_status); } &&
43878 { ac_try='test -z "$ac_c_werror_flag"
43879 || test ! -s conftest.err'
43880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43881 (eval $ac_try) 2>&5
43883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884 (exit $ac_status); }; } &&
43885 { ac_try='test -s conftest.$ac_objext'
43886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43887 (eval $ac_try) 2>&5
43889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890 (exit $ac_status); }; }; then
43891 ac_cv_member_struct_statvfs_f_type=yes
43893 echo "$as_me: failed program was:" >&5
43894 sed 's/^/| /' conftest.$ac_ext >&5
43896 cat >conftest.$ac_ext <<_ACEOF
43899 cat confdefs.h >>conftest.$ac_ext
43900 cat >>conftest.$ac_ext <<_ACEOF
43901 /* end confdefs.h. */
43907 static struct statvfs ac_aggr;
43908 if (sizeof ac_aggr.f_type)
43914 rm -f conftest.$ac_objext
43915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43916 (eval $ac_compile) 2>conftest.er1
43918 grep -v '^ *+' conftest.er1 >conftest.err
43920 cat conftest.err >&5
43921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922 (exit $ac_status); } &&
43923 { ac_try='test -z "$ac_c_werror_flag"
43924 || test ! -s conftest.err'
43925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926 (eval $ac_try) 2>&5
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); }; } &&
43930 { ac_try='test -s conftest.$ac_objext'
43931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932 (eval $ac_try) 2>&5
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); }; }; then
43936 ac_cv_member_struct_statvfs_f_type=yes
43938 echo "$as_me: failed program was:" >&5
43939 sed 's/^/| /' conftest.$ac_ext >&5
43941 ac_cv_member_struct_statvfs_f_type=no
43944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43949 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
43950 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6; }
43951 if test $ac_cv_member_struct_statvfs_f_type = yes; then
43953 cat >>confdefs.h <<_ACEOF
43954 #define HAVE_STRUCT_STATVFS_F_TYPE 1
43960 { echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
43961 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6; }
43962 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
43963 echo $ECHO_N "(cached) $ECHO_C" >&6
43965 cat >conftest.$ac_ext <<_ACEOF
43968 cat confdefs.h >>conftest.$ac_ext
43969 cat >>conftest.$ac_ext <<_ACEOF
43970 /* end confdefs.h. */
43976 static struct statfs ac_aggr;
43977 if (ac_aggr.f_fsid.__val)
43983 rm -f conftest.$ac_objext
43984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43985 (eval $ac_compile) 2>conftest.er1
43987 grep -v '^ *+' conftest.er1 >conftest.err
43989 cat conftest.err >&5
43990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43991 (exit $ac_status); } &&
43992 { ac_try='test -z "$ac_c_werror_flag"
43993 || test ! -s conftest.err'
43994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43995 (eval $ac_try) 2>&5
43997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998 (exit $ac_status); }; } &&
43999 { ac_try='test -s conftest.$ac_objext'
44000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44001 (eval $ac_try) 2>&5
44003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004 (exit $ac_status); }; }; then
44005 ac_cv_member_struct_statfs_f_fsid___val=yes
44007 echo "$as_me: failed program was:" >&5
44008 sed 's/^/| /' conftest.$ac_ext >&5
44010 cat >conftest.$ac_ext <<_ACEOF
44013 cat confdefs.h >>conftest.$ac_ext
44014 cat >>conftest.$ac_ext <<_ACEOF
44015 /* end confdefs.h. */
44021 static struct statfs ac_aggr;
44022 if (sizeof ac_aggr.f_fsid.__val)
44028 rm -f conftest.$ac_objext
44029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44030 (eval $ac_compile) 2>conftest.er1
44032 grep -v '^ *+' conftest.er1 >conftest.err
44034 cat conftest.err >&5
44035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 (exit $ac_status); } &&
44037 { ac_try='test -z "$ac_c_werror_flag"
44038 || test ! -s conftest.err'
44039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44040 (eval $ac_try) 2>&5
44042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043 (exit $ac_status); }; } &&
44044 { ac_try='test -s conftest.$ac_objext'
44045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44046 (eval $ac_try) 2>&5
44048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44049 (exit $ac_status); }; }; then
44050 ac_cv_member_struct_statfs_f_fsid___val=yes
44052 echo "$as_me: failed program was:" >&5
44053 sed 's/^/| /' conftest.$ac_ext >&5
44055 ac_cv_member_struct_statfs_f_fsid___val=no
44058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44063 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
44064 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6; }
44065 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
44067 cat >>confdefs.h <<_ACEOF
44068 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
44074 { echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
44075 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6; }
44076 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
44077 echo $ECHO_N "(cached) $ECHO_C" >&6
44079 cat >conftest.$ac_ext <<_ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h. */
44090 static struct statvfs ac_aggr;
44091 if (ac_aggr.f_fsid.__val)
44097 rm -f conftest.$ac_objext
44098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44099 (eval $ac_compile) 2>conftest.er1
44101 grep -v '^ *+' conftest.er1 >conftest.err
44103 cat conftest.err >&5
44104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44105 (exit $ac_status); } &&
44106 { ac_try='test -z "$ac_c_werror_flag"
44107 || test ! -s conftest.err'
44108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44109 (eval $ac_try) 2>&5
44111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44112 (exit $ac_status); }; } &&
44113 { ac_try='test -s conftest.$ac_objext'
44114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44115 (eval $ac_try) 2>&5
44117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44118 (exit $ac_status); }; }; then
44119 ac_cv_member_struct_statvfs_f_fsid___val=yes
44121 echo "$as_me: failed program was:" >&5
44122 sed 's/^/| /' conftest.$ac_ext >&5
44124 cat >conftest.$ac_ext <<_ACEOF
44127 cat confdefs.h >>conftest.$ac_ext
44128 cat >>conftest.$ac_ext <<_ACEOF
44129 /* end confdefs.h. */
44135 static struct statvfs ac_aggr;
44136 if (sizeof ac_aggr.f_fsid.__val)
44142 rm -f conftest.$ac_objext
44143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44144 (eval $ac_compile) 2>conftest.er1
44146 grep -v '^ *+' conftest.er1 >conftest.err
44148 cat conftest.err >&5
44149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150 (exit $ac_status); } &&
44151 { ac_try='test -z "$ac_c_werror_flag"
44152 || test ! -s conftest.err'
44153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44154 (eval $ac_try) 2>&5
44156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157 (exit $ac_status); }; } &&
44158 { ac_try='test -s conftest.$ac_objext'
44159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44160 (eval $ac_try) 2>&5
44162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44163 (exit $ac_status); }; }; then
44164 ac_cv_member_struct_statvfs_f_fsid___val=yes
44166 echo "$as_me: failed program was:" >&5
44167 sed 's/^/| /' conftest.$ac_ext >&5
44169 ac_cv_member_struct_statvfs_f_fsid___val=no
44172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44177 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
44178 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6; }
44179 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
44181 cat >>confdefs.h <<_ACEOF
44182 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
44188 { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
44189 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
44190 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
44191 echo $ECHO_N "(cached) $ECHO_C" >&6
44193 cat >conftest.$ac_ext <<_ACEOF
44196 cat confdefs.h >>conftest.$ac_ext
44197 cat >>conftest.$ac_ext <<_ACEOF
44198 /* end confdefs.h. */
44204 static struct statfs ac_aggr;
44205 if (ac_aggr.f_namemax)
44211 rm -f conftest.$ac_objext
44212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44213 (eval $ac_compile) 2>conftest.er1
44215 grep -v '^ *+' conftest.er1 >conftest.err
44217 cat conftest.err >&5
44218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219 (exit $ac_status); } &&
44220 { ac_try='test -z "$ac_c_werror_flag"
44221 || test ! -s conftest.err'
44222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44223 (eval $ac_try) 2>&5
44225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44226 (exit $ac_status); }; } &&
44227 { ac_try='test -s conftest.$ac_objext'
44228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44229 (eval $ac_try) 2>&5
44231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232 (exit $ac_status); }; }; then
44233 ac_cv_member_struct_statfs_f_namemax=yes
44235 echo "$as_me: failed program was:" >&5
44236 sed 's/^/| /' conftest.$ac_ext >&5
44238 cat >conftest.$ac_ext <<_ACEOF
44241 cat confdefs.h >>conftest.$ac_ext
44242 cat >>conftest.$ac_ext <<_ACEOF
44243 /* end confdefs.h. */
44249 static struct statfs ac_aggr;
44250 if (sizeof ac_aggr.f_namemax)
44256 rm -f conftest.$ac_objext
44257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44258 (eval $ac_compile) 2>conftest.er1
44260 grep -v '^ *+' conftest.er1 >conftest.err
44262 cat conftest.err >&5
44263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264 (exit $ac_status); } &&
44265 { ac_try='test -z "$ac_c_werror_flag"
44266 || test ! -s conftest.err'
44267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44268 (eval $ac_try) 2>&5
44270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44271 (exit $ac_status); }; } &&
44272 { ac_try='test -s conftest.$ac_objext'
44273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44274 (eval $ac_try) 2>&5
44276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277 (exit $ac_status); }; }; then
44278 ac_cv_member_struct_statfs_f_namemax=yes
44280 echo "$as_me: failed program was:" >&5
44281 sed 's/^/| /' conftest.$ac_ext >&5
44283 ac_cv_member_struct_statfs_f_namemax=no
44286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
44292 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
44293 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
44295 cat >>confdefs.h <<_ACEOF
44296 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
44302 { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
44303 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
44304 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
44305 echo $ECHO_N "(cached) $ECHO_C" >&6
44307 cat >conftest.$ac_ext <<_ACEOF
44310 cat confdefs.h >>conftest.$ac_ext
44311 cat >>conftest.$ac_ext <<_ACEOF
44312 /* end confdefs.h. */
44318 static struct statvfs ac_aggr;
44319 if (ac_aggr.f_namemax)
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327 (eval $ac_compile) 2>conftest.er1
44329 grep -v '^ *+' conftest.er1 >conftest.err
44331 cat conftest.err >&5
44332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 (exit $ac_status); } &&
44334 { ac_try='test -z "$ac_c_werror_flag"
44335 || test ! -s conftest.err'
44336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44337 (eval $ac_try) 2>&5
44339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340 (exit $ac_status); }; } &&
44341 { ac_try='test -s conftest.$ac_objext'
44342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343 (eval $ac_try) 2>&5
44345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346 (exit $ac_status); }; }; then
44347 ac_cv_member_struct_statvfs_f_namemax=yes
44349 echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44352 cat >conftest.$ac_ext <<_ACEOF
44355 cat confdefs.h >>conftest.$ac_ext
44356 cat >>conftest.$ac_ext <<_ACEOF
44357 /* end confdefs.h. */
44363 static struct statvfs ac_aggr;
44364 if (sizeof ac_aggr.f_namemax)
44370 rm -f conftest.$ac_objext
44371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44372 (eval $ac_compile) 2>conftest.er1
44374 grep -v '^ *+' conftest.er1 >conftest.err
44376 cat conftest.err >&5
44377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44378 (exit $ac_status); } &&
44379 { ac_try='test -z "$ac_c_werror_flag"
44380 || test ! -s conftest.err'
44381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44382 (eval $ac_try) 2>&5
44384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385 (exit $ac_status); }; } &&
44386 { ac_try='test -s conftest.$ac_objext'
44387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388 (eval $ac_try) 2>&5
44390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391 (exit $ac_status); }; }; then
44392 ac_cv_member_struct_statvfs_f_namemax=yes
44394 echo "$as_me: failed program was:" >&5
44395 sed 's/^/| /' conftest.$ac_ext >&5
44397 ac_cv_member_struct_statvfs_f_namemax=no
44400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
44406 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
44407 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
44409 cat >>confdefs.h <<_ACEOF
44410 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
44416 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
44417 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
44418 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
44419 echo $ECHO_N "(cached) $ECHO_C" >&6
44421 cat >conftest.$ac_ext <<_ACEOF
44424 cat confdefs.h >>conftest.$ac_ext
44425 cat >>conftest.$ac_ext <<_ACEOF
44426 /* end confdefs.h. */
44432 static struct statfs ac_aggr;
44433 if (ac_aggr.f_namelen)
44439 rm -f conftest.$ac_objext
44440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44441 (eval $ac_compile) 2>conftest.er1
44443 grep -v '^ *+' conftest.er1 >conftest.err
44445 cat conftest.err >&5
44446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44447 (exit $ac_status); } &&
44448 { ac_try='test -z "$ac_c_werror_flag"
44449 || test ! -s conftest.err'
44450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451 (eval $ac_try) 2>&5
44453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454 (exit $ac_status); }; } &&
44455 { ac_try='test -s conftest.$ac_objext'
44456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44457 (eval $ac_try) 2>&5
44459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44460 (exit $ac_status); }; }; then
44461 ac_cv_member_struct_statfs_f_namelen=yes
44463 echo "$as_me: failed program was:" >&5
44464 sed 's/^/| /' conftest.$ac_ext >&5
44466 cat >conftest.$ac_ext <<_ACEOF
44469 cat confdefs.h >>conftest.$ac_ext
44470 cat >>conftest.$ac_ext <<_ACEOF
44471 /* end confdefs.h. */
44477 static struct statfs ac_aggr;
44478 if (sizeof ac_aggr.f_namelen)
44484 rm -f conftest.$ac_objext
44485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44486 (eval $ac_compile) 2>conftest.er1
44488 grep -v '^ *+' conftest.er1 >conftest.err
44490 cat conftest.err >&5
44491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492 (exit $ac_status); } &&
44493 { ac_try='test -z "$ac_c_werror_flag"
44494 || test ! -s conftest.err'
44495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44496 (eval $ac_try) 2>&5
44498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44499 (exit $ac_status); }; } &&
44500 { ac_try='test -s conftest.$ac_objext'
44501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44502 (eval $ac_try) 2>&5
44504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44505 (exit $ac_status); }; }; then
44506 ac_cv_member_struct_statfs_f_namelen=yes
44508 echo "$as_me: failed program was:" >&5
44509 sed 's/^/| /' conftest.$ac_ext >&5
44511 ac_cv_member_struct_statfs_f_namelen=no
44514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
44520 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
44521 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
44523 cat >>confdefs.h <<_ACEOF
44524 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
44530 { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
44531 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
44532 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
44533 echo $ECHO_N "(cached) $ECHO_C" >&6
44535 cat >conftest.$ac_ext <<_ACEOF
44538 cat confdefs.h >>conftest.$ac_ext
44539 cat >>conftest.$ac_ext <<_ACEOF
44540 /* end confdefs.h. */
44546 static struct statvfs ac_aggr;
44547 if (ac_aggr.f_namelen)
44553 rm -f conftest.$ac_objext
44554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44555 (eval $ac_compile) 2>conftest.er1
44557 grep -v '^ *+' conftest.er1 >conftest.err
44559 cat conftest.err >&5
44560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44561 (exit $ac_status); } &&
44562 { ac_try='test -z "$ac_c_werror_flag"
44563 || test ! -s conftest.err'
44564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44565 (eval $ac_try) 2>&5
44567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44568 (exit $ac_status); }; } &&
44569 { ac_try='test -s conftest.$ac_objext'
44570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44571 (eval $ac_try) 2>&5
44573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44574 (exit $ac_status); }; }; then
44575 ac_cv_member_struct_statvfs_f_namelen=yes
44577 echo "$as_me: failed program was:" >&5
44578 sed 's/^/| /' conftest.$ac_ext >&5
44580 cat >conftest.$ac_ext <<_ACEOF
44583 cat confdefs.h >>conftest.$ac_ext
44584 cat >>conftest.$ac_ext <<_ACEOF
44585 /* end confdefs.h. */
44591 static struct statvfs ac_aggr;
44592 if (sizeof ac_aggr.f_namelen)
44598 rm -f conftest.$ac_objext
44599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44600 (eval $ac_compile) 2>conftest.er1
44602 grep -v '^ *+' conftest.er1 >conftest.err
44604 cat conftest.err >&5
44605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606 (exit $ac_status); } &&
44607 { ac_try='test -z "$ac_c_werror_flag"
44608 || test ! -s conftest.err'
44609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44610 (eval $ac_try) 2>&5
44612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44613 (exit $ac_status); }; } &&
44614 { ac_try='test -s conftest.$ac_objext'
44615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44616 (eval $ac_try) 2>&5
44618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619 (exit $ac_status); }; }; then
44620 ac_cv_member_struct_statvfs_f_namelen=yes
44622 echo "$as_me: failed program was:" >&5
44623 sed 's/^/| /' conftest.$ac_ext >&5
44625 ac_cv_member_struct_statvfs_f_namelen=no
44628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44633 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
44634 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
44635 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
44637 cat >>confdefs.h <<_ACEOF
44638 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
44646 if test "X$prefix" = "XNONE"; then
44647 acl_final_prefix="$ac_default_prefix"
44649 acl_final_prefix="$prefix"
44651 if test "X$exec_prefix" = "XNONE"; then
44652 acl_final_exec_prefix='${prefix}'
44654 acl_final_exec_prefix="$exec_prefix"
44656 acl_save_prefix="$prefix"
44657 prefix="$acl_final_prefix"
44658 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
44659 prefix="$acl_save_prefix"
44662 # Check whether --with-gnu-ld was given.
44663 if test "${with_gnu_ld+set}" = set; then
44664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
44669 # Prepare PATH_SEPARATOR.
44670 # The user is always right.
44671 if test "${PATH_SEPARATOR+set}" != set; then
44672 echo "#! /bin/sh" >conf$$.sh
44673 echo "exit 0" >>conf$$.sh
44675 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44683 if test "$GCC" = yes; then
44684 # Check if gcc -print-prog-name=ld gives a path.
44685 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
44686 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
44689 # gcc leaves a trailing carriage return which upsets mingw
44690 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
44692 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
44695 # Accept absolute paths.
44696 [\\/]* | [A-Za-z]:[\\/]*)
44697 re_direlt='/[^/][^/]*/\.\./'
44698 # Canonicalize the path of ld
44699 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
44700 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
44701 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
44703 test -z "$LD" && LD="$ac_prog"
44706 # If it fails, then pretend we aren't using GCC.
44710 # If it is relative, then search for the first ld in PATH.
44711 with_gnu_ld=unknown
44714 elif test "$with_gnu_ld" = yes; then
44715 { echo "$as_me:$LINENO: checking for GNU ld" >&5
44716 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
44718 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
44719 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
44721 if test "${acl_cv_path_LD+set}" = set; then
44722 echo $ECHO_N "(cached) $ECHO_C" >&6
44724 if test -z "$LD"; then
44725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
44726 for ac_dir in $PATH; do
44727 test -z "$ac_dir" && ac_dir=.
44728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
44729 acl_cv_path_LD="$ac_dir/$ac_prog"
44730 # Check to see if the program is GNU ld. I'd rather use --version,
44731 # but apparently some GNU ld's only accept -v.
44732 # Break only if it was the GNU/non-GNU ld that we prefer.
44733 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
44734 *GNU* | *'with BFD'*)
44735 test "$with_gnu_ld" != no && break ;;
44737 test "$with_gnu_ld" != yes && break ;;
44743 acl_cv_path_LD="$LD" # Let the user override the test with a path.
44747 LD="$acl_cv_path_LD"
44748 if test -n "$LD"; then
44749 { echo "$as_me:$LINENO: result: $LD" >&5
44750 echo "${ECHO_T}$LD" >&6; }
44752 { echo "$as_me:$LINENO: result: no" >&5
44753 echo "${ECHO_T}no" >&6; }
44755 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
44756 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
44757 { (exit 1); exit 1; }; }
44758 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
44759 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
44760 if test "${acl_cv_prog_gnu_ld+set}" = set; then
44761 echo $ECHO_N "(cached) $ECHO_C" >&6
44763 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
44764 case `$LD -v 2>&1 </dev/null` in
44765 *GNU* | *'with BFD'*)
44766 acl_cv_prog_gnu_ld=yes ;;
44768 acl_cv_prog_gnu_ld=no ;;
44771 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
44772 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
44773 with_gnu_ld=$acl_cv_prog_gnu_ld
44778 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
44779 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
44780 if test "${acl_cv_rpath+set}" = set; then
44781 echo $ECHO_N "(cached) $ECHO_C" >&6
44784 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
44785 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
44787 rm -f ./conftest.sh
44791 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
44792 echo "${ECHO_T}$acl_cv_rpath" >&6; }
44794 libext="$acl_cv_libext"
44795 shlibext="$acl_cv_shlibext"
44796 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
44797 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
44798 hardcode_direct="$acl_cv_hardcode_direct"
44799 hardcode_minus_L="$acl_cv_hardcode_minus_L"
44800 # Check whether --enable-rpath was given.
44801 if test "${enable_rpath+set}" = set; then
44802 enableval=$enable_rpath; :
44810 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
44811 if test -n "$searchpath"; then
44812 acl_save_IFS="${IFS= }"; IFS=":"
44813 for searchdir in $searchpath; do
44814 if test -d "$searchdir"; then
44815 case "$searchdir" in
44816 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
44817 *) searchdir=`cd "$searchdir" && pwd`
44818 case "$searchdir" in
44819 */lib64 ) acl_libdirstem=lib64 ;;
44824 IFS="$acl_save_IFS"
44836 acl_save_prefix="$prefix"
44837 prefix="$acl_final_prefix"
44838 acl_save_exec_prefix="$exec_prefix"
44839 exec_prefix="$acl_final_exec_prefix"
44841 eval additional_includedir=\"$includedir\"
44842 eval additional_libdir=\"$libdir\"
44844 exec_prefix="$acl_save_exec_prefix"
44845 prefix="$acl_save_prefix"
44848 # Check whether --with-libiconv-prefix was given.
44849 if test "${with_libiconv_prefix+set}" = set; then
44850 withval=$with_libiconv_prefix;
44851 if test "X$withval" = "Xno"; then
44854 if test "X$withval" = "X"; then
44856 acl_save_prefix="$prefix"
44857 prefix="$acl_final_prefix"
44858 acl_save_exec_prefix="$exec_prefix"
44859 exec_prefix="$acl_final_exec_prefix"
44861 eval additional_includedir=\"$includedir\"
44862 eval additional_libdir=\"$libdir\"
44864 exec_prefix="$acl_save_exec_prefix"
44865 prefix="$acl_save_prefix"
44868 additional_includedir="$withval/include"
44869 additional_libdir="$withval/$acl_libdirstem"
44880 names_already_handled=
44881 names_next_round='iconv '
44882 while test -n "$names_next_round"; do
44883 names_this_round="$names_next_round"
44885 for name in $names_this_round; do
44887 for n in $names_already_handled; do
44888 if test "$n" = "$name"; then
44889 already_handled=yes
44893 if test -z "$already_handled"; then
44894 names_already_handled="$names_already_handled $name"
44895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
44896 eval value=\"\$HAVE_LIB$uppername\"
44897 if test -n "$value"; then
44898 if test "$value" = yes; then
44899 eval value=\"\$LIB$uppername\"
44900 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
44901 eval value=\"\$LTLIB$uppername\"
44902 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
44911 if test $use_additional = yes; then
44912 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
44913 found_dir="$additional_libdir"
44914 found_so="$additional_libdir/lib$name.$shlibext"
44915 if test -f "$additional_libdir/lib$name.la"; then
44916 found_la="$additional_libdir/lib$name.la"
44919 if test -f "$additional_libdir/lib$name.$libext"; then
44920 found_dir="$additional_libdir"
44921 found_a="$additional_libdir/lib$name.$libext"
44922 if test -f "$additional_libdir/lib$name.la"; then
44923 found_la="$additional_libdir/lib$name.la"
44928 if test "X$found_dir" = "X"; then
44929 for x in $LDFLAGS $LTLIBICONV; do
44931 acl_save_prefix="$prefix"
44932 prefix="$acl_final_prefix"
44933 acl_save_exec_prefix="$exec_prefix"
44934 exec_prefix="$acl_final_exec_prefix"
44936 exec_prefix="$acl_save_exec_prefix"
44937 prefix="$acl_save_prefix"
44941 dir=`echo "X$x" | sed -e 's/^X-L//'`
44942 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
44944 found_so="$dir/lib$name.$shlibext"
44945 if test -f "$dir/lib$name.la"; then
44946 found_la="$dir/lib$name.la"
44949 if test -f "$dir/lib$name.$libext"; then
44951 found_a="$dir/lib$name.$libext"
44952 if test -f "$dir/lib$name.la"; then
44953 found_la="$dir/lib$name.la"
44959 if test "X$found_dir" != "X"; then
44964 if test "X$found_dir" != "X"; then
44965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
44966 if test "X$found_so" != "X"; then
44967 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
44968 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44971 for x in $ltrpathdirs; do
44972 if test "X$x" = "X$found_dir"; then
44977 if test -z "$haveit"; then
44978 ltrpathdirs="$ltrpathdirs $found_dir"
44980 if test "$hardcode_direct" = yes; then
44981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44983 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
44984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44986 for x in $rpathdirs; do
44987 if test "X$x" = "X$found_dir"; then
44992 if test -z "$haveit"; then
44993 rpathdirs="$rpathdirs $found_dir"
44997 for x in $LDFLAGS $LIBICONV; do
44999 acl_save_prefix="$prefix"
45000 prefix="$acl_final_prefix"
45001 acl_save_exec_prefix="$exec_prefix"
45002 exec_prefix="$acl_final_exec_prefix"
45004 exec_prefix="$acl_save_exec_prefix"
45005 prefix="$acl_save_prefix"
45007 if test "X$x" = "X-L$found_dir"; then
45012 if test -z "$haveit"; then
45013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
45015 if test "$hardcode_minus_L" != no; then
45016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
45018 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
45024 if test "X$found_a" != "X"; then
45025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
45027 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
45030 additional_includedir=
45031 case "$found_dir" in
45032 */$acl_libdirstem | */$acl_libdirstem/)
45033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
45034 additional_includedir="$basedir/include"
45037 if test "X$additional_includedir" != "X"; then
45038 if test "X$additional_includedir" != "X/usr/include"; then
45040 if test "X$additional_includedir" = "X/usr/local/include"; then
45041 if test -n "$GCC"; then
45043 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45047 if test -z "$haveit"; then
45048 for x in $CPPFLAGS $INCICONV; do
45050 acl_save_prefix="$prefix"
45051 prefix="$acl_final_prefix"
45052 acl_save_exec_prefix="$exec_prefix"
45053 exec_prefix="$acl_final_exec_prefix"
45055 exec_prefix="$acl_save_exec_prefix"
45056 prefix="$acl_save_prefix"
45058 if test "X$x" = "X-I$additional_includedir"; then
45063 if test -z "$haveit"; then
45064 if test -d "$additional_includedir"; then
45065 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
45071 if test -n "$found_la"; then
45072 save_libdir="$libdir"
45073 case "$found_la" in
45074 */* | *\\*) . "$found_la" ;;
45075 *) . "./$found_la" ;;
45077 libdir="$save_libdir"
45078 for dep in $dependency_libs; do
45081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45082 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
45084 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
45085 if test -n "$GCC"; then
45087 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45091 if test -z "$haveit"; then
45093 for x in $LDFLAGS $LIBICONV; do
45095 acl_save_prefix="$prefix"
45096 prefix="$acl_final_prefix"
45097 acl_save_exec_prefix="$exec_prefix"
45098 exec_prefix="$acl_final_exec_prefix"
45100 exec_prefix="$acl_save_exec_prefix"
45101 prefix="$acl_save_prefix"
45103 if test "X$x" = "X-L$additional_libdir"; then
45108 if test -z "$haveit"; then
45109 if test -d "$additional_libdir"; then
45110 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
45114 for x in $LDFLAGS $LTLIBICONV; do
45116 acl_save_prefix="$prefix"
45117 prefix="$acl_final_prefix"
45118 acl_save_exec_prefix="$exec_prefix"
45119 exec_prefix="$acl_final_exec_prefix"
45121 exec_prefix="$acl_save_exec_prefix"
45122 prefix="$acl_save_prefix"
45124 if test "X$x" = "X-L$additional_libdir"; then
45129 if test -z "$haveit"; then
45130 if test -d "$additional_libdir"; then
45131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
45138 dir=`echo "X$dep" | sed -e 's/^X-R//'`
45139 if test "$enable_rpath" != no; then
45141 for x in $rpathdirs; do
45142 if test "X$x" = "X$dir"; then
45147 if test -z "$haveit"; then
45148 rpathdirs="$rpathdirs $dir"
45151 for x in $ltrpathdirs; do
45152 if test "X$x" = "X$dir"; then
45157 if test -z "$haveit"; then
45158 ltrpathdirs="$ltrpathdirs $dir"
45163 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45166 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45169 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
45170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
45176 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
45177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
45183 if test "X$rpathdirs" != "X"; then
45184 if test -n "$hardcode_libdir_separator"; then
45186 for found_dir in $rpathdirs; do
45187 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
45189 acl_save_libdir="$libdir"
45191 eval flag=\"$hardcode_libdir_flag_spec\"
45192 libdir="$acl_save_libdir"
45193 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
45195 for found_dir in $rpathdirs; do
45196 acl_save_libdir="$libdir"
45197 libdir="$found_dir"
45198 eval flag=\"$hardcode_libdir_flag_spec\"
45199 libdir="$acl_save_libdir"
45200 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
45204 if test "X$ltrpathdirs" != "X"; then
45205 for found_dir in $ltrpathdirs; do
45206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
45213 case " $LIBOBJS " in
45214 *" canonicalize.$ac_objext "* ) ;;
45215 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
45221 for ac_header in sys/param.h
45223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45228 echo $ECHO_N "(cached) $ECHO_C" >&6
45230 ac_res=`eval echo '${'$as_ac_Header'}'`
45231 { echo "$as_me:$LINENO: result: $ac_res" >&5
45232 echo "${ECHO_T}$ac_res" >&6; }
45234 # Is the header compilable?
45235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45237 cat >conftest.$ac_ext <<_ACEOF
45240 cat confdefs.h >>conftest.$ac_ext
45241 cat >>conftest.$ac_ext <<_ACEOF
45242 /* end confdefs.h. */
45243 $ac_includes_default
45244 #include <$ac_header>
45246 rm -f conftest.$ac_objext
45247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45248 (eval $ac_compile) 2>conftest.er1
45250 grep -v '^ *+' conftest.er1 >conftest.err
45252 cat conftest.err >&5
45253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45254 (exit $ac_status); } &&
45255 { ac_try='test -z "$ac_c_werror_flag"
45256 || test ! -s conftest.err'
45257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45258 (eval $ac_try) 2>&5
45260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261 (exit $ac_status); }; } &&
45262 { ac_try='test -s conftest.$ac_objext'
45263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45264 (eval $ac_try) 2>&5
45266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45267 (exit $ac_status); }; }; then
45268 ac_header_compiler=yes
45270 echo "$as_me: failed program was:" >&5
45271 sed 's/^/| /' conftest.$ac_ext >&5
45273 ac_header_compiler=no
45276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45278 echo "${ECHO_T}$ac_header_compiler" >&6; }
45280 # Is the header present?
45281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45283 cat >conftest.$ac_ext <<_ACEOF
45286 cat confdefs.h >>conftest.$ac_ext
45287 cat >>conftest.$ac_ext <<_ACEOF
45288 /* end confdefs.h. */
45289 #include <$ac_header>
45291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45294 grep -v '^ *+' conftest.er1 >conftest.err
45296 cat conftest.err >&5
45297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45298 (exit $ac_status); } >/dev/null; then
45299 if test -s conftest.err; then
45300 ac_cpp_err=$ac_c_preproc_warn_flag
45301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45308 if test -z "$ac_cpp_err"; then
45309 ac_header_preproc=yes
45311 echo "$as_me: failed program was:" >&5
45312 sed 's/^/| /' conftest.$ac_ext >&5
45314 ac_header_preproc=no
45317 rm -f conftest.err conftest.$ac_ext
45318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45319 echo "${ECHO_T}$ac_header_preproc" >&6; }
45321 # So? What about this header?
45322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45328 ac_header_preproc=yes
45331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45344 ## ------------------------------------ ##
45345 ## Report this to bug-coreutils@gnu.org ##
45346 ## ------------------------------------ ##
45348 ) | sed "s/^/$as_me: WARNING: /" >&2
45351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45354 echo $ECHO_N "(cached) $ECHO_C" >&6
45356 eval "$as_ac_Header=\$ac_header_preproc"
45358 ac_res=`eval echo '${'$as_ac_Header'}'`
45359 { echo "$as_me:$LINENO: result: $ac_res" >&5
45360 echo "${ECHO_T}$ac_res" >&6; }
45363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45364 cat >>confdefs.h <<_ACEOF
45365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45374 for ac_func in resolvepath canonicalize_file_name
45376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45380 echo $ECHO_N "(cached) $ECHO_C" >&6
45382 cat >conftest.$ac_ext <<_ACEOF
45385 cat confdefs.h >>conftest.$ac_ext
45386 cat >>conftest.$ac_ext <<_ACEOF
45387 /* end confdefs.h. */
45388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45390 #define $ac_func innocuous_$ac_func
45392 /* System header to define __stub macros and hopefully few prototypes,
45393 which can conflict with char $ac_func (); below.
45394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45395 <limits.h> exists even on freestanding compilers. */
45398 # include <limits.h>
45400 # include <assert.h>
45405 /* Override any GCC internal prototype to avoid an error.
45406 Use char because int might match the return type of a GCC
45407 builtin and then its argument prototype would still apply. */
45412 /* The GNU C library defines this for functions which it implements
45413 to always fail with ENOSYS. Some functions are actually named
45414 something starting with __ and the normal name is an alias. */
45415 #if defined __stub_$ac_func || defined __stub___$ac_func
45422 return $ac_func ();
45427 rm -f conftest.$ac_objext conftest$ac_exeext
45428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45429 (eval $ac_link) 2>conftest.er1
45431 grep -v '^ *+' conftest.er1 >conftest.err
45433 cat conftest.err >&5
45434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45435 (exit $ac_status); } &&
45436 { ac_try='test -z "$ac_c_werror_flag"
45437 || test ! -s conftest.err'
45438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45439 (eval $ac_try) 2>&5
45441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45442 (exit $ac_status); }; } &&
45443 { ac_try='test -s conftest$ac_exeext'
45444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45445 (eval $ac_try) 2>&5
45447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448 (exit $ac_status); }; }; then
45449 eval "$as_ac_var=yes"
45451 echo "$as_me: failed program was:" >&5
45452 sed 's/^/| /' conftest.$ac_ext >&5
45454 eval "$as_ac_var=no"
45457 rm -f conftest.err conftest.$ac_objext \
45458 conftest$ac_exeext conftest.$ac_ext
45460 ac_res=`eval echo '${'$as_ac_var'}'`
45461 { echo "$as_me:$LINENO: result: $ac_res" >&5
45462 echo "${ECHO_T}$ac_res" >&6; }
45463 if test `eval echo '${'$as_ac_var'}'` = yes; then
45464 cat >>confdefs.h <<_ACEOF
45465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45474 { echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
45475 echo $ECHO_N "checking whether this system has an arbitrary file name length limit... $ECHO_C" >&6; }
45476 if test "${gl_have_arbitrary_file_name_length_limit+set}" = set; then
45477 echo $ECHO_N "(cached) $ECHO_C" >&6
45479 cat >conftest.$ac_ext <<_ACEOF
45482 cat confdefs.h >>conftest.$ac_ext
45483 cat >>conftest.$ac_ext <<_ACEOF
45484 /* end confdefs.h. */
45485 #include <unistd.h>
45486 #include <limits.h>
45487 #if defined PATH_MAX || defined MAXPATHLEN
45488 have_arbitrary_file_name_length_limit
45491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45492 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
45493 gl_have_arbitrary_file_name_length_limit=yes
45495 gl_have_arbitrary_file_name_length_limit=no
45500 { echo "$as_me:$LINENO: result: $gl_have_arbitrary_file_name_length_limit" >&5
45501 echo "${ECHO_T}$gl_have_arbitrary_file_name_length_limit" >&6; }
45503 if test $gl_have_arbitrary_file_name_length_limit = yes; then
45504 case " $LIBOBJS " in
45505 *" chdir-long.$ac_objext "* ) ;;
45506 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext"
45514 # Define two additional variables used in the Makefile substitution.
45516 if test "$ac_cv_header_stdbool_h" = yes; then
45519 STDBOOL_H='stdbool.h'
45523 if test "$ac_cv_type__Bool" = yes; then
45536 for ac_func in mempcpy
45538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45542 echo $ECHO_N "(cached) $ECHO_C" >&6
45544 cat >conftest.$ac_ext <<_ACEOF
45547 cat confdefs.h >>conftest.$ac_ext
45548 cat >>conftest.$ac_ext <<_ACEOF
45549 /* end confdefs.h. */
45550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45552 #define $ac_func innocuous_$ac_func
45554 /* System header to define __stub macros and hopefully few prototypes,
45555 which can conflict with char $ac_func (); below.
45556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45557 <limits.h> exists even on freestanding compilers. */
45560 # include <limits.h>
45562 # include <assert.h>
45567 /* Override any GCC internal prototype to avoid an error.
45568 Use char because int might match the return type of a GCC
45569 builtin and then its argument prototype would still apply. */
45574 /* The GNU C library defines this for functions which it implements
45575 to always fail with ENOSYS. Some functions are actually named
45576 something starting with __ and the normal name is an alias. */
45577 #if defined __stub_$ac_func || defined __stub___$ac_func
45584 return $ac_func ();
45589 rm -f conftest.$ac_objext conftest$ac_exeext
45590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45591 (eval $ac_link) 2>conftest.er1
45593 grep -v '^ *+' conftest.er1 >conftest.err
45595 cat conftest.err >&5
45596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597 (exit $ac_status); } &&
45598 { ac_try='test -z "$ac_c_werror_flag"
45599 || test ! -s conftest.err'
45600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45601 (eval $ac_try) 2>&5
45603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604 (exit $ac_status); }; } &&
45605 { ac_try='test -s conftest$ac_exeext'
45606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607 (eval $ac_try) 2>&5
45609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610 (exit $ac_status); }; }; then
45611 eval "$as_ac_var=yes"
45613 echo "$as_me: failed program was:" >&5
45614 sed 's/^/| /' conftest.$ac_ext >&5
45616 eval "$as_ac_var=no"
45619 rm -f conftest.err conftest.$ac_objext \
45620 conftest$ac_exeext conftest.$ac_ext
45622 ac_res=`eval echo '${'$as_ac_var'}'`
45623 { echo "$as_me:$LINENO: result: $ac_res" >&5
45624 echo "${ECHO_T}$ac_res" >&6; }
45625 if test `eval echo '${'$as_ac_var'}'` = yes; then
45626 cat >>confdefs.h <<_ACEOF
45627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45631 case " $LIBOBJS " in
45632 *" $ac_func.$ac_objext "* ) ;;
45633 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45641 if test $ac_cv_func_mempcpy = no; then
45653 # No system provides these functions; compile them unconditionally.
45654 case " $LIBOBJS " in
45655 *" mkdirat.$ac_objext "* ) ;;
45656 *) LIBOBJS="$LIBOBJS mkdirat.$ac_objext"
45660 case " $LIBOBJS " in
45661 *" fchmodat.$ac_objext "* ) ;;
45662 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
45667 case " $LIBOBJS " in
45668 *" openat-die.$ac_objext "* ) ;;
45669 *) LIBOBJS="$LIBOBJS openat-die.$ac_objext"
45689 for ac_func in openat
45691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45695 echo $ECHO_N "(cached) $ECHO_C" >&6
45697 cat >conftest.$ac_ext <<_ACEOF
45700 cat confdefs.h >>conftest.$ac_ext
45701 cat >>conftest.$ac_ext <<_ACEOF
45702 /* end confdefs.h. */
45703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45705 #define $ac_func innocuous_$ac_func
45707 /* System header to define __stub macros and hopefully few prototypes,
45708 which can conflict with char $ac_func (); below.
45709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45710 <limits.h> exists even on freestanding compilers. */
45713 # include <limits.h>
45715 # include <assert.h>
45720 /* Override any GCC internal prototype to avoid an error.
45721 Use char because int might match the return type of a GCC
45722 builtin and then its argument prototype would still apply. */
45727 /* The GNU C library defines this for functions which it implements
45728 to always fail with ENOSYS. Some functions are actually named
45729 something starting with __ and the normal name is an alias. */
45730 #if defined __stub_$ac_func || defined __stub___$ac_func
45737 return $ac_func ();
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744 (eval $ac_link) 2>conftest.er1
45746 grep -v '^ *+' conftest.er1 >conftest.err
45748 cat conftest.err >&5
45749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750 (exit $ac_status); } &&
45751 { ac_try='test -z "$ac_c_werror_flag"
45752 || test ! -s conftest.err'
45753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754 (eval $ac_try) 2>&5
45756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757 (exit $ac_status); }; } &&
45758 { ac_try='test -s conftest$ac_exeext'
45759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45760 (eval $ac_try) 2>&5
45762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763 (exit $ac_status); }; }; then
45764 eval "$as_ac_var=yes"
45766 echo "$as_me: failed program was:" >&5
45767 sed 's/^/| /' conftest.$ac_ext >&5
45769 eval "$as_ac_var=no"
45772 rm -f conftest.err conftest.$ac_objext \
45773 conftest$ac_exeext conftest.$ac_ext
45775 ac_res=`eval echo '${'$as_ac_var'}'`
45776 { echo "$as_me:$LINENO: result: $ac_res" >&5
45777 echo "${ECHO_T}$ac_res" >&6; }
45778 if test `eval echo '${'$as_ac_var'}'` = yes; then
45779 cat >>confdefs.h <<_ACEOF
45780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45784 case " $LIBOBJS " in
45785 *" $ac_func.$ac_objext "* ) ;;
45786 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45794 case $ac_cv_func_openat in
45798 cat >>confdefs.h <<\_ACEOF
45799 #define __OPENAT_PREFIX rpl_
45821 for ac_func in memrchr
45823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45827 echo $ECHO_N "(cached) $ECHO_C" >&6
45829 cat >conftest.$ac_ext <<_ACEOF
45832 cat confdefs.h >>conftest.$ac_ext
45833 cat >>conftest.$ac_ext <<_ACEOF
45834 /* end confdefs.h. */
45835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45837 #define $ac_func innocuous_$ac_func
45839 /* System header to define __stub macros and hopefully few prototypes,
45840 which can conflict with char $ac_func (); below.
45841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45842 <limits.h> exists even on freestanding compilers. */
45845 # include <limits.h>
45847 # include <assert.h>
45852 /* Override any GCC internal prototype to avoid an error.
45853 Use char because int might match the return type of a GCC
45854 builtin and then its argument prototype would still apply. */
45859 /* The GNU C library defines this for functions which it implements
45860 to always fail with ENOSYS. Some functions are actually named
45861 something starting with __ and the normal name is an alias. */
45862 #if defined __stub_$ac_func || defined __stub___$ac_func
45869 return $ac_func ();
45874 rm -f conftest.$ac_objext conftest$ac_exeext
45875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45876 (eval $ac_link) 2>conftest.er1
45878 grep -v '^ *+' conftest.er1 >conftest.err
45880 cat conftest.err >&5
45881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882 (exit $ac_status); } &&
45883 { ac_try='test -z "$ac_c_werror_flag"
45884 || test ! -s conftest.err'
45885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45886 (eval $ac_try) 2>&5
45888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45889 (exit $ac_status); }; } &&
45890 { ac_try='test -s conftest$ac_exeext'
45891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45892 (eval $ac_try) 2>&5
45894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895 (exit $ac_status); }; }; then
45896 eval "$as_ac_var=yes"
45898 echo "$as_me: failed program was:" >&5
45899 sed 's/^/| /' conftest.$ac_ext >&5
45901 eval "$as_ac_var=no"
45904 rm -f conftest.err conftest.$ac_objext \
45905 conftest$ac_exeext conftest.$ac_ext
45907 ac_res=`eval echo '${'$as_ac_var'}'`
45908 { echo "$as_me:$LINENO: result: $ac_res" >&5
45909 echo "${ECHO_T}$ac_res" >&6; }
45910 if test `eval echo '${'$as_ac_var'}'` = yes; then
45911 cat >>confdefs.h <<_ACEOF
45912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45916 case " $LIBOBJS " in
45917 *" $ac_func.$ac_objext "* ) ;;
45918 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
45926 if test $ac_cv_func_memrchr = no; then
45935 case " $LIBOBJS " in
45936 *" xfts.$ac_objext "* ) ;;
45937 *) LIBOBJS="$LIBOBJS xfts.$ac_objext"
45946 case " $LIBOBJS " in
45947 *" root-dev-ino.$ac_objext "* ) ;;
45948 *) LIBOBJS="$LIBOBJS root-dev-ino.$ac_objext"
45958 case " $LIBOBJS " in
45959 *" version-etc-fsf.$ac_objext "* ) ;;
45960 *) LIBOBJS="$LIBOBJS version-etc-fsf.$ac_objext"
45964 case " $LIBOBJS " in
45965 *" version-etc.$ac_objext "* ) ;;
45966 *) LIBOBJS="$LIBOBJS version-etc.$ac_objext"
45975 case " $LIBOBJS " in
45976 *" diacrit.$ac_objext "* ) ;;
45977 *) LIBOBJS="$LIBOBJS diacrit.$ac_objext"
45984 { echo "$as_me:$LINENO: checking for socklen_t" >&5
45985 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
45986 if test "${ac_cv_type_socklen_t+set}" = set; then
45987 echo $ECHO_N "(cached) $ECHO_C" >&6
45989 cat >conftest.$ac_ext <<_ACEOF
45992 cat confdefs.h >>conftest.$ac_ext
45993 cat >>conftest.$ac_ext <<_ACEOF
45994 /* end confdefs.h. */
45995 #include <sys/types.h>
45996 #if HAVE_SYS_SOCKET_H
45997 # include <sys/socket.h>
45998 #elif HAVE_WS2TCPIP_H
45999 # include <ws2tcpip.h>
46002 typedef socklen_t ac__type_new_;
46006 if ((ac__type_new_ *) 0)
46008 if (sizeof (ac__type_new_))
46014 rm -f conftest.$ac_objext
46015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46016 (eval $ac_compile) 2>conftest.er1
46018 grep -v '^ *+' conftest.er1 >conftest.err
46020 cat conftest.err >&5
46021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46022 (exit $ac_status); } &&
46023 { ac_try='test -z "$ac_c_werror_flag"
46024 || test ! -s conftest.err'
46025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46026 (eval $ac_try) 2>&5
46028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029 (exit $ac_status); }; } &&
46030 { ac_try='test -s conftest.$ac_objext'
46031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46032 (eval $ac_try) 2>&5
46034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035 (exit $ac_status); }; }; then
46036 ac_cv_type_socklen_t=yes
46038 echo "$as_me: failed program was:" >&5
46039 sed 's/^/| /' conftest.$ac_ext >&5
46041 ac_cv_type_socklen_t=no
46044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46046 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
46047 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
46048 if test $ac_cv_type_socklen_t = yes; then
46051 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
46052 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
46053 if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
46054 echo $ECHO_N "(cached) $ECHO_C" >&6
46056 # Systems have either "struct sockaddr *" or
46057 # "void *" as the second argument to getpeername
46058 gl_cv_socklen_t_equiv=
46059 for arg2 in "struct sockaddr" void; do
46060 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
46061 cat >conftest.$ac_ext <<_ACEOF
46064 cat confdefs.h >>conftest.$ac_ext
46065 cat >>conftest.$ac_ext <<_ACEOF
46066 /* end confdefs.h. */
46067 #include <sys/types.h>
46068 #include <sys/socket.h>
46070 int getpeername (int, $arg2 *, $t *);
46075 getpeername (0, 0, &len);
46080 rm -f conftest.$ac_objext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46082 (eval $ac_compile) 2>conftest.er1
46084 grep -v '^ *+' conftest.er1 >conftest.err
46086 cat conftest.err >&5
46087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088 (exit $ac_status); } &&
46089 { ac_try='test -z "$ac_c_werror_flag"
46090 || test ! -s conftest.err'
46091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092 (eval $ac_try) 2>&5
46094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095 (exit $ac_status); }; } &&
46096 { ac_try='test -s conftest.$ac_objext'
46097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098 (eval $ac_try) 2>&5
46100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101 (exit $ac_status); }; }; then
46102 gl_cv_socklen_t_equiv="$t"
46104 echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46111 test "$gl_cv_socklen_t_equiv" != "" && break
46113 test "$gl_cv_socklen_t_equiv" != "" && break
46118 if test "$gl_cv_socklen_t_equiv" = ""; then
46119 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
46120 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
46121 { (exit 1); exit 1; }; }
46123 { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
46124 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
46126 cat >>confdefs.h <<_ACEOF
46127 #define socklen_t $gl_cv_socklen_t_equiv
46134 case " $LIBOBJS " in
46135 *" fprintftime.$ac_objext "* ) ;;
46136 *) LIBOBJS="$LIBOBJS fprintftime.$ac_objext"
46144 GNU_PACKAGE="GNU $PACKAGE"
46146 cat >>confdefs.h <<_ACEOF
46147 #define GNU_PACKAGE "$GNU_PACKAGE"
46153 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
46174 { echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
46175 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6; }
46176 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
46177 echo $ECHO_N "(cached) $ECHO_C" >&6
46179 cat >conftest.$ac_ext <<_ACEOF
46182 cat confdefs.h >>conftest.$ac_ext
46183 cat >>conftest.$ac_ext <<_ACEOF
46184 /* end confdefs.h. */
46185 $ac_includes_default
46186 #include <sys/stat.h>
46192 static struct stat ac_aggr;
46193 if (ac_aggr.st_author)
46199 rm -f conftest.$ac_objext
46200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46201 (eval $ac_compile) 2>conftest.er1
46203 grep -v '^ *+' conftest.er1 >conftest.err
46205 cat conftest.err >&5
46206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46207 (exit $ac_status); } &&
46208 { ac_try='test -z "$ac_c_werror_flag"
46209 || test ! -s conftest.err'
46210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46211 (eval $ac_try) 2>&5
46213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46214 (exit $ac_status); }; } &&
46215 { ac_try='test -s conftest.$ac_objext'
46216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46217 (eval $ac_try) 2>&5
46219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46220 (exit $ac_status); }; }; then
46221 ac_cv_member_struct_stat_st_author=yes
46223 echo "$as_me: failed program was:" >&5
46224 sed 's/^/| /' conftest.$ac_ext >&5
46226 cat >conftest.$ac_ext <<_ACEOF
46229 cat confdefs.h >>conftest.$ac_ext
46230 cat >>conftest.$ac_ext <<_ACEOF
46231 /* end confdefs.h. */
46232 $ac_includes_default
46233 #include <sys/stat.h>
46239 static struct stat ac_aggr;
46240 if (sizeof ac_aggr.st_author)
46246 rm -f conftest.$ac_objext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46248 (eval $ac_compile) 2>conftest.er1
46250 grep -v '^ *+' conftest.er1 >conftest.err
46252 cat conftest.err >&5
46253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254 (exit $ac_status); } &&
46255 { ac_try='test -z "$ac_c_werror_flag"
46256 || test ! -s conftest.err'
46257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258 (eval $ac_try) 2>&5
46260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261 (exit $ac_status); }; } &&
46262 { ac_try='test -s conftest.$ac_objext'
46263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264 (eval $ac_try) 2>&5
46266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267 (exit $ac_status); }; }; then
46268 ac_cv_member_struct_stat_st_author=yes
46270 echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46273 ac_cv_member_struct_stat_st_author=no
46276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46281 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
46282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6; }
46283 if test $ac_cv_member_struct_stat_st_author = yes; then
46285 cat >>confdefs.h <<_ACEOF
46286 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
46291 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
46292 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
46293 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
46294 echo $ECHO_N "(cached) $ECHO_C" >&6
46296 cat >conftest.$ac_ext <<_ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h. */
46302 $ac_includes_default
46303 #include <sys/stat.h>
46309 static struct stat ac_aggr;
46310 if (ac_aggr.st_blksize)
46316 rm -f conftest.$ac_objext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46318 (eval $ac_compile) 2>conftest.er1
46320 grep -v '^ *+' conftest.er1 >conftest.err
46322 cat conftest.err >&5
46323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324 (exit $ac_status); } &&
46325 { ac_try='test -z "$ac_c_werror_flag"
46326 || test ! -s conftest.err'
46327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328 (eval $ac_try) 2>&5
46330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331 (exit $ac_status); }; } &&
46332 { ac_try='test -s conftest.$ac_objext'
46333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334 (eval $ac_try) 2>&5
46336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337 (exit $ac_status); }; }; then
46338 ac_cv_member_struct_stat_st_blksize=yes
46340 echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46343 cat >conftest.$ac_ext <<_ACEOF
46346 cat confdefs.h >>conftest.$ac_ext
46347 cat >>conftest.$ac_ext <<_ACEOF
46348 /* end confdefs.h. */
46349 $ac_includes_default
46350 #include <sys/stat.h>
46356 static struct stat ac_aggr;
46357 if (sizeof ac_aggr.st_blksize)
46363 rm -f conftest.$ac_objext
46364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46365 (eval $ac_compile) 2>conftest.er1
46367 grep -v '^ *+' conftest.er1 >conftest.err
46369 cat conftest.err >&5
46370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46371 (exit $ac_status); } &&
46372 { ac_try='test -z "$ac_c_werror_flag"
46373 || test ! -s conftest.err'
46374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46375 (eval $ac_try) 2>&5
46377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46378 (exit $ac_status); }; } &&
46379 { ac_try='test -s conftest.$ac_objext'
46380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46381 (eval $ac_try) 2>&5
46383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46384 (exit $ac_status); }; }; then
46385 ac_cv_member_struct_stat_st_blksize=yes
46387 echo "$as_me: failed program was:" >&5
46388 sed 's/^/| /' conftest.$ac_ext >&5
46390 ac_cv_member_struct_stat_st_blksize=no
46393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46398 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
46399 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
46400 if test $ac_cv_member_struct_stat_st_blksize = yes; then
46402 cat >>confdefs.h <<_ACEOF
46403 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
46420 { echo "$as_me:$LINENO: checking for ino_t" >&5
46421 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
46422 if test "${ac_cv_type_ino_t+set}" = set; then
46423 echo $ECHO_N "(cached) $ECHO_C" >&6
46425 cat >conftest.$ac_ext <<_ACEOF
46428 cat confdefs.h >>conftest.$ac_ext
46429 cat >>conftest.$ac_ext <<_ACEOF
46430 /* end confdefs.h. */
46431 $ac_includes_default
46432 typedef ino_t ac__type_new_;
46436 if ((ac__type_new_ *) 0)
46438 if (sizeof (ac__type_new_))
46444 rm -f conftest.$ac_objext
46445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46446 (eval $ac_compile) 2>conftest.er1
46448 grep -v '^ *+' conftest.er1 >conftest.err
46450 cat conftest.err >&5
46451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46452 (exit $ac_status); } &&
46453 { ac_try='test -z "$ac_c_werror_flag"
46454 || test ! -s conftest.err'
46455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46456 (eval $ac_try) 2>&5
46458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46459 (exit $ac_status); }; } &&
46460 { ac_try='test -s conftest.$ac_objext'
46461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46462 (eval $ac_try) 2>&5
46464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46465 (exit $ac_status); }; }; then
46466 ac_cv_type_ino_t=yes
46468 echo "$as_me: failed program was:" >&5
46469 sed 's/^/| /' conftest.$ac_ext >&5
46471 ac_cv_type_ino_t=no
46474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46476 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
46477 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
46478 if test $ac_cv_type_ino_t = yes; then
46482 cat >>confdefs.h <<_ACEOF
46483 #define ino_t unsigned long int
46490 { echo "$as_me:$LINENO: checking for ssize_t" >&5
46491 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
46492 if test "${gt_cv_ssize_t+set}" = set; then
46493 echo $ECHO_N "(cached) $ECHO_C" >&6
46495 cat >conftest.$ac_ext <<_ACEOF
46498 cat confdefs.h >>conftest.$ac_ext
46499 cat >>conftest.$ac_ext <<_ACEOF
46500 /* end confdefs.h. */
46501 #include <sys/types.h>
46505 int x = sizeof (ssize_t *) + sizeof (ssize_t);
46510 rm -f conftest.$ac_objext
46511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46512 (eval $ac_compile) 2>conftest.er1
46514 grep -v '^ *+' conftest.er1 >conftest.err
46516 cat conftest.err >&5
46517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518 (exit $ac_status); } &&
46519 { ac_try='test -z "$ac_c_werror_flag"
46520 || test ! -s conftest.err'
46521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46522 (eval $ac_try) 2>&5
46524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46525 (exit $ac_status); }; } &&
46526 { ac_try='test -s conftest.$ac_objext'
46527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46528 (eval $ac_try) 2>&5
46530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46531 (exit $ac_status); }; }; then
46534 echo "$as_me: failed program was:" >&5
46535 sed 's/^/| /' conftest.$ac_ext >&5
46540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46542 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
46543 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
46544 if test $gt_cv_ssize_t = no; then
46546 cat >>confdefs.h <<\_ACEOF
46547 #define ssize_t int
46553 { echo "$as_me:$LINENO: checking for major_t" >&5
46554 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
46555 if test "${ac_cv_type_major_t+set}" = set; then
46556 echo $ECHO_N "(cached) $ECHO_C" >&6
46558 cat >conftest.$ac_ext <<_ACEOF
46561 cat confdefs.h >>conftest.$ac_ext
46562 cat >>conftest.$ac_ext <<_ACEOF
46563 /* end confdefs.h. */
46564 $ac_includes_default
46565 typedef major_t ac__type_new_;
46569 if ((ac__type_new_ *) 0)
46571 if (sizeof (ac__type_new_))
46577 rm -f conftest.$ac_objext
46578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46579 (eval $ac_compile) 2>conftest.er1
46581 grep -v '^ *+' conftest.er1 >conftest.err
46583 cat conftest.err >&5
46584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46585 (exit $ac_status); } &&
46586 { ac_try='test -z "$ac_c_werror_flag"
46587 || test ! -s conftest.err'
46588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46589 (eval $ac_try) 2>&5
46591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46592 (exit $ac_status); }; } &&
46593 { ac_try='test -s conftest.$ac_objext'
46594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595 (eval $ac_try) 2>&5
46597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598 (exit $ac_status); }; }; then
46599 ac_cv_type_major_t=yes
46601 echo "$as_me: failed program was:" >&5
46602 sed 's/^/| /' conftest.$ac_ext >&5
46604 ac_cv_type_major_t=no
46607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46609 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
46610 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
46611 if test $ac_cv_type_major_t = yes; then
46615 cat >>confdefs.h <<_ACEOF
46616 #define major_t unsigned int
46621 { echo "$as_me:$LINENO: checking for minor_t" >&5
46622 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
46623 if test "${ac_cv_type_minor_t+set}" = set; then
46624 echo $ECHO_N "(cached) $ECHO_C" >&6
46626 cat >conftest.$ac_ext <<_ACEOF
46629 cat confdefs.h >>conftest.$ac_ext
46630 cat >>conftest.$ac_ext <<_ACEOF
46631 /* end confdefs.h. */
46632 $ac_includes_default
46633 typedef minor_t ac__type_new_;
46637 if ((ac__type_new_ *) 0)
46639 if (sizeof (ac__type_new_))
46645 rm -f conftest.$ac_objext
46646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46647 (eval $ac_compile) 2>conftest.er1
46649 grep -v '^ *+' conftest.er1 >conftest.err
46651 cat conftest.err >&5
46652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46653 (exit $ac_status); } &&
46654 { ac_try='test -z "$ac_c_werror_flag"
46655 || test ! -s conftest.err'
46656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657 (eval $ac_try) 2>&5
46659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660 (exit $ac_status); }; } &&
46661 { ac_try='test -s conftest.$ac_objext'
46662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46663 (eval $ac_try) 2>&5
46665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46666 (exit $ac_status); }; }; then
46667 ac_cv_type_minor_t=yes
46669 echo "$as_me: failed program was:" >&5
46670 sed 's/^/| /' conftest.$ac_ext >&5
46672 ac_cv_type_minor_t=no
46675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46677 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
46678 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
46679 if test $ac_cv_type_minor_t = yes; then
46683 cat >>confdefs.h <<_ACEOF
46684 #define minor_t unsigned int
46721 # This is for od and stat, and any other program that
46722 # uses the PRI.MAX macros from inttypes.h.
46732 ac_have_func=no # yes means we've found a way to get the load average.
46734 # Make sure getloadavg.c is where it belongs, at configure-time.
46735 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
46736 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
46737 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
46738 { (exit 1); exit 1; }; }
46742 # Check for getloadavg, but be sure not to touch the cache variable.
46743 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
46744 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
46745 if test "${ac_cv_func_getloadavg+set}" = set; then
46746 echo $ECHO_N "(cached) $ECHO_C" >&6
46748 cat >conftest.$ac_ext <<_ACEOF
46751 cat confdefs.h >>conftest.$ac_ext
46752 cat >>conftest.$ac_ext <<_ACEOF
46753 /* end confdefs.h. */
46754 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
46755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46756 #define getloadavg innocuous_getloadavg
46758 /* System header to define __stub macros and hopefully few prototypes,
46759 which can conflict with char getloadavg (); below.
46760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46761 <limits.h> exists even on freestanding compilers. */
46764 # include <limits.h>
46766 # include <assert.h>
46771 /* Override any GCC internal prototype to avoid an error.
46772 Use char because int might match the return type of a GCC
46773 builtin and then its argument prototype would still apply. */
46777 char getloadavg ();
46778 /* The GNU C library defines this for functions which it implements
46779 to always fail with ENOSYS. Some functions are actually named
46780 something starting with __ and the normal name is an alias. */
46781 #if defined __stub_getloadavg || defined __stub___getloadavg
46788 return getloadavg ();
46793 rm -f conftest.$ac_objext conftest$ac_exeext
46794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46795 (eval $ac_link) 2>conftest.er1
46797 grep -v '^ *+' conftest.er1 >conftest.err
46799 cat conftest.err >&5
46800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46801 (exit $ac_status); } &&
46802 { ac_try='test -z "$ac_c_werror_flag"
46803 || test ! -s conftest.err'
46804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46805 (eval $ac_try) 2>&5
46807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808 (exit $ac_status); }; } &&
46809 { ac_try='test -s conftest$ac_exeext'
46810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46811 (eval $ac_try) 2>&5
46813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814 (exit $ac_status); }; }; then
46815 ac_cv_func_getloadavg=yes
46817 echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46820 ac_cv_func_getloadavg=no
46823 rm -f conftest.err conftest.$ac_objext \
46824 conftest$ac_exeext conftest.$ac_ext
46826 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
46827 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
46828 if test $ac_cv_func_getloadavg = yes; then
46833 ) && ac_have_func=yes
46835 # On HPUX9, an unprivileged user can get load averages through this function.
46837 for ac_func in pstat_getdynamic
46839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46843 echo $ECHO_N "(cached) $ECHO_C" >&6
46845 cat >conftest.$ac_ext <<_ACEOF
46848 cat confdefs.h >>conftest.$ac_ext
46849 cat >>conftest.$ac_ext <<_ACEOF
46850 /* end confdefs.h. */
46851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46853 #define $ac_func innocuous_$ac_func
46855 /* System header to define __stub macros and hopefully few prototypes,
46856 which can conflict with char $ac_func (); below.
46857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46858 <limits.h> exists even on freestanding compilers. */
46861 # include <limits.h>
46863 # include <assert.h>
46868 /* Override any GCC internal prototype to avoid an error.
46869 Use char because int might match the return type of a GCC
46870 builtin and then its argument prototype would still apply. */
46875 /* The GNU C library defines this for functions which it implements
46876 to always fail with ENOSYS. Some functions are actually named
46877 something starting with __ and the normal name is an alias. */
46878 #if defined __stub_$ac_func || defined __stub___$ac_func
46885 return $ac_func ();
46890 rm -f conftest.$ac_objext conftest$ac_exeext
46891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46892 (eval $ac_link) 2>conftest.er1
46894 grep -v '^ *+' conftest.er1 >conftest.err
46896 cat conftest.err >&5
46897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46898 (exit $ac_status); } &&
46899 { ac_try='test -z "$ac_c_werror_flag"
46900 || test ! -s conftest.err'
46901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46902 (eval $ac_try) 2>&5
46904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46905 (exit $ac_status); }; } &&
46906 { ac_try='test -s conftest$ac_exeext'
46907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46908 (eval $ac_try) 2>&5
46910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911 (exit $ac_status); }; }; then
46912 eval "$as_ac_var=yes"
46914 echo "$as_me: failed program was:" >&5
46915 sed 's/^/| /' conftest.$ac_ext >&5
46917 eval "$as_ac_var=no"
46920 rm -f conftest.err conftest.$ac_objext \
46921 conftest$ac_exeext conftest.$ac_ext
46923 ac_res=`eval echo '${'$as_ac_var'}'`
46924 { echo "$as_me:$LINENO: result: $ac_res" >&5
46925 echo "${ECHO_T}$ac_res" >&6; }
46926 if test `eval echo '${'$as_ac_var'}'` = yes; then
46927 cat >>confdefs.h <<_ACEOF
46928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46935 # Solaris has libkstat which does not require root.
46937 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
46938 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
46939 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
46940 echo $ECHO_N "(cached) $ECHO_C" >&6
46942 ac_check_lib_save_LIBS=$LIBS
46943 LIBS="-lkstat $LIBS"
46944 cat >conftest.$ac_ext <<_ACEOF
46947 cat confdefs.h >>conftest.$ac_ext
46948 cat >>conftest.$ac_ext <<_ACEOF
46949 /* end confdefs.h. */
46951 /* Override any GCC internal prototype to avoid an error.
46952 Use char because int might match the return type of a GCC
46953 builtin and then its argument prototype would still apply. */
46957 char kstat_open ();
46961 return kstat_open ();
46966 rm -f conftest.$ac_objext conftest$ac_exeext
46967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46968 (eval $ac_link) 2>conftest.er1
46970 grep -v '^ *+' conftest.er1 >conftest.err
46972 cat conftest.err >&5
46973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974 (exit $ac_status); } &&
46975 { ac_try='test -z "$ac_c_werror_flag"
46976 || test ! -s conftest.err'
46977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46978 (eval $ac_try) 2>&5
46980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46981 (exit $ac_status); }; } &&
46982 { ac_try='test -s conftest$ac_exeext'
46983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46984 (eval $ac_try) 2>&5
46986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46987 (exit $ac_status); }; }; then
46988 ac_cv_lib_kstat_kstat_open=yes
46990 echo "$as_me: failed program was:" >&5
46991 sed 's/^/| /' conftest.$ac_ext >&5
46993 ac_cv_lib_kstat_kstat_open=no
46996 rm -f conftest.err conftest.$ac_objext \
46997 conftest$ac_exeext conftest.$ac_ext
46998 LIBS=$ac_check_lib_save_LIBS
47000 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
47001 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
47002 if test $ac_cv_lib_kstat_kstat_open = yes; then
47003 cat >>confdefs.h <<_ACEOF
47004 #define HAVE_LIBKSTAT 1
47007 LIBS="-lkstat $LIBS"
47011 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
47013 # Some systems with -lutil have (and need) -lkvm as well, some do not.
47014 # On Solaris, -lkvm requires nlist from -lelf, so check that first
47015 # to get the right answer into the cache.
47016 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
47017 if test $ac_have_func = no; then
47018 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
47019 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
47020 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
47021 echo $ECHO_N "(cached) $ECHO_C" >&6
47023 ac_check_lib_save_LIBS=$LIBS
47025 cat >conftest.$ac_ext <<_ACEOF
47028 cat confdefs.h >>conftest.$ac_ext
47029 cat >>conftest.$ac_ext <<_ACEOF
47030 /* end confdefs.h. */
47032 /* Override any GCC internal prototype to avoid an error.
47033 Use char because int might match the return type of a GCC
47034 builtin and then its argument prototype would still apply. */
47042 return elf_begin ();
47047 rm -f conftest.$ac_objext conftest$ac_exeext
47048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47049 (eval $ac_link) 2>conftest.er1
47051 grep -v '^ *+' conftest.er1 >conftest.err
47053 cat conftest.err >&5
47054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47055 (exit $ac_status); } &&
47056 { ac_try='test -z "$ac_c_werror_flag"
47057 || test ! -s conftest.err'
47058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47059 (eval $ac_try) 2>&5
47061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47062 (exit $ac_status); }; } &&
47063 { ac_try='test -s conftest$ac_exeext'
47064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47065 (eval $ac_try) 2>&5
47067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068 (exit $ac_status); }; }; then
47069 ac_cv_lib_elf_elf_begin=yes
47071 echo "$as_me: failed program was:" >&5
47072 sed 's/^/| /' conftest.$ac_ext >&5
47074 ac_cv_lib_elf_elf_begin=no
47077 rm -f conftest.err conftest.$ac_objext \
47078 conftest$ac_exeext conftest.$ac_ext
47079 LIBS=$ac_check_lib_save_LIBS
47081 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
47082 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
47083 if test $ac_cv_lib_elf_elf_begin = yes; then
47088 if test $ac_have_func = no; then
47089 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
47090 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
47091 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
47092 echo $ECHO_N "(cached) $ECHO_C" >&6
47094 ac_check_lib_save_LIBS=$LIBS
47096 cat >conftest.$ac_ext <<_ACEOF
47099 cat confdefs.h >>conftest.$ac_ext
47100 cat >>conftest.$ac_ext <<_ACEOF
47101 /* end confdefs.h. */
47103 /* Override any GCC internal prototype to avoid an error.
47104 Use char because int might match the return type of a GCC
47105 builtin and then its argument prototype would still apply. */
47113 return kvm_open ();
47118 rm -f conftest.$ac_objext conftest$ac_exeext
47119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47120 (eval $ac_link) 2>conftest.er1
47122 grep -v '^ *+' conftest.er1 >conftest.err
47124 cat conftest.err >&5
47125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126 (exit $ac_status); } &&
47127 { ac_try='test -z "$ac_c_werror_flag"
47128 || test ! -s conftest.err'
47129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47130 (eval $ac_try) 2>&5
47132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47133 (exit $ac_status); }; } &&
47134 { ac_try='test -s conftest$ac_exeext'
47135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47136 (eval $ac_try) 2>&5
47138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139 (exit $ac_status); }; }; then
47140 ac_cv_lib_kvm_kvm_open=yes
47142 echo "$as_me: failed program was:" >&5
47143 sed 's/^/| /' conftest.$ac_ext >&5
47145 ac_cv_lib_kvm_kvm_open=no
47148 rm -f conftest.err conftest.$ac_objext \
47149 conftest$ac_exeext conftest.$ac_ext
47150 LIBS=$ac_check_lib_save_LIBS
47152 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
47153 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
47154 if test $ac_cv_lib_kvm_kvm_open = yes; then
47158 # Check for the 4.4BSD definition of getloadavg.
47159 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
47160 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
47161 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
47162 echo $ECHO_N "(cached) $ECHO_C" >&6
47164 ac_check_lib_save_LIBS=$LIBS
47165 LIBS="-lutil $LIBS"
47166 cat >conftest.$ac_ext <<_ACEOF
47169 cat confdefs.h >>conftest.$ac_ext
47170 cat >>conftest.$ac_ext <<_ACEOF
47171 /* end confdefs.h. */
47173 /* Override any GCC internal prototype to avoid an error.
47174 Use char because int might match the return type of a GCC
47175 builtin and then its argument prototype would still apply. */
47179 char getloadavg ();
47183 return getloadavg ();
47188 rm -f conftest.$ac_objext conftest$ac_exeext
47189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47190 (eval $ac_link) 2>conftest.er1
47192 grep -v '^ *+' conftest.er1 >conftest.err
47194 cat conftest.err >&5
47195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196 (exit $ac_status); } &&
47197 { ac_try='test -z "$ac_c_werror_flag"
47198 || test ! -s conftest.err'
47199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47200 (eval $ac_try) 2>&5
47202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203 (exit $ac_status); }; } &&
47204 { ac_try='test -s conftest$ac_exeext'
47205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206 (eval $ac_try) 2>&5
47208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209 (exit $ac_status); }; }; then
47210 ac_cv_lib_util_getloadavg=yes
47212 echo "$as_me: failed program was:" >&5
47213 sed 's/^/| /' conftest.$ac_ext >&5
47215 ac_cv_lib_util_getloadavg=no
47218 rm -f conftest.err conftest.$ac_objext \
47219 conftest$ac_exeext conftest.$ac_ext
47220 LIBS=$ac_check_lib_save_LIBS
47222 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
47223 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
47224 if test $ac_cv_lib_util_getloadavg = yes; then
47225 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
47230 if test $ac_have_func = no; then
47231 # There is a commonly available library for RS/6000 AIX.
47232 # Since it is not a standard part of AIX, it might be installed locally.
47233 ac_getloadavg_LIBS=$LIBS
47234 LIBS="-L/usr/local/lib $LIBS"
47235 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
47236 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
47237 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
47238 echo $ECHO_N "(cached) $ECHO_C" >&6
47240 ac_check_lib_save_LIBS=$LIBS
47241 LIBS="-lgetloadavg $LIBS"
47242 cat >conftest.$ac_ext <<_ACEOF
47245 cat confdefs.h >>conftest.$ac_ext
47246 cat >>conftest.$ac_ext <<_ACEOF
47247 /* end confdefs.h. */
47249 /* Override any GCC internal prototype to avoid an error.
47250 Use char because int might match the return type of a GCC
47251 builtin and then its argument prototype would still apply. */
47255 char getloadavg ();
47259 return getloadavg ();
47264 rm -f conftest.$ac_objext conftest$ac_exeext
47265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47266 (eval $ac_link) 2>conftest.er1
47268 grep -v '^ *+' conftest.er1 >conftest.err
47270 cat conftest.err >&5
47271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47272 (exit $ac_status); } &&
47273 { ac_try='test -z "$ac_c_werror_flag"
47274 || test ! -s conftest.err'
47275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276 (eval $ac_try) 2>&5
47278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); }; } &&
47280 { ac_try='test -s conftest$ac_exeext'
47281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47282 (eval $ac_try) 2>&5
47284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47285 (exit $ac_status); }; }; then
47286 ac_cv_lib_getloadavg_getloadavg=yes
47288 echo "$as_me: failed program was:" >&5
47289 sed 's/^/| /' conftest.$ac_ext >&5
47291 ac_cv_lib_getloadavg_getloadavg=no
47294 rm -f conftest.err conftest.$ac_objext \
47295 conftest$ac_exeext conftest.$ac_ext
47296 LIBS=$ac_check_lib_save_LIBS
47298 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
47299 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
47300 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
47301 LIBS="-lgetloadavg $LIBS"
47303 LIBS=$ac_getloadavg_LIBS
47308 # Make sure it is really in the library, if we think we found it,
47309 # otherwise set up the replacement function.
47311 for ac_func in getloadavg
47313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47317 echo $ECHO_N "(cached) $ECHO_C" >&6
47319 cat >conftest.$ac_ext <<_ACEOF
47322 cat confdefs.h >>conftest.$ac_ext
47323 cat >>conftest.$ac_ext <<_ACEOF
47324 /* end confdefs.h. */
47325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47327 #define $ac_func innocuous_$ac_func
47329 /* System header to define __stub macros and hopefully few prototypes,
47330 which can conflict with char $ac_func (); below.
47331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47332 <limits.h> exists even on freestanding compilers. */
47335 # include <limits.h>
47337 # include <assert.h>
47342 /* Override any GCC internal prototype to avoid an error.
47343 Use char because int might match the return type of a GCC
47344 builtin and then its argument prototype would still apply. */
47349 /* The GNU C library defines this for functions which it implements
47350 to always fail with ENOSYS. Some functions are actually named
47351 something starting with __ and the normal name is an alias. */
47352 #if defined __stub_$ac_func || defined __stub___$ac_func
47359 return $ac_func ();
47364 rm -f conftest.$ac_objext conftest$ac_exeext
47365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47366 (eval $ac_link) 2>conftest.er1
47368 grep -v '^ *+' conftest.er1 >conftest.err
47370 cat conftest.err >&5
47371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372 (exit $ac_status); } &&
47373 { ac_try='test -z "$ac_c_werror_flag"
47374 || test ! -s conftest.err'
47375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47376 (eval $ac_try) 2>&5
47378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47379 (exit $ac_status); }; } &&
47380 { ac_try='test -s conftest$ac_exeext'
47381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47382 (eval $ac_try) 2>&5
47384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47385 (exit $ac_status); }; }; then
47386 eval "$as_ac_var=yes"
47388 echo "$as_me: failed program was:" >&5
47389 sed 's/^/| /' conftest.$ac_ext >&5
47391 eval "$as_ac_var=no"
47394 rm -f conftest.err conftest.$ac_objext \
47395 conftest$ac_exeext conftest.$ac_ext
47397 ac_res=`eval echo '${'$as_ac_var'}'`
47398 { echo "$as_me:$LINENO: result: $ac_res" >&5
47399 echo "${ECHO_T}$ac_res" >&6; }
47400 if test `eval echo '${'$as_ac_var'}'` = yes; then
47401 cat >>confdefs.h <<_ACEOF
47402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47406 case " $LIBOBJS " in
47407 *" getloadavg.$ac_objext "* ) ;;
47408 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
47413 cat >>confdefs.h <<\_ACEOF
47414 #define C_GETLOADAVG 1
47417 # Figure out what our getloadavg.c needs.
47419 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47420 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
47421 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
47422 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47423 echo $ECHO_N "(cached) $ECHO_C" >&6
47425 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
47426 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
47428 # Is the header compilable?
47429 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
47430 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
47431 cat >conftest.$ac_ext <<_ACEOF
47434 cat confdefs.h >>conftest.$ac_ext
47435 cat >>conftest.$ac_ext <<_ACEOF
47436 /* end confdefs.h. */
47437 $ac_includes_default
47438 #include <sys/dg_sys_info.h>
47440 rm -f conftest.$ac_objext
47441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47442 (eval $ac_compile) 2>conftest.er1
47444 grep -v '^ *+' conftest.er1 >conftest.err
47446 cat conftest.err >&5
47447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448 (exit $ac_status); } &&
47449 { ac_try='test -z "$ac_c_werror_flag"
47450 || test ! -s conftest.err'
47451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47452 (eval $ac_try) 2>&5
47454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47455 (exit $ac_status); }; } &&
47456 { ac_try='test -s conftest.$ac_objext'
47457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47458 (eval $ac_try) 2>&5
47460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47461 (exit $ac_status); }; }; then
47462 ac_header_compiler=yes
47464 echo "$as_me: failed program was:" >&5
47465 sed 's/^/| /' conftest.$ac_ext >&5
47467 ac_header_compiler=no
47470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47472 echo "${ECHO_T}$ac_header_compiler" >&6; }
47474 # Is the header present?
47475 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
47476 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
47477 cat >conftest.$ac_ext <<_ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h. */
47483 #include <sys/dg_sys_info.h>
47485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47488 grep -v '^ *+' conftest.er1 >conftest.err
47490 cat conftest.err >&5
47491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47492 (exit $ac_status); } >/dev/null; then
47493 if test -s conftest.err; then
47494 ac_cpp_err=$ac_c_preproc_warn_flag
47495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47502 if test -z "$ac_cpp_err"; then
47503 ac_header_preproc=yes
47505 echo "$as_me: failed program was:" >&5
47506 sed 's/^/| /' conftest.$ac_ext >&5
47508 ac_header_preproc=no
47511 rm -f conftest.err conftest.$ac_ext
47512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47513 echo "${ECHO_T}$ac_header_preproc" >&6; }
47515 # So? What about this header?
47516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47518 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
47519 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47520 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
47521 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
47522 ac_header_preproc=yes
47525 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
47526 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
47527 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
47528 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
47529 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
47530 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
47531 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
47532 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
47533 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
47534 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
47535 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
47536 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
47538 ## ------------------------------------ ##
47539 ## Report this to bug-coreutils@gnu.org ##
47540 ## ------------------------------------ ##
47542 ) | sed "s/^/$as_me: WARNING: /" >&2
47545 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
47546 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
47547 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
47548 echo $ECHO_N "(cached) $ECHO_C" >&6
47550 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
47552 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
47553 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
47556 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
47559 cat >>confdefs.h <<\_ACEOF
47564 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
47565 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
47566 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
47567 echo $ECHO_N "(cached) $ECHO_C" >&6
47569 ac_check_lib_save_LIBS=$LIBS
47571 cat >conftest.$ac_ext <<_ACEOF
47574 cat confdefs.h >>conftest.$ac_ext
47575 cat >>conftest.$ac_ext <<_ACEOF
47576 /* end confdefs.h. */
47578 /* Override any GCC internal prototype to avoid an error.
47579 Use char because int might match the return type of a GCC
47580 builtin and then its argument prototype would still apply. */
47584 char dg_sys_info ();
47588 return dg_sys_info ();
47593 rm -f conftest.$ac_objext conftest$ac_exeext
47594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47595 (eval $ac_link) 2>conftest.er1
47597 grep -v '^ *+' conftest.er1 >conftest.err
47599 cat conftest.err >&5
47600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47601 (exit $ac_status); } &&
47602 { ac_try='test -z "$ac_c_werror_flag"
47603 || test ! -s conftest.err'
47604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47605 (eval $ac_try) 2>&5
47607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47608 (exit $ac_status); }; } &&
47609 { ac_try='test -s conftest$ac_exeext'
47610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47611 (eval $ac_try) 2>&5
47613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47614 (exit $ac_status); }; }; then
47615 ac_cv_lib_dgc_dg_sys_info=yes
47617 echo "$as_me: failed program was:" >&5
47618 sed 's/^/| /' conftest.$ac_ext >&5
47620 ac_cv_lib_dgc_dg_sys_info=no
47623 rm -f conftest.err conftest.$ac_objext \
47624 conftest$ac_exeext conftest.$ac_ext
47625 LIBS=$ac_check_lib_save_LIBS
47627 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
47628 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
47629 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
47630 cat >>confdefs.h <<_ACEOF
47631 #define HAVE_LIBDGC 1
47642 if test "${ac_cv_header_locale_h+set}" = set; then
47643 { echo "$as_me:$LINENO: checking for locale.h" >&5
47644 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
47645 if test "${ac_cv_header_locale_h+set}" = set; then
47646 echo $ECHO_N "(cached) $ECHO_C" >&6
47648 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
47649 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
47651 # Is the header compilable?
47652 { echo "$as_me:$LINENO: checking locale.h usability" >&5
47653 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
47654 cat >conftest.$ac_ext <<_ACEOF
47657 cat confdefs.h >>conftest.$ac_ext
47658 cat >>conftest.$ac_ext <<_ACEOF
47659 /* end confdefs.h. */
47660 $ac_includes_default
47661 #include <locale.h>
47663 rm -f conftest.$ac_objext
47664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47665 (eval $ac_compile) 2>conftest.er1
47667 grep -v '^ *+' conftest.er1 >conftest.err
47669 cat conftest.err >&5
47670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671 (exit $ac_status); } &&
47672 { ac_try='test -z "$ac_c_werror_flag"
47673 || test ! -s conftest.err'
47674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47675 (eval $ac_try) 2>&5
47677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47678 (exit $ac_status); }; } &&
47679 { ac_try='test -s conftest.$ac_objext'
47680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47681 (eval $ac_try) 2>&5
47683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47684 (exit $ac_status); }; }; then
47685 ac_header_compiler=yes
47687 echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47690 ac_header_compiler=no
47693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47695 echo "${ECHO_T}$ac_header_compiler" >&6; }
47697 # Is the header present?
47698 { echo "$as_me:$LINENO: checking locale.h presence" >&5
47699 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
47700 cat >conftest.$ac_ext <<_ACEOF
47703 cat confdefs.h >>conftest.$ac_ext
47704 cat >>conftest.$ac_ext <<_ACEOF
47705 /* end confdefs.h. */
47706 #include <locale.h>
47708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47711 grep -v '^ *+' conftest.er1 >conftest.err
47713 cat conftest.err >&5
47714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715 (exit $ac_status); } >/dev/null; then
47716 if test -s conftest.err; then
47717 ac_cpp_err=$ac_c_preproc_warn_flag
47718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47725 if test -z "$ac_cpp_err"; then
47726 ac_header_preproc=yes
47728 echo "$as_me: failed program was:" >&5
47729 sed 's/^/| /' conftest.$ac_ext >&5
47731 ac_header_preproc=no
47734 rm -f conftest.err conftest.$ac_ext
47735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47736 echo "${ECHO_T}$ac_header_preproc" >&6; }
47738 # So? What about this header?
47739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47741 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
47742 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47743 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
47744 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
47745 ac_header_preproc=yes
47748 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
47749 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
47750 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
47751 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
47752 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
47753 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
47754 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
47755 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
47756 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
47757 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
47758 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
47759 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
47761 ## ------------------------------------ ##
47762 ## Report this to bug-coreutils@gnu.org ##
47763 ## ------------------------------------ ##
47765 ) | sed "s/^/$as_me: WARNING: /" >&2
47768 { echo "$as_me:$LINENO: checking for locale.h" >&5
47769 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
47770 if test "${ac_cv_header_locale_h+set}" = set; then
47771 echo $ECHO_N "(cached) $ECHO_C" >&6
47773 ac_cv_header_locale_h=$ac_header_preproc
47775 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
47776 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
47782 for ac_func in setlocale
47784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47788 echo $ECHO_N "(cached) $ECHO_C" >&6
47790 cat >conftest.$ac_ext <<_ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h. */
47796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47798 #define $ac_func innocuous_$ac_func
47800 /* System header to define __stub macros and hopefully few prototypes,
47801 which can conflict with char $ac_func (); below.
47802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47803 <limits.h> exists even on freestanding compilers. */
47806 # include <limits.h>
47808 # include <assert.h>
47813 /* Override any GCC internal prototype to avoid an error.
47814 Use char because int might match the return type of a GCC
47815 builtin and then its argument prototype would still apply. */
47820 /* The GNU C library defines this for functions which it implements
47821 to always fail with ENOSYS. Some functions are actually named
47822 something starting with __ and the normal name is an alias. */
47823 #if defined __stub_$ac_func || defined __stub___$ac_func
47830 return $ac_func ();
47835 rm -f conftest.$ac_objext conftest$ac_exeext
47836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47837 (eval $ac_link) 2>conftest.er1
47839 grep -v '^ *+' conftest.er1 >conftest.err
47841 cat conftest.err >&5
47842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47843 (exit $ac_status); } &&
47844 { ac_try='test -z "$ac_c_werror_flag"
47845 || test ! -s conftest.err'
47846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47847 (eval $ac_try) 2>&5
47849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47850 (exit $ac_status); }; } &&
47851 { ac_try='test -s conftest$ac_exeext'
47852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47853 (eval $ac_try) 2>&5
47855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47856 (exit $ac_status); }; }; then
47857 eval "$as_ac_var=yes"
47859 echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47862 eval "$as_ac_var=no"
47865 rm -f conftest.err conftest.$ac_objext \
47866 conftest$ac_exeext conftest.$ac_ext
47868 ac_res=`eval echo '${'$as_ac_var'}'`
47869 { echo "$as_me:$LINENO: result: $ac_res" >&5
47870 echo "${ECHO_T}$ac_res" >&6; }
47871 if test `eval echo '${'$as_ac_var'}'` = yes; then
47872 cat >>confdefs.h <<_ACEOF
47873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47880 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
47881 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
47882 # Irix 4.0.5F has the header but not the library.
47883 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
47886 cat >>confdefs.h <<\_ACEOF
47892 if test $ac_have_func = no; then
47893 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
47894 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
47895 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
47896 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
47897 echo $ECHO_N "(cached) $ECHO_C" >&6
47899 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
47900 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
47902 # Is the header compilable?
47903 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
47904 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
47905 cat >conftest.$ac_ext <<_ACEOF
47908 cat confdefs.h >>conftest.$ac_ext
47909 cat >>conftest.$ac_ext <<_ACEOF
47910 /* end confdefs.h. */
47911 $ac_includes_default
47912 #include <inq_stats/cpustats.h>
47914 rm -f conftest.$ac_objext
47915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47916 (eval $ac_compile) 2>conftest.er1
47918 grep -v '^ *+' conftest.er1 >conftest.err
47920 cat conftest.err >&5
47921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47922 (exit $ac_status); } &&
47923 { ac_try='test -z "$ac_c_werror_flag"
47924 || test ! -s conftest.err'
47925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47926 (eval $ac_try) 2>&5
47928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47929 (exit $ac_status); }; } &&
47930 { ac_try='test -s conftest.$ac_objext'
47931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932 (eval $ac_try) 2>&5
47934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935 (exit $ac_status); }; }; then
47936 ac_header_compiler=yes
47938 echo "$as_me: failed program was:" >&5
47939 sed 's/^/| /' conftest.$ac_ext >&5
47941 ac_header_compiler=no
47944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47946 echo "${ECHO_T}$ac_header_compiler" >&6; }
47948 # Is the header present?
47949 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
47950 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
47951 cat >conftest.$ac_ext <<_ACEOF
47954 cat confdefs.h >>conftest.$ac_ext
47955 cat >>conftest.$ac_ext <<_ACEOF
47956 /* end confdefs.h. */
47957 #include <inq_stats/cpustats.h>
47959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47962 grep -v '^ *+' conftest.er1 >conftest.err
47964 cat conftest.err >&5
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); } >/dev/null; then
47967 if test -s conftest.err; then
47968 ac_cpp_err=$ac_c_preproc_warn_flag
47969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47976 if test -z "$ac_cpp_err"; then
47977 ac_header_preproc=yes
47979 echo "$as_me: failed program was:" >&5
47980 sed 's/^/| /' conftest.$ac_ext >&5
47982 ac_header_preproc=no
47985 rm -f conftest.err conftest.$ac_ext
47986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47987 echo "${ECHO_T}$ac_header_preproc" >&6; }
47989 # So? What about this header?
47990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47992 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
47993 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47994 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
47995 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
47996 ac_header_preproc=yes
47999 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
48000 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
48001 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
48002 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
48003 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
48004 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
48005 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
48006 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
48007 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
48008 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
48009 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
48010 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
48012 ## ------------------------------------ ##
48013 ## Report this to bug-coreutils@gnu.org ##
48014 ## ------------------------------------ ##
48016 ) | sed "s/^/$as_me: WARNING: /" >&2
48019 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
48020 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
48021 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
48022 echo $ECHO_N "(cached) $ECHO_C" >&6
48024 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
48026 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
48027 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
48030 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
48033 cat >>confdefs.h <<\_ACEOF
48038 cat >>confdefs.h <<\_ACEOF
48047 if test $ac_have_func = no; then
48048 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48049 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
48050 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
48051 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48052 echo $ECHO_N "(cached) $ECHO_C" >&6
48054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
48055 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
48057 # Is the header compilable?
48058 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
48059 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
48060 cat >conftest.$ac_ext <<_ACEOF
48063 cat confdefs.h >>conftest.$ac_ext
48064 cat >>conftest.$ac_ext <<_ACEOF
48065 /* end confdefs.h. */
48066 $ac_includes_default
48067 #include <sys/cpustats.h>
48069 rm -f conftest.$ac_objext
48070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48071 (eval $ac_compile) 2>conftest.er1
48073 grep -v '^ *+' conftest.er1 >conftest.err
48075 cat conftest.err >&5
48076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48077 (exit $ac_status); } &&
48078 { ac_try='test -z "$ac_c_werror_flag"
48079 || test ! -s conftest.err'
48080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48081 (eval $ac_try) 2>&5
48083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084 (exit $ac_status); }; } &&
48085 { ac_try='test -s conftest.$ac_objext'
48086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48087 (eval $ac_try) 2>&5
48089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48090 (exit $ac_status); }; }; then
48091 ac_header_compiler=yes
48093 echo "$as_me: failed program was:" >&5
48094 sed 's/^/| /' conftest.$ac_ext >&5
48096 ac_header_compiler=no
48099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48101 echo "${ECHO_T}$ac_header_compiler" >&6; }
48103 # Is the header present?
48104 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
48105 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
48106 cat >conftest.$ac_ext <<_ACEOF
48109 cat confdefs.h >>conftest.$ac_ext
48110 cat >>conftest.$ac_ext <<_ACEOF
48111 /* end confdefs.h. */
48112 #include <sys/cpustats.h>
48114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48117 grep -v '^ *+' conftest.er1 >conftest.err
48119 cat conftest.err >&5
48120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48121 (exit $ac_status); } >/dev/null; then
48122 if test -s conftest.err; then
48123 ac_cpp_err=$ac_c_preproc_warn_flag
48124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48131 if test -z "$ac_cpp_err"; then
48132 ac_header_preproc=yes
48134 echo "$as_me: failed program was:" >&5
48135 sed 's/^/| /' conftest.$ac_ext >&5
48137 ac_header_preproc=no
48140 rm -f conftest.err conftest.$ac_ext
48141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48142 echo "${ECHO_T}$ac_header_preproc" >&6; }
48144 # So? What about this header?
48145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48147 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
48148 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48149 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
48150 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
48151 ac_header_preproc=yes
48154 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
48155 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
48156 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
48157 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
48158 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
48159 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
48160 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
48161 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
48162 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
48163 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
48164 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
48165 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
48167 ## ------------------------------------ ##
48168 ## Report this to bug-coreutils@gnu.org ##
48169 ## ------------------------------------ ##
48171 ) | sed "s/^/$as_me: WARNING: /" >&2
48174 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
48175 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
48176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
48177 echo $ECHO_N "(cached) $ECHO_C" >&6
48179 ac_cv_header_sys_cpustats_h=$ac_header_preproc
48181 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
48182 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
48185 if test $ac_cv_header_sys_cpustats_h = yes; then
48186 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
48195 if test $ac_have_func = no; then
48197 for ac_header in mach/mach.h
48199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48204 echo $ECHO_N "(cached) $ECHO_C" >&6
48206 ac_res=`eval echo '${'$as_ac_Header'}'`
48207 { echo "$as_me:$LINENO: result: $ac_res" >&5
48208 echo "${ECHO_T}$ac_res" >&6; }
48210 # Is the header compilable?
48211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48213 cat >conftest.$ac_ext <<_ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h. */
48219 $ac_includes_default
48220 #include <$ac_header>
48222 rm -f conftest.$ac_objext
48223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48224 (eval $ac_compile) 2>conftest.er1
48226 grep -v '^ *+' conftest.er1 >conftest.err
48228 cat conftest.err >&5
48229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48230 (exit $ac_status); } &&
48231 { ac_try='test -z "$ac_c_werror_flag"
48232 || test ! -s conftest.err'
48233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48234 (eval $ac_try) 2>&5
48236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237 (exit $ac_status); }; } &&
48238 { ac_try='test -s conftest.$ac_objext'
48239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48240 (eval $ac_try) 2>&5
48242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48243 (exit $ac_status); }; }; then
48244 ac_header_compiler=yes
48246 echo "$as_me: failed program was:" >&5
48247 sed 's/^/| /' conftest.$ac_ext >&5
48249 ac_header_compiler=no
48252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48254 echo "${ECHO_T}$ac_header_compiler" >&6; }
48256 # Is the header present?
48257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48259 cat >conftest.$ac_ext <<_ACEOF
48262 cat confdefs.h >>conftest.$ac_ext
48263 cat >>conftest.$ac_ext <<_ACEOF
48264 /* end confdefs.h. */
48265 #include <$ac_header>
48267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48270 grep -v '^ *+' conftest.er1 >conftest.err
48272 cat conftest.err >&5
48273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274 (exit $ac_status); } >/dev/null; then
48275 if test -s conftest.err; then
48276 ac_cpp_err=$ac_c_preproc_warn_flag
48277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48284 if test -z "$ac_cpp_err"; then
48285 ac_header_preproc=yes
48287 echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48290 ac_header_preproc=no
48293 rm -f conftest.err conftest.$ac_ext
48294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48295 echo "${ECHO_T}$ac_header_preproc" >&6; }
48297 # So? What about this header?
48298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48304 ac_header_preproc=yes
48307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48320 ## ------------------------------------ ##
48321 ## Report this to bug-coreutils@gnu.org ##
48322 ## ------------------------------------ ##
48324 ) | sed "s/^/$as_me: WARNING: /" >&2
48327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48330 echo $ECHO_N "(cached) $ECHO_C" >&6
48332 eval "$as_ac_Header=\$ac_header_preproc"
48334 ac_res=`eval echo '${'$as_ac_Header'}'`
48335 { echo "$as_me:$LINENO: result: $ac_res" >&5
48336 echo "${ECHO_T}$ac_res" >&6; }
48339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48340 cat >>confdefs.h <<_ACEOF
48341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48351 for ac_header in nlist.h
48353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48358 echo $ECHO_N "(cached) $ECHO_C" >&6
48360 ac_res=`eval echo '${'$as_ac_Header'}'`
48361 { echo "$as_me:$LINENO: result: $ac_res" >&5
48362 echo "${ECHO_T}$ac_res" >&6; }
48364 # Is the header compilable?
48365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48367 cat >conftest.$ac_ext <<_ACEOF
48370 cat confdefs.h >>conftest.$ac_ext
48371 cat >>conftest.$ac_ext <<_ACEOF
48372 /* end confdefs.h. */
48373 $ac_includes_default
48374 #include <$ac_header>
48376 rm -f conftest.$ac_objext
48377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48378 (eval $ac_compile) 2>conftest.er1
48380 grep -v '^ *+' conftest.er1 >conftest.err
48382 cat conftest.err >&5
48383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384 (exit $ac_status); } &&
48385 { ac_try='test -z "$ac_c_werror_flag"
48386 || test ! -s conftest.err'
48387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48388 (eval $ac_try) 2>&5
48390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48391 (exit $ac_status); }; } &&
48392 { ac_try='test -s conftest.$ac_objext'
48393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48394 (eval $ac_try) 2>&5
48396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48397 (exit $ac_status); }; }; then
48398 ac_header_compiler=yes
48400 echo "$as_me: failed program was:" >&5
48401 sed 's/^/| /' conftest.$ac_ext >&5
48403 ac_header_compiler=no
48406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48408 echo "${ECHO_T}$ac_header_compiler" >&6; }
48410 # Is the header present?
48411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48413 cat >conftest.$ac_ext <<_ACEOF
48416 cat confdefs.h >>conftest.$ac_ext
48417 cat >>conftest.$ac_ext <<_ACEOF
48418 /* end confdefs.h. */
48419 #include <$ac_header>
48421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48424 grep -v '^ *+' conftest.er1 >conftest.err
48426 cat conftest.err >&5
48427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428 (exit $ac_status); } >/dev/null; then
48429 if test -s conftest.err; then
48430 ac_cpp_err=$ac_c_preproc_warn_flag
48431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48438 if test -z "$ac_cpp_err"; then
48439 ac_header_preproc=yes
48441 echo "$as_me: failed program was:" >&5
48442 sed 's/^/| /' conftest.$ac_ext >&5
48444 ac_header_preproc=no
48447 rm -f conftest.err conftest.$ac_ext
48448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48449 echo "${ECHO_T}$ac_header_preproc" >&6; }
48451 # So? What about this header?
48452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48458 ac_header_preproc=yes
48461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48474 ## ------------------------------------ ##
48475 ## Report this to bug-coreutils@gnu.org ##
48476 ## ------------------------------------ ##
48478 ) | sed "s/^/$as_me: WARNING: /" >&2
48481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48484 echo $ECHO_N "(cached) $ECHO_C" >&6
48486 eval "$as_ac_Header=\$ac_header_preproc"
48488 ac_res=`eval echo '${'$as_ac_Header'}'`
48489 { echo "$as_me:$LINENO: result: $ac_res" >&5
48490 echo "${ECHO_T}$ac_res" >&6; }
48493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48494 cat >>confdefs.h <<_ACEOF
48495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48497 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
48498 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
48499 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
48500 echo $ECHO_N "(cached) $ECHO_C" >&6
48502 cat >conftest.$ac_ext <<_ACEOF
48505 cat confdefs.h >>conftest.$ac_ext
48506 cat >>conftest.$ac_ext <<_ACEOF
48507 /* end confdefs.h. */
48513 static struct nlist ac_aggr;
48514 if (ac_aggr.n_un.n_name)
48520 rm -f conftest.$ac_objext
48521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48522 (eval $ac_compile) 2>conftest.er1
48524 grep -v '^ *+' conftest.er1 >conftest.err
48526 cat conftest.err >&5
48527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48528 (exit $ac_status); } &&
48529 { ac_try='test -z "$ac_c_werror_flag"
48530 || test ! -s conftest.err'
48531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48532 (eval $ac_try) 2>&5
48534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48535 (exit $ac_status); }; } &&
48536 { ac_try='test -s conftest.$ac_objext'
48537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48538 (eval $ac_try) 2>&5
48540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48541 (exit $ac_status); }; }; then
48542 ac_cv_member_struct_nlist_n_un_n_name=yes
48544 echo "$as_me: failed program was:" >&5
48545 sed 's/^/| /' conftest.$ac_ext >&5
48547 cat >conftest.$ac_ext <<_ACEOF
48550 cat confdefs.h >>conftest.$ac_ext
48551 cat >>conftest.$ac_ext <<_ACEOF
48552 /* end confdefs.h. */
48558 static struct nlist ac_aggr;
48559 if (sizeof ac_aggr.n_un.n_name)
48565 rm -f conftest.$ac_objext
48566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48567 (eval $ac_compile) 2>conftest.er1
48569 grep -v '^ *+' conftest.er1 >conftest.err
48571 cat conftest.err >&5
48572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48573 (exit $ac_status); } &&
48574 { ac_try='test -z "$ac_c_werror_flag"
48575 || test ! -s conftest.err'
48576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48577 (eval $ac_try) 2>&5
48579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48580 (exit $ac_status); }; } &&
48581 { ac_try='test -s conftest.$ac_objext'
48582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48583 (eval $ac_try) 2>&5
48585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48586 (exit $ac_status); }; }; then
48587 ac_cv_member_struct_nlist_n_un_n_name=yes
48589 echo "$as_me: failed program was:" >&5
48590 sed 's/^/| /' conftest.$ac_ext >&5
48592 ac_cv_member_struct_nlist_n_un_n_name=no
48595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
48601 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
48602 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
48604 cat >>confdefs.h <<_ACEOF
48605 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
48609 cat >>confdefs.h <<\_ACEOF
48610 #define NLIST_NAME_UNION 1
48624 # Some definitions of getloadavg require that the program be installed setgid.
48625 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
48626 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
48627 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
48628 echo $ECHO_N "(cached) $ECHO_C" >&6
48630 cat >conftest.$ac_ext <<_ACEOF
48633 cat confdefs.h >>conftest.$ac_ext
48634 cat >>conftest.$ac_ext <<_ACEOF
48635 /* end confdefs.h. */
48636 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
48637 #ifdef LDAV_PRIVILEGED
48638 Yowza Am I SETGID yet
48641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48642 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
48643 ac_cv_func_getloadavg_setgid=yes
48645 ac_cv_func_getloadavg_setgid=no
48650 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
48651 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
48652 if test $ac_cv_func_getloadavg_setgid = yes; then
48655 cat >>confdefs.h <<\_ACEOF
48656 #define GETLOADAVG_PRIVILEGED 1
48663 if test $ac_cv_func_getloadavg_setgid = yes; then
48664 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
48665 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
48666 if test "${ac_cv_group_kmem+set}" = set; then
48667 echo $ECHO_N "(cached) $ECHO_C" >&6
48669 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
48670 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
48671 # If we got an error (system does not support symlinks), try without -L.
48672 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
48673 ac_cv_group_kmem=`echo $ac_ls_output \
48674 | sed -ne 's/[ ][ ]*/ /g;
48675 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
48679 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
48680 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
48681 KMEM_GROUP=$ac_cv_group_kmem
48683 if test "x$ac_save_LIBS" = x; then
48684 GETLOADAVG_LIBS=$LIBS
48686 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
48695 # raise is used by at least sort and ls.
48697 for ac_func in raise
48699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48703 echo $ECHO_N "(cached) $ECHO_C" >&6
48705 cat >conftest.$ac_ext <<_ACEOF
48708 cat confdefs.h >>conftest.$ac_ext
48709 cat >>conftest.$ac_ext <<_ACEOF
48710 /* end confdefs.h. */
48711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48713 #define $ac_func innocuous_$ac_func
48715 /* System header to define __stub macros and hopefully few prototypes,
48716 which can conflict with char $ac_func (); below.
48717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48718 <limits.h> exists even on freestanding compilers. */
48721 # include <limits.h>
48723 # include <assert.h>
48728 /* Override any GCC internal prototype to avoid an error.
48729 Use char because int might match the return type of a GCC
48730 builtin and then its argument prototype would still apply. */
48735 /* The GNU C library defines this for functions which it implements
48736 to always fail with ENOSYS. Some functions are actually named
48737 something starting with __ and the normal name is an alias. */
48738 #if defined __stub_$ac_func || defined __stub___$ac_func
48745 return $ac_func ();
48750 rm -f conftest.$ac_objext conftest$ac_exeext
48751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48752 (eval $ac_link) 2>conftest.er1
48754 grep -v '^ *+' conftest.er1 >conftest.err
48756 cat conftest.err >&5
48757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758 (exit $ac_status); } &&
48759 { ac_try='test -z "$ac_c_werror_flag"
48760 || test ! -s conftest.err'
48761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48762 (eval $ac_try) 2>&5
48764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48765 (exit $ac_status); }; } &&
48766 { ac_try='test -s conftest$ac_exeext'
48767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48768 (eval $ac_try) 2>&5
48770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48771 (exit $ac_status); }; }; then
48772 eval "$as_ac_var=yes"
48774 echo "$as_me: failed program was:" >&5
48775 sed 's/^/| /' conftest.$ac_ext >&5
48777 eval "$as_ac_var=no"
48780 rm -f conftest.err conftest.$ac_objext \
48781 conftest$ac_exeext conftest.$ac_ext
48783 ac_res=`eval echo '${'$as_ac_var'}'`
48784 { echo "$as_me:$LINENO: result: $ac_res" >&5
48785 echo "${ECHO_T}$ac_res" >&6; }
48786 if test `eval echo '${'$as_ac_var'}'` = yes; then
48787 cat >>confdefs.h <<_ACEOF
48788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48792 case " $LIBOBJS " in
48793 *" $ac_func.$ac_objext "* ) ;;
48794 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
48803 # By default, argmatch should fail calling usage (1).
48805 cat >>confdefs.h <<\_ACEOF
48806 #define ARGMATCH_DIE usage (1)
48810 cat >>confdefs.h <<\_ACEOF
48811 #define ARGMATCH_DIE_DECL extern void usage ()
48815 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
48816 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
48817 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
48818 echo $ECHO_N "(cached) $ECHO_C" >&6
48820 ac_cv_func_setvbuf_reversed=no
48821 cat >conftest.$ac_ext <<_ACEOF
48824 cat confdefs.h >>conftest.$ac_ext
48825 cat >>conftest.$ac_ext <<_ACEOF
48826 /* end confdefs.h. */
48829 int (setvbuf) (FILE *, int, char *, size_t);
48834 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
48839 rm -f conftest.$ac_objext conftest$ac_exeext
48840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48841 (eval $ac_link) 2>conftest.er1
48843 grep -v '^ *+' conftest.er1 >conftest.err
48845 cat conftest.err >&5
48846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847 (exit $ac_status); } &&
48848 { ac_try='test -z "$ac_c_werror_flag"
48849 || test ! -s conftest.err'
48850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48851 (eval $ac_try) 2>&5
48853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854 (exit $ac_status); }; } &&
48855 { ac_try='test -s conftest$ac_exeext'
48856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48857 (eval $ac_try) 2>&5
48859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48860 (exit $ac_status); }; }; then
48861 cat >conftest.$ac_ext <<_ACEOF
48864 cat confdefs.h >>conftest.$ac_ext
48865 cat >>conftest.$ac_ext <<_ACEOF
48866 /* end confdefs.h. */
48869 int (setvbuf) (FILE *, int, char *, size_t);
48874 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
48879 rm -f conftest.$ac_objext conftest$ac_exeext
48880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48881 (eval $ac_link) 2>conftest.er1
48883 grep -v '^ *+' conftest.er1 >conftest.err
48885 cat conftest.err >&5
48886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887 (exit $ac_status); } &&
48888 { ac_try='test -z "$ac_c_werror_flag"
48889 || test ! -s conftest.err'
48890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48891 (eval $ac_try) 2>&5
48893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894 (exit $ac_status); }; } &&
48895 { ac_try='test -s conftest$ac_exeext'
48896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897 (eval $ac_try) 2>&5
48899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900 (exit $ac_status); }; }; then
48901 # It compiles and links either way, so it must not be declared
48902 # with a prototype and most likely this is a K&R C compiler.
48904 if test "$cross_compiling" = yes; then
48905 : # Assume setvbuf is not reversed when cross-compiling.
48907 cat >conftest.$ac_ext <<_ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h. */
48913 $ac_includes_default
48917 /* This call has the arguments reversed.
48918 A reversed system may check and see that the address of buf
48919 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
48921 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
48924 return 0; /* Non-reversed systems SEGV here. */
48929 rm -f conftest$ac_exeext
48930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48931 (eval $ac_link) 2>&5
48933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48936 (eval $ac_try) 2>&5
48938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48939 (exit $ac_status); }; }; then
48940 ac_cv_func_setvbuf_reversed=yes
48942 echo "$as_me: program exited with status $ac_status" >&5
48943 echo "$as_me: failed program was:" >&5
48944 sed 's/^/| /' conftest.$ac_ext >&5
48947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48951 ac_cv_func_setvbuf_reversed=yes
48953 echo "$as_me: failed program was:" >&5
48954 sed 's/^/| /' conftest.$ac_ext >&5
48959 rm -f conftest.err conftest.$ac_objext \
48960 conftest$ac_exeext conftest.$ac_ext
48962 echo "$as_me: failed program was:" >&5
48963 sed 's/^/| /' conftest.$ac_ext >&5
48968 rm -f conftest.err conftest.$ac_objext \
48969 conftest$ac_exeext conftest.$ac_ext
48971 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
48972 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
48973 if test $ac_cv_func_setvbuf_reversed = yes; then
48975 cat >>confdefs.h <<\_ACEOF
48976 #define SETVBUF_REVERSED 1
48982 # used by sleep and shred
48993 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
48994 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
48995 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
48996 echo $ECHO_N "(cached) $ECHO_C" >&6
48998 if test "$cross_compiling" = yes; then
48999 jm_cv_func_gettimeofday_clobber=yes
49001 cat >conftest.$ac_ext <<_ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h. */
49009 #include <string.h>
49011 #if TIME_WITH_SYS_TIME
49012 # include <sys/time.h>
49015 # if HAVE_SYS_TIME_H
49016 # include <sys/time.h>
49022 #include <stdlib.h>
49029 struct tm saved_lt;
49031 lt = localtime (&t);
49033 gettimeofday (&tv, NULL);
49034 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
49041 rm -f conftest$ac_exeext
49042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49043 (eval $ac_link) 2>&5
49045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49048 (eval $ac_try) 2>&5
49050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49051 (exit $ac_status); }; }; then
49052 jm_cv_func_gettimeofday_clobber=no
49054 echo "$as_me: program exited with status $ac_status" >&5
49055 echo "$as_me: failed program was:" >&5
49056 sed 's/^/| /' conftest.$ac_ext >&5
49058 ( exit $ac_status )
49059 jm_cv_func_gettimeofday_clobber=yes
49061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49067 { echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
49068 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6; }
49069 if test $jm_cv_func_gettimeofday_clobber = yes; then
49071 case " $LIBOBJS " in
49072 *" gettimeofday.$ac_objext "* ) ;;
49073 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
49078 cat >>confdefs.h <<\_ACEOF
49079 #define gmtime rpl_gmtime
49083 cat >>confdefs.h <<\_ACEOF
49084 #define localtime rpl_localtime
49090 cat >>confdefs.h <<\_ACEOF
49091 #define gettimeofday rpl_gettimeofday
49184 { echo "$as_me:$LINENO: checking for working strtod" >&5
49185 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
49186 if test "${ac_cv_func_strtod+set}" = set; then
49187 echo $ECHO_N "(cached) $ECHO_C" >&6
49189 if test "$cross_compiling" = yes; then
49190 ac_cv_func_strtod=no
49192 cat >conftest.$ac_ext <<_ACEOF
49195 cat confdefs.h >>conftest.$ac_ext
49196 cat >>conftest.$ac_ext <<_ACEOF
49197 /* end confdefs.h. */
49199 $ac_includes_default
49207 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
49208 char *string = " +69";
49211 value = strtod (string, &term);
49212 if (value != 69 || term != (string + 4))
49217 /* Under Solaris 2.4, strtod returns the wrong value for the
49218 terminating character under some conditions. */
49219 char *string = "NaN";
49221 strtod (string, &term);
49222 if (term != string && *(term - 1) == 0)
49229 rm -f conftest$ac_exeext
49230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49231 (eval $ac_link) 2>&5
49233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49236 (eval $ac_try) 2>&5
49238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49239 (exit $ac_status); }; }; then
49240 ac_cv_func_strtod=yes
49242 echo "$as_me: program exited with status $ac_status" >&5
49243 echo "$as_me: failed program was:" >&5
49244 sed 's/^/| /' conftest.$ac_ext >&5
49246 ( exit $ac_status )
49247 ac_cv_func_strtod=no
49249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49254 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
49255 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
49256 if test $ac_cv_func_strtod = no; then
49257 case " $LIBOBJS " in
49258 *" strtod.$ac_objext "* ) ;;
49259 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
49263 { echo "$as_me:$LINENO: checking for pow" >&5
49264 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
49265 if test "${ac_cv_func_pow+set}" = set; then
49266 echo $ECHO_N "(cached) $ECHO_C" >&6
49268 cat >conftest.$ac_ext <<_ACEOF
49271 cat confdefs.h >>conftest.$ac_ext
49272 cat >>conftest.$ac_ext <<_ACEOF
49273 /* end confdefs.h. */
49274 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
49275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49276 #define pow innocuous_pow
49278 /* System header to define __stub macros and hopefully few prototypes,
49279 which can conflict with char pow (); below.
49280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49281 <limits.h> exists even on freestanding compilers. */
49284 # include <limits.h>
49286 # include <assert.h>
49291 /* Override any GCC internal prototype to avoid an error.
49292 Use char because int might match the return type of a GCC
49293 builtin and then its argument prototype would still apply. */
49298 /* The GNU C library defines this for functions which it implements
49299 to always fail with ENOSYS. Some functions are actually named
49300 something starting with __ and the normal name is an alias. */
49301 #if defined __stub_pow || defined __stub___pow
49313 rm -f conftest.$ac_objext conftest$ac_exeext
49314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49315 (eval $ac_link) 2>conftest.er1
49317 grep -v '^ *+' conftest.er1 >conftest.err
49319 cat conftest.err >&5
49320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49321 (exit $ac_status); } &&
49322 { ac_try='test -z "$ac_c_werror_flag"
49323 || test ! -s conftest.err'
49324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49325 (eval $ac_try) 2>&5
49327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49328 (exit $ac_status); }; } &&
49329 { ac_try='test -s conftest$ac_exeext'
49330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49331 (eval $ac_try) 2>&5
49333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49334 (exit $ac_status); }; }; then
49337 echo "$as_me: failed program was:" >&5
49338 sed 's/^/| /' conftest.$ac_ext >&5
49343 rm -f conftest.err conftest.$ac_objext \
49344 conftest$ac_exeext conftest.$ac_ext
49346 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
49347 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
49349 if test $ac_cv_func_pow = no; then
49350 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
49351 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
49352 if test "${ac_cv_lib_m_pow+set}" = set; then
49353 echo $ECHO_N "(cached) $ECHO_C" >&6
49355 ac_check_lib_save_LIBS=$LIBS
49357 cat >conftest.$ac_ext <<_ACEOF
49360 cat confdefs.h >>conftest.$ac_ext
49361 cat >>conftest.$ac_ext <<_ACEOF
49362 /* end confdefs.h. */
49364 /* Override any GCC internal prototype to avoid an error.
49365 Use char because int might match the return type of a GCC
49366 builtin and then its argument prototype would still apply. */
49379 rm -f conftest.$ac_objext conftest$ac_exeext
49380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49381 (eval $ac_link) 2>conftest.er1
49383 grep -v '^ *+' conftest.er1 >conftest.err
49385 cat conftest.err >&5
49386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387 (exit $ac_status); } &&
49388 { ac_try='test -z "$ac_c_werror_flag"
49389 || test ! -s conftest.err'
49390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391 (eval $ac_try) 2>&5
49393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394 (exit $ac_status); }; } &&
49395 { ac_try='test -s conftest$ac_exeext'
49396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49397 (eval $ac_try) 2>&5
49399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49400 (exit $ac_status); }; }; then
49401 ac_cv_lib_m_pow=yes
49403 echo "$as_me: failed program was:" >&5
49404 sed 's/^/| /' conftest.$ac_ext >&5
49409 rm -f conftest.err conftest.$ac_objext \
49410 conftest$ac_exeext conftest.$ac_ext
49411 LIBS=$ac_check_lib_save_LIBS
49413 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
49414 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
49415 if test $ac_cv_lib_m_pow = yes; then
49418 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
49419 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
49429 # for dd.c and shred.c
49430 coreutils_saved_libs=$LIBS
49431 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
49432 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
49433 if test "${ac_cv_search_fdatasync+set}" = set; then
49434 echo $ECHO_N "(cached) $ECHO_C" >&6
49436 ac_func_search_save_LIBS=$LIBS
49437 cat >conftest.$ac_ext <<_ACEOF
49440 cat confdefs.h >>conftest.$ac_ext
49441 cat >>conftest.$ac_ext <<_ACEOF
49442 /* end confdefs.h. */
49444 /* Override any GCC internal prototype to avoid an error.
49445 Use char because int might match the return type of a GCC
49446 builtin and then its argument prototype would still apply. */
49454 return fdatasync ();
49459 for ac_lib in '' rt posix4; do
49460 if test -z "$ac_lib"; then
49461 ac_res="none required"
49464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49466 rm -f conftest.$ac_objext conftest$ac_exeext
49467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49468 (eval $ac_link) 2>conftest.er1
49470 grep -v '^ *+' conftest.er1 >conftest.err
49472 cat conftest.err >&5
49473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49474 (exit $ac_status); } &&
49475 { ac_try='test -z "$ac_c_werror_flag"
49476 || test ! -s conftest.err'
49477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49478 (eval $ac_try) 2>&5
49480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49481 (exit $ac_status); }; } &&
49482 { ac_try='test -s conftest$ac_exeext'
49483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49484 (eval $ac_try) 2>&5
49486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49487 (exit $ac_status); }; }; then
49488 ac_cv_search_fdatasync=$ac_res
49490 echo "$as_me: failed program was:" >&5
49491 sed 's/^/| /' conftest.$ac_ext >&5
49496 rm -f conftest.err conftest.$ac_objext \
49498 if test "${ac_cv_search_fdatasync+set}" = set; then
49502 if test "${ac_cv_search_fdatasync+set}" = set; then
49505 ac_cv_search_fdatasync=no
49507 rm conftest.$ac_ext
49508 LIBS=$ac_func_search_save_LIBS
49510 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
49511 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
49512 ac_res=$ac_cv_search_fdatasync
49513 if test "$ac_res" != no; then
49514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49515 test "$ac_cv_search_fdatasync" = "none required" ||
49516 LIB_FDATASYNC=$ac_cv_search_fdatasync
49521 for ac_func in fdatasync
49523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49527 echo $ECHO_N "(cached) $ECHO_C" >&6
49529 cat >conftest.$ac_ext <<_ACEOF
49532 cat confdefs.h >>conftest.$ac_ext
49533 cat >>conftest.$ac_ext <<_ACEOF
49534 /* end confdefs.h. */
49535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49537 #define $ac_func innocuous_$ac_func
49539 /* System header to define __stub macros and hopefully few prototypes,
49540 which can conflict with char $ac_func (); below.
49541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49542 <limits.h> exists even on freestanding compilers. */
49545 # include <limits.h>
49547 # include <assert.h>
49552 /* Override any GCC internal prototype to avoid an error.
49553 Use char because int might match the return type of a GCC
49554 builtin and then its argument prototype would still apply. */
49559 /* The GNU C library defines this for functions which it implements
49560 to always fail with ENOSYS. Some functions are actually named
49561 something starting with __ and the normal name is an alias. */
49562 #if defined __stub_$ac_func || defined __stub___$ac_func
49569 return $ac_func ();
49574 rm -f conftest.$ac_objext conftest$ac_exeext
49575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49576 (eval $ac_link) 2>conftest.er1
49578 grep -v '^ *+' conftest.er1 >conftest.err
49580 cat conftest.err >&5
49581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49582 (exit $ac_status); } &&
49583 { ac_try='test -z "$ac_c_werror_flag"
49584 || test ! -s conftest.err'
49585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49586 (eval $ac_try) 2>&5
49588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49589 (exit $ac_status); }; } &&
49590 { ac_try='test -s conftest$ac_exeext'
49591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49592 (eval $ac_try) 2>&5
49594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49595 (exit $ac_status); }; }; then
49596 eval "$as_ac_var=yes"
49598 echo "$as_me: failed program was:" >&5
49599 sed 's/^/| /' conftest.$ac_ext >&5
49601 eval "$as_ac_var=no"
49604 rm -f conftest.err conftest.$ac_objext \
49605 conftest$ac_exeext conftest.$ac_ext
49607 ac_res=`eval echo '${'$as_ac_var'}'`
49608 { echo "$as_me:$LINENO: result: $ac_res" >&5
49609 echo "${ECHO_T}$ac_res" >&6; }
49610 if test `eval echo '${'$as_ac_var'}'` = yes; then
49611 cat >>confdefs.h <<_ACEOF
49612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49618 LIBS=$coreutils_saved_libs
49620 # See if linking `seq' requires -lm.
49621 # It does on nearly every system. The single exception (so far) is
49622 # BeOS which has all the math functions in the normal runtime library
49623 # and doesn't have a separate math library.
49627 static double x, y;
49631 cat >conftest.$ac_ext <<_ACEOF
49634 cat confdefs.h >>conftest.$ac_ext
49635 cat >>conftest.$ac_ext <<_ACEOF
49636 /* end confdefs.h. */
49646 rm -f conftest.$ac_objext conftest$ac_exeext
49647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49648 (eval $ac_link) 2>conftest.er1
49650 grep -v '^ *+' conftest.er1 >conftest.err
49652 cat conftest.err >&5
49653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654 (exit $ac_status); } &&
49655 { ac_try='test -z "$ac_c_werror_flag"
49656 || test ! -s conftest.err'
49657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49658 (eval $ac_try) 2>&5
49660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49661 (exit $ac_status); }; } &&
49662 { ac_try='test -s conftest$ac_exeext'
49663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49664 (eval $ac_try) 2>&5
49666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49667 (exit $ac_status); }; }; then
49670 echo "$as_me: failed program was:" >&5
49671 sed 's/^/| /' conftest.$ac_ext >&5
49673 ac_seq_save_LIBS="$LIBS"
49675 cat >conftest.$ac_ext <<_ACEOF
49678 cat confdefs.h >>conftest.$ac_ext
49679 cat >>conftest.$ac_ext <<_ACEOF
49680 /* end confdefs.h. */
49690 rm -f conftest.$ac_objext conftest$ac_exeext
49691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49692 (eval $ac_link) 2>conftest.er1
49694 grep -v '^ *+' conftest.er1 >conftest.err
49696 cat conftest.err >&5
49697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49698 (exit $ac_status); } &&
49699 { ac_try='test -z "$ac_c_werror_flag"
49700 || test ! -s conftest.err'
49701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49702 (eval $ac_try) 2>&5
49704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49705 (exit $ac_status); }; } &&
49706 { ac_try='test -s conftest$ac_exeext'
49707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49708 (eval $ac_try) 2>&5
49710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49711 (exit $ac_status); }; }; then
49714 echo "$as_me: failed program was:" >&5
49715 sed 's/^/| /' conftest.$ac_ext >&5
49720 rm -f conftest.err conftest.$ac_objext \
49721 conftest$ac_exeext conftest.$ac_ext
49722 LIBS="$ac_seq_save_LIBS"
49726 rm -f conftest.err conftest.$ac_objext \
49727 conftest$ac_exeext conftest.$ac_ext
49736 am_save_CPPFLAGS="$CPPFLAGS"
49738 for element in $INCICONV; do
49740 for x in $CPPFLAGS; do
49742 acl_save_prefix="$prefix"
49743 prefix="$acl_final_prefix"
49744 acl_save_exec_prefix="$exec_prefix"
49745 exec_prefix="$acl_final_exec_prefix"
49747 exec_prefix="$acl_save_exec_prefix"
49748 prefix="$acl_save_prefix"
49750 if test "X$x" = "X$element"; then
49755 if test -z "$haveit"; then
49756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
49761 { echo "$as_me:$LINENO: checking for iconv" >&5
49762 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
49763 if test "${am_cv_func_iconv+set}" = set; then
49764 echo $ECHO_N "(cached) $ECHO_C" >&6
49767 am_cv_func_iconv="no, consider installing GNU libiconv"
49769 cat >conftest.$ac_ext <<_ACEOF
49772 cat confdefs.h >>conftest.$ac_ext
49773 cat >>conftest.$ac_ext <<_ACEOF
49774 /* end confdefs.h. */
49775 #include <stdlib.h>
49780 iconv_t cd = iconv_open("","");
49781 iconv(cd,NULL,NULL,NULL,NULL);
49787 rm -f conftest.$ac_objext conftest$ac_exeext
49788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49789 (eval $ac_link) 2>conftest.er1
49791 grep -v '^ *+' conftest.er1 >conftest.err
49793 cat conftest.err >&5
49794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49795 (exit $ac_status); } &&
49796 { ac_try='test -z "$ac_c_werror_flag"
49797 || test ! -s conftest.err'
49798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49799 (eval $ac_try) 2>&5
49801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49802 (exit $ac_status); }; } &&
49803 { ac_try='test -s conftest$ac_exeext'
49804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49805 (eval $ac_try) 2>&5
49807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49808 (exit $ac_status); }; }; then
49809 am_cv_func_iconv=yes
49811 echo "$as_me: failed program was:" >&5
49812 sed 's/^/| /' conftest.$ac_ext >&5
49817 rm -f conftest.err conftest.$ac_objext \
49818 conftest$ac_exeext conftest.$ac_ext
49819 if test "$am_cv_func_iconv" != yes; then
49820 am_save_LIBS="$LIBS"
49821 LIBS="$LIBS $LIBICONV"
49822 cat >conftest.$ac_ext <<_ACEOF
49825 cat confdefs.h >>conftest.$ac_ext
49826 cat >>conftest.$ac_ext <<_ACEOF
49827 /* end confdefs.h. */
49828 #include <stdlib.h>
49833 iconv_t cd = iconv_open("","");
49834 iconv(cd,NULL,NULL,NULL,NULL);
49840 rm -f conftest.$ac_objext conftest$ac_exeext
49841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49842 (eval $ac_link) 2>conftest.er1
49844 grep -v '^ *+' conftest.er1 >conftest.err
49846 cat conftest.err >&5
49847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848 (exit $ac_status); } &&
49849 { ac_try='test -z "$ac_c_werror_flag"
49850 || test ! -s conftest.err'
49851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49852 (eval $ac_try) 2>&5
49854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49855 (exit $ac_status); }; } &&
49856 { ac_try='test -s conftest$ac_exeext'
49857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49858 (eval $ac_try) 2>&5
49860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49861 (exit $ac_status); }; }; then
49862 am_cv_lib_iconv=yes
49863 am_cv_func_iconv=yes
49865 echo "$as_me: failed program was:" >&5
49866 sed 's/^/| /' conftest.$ac_ext >&5
49871 rm -f conftest.err conftest.$ac_objext \
49872 conftest$ac_exeext conftest.$ac_ext
49873 LIBS="$am_save_LIBS"
49877 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
49878 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
49879 if test "$am_cv_func_iconv" = yes; then
49881 cat >>confdefs.h <<\_ACEOF
49882 #define HAVE_ICONV 1
49886 if test "$am_cv_lib_iconv" = yes; then
49887 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
49888 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
49889 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
49890 echo "${ECHO_T}$LIBICONV" >&6; }
49892 CPPFLAGS="$am_save_CPPFLAGS"
49899 if test "$am_cv_func_iconv" = yes; then
49900 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
49901 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
49902 if test "${am_cv_proto_iconv+set}" = set; then
49903 echo $ECHO_N "(cached) $ECHO_C" >&6
49906 cat >conftest.$ac_ext <<_ACEOF
49909 cat confdefs.h >>conftest.$ac_ext
49910 cat >>conftest.$ac_ext <<_ACEOF
49911 /* end confdefs.h. */
49913 #include <stdlib.h>
49919 #if defined(__STDC__) || defined(__cplusplus)
49920 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
49933 rm -f conftest.$ac_objext
49934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49935 (eval $ac_compile) 2>conftest.er1
49937 grep -v '^ *+' conftest.er1 >conftest.err
49939 cat conftest.err >&5
49940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49941 (exit $ac_status); } &&
49942 { ac_try='test -z "$ac_c_werror_flag"
49943 || test ! -s conftest.err'
49944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49945 (eval $ac_try) 2>&5
49947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948 (exit $ac_status); }; } &&
49949 { ac_try='test -s conftest.$ac_objext'
49950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49951 (eval $ac_try) 2>&5
49953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49954 (exit $ac_status); }; }; then
49955 am_cv_proto_iconv_arg1=""
49957 echo "$as_me: failed program was:" >&5
49958 sed 's/^/| /' conftest.$ac_ext >&5
49960 am_cv_proto_iconv_arg1="const"
49963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49964 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);"
49967 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
49968 { echo "$as_me:$LINENO: result: ${ac_t:-
49969 }$am_cv_proto_iconv" >&5
49970 echo "${ECHO_T}${ac_t:-
49971 }$am_cv_proto_iconv" >&6; }
49973 cat >>confdefs.h <<_ACEOF
49974 #define ICONV_CONST $am_cv_proto_iconv_arg1
49979 { echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
49980 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6; }
49981 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
49982 echo $ECHO_N "(cached) $ECHO_C" >&6
49985 if test "$cross_compiling" = yes; then
49986 jm_cv_func_unlink_busy_text=no
49989 cat >conftest.$ac_ext <<_ACEOF
49992 cat confdefs.h >>conftest.$ac_ext
49993 cat >>conftest.$ac_ext <<_ACEOF
49994 /* end confdefs.h. */
49995 $ac_includes_default
49997 main (int argc, char **argv)
49999 return !argc || unlink (argv0) != 0;
50002 rm -f conftest$ac_exeext
50003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50004 (eval $ac_link) 2>&5
50006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50009 (eval $ac_try) 2>&5
50011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50012 (exit $ac_status); }; }; then
50013 jm_cv_func_unlink_busy_text=yes
50015 echo "$as_me: program exited with status $ac_status" >&5
50016 echo "$as_me: failed program was:" >&5
50017 sed 's/^/| /' conftest.$ac_ext >&5
50019 ( exit $ac_status )
50020 jm_cv_func_unlink_busy_text=no
50022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50029 { echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
50030 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6; }
50032 if test $jm_cv_func_unlink_busy_text = no; then
50033 INSTALL=$ac_install_sh
50037 # These tests are for df.
50040 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
50041 DF_PROG='df$(EXEEXT)'
50046 # If any of these functions don't exist (e.g. DJGPP 2.03),
50047 # use the corresponding stub.
50048 { echo "$as_me:$LINENO: checking for fchdir" >&5
50049 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
50050 if test "${ac_cv_func_fchdir+set}" = set; then
50051 echo $ECHO_N "(cached) $ECHO_C" >&6
50053 cat >conftest.$ac_ext <<_ACEOF
50056 cat confdefs.h >>conftest.$ac_ext
50057 cat >>conftest.$ac_ext <<_ACEOF
50058 /* end confdefs.h. */
50059 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
50060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50061 #define fchdir innocuous_fchdir
50063 /* System header to define __stub macros and hopefully few prototypes,
50064 which can conflict with char fchdir (); below.
50065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50066 <limits.h> exists even on freestanding compilers. */
50069 # include <limits.h>
50071 # include <assert.h>
50076 /* Override any GCC internal prototype to avoid an error.
50077 Use char because int might match the return type of a GCC
50078 builtin and then its argument prototype would still apply. */
50083 /* The GNU C library defines this for functions which it implements
50084 to always fail with ENOSYS. Some functions are actually named
50085 something starting with __ and the normal name is an alias. */
50086 #if defined __stub_fchdir || defined __stub___fchdir
50098 rm -f conftest.$ac_objext conftest$ac_exeext
50099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50100 (eval $ac_link) 2>conftest.er1
50102 grep -v '^ *+' conftest.er1 >conftest.err
50104 cat conftest.err >&5
50105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50106 (exit $ac_status); } &&
50107 { ac_try='test -z "$ac_c_werror_flag"
50108 || test ! -s conftest.err'
50109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50110 (eval $ac_try) 2>&5
50112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50113 (exit $ac_status); }; } &&
50114 { ac_try='test -s conftest$ac_exeext'
50115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50116 (eval $ac_try) 2>&5
50118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50119 (exit $ac_status); }; }; then
50120 ac_cv_func_fchdir=yes
50122 echo "$as_me: failed program was:" >&5
50123 sed 's/^/| /' conftest.$ac_ext >&5
50125 ac_cv_func_fchdir=no
50128 rm -f conftest.err conftest.$ac_objext \
50129 conftest$ac_exeext conftest.$ac_ext
50131 { echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
50132 echo "${ECHO_T}$ac_cv_func_fchdir" >&6; }
50133 if test $ac_cv_func_fchdir = yes; then
50136 case " $LIBOBJS " in
50137 *" fchdir-stub.$ac_objext "* ) ;;
50138 *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
50156 { echo "$as_me:$LINENO: checking POSIX termios" >&5
50157 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
50158 if test "${ac_cv_sys_posix_termios+set}" = set; then
50159 echo $ECHO_N "(cached) $ECHO_C" >&6
50161 cat >conftest.$ac_ext <<_ACEOF
50164 cat confdefs.h >>conftest.$ac_ext
50165 cat >>conftest.$ac_ext <<_ACEOF
50166 /* end confdefs.h. */
50167 #include <sys/types.h>
50168 #include <unistd.h>
50169 #include <termios.h>
50174 /* SunOS 4.0.3 has termios.h but not the library calls. */
50180 rm -f conftest.$ac_objext conftest$ac_exeext
50181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50182 (eval $ac_link) 2>conftest.er1
50184 grep -v '^ *+' conftest.er1 >conftest.err
50186 cat conftest.err >&5
50187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50188 (exit $ac_status); } &&
50189 { ac_try='test -z "$ac_c_werror_flag"
50190 || test ! -s conftest.err'
50191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50192 (eval $ac_try) 2>&5
50194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50195 (exit $ac_status); }; } &&
50196 { ac_try='test -s conftest$ac_exeext'
50197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50198 (eval $ac_try) 2>&5
50200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50201 (exit $ac_status); }; }; then
50202 ac_cv_sys_posix_termios=yes
50204 echo "$as_me: failed program was:" >&5
50205 sed 's/^/| /' conftest.$ac_ext >&5
50207 ac_cv_sys_posix_termios=no
50210 rm -f conftest.err conftest.$ac_objext \
50211 conftest$ac_exeext conftest.$ac_ext
50213 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
50214 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
50217 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
50218 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
50219 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
50220 echo $ECHO_N "(cached) $ECHO_C" >&6
50222 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
50223 if test $ac_cv_sys_posix_termios = yes; then
50224 cat >conftest.$ac_ext <<_ACEOF
50227 cat confdefs.h >>conftest.$ac_ext
50228 cat >>conftest.$ac_ext <<_ACEOF
50229 /* end confdefs.h. */
50230 #include <termios.h>
50235 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50240 rm -f conftest.$ac_objext
50241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50242 (eval $ac_compile) 2>conftest.er1
50244 grep -v '^ *+' conftest.er1 >conftest.err
50246 cat conftest.err >&5
50247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50248 (exit $ac_status); } &&
50249 { ac_try='test -z "$ac_c_werror_flag"
50250 || test ! -s conftest.err'
50251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50252 (eval $ac_try) 2>&5
50254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50255 (exit $ac_status); }; } &&
50256 { ac_try='test -s conftest.$ac_objext'
50257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50258 (eval $ac_try) 2>&5
50260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50261 (exit $ac_status); }; }; then
50264 echo "$as_me: failed program was:" >&5
50265 sed 's/^/| /' conftest.$ac_ext >&5
50270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50272 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50273 cat >conftest.$ac_ext <<_ACEOF
50276 cat confdefs.h >>conftest.$ac_ext
50277 cat >>conftest.$ac_ext <<_ACEOF
50278 /* end confdefs.h. */
50279 #include <sys/ptem.h>
50288 rm -f conftest.$ac_objext
50289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50290 (eval $ac_compile) 2>conftest.er1
50292 grep -v '^ *+' conftest.er1 >conftest.err
50294 cat conftest.err >&5
50295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50296 (exit $ac_status); } &&
50297 { ac_try='test -z "$ac_c_werror_flag"
50298 || test ! -s conftest.err'
50299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50300 (eval $ac_try) 2>&5
50302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50303 (exit $ac_status); }; } &&
50304 { ac_try='test -s conftest.$ac_objext'
50305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50306 (eval $ac_try) 2>&5
50308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50309 (exit $ac_status); }; }; then
50312 echo "$as_me: failed program was:" >&5
50313 sed 's/^/| /' conftest.$ac_ext >&5
50315 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
50318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50321 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
50322 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
50323 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
50325 cat >>confdefs.h <<\_ACEOF
50326 #define WINSIZE_IN_PTEM 1
50331 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
50332 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
50333 if test "${utils_cv_localtime_cache+set}" = set; then
50334 echo $ECHO_N "(cached) $ECHO_C" >&6
50336 if test x$ac_cv_func_tzset = xyes; then
50337 if test "$cross_compiling" = yes; then
50338 # If we have tzset, assume the worst when cross-compiling.
50339 utils_cv_localtime_cache=yes
50341 cat >conftest.$ac_ext <<_ACEOF
50344 cat confdefs.h >>conftest.$ac_ext
50345 cat >>conftest.$ac_ext <<_ACEOF
50346 /* end confdefs.h. */
50349 # include <stdlib.h>
50351 extern char **environ;
50355 for (to = from = environ; (*to = *from); from++)
50356 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
50361 time_t now = time ((time_t *) 0);
50362 int hour_GMT0, hour_unset;
50363 if (putenv ("TZ=GMT0") != 0)
50365 hour_GMT0 = localtime (&now)->tm_hour;
50367 hour_unset = localtime (&now)->tm_hour;
50368 if (putenv ("TZ=PST8") != 0)
50370 if (localtime (&now)->tm_hour == hour_GMT0)
50373 if (localtime (&now)->tm_hour != hour_unset)
50378 rm -f conftest$ac_exeext
50379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50380 (eval $ac_link) 2>&5
50382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50385 (eval $ac_try) 2>&5
50387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50388 (exit $ac_status); }; }; then
50389 utils_cv_localtime_cache=no
50391 echo "$as_me: program exited with status $ac_status" >&5
50392 echo "$as_me: failed program was:" >&5
50393 sed 's/^/| /' conftest.$ac_ext >&5
50395 ( exit $ac_status )
50396 utils_cv_localtime_cache=yes
50398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50403 # If we lack tzset, report that localtime does not cache TZ,
50404 # since we can't invalidate the cache if we don't have tzset.
50405 utils_cv_localtime_cache=no
50408 { echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
50409 echo "${ECHO_T}$utils_cv_localtime_cache" >&6; }
50410 if test $utils_cv_localtime_cache = yes; then
50412 cat >>confdefs.h <<\_ACEOF
50413 #define LOCALTIME_CACHE 1
50418 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
50420 for ac_func in initgroups
50422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50426 echo $ECHO_N "(cached) $ECHO_C" >&6
50428 cat >conftest.$ac_ext <<_ACEOF
50431 cat confdefs.h >>conftest.$ac_ext
50432 cat >>conftest.$ac_ext <<_ACEOF
50433 /* end confdefs.h. */
50434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50436 #define $ac_func innocuous_$ac_func
50438 /* System header to define __stub macros and hopefully few prototypes,
50439 which can conflict with char $ac_func (); below.
50440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50441 <limits.h> exists even on freestanding compilers. */
50444 # include <limits.h>
50446 # include <assert.h>
50451 /* Override any GCC internal prototype to avoid an error.
50452 Use char because int might match the return type of a GCC
50453 builtin and then its argument prototype would still apply. */
50458 /* The GNU C library defines this for functions which it implements
50459 to always fail with ENOSYS. Some functions are actually named
50460 something starting with __ and the normal name is an alias. */
50461 #if defined __stub_$ac_func || defined __stub___$ac_func
50468 return $ac_func ();
50473 rm -f conftest.$ac_objext conftest$ac_exeext
50474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50475 (eval $ac_link) 2>conftest.er1
50477 grep -v '^ *+' conftest.er1 >conftest.err
50479 cat conftest.err >&5
50480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50481 (exit $ac_status); } &&
50482 { ac_try='test -z "$ac_c_werror_flag"
50483 || test ! -s conftest.err'
50484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50485 (eval $ac_try) 2>&5
50487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50488 (exit $ac_status); }; } &&
50489 { ac_try='test -s conftest$ac_exeext'
50490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50491 (eval $ac_try) 2>&5
50493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494 (exit $ac_status); }; }; then
50495 eval "$as_ac_var=yes"
50497 echo "$as_me: failed program was:" >&5
50498 sed 's/^/| /' conftest.$ac_ext >&5
50500 eval "$as_ac_var=no"
50503 rm -f conftest.err conftest.$ac_objext \
50504 conftest$ac_exeext conftest.$ac_ext
50506 ac_res=`eval echo '${'$as_ac_var'}'`
50507 { echo "$as_me:$LINENO: result: $ac_res" >&5
50508 echo "${ECHO_T}$ac_res" >&6; }
50509 if test `eval echo '${'$as_ac_var'}'` = yes; then
50510 cat >>confdefs.h <<_ACEOF
50511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50517 if test $ac_cv_func_initgroups = no; then
50519 { echo "$as_me:$LINENO: checking for initgroups in -los" >&5
50520 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6; }
50521 if test "${ac_cv_lib_os_initgroups+set}" = set; then
50522 echo $ECHO_N "(cached) $ECHO_C" >&6
50524 ac_check_lib_save_LIBS=$LIBS
50526 cat >conftest.$ac_ext <<_ACEOF
50529 cat confdefs.h >>conftest.$ac_ext
50530 cat >>conftest.$ac_ext <<_ACEOF
50531 /* end confdefs.h. */
50533 /* Override any GCC internal prototype to avoid an error.
50534 Use char because int might match the return type of a GCC
50535 builtin and then its argument prototype would still apply. */
50539 char initgroups ();
50543 return initgroups ();
50548 rm -f conftest.$ac_objext conftest$ac_exeext
50549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50550 (eval $ac_link) 2>conftest.er1
50552 grep -v '^ *+' conftest.er1 >conftest.err
50554 cat conftest.err >&5
50555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50556 (exit $ac_status); } &&
50557 { ac_try='test -z "$ac_c_werror_flag"
50558 || test ! -s conftest.err'
50559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50560 (eval $ac_try) 2>&5
50562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563 (exit $ac_status); }; } &&
50564 { ac_try='test -s conftest$ac_exeext'
50565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50566 (eval $ac_try) 2>&5
50568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50569 (exit $ac_status); }; }; then
50570 ac_cv_lib_os_initgroups=yes
50572 echo "$as_me: failed program was:" >&5
50573 sed 's/^/| /' conftest.$ac_ext >&5
50575 ac_cv_lib_os_initgroups=no
50578 rm -f conftest.err conftest.$ac_objext \
50579 conftest$ac_exeext conftest.$ac_ext
50580 LIBS=$ac_check_lib_save_LIBS
50582 { echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
50583 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6; }
50584 if test $ac_cv_lib_os_initgroups = yes; then
50585 cat >>confdefs.h <<_ACEOF
50586 #define HAVE_LIBOS 1
50596 for ac_func in syslog
50598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50602 echo $ECHO_N "(cached) $ECHO_C" >&6
50604 cat >conftest.$ac_ext <<_ACEOF
50607 cat confdefs.h >>conftest.$ac_ext
50608 cat >>conftest.$ac_ext <<_ACEOF
50609 /* end confdefs.h. */
50610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50612 #define $ac_func innocuous_$ac_func
50614 /* System header to define __stub macros and hopefully few prototypes,
50615 which can conflict with char $ac_func (); below.
50616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50617 <limits.h> exists even on freestanding compilers. */
50620 # include <limits.h>
50622 # include <assert.h>
50627 /* Override any GCC internal prototype to avoid an error.
50628 Use char because int might match the return type of a GCC
50629 builtin and then its argument prototype would still apply. */
50634 /* The GNU C library defines this for functions which it implements
50635 to always fail with ENOSYS. Some functions are actually named
50636 something starting with __ and the normal name is an alias. */
50637 #if defined __stub_$ac_func || defined __stub___$ac_func
50644 return $ac_func ();
50649 rm -f conftest.$ac_objext conftest$ac_exeext
50650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50651 (eval $ac_link) 2>conftest.er1
50653 grep -v '^ *+' conftest.er1 >conftest.err
50655 cat conftest.err >&5
50656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50657 (exit $ac_status); } &&
50658 { ac_try='test -z "$ac_c_werror_flag"
50659 || test ! -s conftest.err'
50660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50661 (eval $ac_try) 2>&5
50663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664 (exit $ac_status); }; } &&
50665 { ac_try='test -s conftest$ac_exeext'
50666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50667 (eval $ac_try) 2>&5
50669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50670 (exit $ac_status); }; }; then
50671 eval "$as_ac_var=yes"
50673 echo "$as_me: failed program was:" >&5
50674 sed 's/^/| /' conftest.$ac_ext >&5
50676 eval "$as_ac_var=no"
50679 rm -f conftest.err conftest.$ac_objext \
50680 conftest$ac_exeext conftest.$ac_ext
50682 ac_res=`eval echo '${'$as_ac_var'}'`
50683 { echo "$as_me:$LINENO: result: $ac_res" >&5
50684 echo "${ECHO_T}$ac_res" >&6; }
50685 if test `eval echo '${'$as_ac_var'}'` = yes; then
50686 cat >>confdefs.h <<_ACEOF
50687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50693 if test $ac_cv_func_syslog = no; then
50694 # syslog is not in the default libraries. See if it's in some other.
50695 for lib in bsd socket inet; do
50696 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
50697 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
50698 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
50699 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50700 echo $ECHO_N "(cached) $ECHO_C" >&6
50702 ac_check_lib_save_LIBS=$LIBS
50703 LIBS="-l$lib $LIBS"
50704 cat >conftest.$ac_ext <<_ACEOF
50707 cat confdefs.h >>conftest.$ac_ext
50708 cat >>conftest.$ac_ext <<_ACEOF
50709 /* end confdefs.h. */
50711 /* Override any GCC internal prototype to avoid an error.
50712 Use char because int might match the return type of a GCC
50713 builtin and then its argument prototype would still apply. */
50726 rm -f conftest.$ac_objext conftest$ac_exeext
50727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50728 (eval $ac_link) 2>conftest.er1
50730 grep -v '^ *+' conftest.er1 >conftest.err
50732 cat conftest.err >&5
50733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50734 (exit $ac_status); } &&
50735 { ac_try='test -z "$ac_c_werror_flag"
50736 || test ! -s conftest.err'
50737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50738 (eval $ac_try) 2>&5
50740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50741 (exit $ac_status); }; } &&
50742 { ac_try='test -s conftest$ac_exeext'
50743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50744 (eval $ac_try) 2>&5
50746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50747 (exit $ac_status); }; }; then
50748 eval "$as_ac_Lib=yes"
50750 echo "$as_me: failed program was:" >&5
50751 sed 's/^/| /' conftest.$ac_ext >&5
50753 eval "$as_ac_Lib=no"
50756 rm -f conftest.err conftest.$ac_objext \
50757 conftest$ac_exeext conftest.$ac_ext
50758 LIBS=$ac_check_lib_save_LIBS
50760 ac_res=`eval echo '${'$as_ac_Lib'}'`
50761 { echo "$as_me:$LINENO: result: $ac_res" >&5
50762 echo "${ECHO_T}$ac_res" >&6; }
50763 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
50765 cat >>confdefs.h <<\_ACEOF
50766 #define HAVE_SYSLOG 1
50769 LIBS="$LIBS -l$lib"; break
50775 { echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
50776 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6; }
50777 if test "${utils_cv_func_setpriority+set}" = set; then
50778 echo $ECHO_N "(cached) $ECHO_C" >&6
50780 cat >conftest.$ac_ext <<_ACEOF
50783 cat confdefs.h >>conftest.$ac_ext
50784 cat >>conftest.$ac_ext <<_ACEOF
50785 /* end confdefs.h. */
50786 #include <sys/time.h>
50787 #include <sys/resource.h>
50792 setpriority (0, 0, 0);
50797 rm -f conftest.$ac_objext conftest$ac_exeext
50798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50799 (eval $ac_link) 2>conftest.er1
50801 grep -v '^ *+' conftest.er1 >conftest.err
50803 cat conftest.err >&5
50804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50805 (exit $ac_status); } &&
50806 { ac_try='test -z "$ac_c_werror_flag"
50807 || test ! -s conftest.err'
50808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50809 (eval $ac_try) 2>&5
50811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50812 (exit $ac_status); }; } &&
50813 { ac_try='test -s conftest$ac_exeext'
50814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50815 (eval $ac_try) 2>&5
50817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818 (exit $ac_status); }; }; then
50819 utils_cv_func_setpriority=yes
50821 echo "$as_me: failed program was:" >&5
50822 sed 's/^/| /' conftest.$ac_ext >&5
50824 utils_cv_func_setpriority=no
50827 rm -f conftest.err conftest.$ac_objext \
50828 conftest$ac_exeext conftest.$ac_ext
50830 { echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
50831 echo "${ECHO_T}$utils_cv_func_setpriority" >&6; }
50832 if test $utils_cv_func_setpriority = no; then
50834 for ac_func in nice
50836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50840 echo $ECHO_N "(cached) $ECHO_C" >&6
50842 cat >conftest.$ac_ext <<_ACEOF
50845 cat confdefs.h >>conftest.$ac_ext
50846 cat >>conftest.$ac_ext <<_ACEOF
50847 /* end confdefs.h. */
50848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50850 #define $ac_func innocuous_$ac_func
50852 /* System header to define __stub macros and hopefully few prototypes,
50853 which can conflict with char $ac_func (); below.
50854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50855 <limits.h> exists even on freestanding compilers. */
50858 # include <limits.h>
50860 # include <assert.h>
50865 /* Override any GCC internal prototype to avoid an error.
50866 Use char because int might match the return type of a GCC
50867 builtin and then its argument prototype would still apply. */
50872 /* The GNU C library defines this for functions which it implements
50873 to always fail with ENOSYS. Some functions are actually named
50874 something starting with __ and the normal name is an alias. */
50875 #if defined __stub_$ac_func || defined __stub___$ac_func
50882 return $ac_func ();
50887 rm -f conftest.$ac_objext conftest$ac_exeext
50888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50889 (eval $ac_link) 2>conftest.er1
50891 grep -v '^ *+' conftest.er1 >conftest.err
50893 cat conftest.err >&5
50894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50895 (exit $ac_status); } &&
50896 { ac_try='test -z "$ac_c_werror_flag"
50897 || test ! -s conftest.err'
50898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50899 (eval $ac_try) 2>&5
50901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50902 (exit $ac_status); }; } &&
50903 { ac_try='test -s conftest$ac_exeext'
50904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50905 (eval $ac_try) 2>&5
50907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908 (exit $ac_status); }; }; then
50909 eval "$as_ac_var=yes"
50911 echo "$as_me: failed program was:" >&5
50912 sed 's/^/| /' conftest.$ac_ext >&5
50914 eval "$as_ac_var=no"
50917 rm -f conftest.err conftest.$ac_objext \
50918 conftest$ac_exeext conftest.$ac_ext
50920 ac_res=`eval echo '${'$as_ac_var'}'`
50921 { echo "$as_me:$LINENO: result: $ac_res" >&5
50922 echo "${ECHO_T}$ac_res" >&6; }
50923 if test `eval echo '${'$as_ac_var'}'` = yes; then
50924 cat >>confdefs.h <<_ACEOF
50925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50932 case $utils_cv_func_setpriority,$ac_cv_func_nice in
50934 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
50935 MAN="$MAN nice.1";;
50941 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
50942 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
50943 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
50944 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
50945 MAN="$MAN pinky.1 users.1 who.1"
50949 { echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
50950 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6; }
50951 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
50952 echo $ECHO_N "(cached) $ECHO_C" >&6
50954 cat >conftest.$ac_ext <<_ACEOF
50957 cat confdefs.h >>conftest.$ac_ext
50958 cat >>conftest.$ac_ext <<_ACEOF
50959 /* end confdefs.h. */
50960 #include <sys/types.h>
50965 struct utmp ut; ut.ut_host;
50970 rm -f conftest.$ac_objext conftest$ac_exeext
50971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50972 (eval $ac_link) 2>conftest.er1
50974 grep -v '^ *+' conftest.er1 >conftest.err
50976 cat conftest.err >&5
50977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50978 (exit $ac_status); } &&
50979 { ac_try='test -z "$ac_c_werror_flag"
50980 || test ! -s conftest.err'
50981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50982 (eval $ac_try) 2>&5
50984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50985 (exit $ac_status); }; } &&
50986 { ac_try='test -s conftest$ac_exeext'
50987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50988 (eval $ac_try) 2>&5
50990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50991 (exit $ac_status); }; }; then
50992 su_cv_func_ut_host_in_utmp=yes
50994 echo "$as_me: failed program was:" >&5
50995 sed 's/^/| /' conftest.$ac_ext >&5
50997 su_cv_func_ut_host_in_utmp=no
51000 rm -f conftest.err conftest.$ac_objext \
51001 conftest$ac_exeext conftest.$ac_ext
51004 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
51005 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6; }
51006 if test $su_cv_func_ut_host_in_utmp = yes; then
51009 cat >>confdefs.h <<\_ACEOF
51010 #define HAVE_UT_HOST 1
51015 if test -z "$have_ut_host"; then
51016 { echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
51017 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6; }
51018 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
51019 echo $ECHO_N "(cached) $ECHO_C" >&6
51021 cat >conftest.$ac_ext <<_ACEOF
51024 cat confdefs.h >>conftest.$ac_ext
51025 cat >>conftest.$ac_ext <<_ACEOF
51026 /* end confdefs.h. */
51027 #include <sys/types.h>
51032 struct utmpx ut; ut.ut_host;
51037 rm -f conftest.$ac_objext conftest$ac_exeext
51038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51039 (eval $ac_link) 2>conftest.er1
51041 grep -v '^ *+' conftest.er1 >conftest.err
51043 cat conftest.err >&5
51044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51045 (exit $ac_status); } &&
51046 { ac_try='test -z "$ac_c_werror_flag"
51047 || test ! -s conftest.err'
51048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51049 (eval $ac_try) 2>&5
51051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51052 (exit $ac_status); }; } &&
51053 { ac_try='test -s conftest$ac_exeext'
51054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51055 (eval $ac_try) 2>&5
51057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51058 (exit $ac_status); }; }; then
51059 su_cv_func_ut_host_in_utmpx=yes
51061 echo "$as_me: failed program was:" >&5
51062 sed 's/^/| /' conftest.$ac_ext >&5
51064 su_cv_func_ut_host_in_utmpx=no
51067 rm -f conftest.err conftest.$ac_objext \
51068 conftest$ac_exeext conftest.$ac_ext
51071 { echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
51072 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6; }
51073 if test $su_cv_func_ut_host_in_utmpx = yes; then
51075 cat >>confdefs.h <<\_ACEOF
51076 #define HAVE_UTMPX_H 1
51080 cat >>confdefs.h <<\_ACEOF
51081 #define HAVE_UT_HOST 1
51089 for ac_func in sysctl
51091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51095 echo $ECHO_N "(cached) $ECHO_C" >&6
51097 cat >conftest.$ac_ext <<_ACEOF
51100 cat confdefs.h >>conftest.$ac_ext
51101 cat >>conftest.$ac_ext <<_ACEOF
51102 /* end confdefs.h. */
51103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51105 #define $ac_func innocuous_$ac_func
51107 /* System header to define __stub macros and hopefully few prototypes,
51108 which can conflict with char $ac_func (); below.
51109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51110 <limits.h> exists even on freestanding compilers. */
51113 # include <limits.h>
51115 # include <assert.h>
51120 /* Override any GCC internal prototype to avoid an error.
51121 Use char because int might match the return type of a GCC
51122 builtin and then its argument prototype would still apply. */
51127 /* The GNU C library defines this for functions which it implements
51128 to always fail with ENOSYS. Some functions are actually named
51129 something starting with __ and the normal name is an alias. */
51130 #if defined __stub_$ac_func || defined __stub___$ac_func
51137 return $ac_func ();
51142 rm -f conftest.$ac_objext conftest$ac_exeext
51143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51144 (eval $ac_link) 2>conftest.er1
51146 grep -v '^ *+' conftest.er1 >conftest.err
51148 cat conftest.err >&5
51149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51150 (exit $ac_status); } &&
51151 { ac_try='test -z "$ac_c_werror_flag"
51152 || test ! -s conftest.err'
51153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51154 (eval $ac_try) 2>&5
51156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51157 (exit $ac_status); }; } &&
51158 { ac_try='test -s conftest$ac_exeext'
51159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51160 (eval $ac_try) 2>&5
51162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51163 (exit $ac_status); }; }; then
51164 eval "$as_ac_var=yes"
51166 echo "$as_me: failed program was:" >&5
51167 sed 's/^/| /' conftest.$ac_ext >&5
51169 eval "$as_ac_var=no"
51172 rm -f conftest.err conftest.$ac_objext \
51173 conftest$ac_exeext conftest.$ac_ext
51175 ac_res=`eval echo '${'$as_ac_var'}'`
51176 { echo "$as_me:$LINENO: result: $ac_res" >&5
51177 echo "${ECHO_T}$ac_res" >&6; }
51178 if test `eval echo '${'$as_ac_var'}'` = yes; then
51179 cat >>confdefs.h <<_ACEOF
51180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51194 for ac_header in sys/sysctl.h
51196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
51198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
51199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51200 echo $ECHO_N "(cached) $ECHO_C" >&6
51202 cat >conftest.$ac_ext <<_ACEOF
51205 cat confdefs.h >>conftest.$ac_ext
51206 cat >>conftest.$ac_ext <<_ACEOF
51207 /* end confdefs.h. */
51208 $ac_includes_default
51209 #if HAVE_SYS_PARAM_H
51210 #include <sys/param.h>
51213 #include <$ac_header>
51215 rm -f conftest.$ac_objext
51216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51217 (eval $ac_compile) 2>conftest.er1
51219 grep -v '^ *+' conftest.er1 >conftest.err
51221 cat conftest.err >&5
51222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51223 (exit $ac_status); } &&
51224 { ac_try='test -z "$ac_c_werror_flag"
51225 || test ! -s conftest.err'
51226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51227 (eval $ac_try) 2>&5
51229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51230 (exit $ac_status); }; } &&
51231 { ac_try='test -s conftest.$ac_objext'
51232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51233 (eval $ac_try) 2>&5
51235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51236 (exit $ac_status); }; }; then
51237 eval "$as_ac_Header=yes"
51239 echo "$as_me: failed program was:" >&5
51240 sed 's/^/| /' conftest.$ac_ext >&5
51242 eval "$as_ac_Header=no"
51245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51247 ac_res=`eval echo '${'$as_ac_Header'}'`
51248 { echo "$as_me:$LINENO: result: $ac_res" >&5
51249 echo "${ECHO_T}$ac_res" >&6; }
51250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51251 cat >>confdefs.h <<_ACEOF
51252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51259 { echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
51260 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6; }
51261 if test "${gnulib_cv_have_boot_time+set}" = set; then
51262 echo $ECHO_N "(cached) $ECHO_C" >&6
51265 cat >conftest.$ac_ext <<_ACEOF
51268 cat confdefs.h >>conftest.$ac_ext
51269 cat >>conftest.$ac_ext <<_ACEOF
51270 /* end confdefs.h. */
51271 $ac_includes_default
51272 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
51273 # if HAVE_SYS_PARAM_H
51274 # include <sys/param.h> /* needed for OpenBSD 3.0 */
51276 # include <sys/sysctl.h>
51278 #ifdef HAVE_UTMPX_H
51279 # include <utmpx.h>
51288 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
51289 /* your system *does* have the infrastructure to determine boot time */
51291 please_tell_us_how_to_determine_boot_time_on_your_system
51298 rm -f conftest.$ac_objext
51299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51300 (eval $ac_compile) 2>conftest.er1
51302 grep -v '^ *+' conftest.er1 >conftest.err
51304 cat conftest.err >&5
51305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51306 (exit $ac_status); } &&
51307 { ac_try='test -z "$ac_c_werror_flag"
51308 || test ! -s conftest.err'
51309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51310 (eval $ac_try) 2>&5
51312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51313 (exit $ac_status); }; } &&
51314 { ac_try='test -s conftest.$ac_objext'
51315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51316 (eval $ac_try) 2>&5
51318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51319 (exit $ac_status); }; }; then
51320 gnulib_cv_have_boot_time=yes
51322 echo "$as_me: failed program was:" >&5
51323 sed 's/^/| /' conftest.$ac_ext >&5
51325 gnulib_cv_have_boot_time=no
51328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51331 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
51332 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; }
51333 if test $gnulib_cv_have_boot_time = yes; then
51334 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
51335 MAN="$MAN uptime.1"
51340 { echo "$as_me:$LINENO: checking POSIX termios" >&5
51341 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
51342 if test "${ac_cv_sys_posix_termios+set}" = set; then
51343 echo $ECHO_N "(cached) $ECHO_C" >&6
51345 cat >conftest.$ac_ext <<_ACEOF
51348 cat confdefs.h >>conftest.$ac_ext
51349 cat >>conftest.$ac_ext <<_ACEOF
51350 /* end confdefs.h. */
51351 #include <sys/types.h>
51352 #include <unistd.h>
51353 #include <termios.h>
51358 /* SunOS 4.0.3 has termios.h but not the library calls. */
51364 rm -f conftest.$ac_objext conftest$ac_exeext
51365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51366 (eval $ac_link) 2>conftest.er1
51368 grep -v '^ *+' conftest.er1 >conftest.err
51370 cat conftest.err >&5
51371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372 (exit $ac_status); } &&
51373 { ac_try='test -z "$ac_c_werror_flag"
51374 || test ! -s conftest.err'
51375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51376 (eval $ac_try) 2>&5
51378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51379 (exit $ac_status); }; } &&
51380 { ac_try='test -s conftest$ac_exeext'
51381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51382 (eval $ac_try) 2>&5
51384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51385 (exit $ac_status); }; }; then
51386 ac_cv_sys_posix_termios=yes
51388 echo "$as_me: failed program was:" >&5
51389 sed 's/^/| /' conftest.$ac_ext >&5
51391 ac_cv_sys_posix_termios=no
51394 rm -f conftest.err conftest.$ac_objext \
51395 conftest$ac_exeext conftest.$ac_ext
51397 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
51398 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
51401 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51402 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
51403 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51404 echo $ECHO_N "(cached) $ECHO_C" >&6
51406 jm_cv_sys_tiocgwinsz_needs_termios_h=no
51408 if test $ac_cv_sys_posix_termios = yes; then
51409 cat >conftest.$ac_ext <<_ACEOF
51412 cat confdefs.h >>conftest.$ac_ext
51413 cat >>conftest.$ac_ext <<_ACEOF
51414 /* end confdefs.h. */
51415 #include <sys/types.h>
51416 # include <termios.h>
51422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51423 $EGREP "yes" >/dev/null 2>&1; then
51424 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51431 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51432 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51435 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
51436 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6; }
51437 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
51438 echo $ECHO_N "(cached) $ECHO_C" >&6
51440 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
51442 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
51443 cat >conftest.$ac_ext <<_ACEOF
51446 cat confdefs.h >>conftest.$ac_ext
51447 cat >>conftest.$ac_ext <<_ACEOF
51448 /* end confdefs.h. */
51449 #include <sys/types.h>
51450 # include <sys/ioctl.h>
51456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51457 $EGREP "yes" >/dev/null 2>&1; then
51458 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
51465 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
51466 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6; }
51467 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
51469 cat >>confdefs.h <<\_ACEOF
51470 #define GWINSZ_IN_SYS_IOCTL 1
51476 if test $ac_cv_sys_posix_termios = yes; then
51477 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
51479 { echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
51480 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6; }
51481 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
51482 echo $ECHO_N "(cached) $ECHO_C" >&6
51484 cat >conftest.$ac_ext <<_ACEOF
51487 cat confdefs.h >>conftest.$ac_ext
51488 cat >>conftest.$ac_ext <<_ACEOF
51489 /* end confdefs.h. */
51490 #include <termios.h>
51495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51496 $EGREP "yes" >/dev/null 2>&1; then
51497 su_cv_sys_termios_needs_xopen_source=no
51499 cat >conftest.$ac_ext <<_ACEOF
51502 cat confdefs.h >>conftest.$ac_ext
51503 cat >>conftest.$ac_ext <<_ACEOF
51504 /* end confdefs.h. */
51505 #define _XOPEN_SOURCE
51506 #include <termios.h>
51511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51512 $EGREP "yes" >/dev/null 2>&1; then
51513 su_cv_sys_termios_needs_xopen_source=yes
51515 su_cv_sys_termios_needs_xopen_source=no
51524 { echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
51525 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6; }
51526 test $su_cv_sys_termios_needs_xopen_source = yes &&
51528 cat >>confdefs.h <<\_ACEOF
51529 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
51533 { echo "$as_me:$LINENO: checking c_line in struct termios" >&5
51534 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6; }
51535 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
51536 echo $ECHO_N "(cached) $ECHO_C" >&6
51538 cat >conftest.$ac_ext <<_ACEOF
51541 cat confdefs.h >>conftest.$ac_ext
51542 cat >>conftest.$ac_ext <<_ACEOF
51543 /* end confdefs.h. */
51544 #if TERMIOS_NEEDS_XOPEN_SOURCE
51545 #define _XOPEN_SOURCE
51547 #include <sys/types.h>
51548 #include <termios.h>
51552 struct termios t; t.c_line;
51557 rm -f conftest.$ac_objext conftest$ac_exeext
51558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51559 (eval $ac_link) 2>conftest.er1
51561 grep -v '^ *+' conftest.er1 >conftest.err
51563 cat conftest.err >&5
51564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51565 (exit $ac_status); } &&
51566 { ac_try='test -z "$ac_c_werror_flag"
51567 || test ! -s conftest.err'
51568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51569 (eval $ac_try) 2>&5
51571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51572 (exit $ac_status); }; } &&
51573 { ac_try='test -s conftest$ac_exeext'
51574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51575 (eval $ac_try) 2>&5
51577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578 (exit $ac_status); }; }; then
51579 su_cv_sys_c_line_in_termios=yes
51581 echo "$as_me: failed program was:" >&5
51582 sed 's/^/| /' conftest.$ac_ext >&5
51584 su_cv_sys_c_line_in_termios=no
51587 rm -f conftest.err conftest.$ac_objext \
51588 conftest$ac_exeext conftest.$ac_ext
51591 { echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
51592 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6; }
51593 test $su_cv_sys_c_line_in_termios = yes \
51595 cat >>confdefs.h <<\_ACEOF
51596 #define HAVE_C_LINE 1
51601 # FIXME: note that this macro appears above, too.
51602 # I'm leaving it here for now. This whole thing needs to be modernized...
51604 { echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
51605 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6; }
51606 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
51607 echo $ECHO_N "(cached) $ECHO_C" >&6
51609 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
51610 if test $ac_cv_sys_posix_termios = yes; then
51611 cat >conftest.$ac_ext <<_ACEOF
51614 cat confdefs.h >>conftest.$ac_ext
51615 cat >>conftest.$ac_ext <<_ACEOF
51616 /* end confdefs.h. */
51617 #include <termios.h>
51622 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51627 rm -f conftest.$ac_objext
51628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51629 (eval $ac_compile) 2>conftest.er1
51631 grep -v '^ *+' conftest.er1 >conftest.err
51633 cat conftest.err >&5
51634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51635 (exit $ac_status); } &&
51636 { ac_try='test -z "$ac_c_werror_flag"
51637 || test ! -s conftest.err'
51638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51639 (eval $ac_try) 2>&5
51641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51642 (exit $ac_status); }; } &&
51643 { ac_try='test -s conftest.$ac_objext'
51644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51645 (eval $ac_try) 2>&5
51647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51648 (exit $ac_status); }; }; then
51651 echo "$as_me: failed program was:" >&5
51652 sed 's/^/| /' conftest.$ac_ext >&5
51657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51659 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51660 cat >conftest.$ac_ext <<_ACEOF
51663 cat confdefs.h >>conftest.$ac_ext
51664 cat >>conftest.$ac_ext <<_ACEOF
51665 /* end confdefs.h. */
51666 #include <sys/ptem.h>
51675 rm -f conftest.$ac_objext
51676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51677 (eval $ac_compile) 2>conftest.er1
51679 grep -v '^ *+' conftest.er1 >conftest.err
51681 cat conftest.err >&5
51682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51683 (exit $ac_status); } &&
51684 { ac_try='test -z "$ac_c_werror_flag"
51685 || test ! -s conftest.err'
51686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51687 (eval $ac_try) 2>&5
51689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51690 (exit $ac_status); }; } &&
51691 { ac_try='test -s conftest.$ac_objext'
51692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51693 (eval $ac_try) 2>&5
51695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51696 (exit $ac_status); }; }; then
51699 echo "$as_me: failed program was:" >&5
51700 sed 's/^/| /' conftest.$ac_ext >&5
51702 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
51705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51708 { echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
51709 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6; }
51710 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
51712 cat >>confdefs.h <<\_ACEOF
51713 #define WINSIZE_IN_PTEM 1
51719 { echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
51720 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6; }
51721 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
51722 echo $ECHO_N "(cached) $ECHO_C" >&6
51724 jm_cv_sys_tiocgwinsz_needs_termios_h=no
51726 if test $ac_cv_sys_posix_termios = yes; then
51727 cat >conftest.$ac_ext <<_ACEOF
51730 cat confdefs.h >>conftest.$ac_ext
51731 cat >>conftest.$ac_ext <<_ACEOF
51732 /* end confdefs.h. */
51733 #include <sys/types.h>
51734 # include <termios.h>
51740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51741 $EGREP "yes" >/dev/null 2>&1; then
51742 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
51749 { echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
51750 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6; }
51753 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
51754 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
51755 { echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
51756 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6; }
51757 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
51758 echo $ECHO_N "(cached) $ECHO_C" >&6
51760 cat >conftest.$ac_ext <<_ACEOF
51763 cat confdefs.h >>conftest.$ac_ext
51764 cat >>conftest.$ac_ext <<_ACEOF
51765 /* end confdefs.h. */
51766 #include <sys/types.h>
51767 #ifdef WINSIZE_IN_PTEM
51768 # include <sys/stream.h>
51769 # include <sys/ptem.h>
51771 #include <sys/ioctl.h>
51772 #include <sys/tty.h>
51773 #include <sys/pty.h>
51777 int x = TIOCGWINSZ;
51782 rm -f conftest.$ac_objext conftest$ac_exeext
51783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51784 (eval $ac_link) 2>conftest.er1
51786 grep -v '^ *+' conftest.er1 >conftest.err
51788 cat conftest.err >&5
51789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51790 (exit $ac_status); } &&
51791 { ac_try='test -z "$ac_c_werror_flag"
51792 || test ! -s conftest.err'
51793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51794 (eval $ac_try) 2>&5
51796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51797 (exit $ac_status); }; } &&
51798 { ac_try='test -s conftest$ac_exeext'
51799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51800 (eval $ac_try) 2>&5
51802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51803 (exit $ac_status); }; }; then
51804 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
51806 echo "$as_me: failed program was:" >&5
51807 sed 's/^/| /' conftest.$ac_ext >&5
51809 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
51812 rm -f conftest.err conftest.$ac_objext \
51813 conftest$ac_exeext conftest.$ac_ext
51816 { echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
51817 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6; }
51819 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
51821 cat >>confdefs.h <<\_ACEOF
51822 #define GWINSZ_IN_SYS_PTY 1
51828 { echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
51829 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6; }
51830 if test "${ac_cv_have_decl_strsignal+set}" = set; then
51831 echo $ECHO_N "(cached) $ECHO_C" >&6
51833 cat >conftest.$ac_ext <<_ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h. */
51839 $ac_includes_default
51840 #include <signal.h>
51846 char *p = (char *) strsignal;
51854 rm -f conftest.$ac_objext
51855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51856 (eval $ac_compile) 2>conftest.er1
51858 grep -v '^ *+' conftest.er1 >conftest.err
51860 cat conftest.err >&5
51861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51862 (exit $ac_status); } &&
51863 { ac_try='test -z "$ac_c_werror_flag"
51864 || test ! -s conftest.err'
51865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51866 (eval $ac_try) 2>&5
51868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51869 (exit $ac_status); }; } &&
51870 { ac_try='test -s conftest.$ac_objext'
51871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51872 (eval $ac_try) 2>&5
51874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51875 (exit $ac_status); }; }; then
51876 ac_cv_have_decl_strsignal=yes
51878 echo "$as_me: failed program was:" >&5
51879 sed 's/^/| /' conftest.$ac_ext >&5
51881 ac_cv_have_decl_strsignal=no
51884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
51887 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6; }
51888 if test $ac_cv_have_decl_strsignal = yes; then
51890 cat >>confdefs.h <<_ACEOF
51891 #define HAVE_DECL_STRSIGNAL 1
51896 cat >>confdefs.h <<_ACEOF
51897 #define HAVE_DECL_STRSIGNAL 0
51902 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
51903 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
51904 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
51905 echo $ECHO_N "(cached) $ECHO_C" >&6
51907 cat >conftest.$ac_ext <<_ACEOF
51910 cat confdefs.h >>conftest.$ac_ext
51911 cat >>conftest.$ac_ext <<_ACEOF
51912 /* end confdefs.h. */
51913 $ac_includes_default
51914 #include <signal.h>
51919 #ifndef sys_siglist
51920 char *p = (char *) sys_siglist;
51928 rm -f conftest.$ac_objext
51929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51930 (eval $ac_compile) 2>conftest.er1
51932 grep -v '^ *+' conftest.er1 >conftest.err
51934 cat conftest.err >&5
51935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51936 (exit $ac_status); } &&
51937 { ac_try='test -z "$ac_c_werror_flag"
51938 || test ! -s conftest.err'
51939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51940 (eval $ac_try) 2>&5
51942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51943 (exit $ac_status); }; } &&
51944 { ac_try='test -s conftest.$ac_objext'
51945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51946 (eval $ac_try) 2>&5
51948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51949 (exit $ac_status); }; }; then
51950 ac_cv_have_decl_sys_siglist=yes
51952 echo "$as_me: failed program was:" >&5
51953 sed 's/^/| /' conftest.$ac_ext >&5
51955 ac_cv_have_decl_sys_siglist=no
51958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
51961 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
51962 if test $ac_cv_have_decl_sys_siglist = yes; then
51964 cat >>confdefs.h <<_ACEOF
51965 #define HAVE_DECL_SYS_SIGLIST 1
51970 cat >>confdefs.h <<_ACEOF
51971 #define HAVE_DECL_SYS_SIGLIST 0
51976 { echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
51977 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6; }
51978 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
51979 echo $ECHO_N "(cached) $ECHO_C" >&6
51981 cat >conftest.$ac_ext <<_ACEOF
51984 cat confdefs.h >>conftest.$ac_ext
51985 cat >>conftest.$ac_ext <<_ACEOF
51986 /* end confdefs.h. */
51987 $ac_includes_default
51988 #include <signal.h>
51993 #ifndef _sys_siglist
51994 char *p = (char *) _sys_siglist;
52002 rm -f conftest.$ac_objext
52003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52004 (eval $ac_compile) 2>conftest.er1
52006 grep -v '^ *+' conftest.er1 >conftest.err
52008 cat conftest.err >&5
52009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52010 (exit $ac_status); } &&
52011 { ac_try='test -z "$ac_c_werror_flag"
52012 || test ! -s conftest.err'
52013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52014 (eval $ac_try) 2>&5
52016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52017 (exit $ac_status); }; } &&
52018 { ac_try='test -s conftest.$ac_objext'
52019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52020 (eval $ac_try) 2>&5
52022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52023 (exit $ac_status); }; }; then
52024 ac_cv_have_decl__sys_siglist=yes
52026 echo "$as_me: failed program was:" >&5
52027 sed 's/^/| /' conftest.$ac_ext >&5
52029 ac_cv_have_decl__sys_siglist=no
52032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
52035 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6; }
52036 if test $ac_cv_have_decl__sys_siglist = yes; then
52038 cat >>confdefs.h <<_ACEOF
52039 #define HAVE_DECL__SYS_SIGLIST 1
52044 cat >>confdefs.h <<_ACEOF
52045 #define HAVE_DECL__SYS_SIGLIST 0
52050 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
52051 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
52052 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
52053 echo $ECHO_N "(cached) $ECHO_C" >&6
52055 cat >conftest.$ac_ext <<_ACEOF
52058 cat confdefs.h >>conftest.$ac_ext
52059 cat >>conftest.$ac_ext <<_ACEOF
52060 /* end confdefs.h. */
52061 $ac_includes_default
52062 #include <signal.h>
52067 #ifndef __sys_siglist
52068 char *p = (char *) __sys_siglist;
52076 rm -f conftest.$ac_objext
52077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52078 (eval $ac_compile) 2>conftest.er1
52080 grep -v '^ *+' conftest.er1 >conftest.err
52082 cat conftest.err >&5
52083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52084 (exit $ac_status); } &&
52085 { ac_try='test -z "$ac_c_werror_flag"
52086 || test ! -s conftest.err'
52087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52088 (eval $ac_try) 2>&5
52090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52091 (exit $ac_status); }; } &&
52092 { ac_try='test -s conftest.$ac_objext'
52093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52094 (eval $ac_try) 2>&5
52096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52097 (exit $ac_status); }; }; then
52098 ac_cv_have_decl___sys_siglist=yes
52100 echo "$as_me: failed program was:" >&5
52101 sed 's/^/| /' conftest.$ac_ext >&5
52103 ac_cv_have_decl___sys_siglist=no
52106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52108 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
52109 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
52110 if test $ac_cv_have_decl___sys_siglist = yes; then
52112 cat >>confdefs.h <<_ACEOF
52113 #define HAVE_DECL___SYS_SIGLIST 1
52118 cat >>confdefs.h <<_ACEOF
52119 #define HAVE_DECL___SYS_SIGLIST 0
52127 # For src/kill.c and src/printf.c.
52128 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
52129 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; }
52130 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
52131 echo $ECHO_N "(cached) $ECHO_C" >&6
52133 cat >conftest.$ac_ext <<_ACEOF
52136 cat confdefs.h >>conftest.$ac_ext
52137 cat >>conftest.$ac_ext <<_ACEOF
52138 /* end confdefs.h. */
52139 $ac_includes_default
52144 char *p = (char *) strtoimax;
52152 rm -f conftest.$ac_objext
52153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52154 (eval $ac_compile) 2>conftest.er1
52156 grep -v '^ *+' conftest.er1 >conftest.err
52158 cat conftest.err >&5
52159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52160 (exit $ac_status); } &&
52161 { ac_try='test -z "$ac_c_werror_flag"
52162 || test ! -s conftest.err'
52163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52164 (eval $ac_try) 2>&5
52166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52167 (exit $ac_status); }; } &&
52168 { ac_try='test -s conftest.$ac_objext'
52169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52170 (eval $ac_try) 2>&5
52172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52173 (exit $ac_status); }; }; then
52174 ac_cv_have_decl_strtoimax=yes
52176 echo "$as_me: failed program was:" >&5
52177 sed 's/^/| /' conftest.$ac_ext >&5
52179 ac_cv_have_decl_strtoimax=no
52182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52184 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
52185 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; }
52186 if test $ac_cv_have_decl_strtoimax = yes; then
52188 cat >>confdefs.h <<_ACEOF
52189 #define HAVE_DECL_STRTOIMAX 1
52194 cat >>confdefs.h <<_ACEOF
52195 #define HAVE_DECL_STRTOIMAX 0
52200 { echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
52201 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; }
52202 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
52203 echo $ECHO_N "(cached) $ECHO_C" >&6
52205 cat >conftest.$ac_ext <<_ACEOF
52208 cat confdefs.h >>conftest.$ac_ext
52209 cat >>conftest.$ac_ext <<_ACEOF
52210 /* end confdefs.h. */
52211 $ac_includes_default
52216 char *p = (char *) strtoumax;
52224 rm -f conftest.$ac_objext
52225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52226 (eval $ac_compile) 2>conftest.er1
52228 grep -v '^ *+' conftest.er1 >conftest.err
52230 cat conftest.err >&5
52231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232 (exit $ac_status); } &&
52233 { ac_try='test -z "$ac_c_werror_flag"
52234 || test ! -s conftest.err'
52235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52236 (eval $ac_try) 2>&5
52238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52239 (exit $ac_status); }; } &&
52240 { ac_try='test -s conftest.$ac_objext'
52241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52242 (eval $ac_try) 2>&5
52244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52245 (exit $ac_status); }; }; then
52246 ac_cv_have_decl_strtoumax=yes
52248 echo "$as_me: failed program was:" >&5
52249 sed 's/^/| /' conftest.$ac_ext >&5
52251 ac_cv_have_decl_strtoumax=no
52254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52256 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
52257 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; }
52258 if test $ac_cv_have_decl_strtoumax = yes; then
52260 cat >>confdefs.h <<_ACEOF
52261 #define HAVE_DECL_STRTOUMAX 1
52266 cat >>confdefs.h <<_ACEOF
52267 #define HAVE_DECL_STRTOUMAX 0
52277 # Check for libypsec.a on Dolphin M88K machines.
52279 { echo "$as_me:$LINENO: checking for main in -lypsec" >&5
52280 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6; }
52281 if test "${ac_cv_lib_ypsec_main+set}" = set; then
52282 echo $ECHO_N "(cached) $ECHO_C" >&6
52284 ac_check_lib_save_LIBS=$LIBS
52285 LIBS="-lypsec $LIBS"
52286 cat >conftest.$ac_ext <<_ACEOF
52289 cat confdefs.h >>conftest.$ac_ext
52290 cat >>conftest.$ac_ext <<_ACEOF
52291 /* end confdefs.h. */
52302 rm -f conftest.$ac_objext conftest$ac_exeext
52303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52304 (eval $ac_link) 2>conftest.er1
52306 grep -v '^ *+' conftest.er1 >conftest.err
52308 cat conftest.err >&5
52309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52310 (exit $ac_status); } &&
52311 { ac_try='test -z "$ac_c_werror_flag"
52312 || test ! -s conftest.err'
52313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314 (eval $ac_try) 2>&5
52316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317 (exit $ac_status); }; } &&
52318 { ac_try='test -s conftest$ac_exeext'
52319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52320 (eval $ac_try) 2>&5
52322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52323 (exit $ac_status); }; }; then
52324 ac_cv_lib_ypsec_main=yes
52326 echo "$as_me: failed program was:" >&5
52327 sed 's/^/| /' conftest.$ac_ext >&5
52329 ac_cv_lib_ypsec_main=no
52332 rm -f conftest.err conftest.$ac_objext \
52333 conftest$ac_exeext conftest.$ac_ext
52334 LIBS=$ac_check_lib_save_LIBS
52336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
52337 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6; }
52338 if test $ac_cv_lib_ypsec_main = yes; then
52339 cat >>confdefs.h <<_ACEOF
52340 #define HAVE_LIBYPSEC 1
52343 LIBS="-lypsec $LIBS"
52348 # m88k running dgux 5.4 needs this
52350 { echo "$as_me:$LINENO: checking for main in -lldgc" >&5
52351 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6; }
52352 if test "${ac_cv_lib_ldgc_main+set}" = set; then
52353 echo $ECHO_N "(cached) $ECHO_C" >&6
52355 ac_check_lib_save_LIBS=$LIBS
52356 LIBS="-lldgc $LIBS"
52357 cat >conftest.$ac_ext <<_ACEOF
52360 cat confdefs.h >>conftest.$ac_ext
52361 cat >>conftest.$ac_ext <<_ACEOF
52362 /* end confdefs.h. */
52373 rm -f conftest.$ac_objext conftest$ac_exeext
52374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52375 (eval $ac_link) 2>conftest.er1
52377 grep -v '^ *+' conftest.er1 >conftest.err
52379 cat conftest.err >&5
52380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52381 (exit $ac_status); } &&
52382 { ac_try='test -z "$ac_c_werror_flag"
52383 || test ! -s conftest.err'
52384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52385 (eval $ac_try) 2>&5
52387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52388 (exit $ac_status); }; } &&
52389 { ac_try='test -s conftest$ac_exeext'
52390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52391 (eval $ac_try) 2>&5
52393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52394 (exit $ac_status); }; }; then
52395 ac_cv_lib_ldgc_main=yes
52397 echo "$as_me: failed program was:" >&5
52398 sed 's/^/| /' conftest.$ac_ext >&5
52400 ac_cv_lib_ldgc_main=no
52403 rm -f conftest.err conftest.$ac_objext \
52404 conftest$ac_exeext conftest.$ac_ext
52405 LIBS=$ac_check_lib_save_LIBS
52407 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
52408 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6; }
52409 if test $ac_cv_lib_ldgc_main = yes; then
52410 cat >>confdefs.h <<_ACEOF
52411 #define HAVE_LIBLDGC 1
52414 LIBS="-lldgc $LIBS"
52419 # Some programs need to link with -lm. printf does if it uses
52420 # lib/strtod.c which uses pow. And seq uses the math functions,
52421 # floor, modf, rint.
52423 # Check for these math functions used by seq.
52425 cu_saved_libs=$LIBS
52426 { echo "$as_me:$LINENO: checking for library containing floor" >&5
52427 echo $ECHO_N "checking for library containing floor... $ECHO_C" >&6; }
52428 if test "${ac_cv_search_floor+set}" = set; then
52429 echo $ECHO_N "(cached) $ECHO_C" >&6
52431 ac_func_search_save_LIBS=$LIBS
52432 cat >conftest.$ac_ext <<_ACEOF
52435 cat confdefs.h >>conftest.$ac_ext
52436 cat >>conftest.$ac_ext <<_ACEOF
52437 /* end confdefs.h. */
52439 /* Override any GCC internal prototype to avoid an error.
52440 Use char because int might match the return type of a GCC
52441 builtin and then its argument prototype would still apply. */
52454 for ac_lib in '' m; do
52455 if test -z "$ac_lib"; then
52456 ac_res="none required"
52459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52461 rm -f conftest.$ac_objext conftest$ac_exeext
52462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52463 (eval $ac_link) 2>conftest.er1
52465 grep -v '^ *+' conftest.er1 >conftest.err
52467 cat conftest.err >&5
52468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52469 (exit $ac_status); } &&
52470 { ac_try='test -z "$ac_c_werror_flag"
52471 || test ! -s conftest.err'
52472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52473 (eval $ac_try) 2>&5
52475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52476 (exit $ac_status); }; } &&
52477 { ac_try='test -s conftest$ac_exeext'
52478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52479 (eval $ac_try) 2>&5
52481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52482 (exit $ac_status); }; }; then
52483 ac_cv_search_floor=$ac_res
52485 echo "$as_me: failed program was:" >&5
52486 sed 's/^/| /' conftest.$ac_ext >&5
52491 rm -f conftest.err conftest.$ac_objext \
52493 if test "${ac_cv_search_floor+set}" = set; then
52497 if test "${ac_cv_search_floor+set}" = set; then
52500 ac_cv_search_floor=no
52502 rm conftest.$ac_ext
52503 LIBS=$ac_func_search_save_LIBS
52505 { echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
52506 echo "${ECHO_T}$ac_cv_search_floor" >&6; }
52507 ac_res=$ac_cv_search_floor
52508 if test "$ac_res" != no; then
52509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52513 { echo "$as_me:$LINENO: checking for library containing modf" >&5
52514 echo $ECHO_N "checking for library containing modf... $ECHO_C" >&6; }
52515 if test "${ac_cv_search_modf+set}" = set; then
52516 echo $ECHO_N "(cached) $ECHO_C" >&6
52518 ac_func_search_save_LIBS=$LIBS
52519 cat >conftest.$ac_ext <<_ACEOF
52522 cat confdefs.h >>conftest.$ac_ext
52523 cat >>conftest.$ac_ext <<_ACEOF
52524 /* end confdefs.h. */
52526 /* Override any GCC internal prototype to avoid an error.
52527 Use char because int might match the return type of a GCC
52528 builtin and then its argument prototype would still apply. */
52541 for ac_lib in '' m; do
52542 if test -z "$ac_lib"; then
52543 ac_res="none required"
52546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52548 rm -f conftest.$ac_objext conftest$ac_exeext
52549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52550 (eval $ac_link) 2>conftest.er1
52552 grep -v '^ *+' conftest.er1 >conftest.err
52554 cat conftest.err >&5
52555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52556 (exit $ac_status); } &&
52557 { ac_try='test -z "$ac_c_werror_flag"
52558 || test ! -s conftest.err'
52559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52560 (eval $ac_try) 2>&5
52562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52563 (exit $ac_status); }; } &&
52564 { ac_try='test -s conftest$ac_exeext'
52565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52566 (eval $ac_try) 2>&5
52568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52569 (exit $ac_status); }; }; then
52570 ac_cv_search_modf=$ac_res
52572 echo "$as_me: failed program was:" >&5
52573 sed 's/^/| /' conftest.$ac_ext >&5
52578 rm -f conftest.err conftest.$ac_objext \
52580 if test "${ac_cv_search_modf+set}" = set; then
52584 if test "${ac_cv_search_modf+set}" = set; then
52587 ac_cv_search_modf=no
52589 rm conftest.$ac_ext
52590 LIBS=$ac_func_search_save_LIBS
52592 { echo "$as_me:$LINENO: result: $ac_cv_search_modf" >&5
52593 echo "${ECHO_T}$ac_cv_search_modf" >&6; }
52594 ac_res=$ac_cv_search_modf
52595 if test "$ac_res" != no; then
52596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52600 { echo "$as_me:$LINENO: checking for library containing rint" >&5
52601 echo $ECHO_N "checking for library containing rint... $ECHO_C" >&6; }
52602 if test "${ac_cv_search_rint+set}" = set; then
52603 echo $ECHO_N "(cached) $ECHO_C" >&6
52605 ac_func_search_save_LIBS=$LIBS
52606 cat >conftest.$ac_ext <<_ACEOF
52609 cat confdefs.h >>conftest.$ac_ext
52610 cat >>conftest.$ac_ext <<_ACEOF
52611 /* end confdefs.h. */
52613 /* Override any GCC internal prototype to avoid an error.
52614 Use char because int might match the return type of a GCC
52615 builtin and then its argument prototype would still apply. */
52628 for ac_lib in '' m; do
52629 if test -z "$ac_lib"; then
52630 ac_res="none required"
52633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52635 rm -f conftest.$ac_objext conftest$ac_exeext
52636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52637 (eval $ac_link) 2>conftest.er1
52639 grep -v '^ *+' conftest.er1 >conftest.err
52641 cat conftest.err >&5
52642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52643 (exit $ac_status); } &&
52644 { ac_try='test -z "$ac_c_werror_flag"
52645 || test ! -s conftest.err'
52646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52647 (eval $ac_try) 2>&5
52649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52650 (exit $ac_status); }; } &&
52651 { ac_try='test -s conftest$ac_exeext'
52652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52653 (eval $ac_try) 2>&5
52655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52656 (exit $ac_status); }; }; then
52657 ac_cv_search_rint=$ac_res
52659 echo "$as_me: failed program was:" >&5
52660 sed 's/^/| /' conftest.$ac_ext >&5
52665 rm -f conftest.err conftest.$ac_objext \
52667 if test "${ac_cv_search_rint+set}" = set; then
52671 if test "${ac_cv_search_rint+set}" = set; then
52674 ac_cv_search_rint=no
52676 rm conftest.$ac_ext
52677 LIBS=$ac_func_search_save_LIBS
52679 { echo "$as_me:$LINENO: result: $ac_cv_search_rint" >&5
52680 echo "${ECHO_T}$ac_cv_search_rint" >&6; }
52681 ac_res=$ac_cv_search_rint
52682 if test "$ac_res" != no; then
52683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52690 for ac_func in floor modf rint
52692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
52694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
52695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52696 echo $ECHO_N "(cached) $ECHO_C" >&6
52698 cat >conftest.$ac_ext <<_ACEOF
52701 cat confdefs.h >>conftest.$ac_ext
52702 cat >>conftest.$ac_ext <<_ACEOF
52703 /* end confdefs.h. */
52704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52706 #define $ac_func innocuous_$ac_func
52708 /* System header to define __stub macros and hopefully few prototypes,
52709 which can conflict with char $ac_func (); below.
52710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52711 <limits.h> exists even on freestanding compilers. */
52714 # include <limits.h>
52716 # include <assert.h>
52721 /* Override any GCC internal prototype to avoid an error.
52722 Use char because int might match the return type of a GCC
52723 builtin and then its argument prototype would still apply. */
52728 /* The GNU C library defines this for functions which it implements
52729 to always fail with ENOSYS. Some functions are actually named
52730 something starting with __ and the normal name is an alias. */
52731 #if defined __stub_$ac_func || defined __stub___$ac_func
52738 return $ac_func ();
52743 rm -f conftest.$ac_objext conftest$ac_exeext
52744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52745 (eval $ac_link) 2>conftest.er1
52747 grep -v '^ *+' conftest.er1 >conftest.err
52749 cat conftest.err >&5
52750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52751 (exit $ac_status); } &&
52752 { ac_try='test -z "$ac_c_werror_flag"
52753 || test ! -s conftest.err'
52754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52755 (eval $ac_try) 2>&5
52757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52758 (exit $ac_status); }; } &&
52759 { ac_try='test -s conftest$ac_exeext'
52760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52761 (eval $ac_try) 2>&5
52763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52764 (exit $ac_status); }; }; then
52765 eval "$as_ac_var=yes"
52767 echo "$as_me: failed program was:" >&5
52768 sed 's/^/| /' conftest.$ac_ext >&5
52770 eval "$as_ac_var=no"
52773 rm -f conftest.err conftest.$ac_objext \
52774 conftest$ac_exeext conftest.$ac_ext
52776 ac_res=`eval echo '${'$as_ac_var'}'`
52777 { echo "$as_me:$LINENO: result: $ac_res" >&5
52778 echo "${ECHO_T}$ac_res" >&6; }
52779 if test `eval echo '${'$as_ac_var'}'` = yes; then
52780 cat >>confdefs.h <<_ACEOF
52781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52787 test "X$LIBS" = "X$cu_saved_libs" || SEQ_LIBM=-lm
52788 LIBS=$cu_saved_libs
52790 # The -lsun library is required for YP support on Irix-4.0.5 systems.
52791 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
52792 { echo "$as_me:$LINENO: checking for library containing yp_match" >&5
52793 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6; }
52794 if test "${ac_cv_search_yp_match+set}" = set; then
52795 echo $ECHO_N "(cached) $ECHO_C" >&6
52797 ac_func_search_save_LIBS=$LIBS
52798 cat >conftest.$ac_ext <<_ACEOF
52801 cat confdefs.h >>conftest.$ac_ext
52802 cat >>conftest.$ac_ext <<_ACEOF
52803 /* end confdefs.h. */
52805 /* Override any GCC internal prototype to avoid an error.
52806 Use char because int might match the return type of a GCC
52807 builtin and then its argument prototype would still apply. */
52815 return yp_match ();
52820 for ac_lib in '' sun ypsec; do
52821 if test -z "$ac_lib"; then
52822 ac_res="none required"
52825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52827 rm -f conftest.$ac_objext conftest$ac_exeext
52828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52829 (eval $ac_link) 2>conftest.er1
52831 grep -v '^ *+' conftest.er1 >conftest.err
52833 cat conftest.err >&5
52834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835 (exit $ac_status); } &&
52836 { ac_try='test -z "$ac_c_werror_flag"
52837 || test ! -s conftest.err'
52838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52839 (eval $ac_try) 2>&5
52841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52842 (exit $ac_status); }; } &&
52843 { ac_try='test -s conftest$ac_exeext'
52844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52845 (eval $ac_try) 2>&5
52847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52848 (exit $ac_status); }; }; then
52849 ac_cv_search_yp_match=$ac_res
52851 echo "$as_me: failed program was:" >&5
52852 sed 's/^/| /' conftest.$ac_ext >&5
52857 rm -f conftest.err conftest.$ac_objext \
52859 if test "${ac_cv_search_yp_match+set}" = set; then
52863 if test "${ac_cv_search_yp_match+set}" = set; then
52866 ac_cv_search_yp_match=no
52868 rm conftest.$ac_ext
52869 LIBS=$ac_func_search_save_LIBS
52871 { echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
52872 echo "${ECHO_T}$ac_cv_search_yp_match" >&6; }
52873 ac_res=$ac_cv_search_yp_match
52874 if test "$ac_res" != no; then
52875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52880 # SysV needs -lsec, older versions of Linux need -lshadow for
52881 # shadow passwords. UnixWare 7 needs -lgen.
52882 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
52883 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
52884 if test "${ac_cv_search_getspnam+set}" = set; then
52885 echo $ECHO_N "(cached) $ECHO_C" >&6
52887 ac_func_search_save_LIBS=$LIBS
52888 cat >conftest.$ac_ext <<_ACEOF
52891 cat confdefs.h >>conftest.$ac_ext
52892 cat >>conftest.$ac_ext <<_ACEOF
52893 /* end confdefs.h. */
52895 /* Override any GCC internal prototype to avoid an error.
52896 Use char because int might match the return type of a GCC
52897 builtin and then its argument prototype would still apply. */
52905 return getspnam ();
52910 for ac_lib in '' shadow sec gen; do
52911 if test -z "$ac_lib"; then
52912 ac_res="none required"
52915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52917 rm -f conftest.$ac_objext conftest$ac_exeext
52918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52919 (eval $ac_link) 2>conftest.er1
52921 grep -v '^ *+' conftest.er1 >conftest.err
52923 cat conftest.err >&5
52924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52925 (exit $ac_status); } &&
52926 { ac_try='test -z "$ac_c_werror_flag"
52927 || test ! -s conftest.err'
52928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52929 (eval $ac_try) 2>&5
52931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52932 (exit $ac_status); }; } &&
52933 { ac_try='test -s conftest$ac_exeext'
52934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52935 (eval $ac_try) 2>&5
52937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52938 (exit $ac_status); }; }; then
52939 ac_cv_search_getspnam=$ac_res
52941 echo "$as_me: failed program was:" >&5
52942 sed 's/^/| /' conftest.$ac_ext >&5
52947 rm -f conftest.err conftest.$ac_objext \
52949 if test "${ac_cv_search_getspnam+set}" = set; then
52953 if test "${ac_cv_search_getspnam+set}" = set; then
52956 ac_cv_search_getspnam=no
52958 rm conftest.$ac_ext
52959 LIBS=$ac_func_search_save_LIBS
52961 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
52962 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
52963 ac_res=$ac_cv_search_getspnam
52964 if test "$ac_res" != no; then
52965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52971 for ac_header in shadow.h
52973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52978 echo $ECHO_N "(cached) $ECHO_C" >&6
52980 ac_res=`eval echo '${'$as_ac_Header'}'`
52981 { echo "$as_me:$LINENO: result: $ac_res" >&5
52982 echo "${ECHO_T}$ac_res" >&6; }
52984 # Is the header compilable?
52985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52987 cat >conftest.$ac_ext <<_ACEOF
52990 cat confdefs.h >>conftest.$ac_ext
52991 cat >>conftest.$ac_ext <<_ACEOF
52992 /* end confdefs.h. */
52993 $ac_includes_default
52994 #include <$ac_header>
52996 rm -f conftest.$ac_objext
52997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52998 (eval $ac_compile) 2>conftest.er1
53000 grep -v '^ *+' conftest.er1 >conftest.err
53002 cat conftest.err >&5
53003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53004 (exit $ac_status); } &&
53005 { ac_try='test -z "$ac_c_werror_flag"
53006 || test ! -s conftest.err'
53007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53008 (eval $ac_try) 2>&5
53010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53011 (exit $ac_status); }; } &&
53012 { ac_try='test -s conftest.$ac_objext'
53013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53014 (eval $ac_try) 2>&5
53016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53017 (exit $ac_status); }; }; then
53018 ac_header_compiler=yes
53020 echo "$as_me: failed program was:" >&5
53021 sed 's/^/| /' conftest.$ac_ext >&5
53023 ac_header_compiler=no
53026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53028 echo "${ECHO_T}$ac_header_compiler" >&6; }
53030 # Is the header present?
53031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
53032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
53033 cat >conftest.$ac_ext <<_ACEOF
53036 cat confdefs.h >>conftest.$ac_ext
53037 cat >>conftest.$ac_ext <<_ACEOF
53038 /* end confdefs.h. */
53039 #include <$ac_header>
53041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53044 grep -v '^ *+' conftest.er1 >conftest.err
53046 cat conftest.err >&5
53047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53048 (exit $ac_status); } >/dev/null; then
53049 if test -s conftest.err; then
53050 ac_cpp_err=$ac_c_preproc_warn_flag
53051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53058 if test -z "$ac_cpp_err"; then
53059 ac_header_preproc=yes
53061 echo "$as_me: failed program was:" >&5
53062 sed 's/^/| /' conftest.$ac_ext >&5
53064 ac_header_preproc=no
53067 rm -f conftest.err conftest.$ac_ext
53068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53069 echo "${ECHO_T}$ac_header_preproc" >&6; }
53071 # So? What about this header?
53072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53078 ac_header_preproc=yes
53081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53094 ## ------------------------------------ ##
53095 ## Report this to bug-coreutils@gnu.org ##
53096 ## ------------------------------------ ##
53098 ) | sed "s/^/$as_me: WARNING: /" >&2
53101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
53102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53104 echo $ECHO_N "(cached) $ECHO_C" >&6
53106 eval "$as_ac_Header=\$ac_header_preproc"
53108 ac_res=`eval echo '${'$as_ac_Header'}'`
53109 { echo "$as_me:$LINENO: result: $ac_res" >&5
53110 echo "${ECHO_T}$ac_res" >&6; }
53113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53114 cat >>confdefs.h <<_ACEOF
53115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53123 # Requirements for su.c.
53125 $ac_includes_default
53127 # include <shadow.h>
53130 { echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
53131 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6; }
53132 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
53133 echo $ECHO_N "(cached) $ECHO_C" >&6
53135 cat >conftest.$ac_ext <<_ACEOF
53138 cat confdefs.h >>conftest.$ac_ext
53139 cat >>conftest.$ac_ext <<_ACEOF
53140 /* end confdefs.h. */
53146 static struct spwd ac_aggr;
53147 if (ac_aggr.sp_pwdp)
53153 rm -f conftest.$ac_objext
53154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53155 (eval $ac_compile) 2>conftest.er1
53157 grep -v '^ *+' conftest.er1 >conftest.err
53159 cat conftest.err >&5
53160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53161 (exit $ac_status); } &&
53162 { ac_try='test -z "$ac_c_werror_flag"
53163 || test ! -s conftest.err'
53164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53165 (eval $ac_try) 2>&5
53167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53168 (exit $ac_status); }; } &&
53169 { ac_try='test -s conftest.$ac_objext'
53170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53171 (eval $ac_try) 2>&5
53173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53174 (exit $ac_status); }; }; then
53175 ac_cv_member_struct_spwd_sp_pwdp=yes
53177 echo "$as_me: failed program was:" >&5
53178 sed 's/^/| /' conftest.$ac_ext >&5
53180 cat >conftest.$ac_ext <<_ACEOF
53183 cat confdefs.h >>conftest.$ac_ext
53184 cat >>conftest.$ac_ext <<_ACEOF
53185 /* end confdefs.h. */
53191 static struct spwd ac_aggr;
53192 if (sizeof ac_aggr.sp_pwdp)
53198 rm -f conftest.$ac_objext
53199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53200 (eval $ac_compile) 2>conftest.er1
53202 grep -v '^ *+' conftest.er1 >conftest.err
53204 cat conftest.err >&5
53205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53206 (exit $ac_status); } &&
53207 { ac_try='test -z "$ac_c_werror_flag"
53208 || test ! -s conftest.err'
53209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53210 (eval $ac_try) 2>&5
53212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53213 (exit $ac_status); }; } &&
53214 { ac_try='test -s conftest.$ac_objext'
53215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53216 (eval $ac_try) 2>&5
53218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53219 (exit $ac_status); }; }; then
53220 ac_cv_member_struct_spwd_sp_pwdp=yes
53222 echo "$as_me: failed program was:" >&5
53223 sed 's/^/| /' conftest.$ac_ext >&5
53225 ac_cv_member_struct_spwd_sp_pwdp=no
53228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
53234 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6; }
53235 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
53237 cat >>confdefs.h <<_ACEOF
53238 #define HAVE_STRUCT_SPWD_SP_PWDP 1
53245 for ac_func in getspnam
53247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53251 echo $ECHO_N "(cached) $ECHO_C" >&6
53253 cat >conftest.$ac_ext <<_ACEOF
53256 cat confdefs.h >>conftest.$ac_ext
53257 cat >>conftest.$ac_ext <<_ACEOF
53258 /* end confdefs.h. */
53259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53261 #define $ac_func innocuous_$ac_func
53263 /* System header to define __stub macros and hopefully few prototypes,
53264 which can conflict with char $ac_func (); below.
53265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53266 <limits.h> exists even on freestanding compilers. */
53269 # include <limits.h>
53271 # include <assert.h>
53276 /* Override any GCC internal prototype to avoid an error.
53277 Use char because int might match the return type of a GCC
53278 builtin and then its argument prototype would still apply. */
53283 /* The GNU C library defines this for functions which it implements
53284 to always fail with ENOSYS. Some functions are actually named
53285 something starting with __ and the normal name is an alias. */
53286 #if defined __stub_$ac_func || defined __stub___$ac_func
53293 return $ac_func ();
53298 rm -f conftest.$ac_objext conftest$ac_exeext
53299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53300 (eval $ac_link) 2>conftest.er1
53302 grep -v '^ *+' conftest.er1 >conftest.err
53304 cat conftest.err >&5
53305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53306 (exit $ac_status); } &&
53307 { ac_try='test -z "$ac_c_werror_flag"
53308 || test ! -s conftest.err'
53309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53310 (eval $ac_try) 2>&5
53312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53313 (exit $ac_status); }; } &&
53314 { ac_try='test -s conftest$ac_exeext'
53315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53316 (eval $ac_try) 2>&5
53318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53319 (exit $ac_status); }; }; then
53320 eval "$as_ac_var=yes"
53322 echo "$as_me: failed program was:" >&5
53323 sed 's/^/| /' conftest.$ac_ext >&5
53325 eval "$as_ac_var=no"
53328 rm -f conftest.err conftest.$ac_objext \
53329 conftest$ac_exeext conftest.$ac_ext
53331 ac_res=`eval echo '${'$as_ac_var'}'`
53332 { echo "$as_me:$LINENO: result: $ac_res" >&5
53333 echo "${ECHO_T}$ac_res" >&6; }
53334 if test `eval echo '${'$as_ac_var'}'` = yes; then
53335 cat >>confdefs.h <<_ACEOF
53336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53343 # SCO-ODT-3.0 is reported to need -lufc for crypt.
53344 # NetBSD needs -lcrypt for crypt.
53345 cu_saved_libs="$LIBS"
53346 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
53347 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
53348 if test "${ac_cv_search_crypt+set}" = set; then
53349 echo $ECHO_N "(cached) $ECHO_C" >&6
53351 ac_func_search_save_LIBS=$LIBS
53352 cat >conftest.$ac_ext <<_ACEOF
53355 cat confdefs.h >>conftest.$ac_ext
53356 cat >>conftest.$ac_ext <<_ACEOF
53357 /* end confdefs.h. */
53359 /* Override any GCC internal prototype to avoid an error.
53360 Use char because int might match the return type of a GCC
53361 builtin and then its argument prototype would still apply. */
53374 for ac_lib in '' ufc crypt; do
53375 if test -z "$ac_lib"; then
53376 ac_res="none required"
53379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
53381 rm -f conftest.$ac_objext conftest$ac_exeext
53382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53383 (eval $ac_link) 2>conftest.er1
53385 grep -v '^ *+' conftest.er1 >conftest.err
53387 cat conftest.err >&5
53388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53389 (exit $ac_status); } &&
53390 { ac_try='test -z "$ac_c_werror_flag"
53391 || test ! -s conftest.err'
53392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53393 (eval $ac_try) 2>&5
53395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53396 (exit $ac_status); }; } &&
53397 { ac_try='test -s conftest$ac_exeext'
53398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53399 (eval $ac_try) 2>&5
53401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53402 (exit $ac_status); }; }; then
53403 ac_cv_search_crypt=$ac_res
53405 echo "$as_me: failed program was:" >&5
53406 sed 's/^/| /' conftest.$ac_ext >&5
53411 rm -f conftest.err conftest.$ac_objext \
53413 if test "${ac_cv_search_crypt+set}" = set; then
53417 if test "${ac_cv_search_crypt+set}" = set; then
53420 ac_cv_search_crypt=no
53422 rm conftest.$ac_ext
53423 LIBS=$ac_func_search_save_LIBS
53425 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
53426 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
53427 ac_res=$ac_cv_search_crypt
53428 if test "$ac_res" != no; then
53429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
53430 test "$ac_cv_search_crypt" = "none required" ||
53431 LIB_CRYPT="$ac_cv_search_crypt"
53434 LIBS="$cu_saved_libs"
53441 if test -n "$ac_aux_dir"; then
53442 case "$ac_aux_dir" in
53443 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
53444 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
53447 if test -z "$MKINSTALLDIRS"; then
53448 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
53453 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
53454 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
53455 # Check whether --enable-nls was given.
53456 if test "${enable_nls+set}" = set; then
53457 enableval=$enable_nls; USE_NLS=$enableval
53462 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
53463 echo "${ECHO_T}$USE_NLS" >&6; }
53470 # Prepare PATH_SEPARATOR.
53471 # The user is always right.
53472 if test "${PATH_SEPARATOR+set}" != set; then
53473 echo "#! /bin/sh" >conf$$.sh
53474 echo "exit 0" >>conf$$.sh
53476 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53484 # Find out how to test for executable files. Don't use a zero-byte file,
53485 # as systems may use methods other than mode bits to determine executability.
53486 cat >conf$$.file <<_ASEOF
53490 chmod +x conf$$.file
53491 if test -x conf$$.file >/dev/null 2>&1; then
53492 ac_executable_p="test -x"
53494 ac_executable_p="test -f"
53498 # Extract the first word of "msgfmt", so it can be a program name with args.
53499 set dummy msgfmt; ac_word=$2
53500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53502 if test "${ac_cv_path_MSGFMT+set}" = set; then
53503 echo $ECHO_N "(cached) $ECHO_C" >&6
53507 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
53510 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53511 for ac_dir in $PATH; do
53513 test -z "$ac_dir" && ac_dir=.
53514 for ac_exec_ext in '' $ac_executable_extensions; do
53515 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53516 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53517 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
53518 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53519 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
53526 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
53530 MSGFMT="$ac_cv_path_MSGFMT"
53531 if test "$MSGFMT" != ":"; then
53532 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
53533 echo "${ECHO_T}$MSGFMT" >&6; }
53535 { echo "$as_me:$LINENO: result: no" >&5
53536 echo "${ECHO_T}no" >&6; }
53539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
53540 set dummy gmsgfmt; ac_word=$2
53541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53543 if test "${ac_cv_path_GMSGFMT+set}" = set; then
53544 echo $ECHO_N "(cached) $ECHO_C" >&6
53548 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
53551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53552 for as_dir in $PATH
53555 test -z "$as_dir" && as_dir=.
53556 for ac_exec_ext in '' $ac_executable_extensions; do
53557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
53558 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
53559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
53570 GMSGFMT=$ac_cv_path_GMSGFMT
53571 if test -n "$GMSGFMT"; then
53572 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
53573 echo "${ECHO_T}$GMSGFMT" >&6; }
53575 { echo "$as_me:$LINENO: result: no" >&5
53576 echo "${ECHO_T}no" >&6; }
53582 # Prepare PATH_SEPARATOR.
53583 # The user is always right.
53584 if test "${PATH_SEPARATOR+set}" != set; then
53585 echo "#! /bin/sh" >conf$$.sh
53586 echo "exit 0" >>conf$$.sh
53588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53596 # Find out how to test for executable files. Don't use a zero-byte file,
53597 # as systems may use methods other than mode bits to determine executability.
53598 cat >conf$$.file <<_ASEOF
53602 chmod +x conf$$.file
53603 if test -x conf$$.file >/dev/null 2>&1; then
53604 ac_executable_p="test -x"
53606 ac_executable_p="test -f"
53610 # Extract the first word of "xgettext", so it can be a program name with args.
53611 set dummy xgettext; ac_word=$2
53612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53614 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53615 echo $ECHO_N "(cached) $ECHO_C" >&6
53617 case "$XGETTEXT" in
53619 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53622 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53623 for ac_dir in $PATH; do
53625 test -z "$ac_dir" && ac_dir=.
53626 for ac_exec_ext in '' $ac_executable_extensions; do
53627 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53628 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53629 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53630 (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
53631 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53638 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53642 XGETTEXT="$ac_cv_path_XGETTEXT"
53643 if test "$XGETTEXT" != ":"; then
53644 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53645 echo "${ECHO_T}$XGETTEXT" >&6; }
53647 { echo "$as_me:$LINENO: result: no" >&5
53648 echo "${ECHO_T}no" >&6; }
53654 # Prepare PATH_SEPARATOR.
53655 # The user is always right.
53656 if test "${PATH_SEPARATOR+set}" != set; then
53657 echo "#! /bin/sh" >conf$$.sh
53658 echo "exit 0" >>conf$$.sh
53660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53668 # Find out how to test for executable files. Don't use a zero-byte file,
53669 # as systems may use methods other than mode bits to determine executability.
53670 cat >conf$$.file <<_ASEOF
53674 chmod +x conf$$.file
53675 if test -x conf$$.file >/dev/null 2>&1; then
53676 ac_executable_p="test -x"
53678 ac_executable_p="test -f"
53682 # Extract the first word of "msgmerge", so it can be a program name with args.
53683 set dummy msgmerge; ac_word=$2
53684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53686 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53687 echo $ECHO_N "(cached) $ECHO_C" >&6
53689 case "$MSGMERGE" in
53691 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53694 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53695 for ac_dir in $PATH; do
53697 test -z "$ac_dir" && ac_dir=.
53698 for ac_exec_ext in '' $ac_executable_extensions; do
53699 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53700 echo "$as_me: trying $ac_dir/$ac_word..." >&5
53701 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53702 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53709 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53713 MSGMERGE="$ac_cv_path_MSGMERGE"
53714 if test "$MSGMERGE" != ":"; then
53715 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53716 echo "${ECHO_T}$MSGMERGE" >&6; }
53718 { echo "$as_me:$LINENO: result: no" >&5
53719 echo "${ECHO_T}no" >&6; }
53723 if test "$GMSGFMT" != ":"; then
53724 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
53725 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53728 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
53729 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
53730 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
53735 if test "$XGETTEXT" != ":"; then
53736 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
53737 (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
53740 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
53741 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
53747 ac_config_commands="$ac_config_commands default-1"
53766 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53767 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
53768 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53769 echo $ECHO_N "(cached) $ECHO_C" >&6
53771 gt_save_CPPFLAGS="$CPPFLAGS"
53772 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
53773 gt_save_LIBS="$LIBS"
53774 LIBS="$LIBS -framework CoreFoundation"
53775 cat >conftest.$ac_ext <<_ACEOF
53778 cat confdefs.h >>conftest.$ac_ext
53779 cat >>conftest.$ac_ext <<_ACEOF
53780 /* end confdefs.h. */
53781 #include <CFPreferences.h>
53785 CFPreferencesCopyAppValue(NULL, NULL)
53790 rm -f conftest.$ac_objext conftest$ac_exeext
53791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53792 (eval $ac_link) 2>conftest.er1
53794 grep -v '^ *+' conftest.er1 >conftest.err
53796 cat conftest.err >&5
53797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53798 (exit $ac_status); } &&
53799 { ac_try='test -z "$ac_c_werror_flag"
53800 || test ! -s conftest.err'
53801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53802 (eval $ac_try) 2>&5
53804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53805 (exit $ac_status); }; } &&
53806 { ac_try='test -s conftest$ac_exeext'
53807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53808 (eval $ac_try) 2>&5
53810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53811 (exit $ac_status); }; }; then
53812 gt_cv_func_CFPreferencesCopyAppValue=yes
53814 echo "$as_me: failed program was:" >&5
53815 sed 's/^/| /' conftest.$ac_ext >&5
53817 gt_cv_func_CFPreferencesCopyAppValue=no
53820 rm -f conftest.err conftest.$ac_objext \
53821 conftest$ac_exeext conftest.$ac_ext
53822 CPPFLAGS="$gt_save_CPPFLAGS"
53823 LIBS="$gt_save_LIBS"
53825 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53826 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53827 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53829 cat >>confdefs.h <<\_ACEOF
53830 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53834 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53835 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
53836 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53837 echo $ECHO_N "(cached) $ECHO_C" >&6
53839 gt_save_CPPFLAGS="$CPPFLAGS"
53840 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
53841 gt_save_LIBS="$LIBS"
53842 LIBS="$LIBS -framework CoreFoundation"
53843 cat >conftest.$ac_ext <<_ACEOF
53846 cat confdefs.h >>conftest.$ac_ext
53847 cat >>conftest.$ac_ext <<_ACEOF
53848 /* end confdefs.h. */
53849 #include <CFLocale.h>
53853 CFLocaleCopyCurrent();
53858 rm -f conftest.$ac_objext conftest$ac_exeext
53859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53860 (eval $ac_link) 2>conftest.er1
53862 grep -v '^ *+' conftest.er1 >conftest.err
53864 cat conftest.err >&5
53865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53866 (exit $ac_status); } &&
53867 { ac_try='test -z "$ac_c_werror_flag"
53868 || test ! -s conftest.err'
53869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53870 (eval $ac_try) 2>&5
53872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53873 (exit $ac_status); }; } &&
53874 { ac_try='test -s conftest$ac_exeext'
53875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53876 (eval $ac_try) 2>&5
53878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53879 (exit $ac_status); }; }; then
53880 gt_cv_func_CFLocaleCopyCurrent=yes
53882 echo "$as_me: failed program was:" >&5
53883 sed 's/^/| /' conftest.$ac_ext >&5
53885 gt_cv_func_CFLocaleCopyCurrent=no
53888 rm -f conftest.err conftest.$ac_objext \
53889 conftest$ac_exeext conftest.$ac_ext
53890 CPPFLAGS="$gt_save_CPPFLAGS"
53891 LIBS="$gt_save_LIBS"
53893 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53894 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53895 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53897 cat >>confdefs.h <<\_ACEOF
53898 #define HAVE_CFLOCALECOPYCURRENT 1
53903 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53904 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53910 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
53911 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
53912 # Check whether --enable-nls was given.
53913 if test "${enable_nls+set}" = set; then
53914 enableval=$enable_nls; USE_NLS=$enableval
53919 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
53920 echo "${ECHO_T}$USE_NLS" >&6; }
53929 if test "$USE_NLS" = "yes"; then
53930 gt_use_preinstalled_gnugettext=no
53937 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53938 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
53939 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
53940 echo $ECHO_N "(cached) $ECHO_C" >&6
53942 cat >conftest.$ac_ext <<_ACEOF
53945 cat confdefs.h >>conftest.$ac_ext
53946 cat >>conftest.$ac_ext <<_ACEOF
53947 /* end confdefs.h. */
53948 #include <libintl.h>
53949 extern int _nl_msg_cat_cntr;
53950 extern int *_nl_domain_bindings;
53954 bindtextdomain ("", "");
53955 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
53960 rm -f conftest.$ac_objext conftest$ac_exeext
53961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53962 (eval $ac_link) 2>conftest.er1
53964 grep -v '^ *+' conftest.er1 >conftest.err
53966 cat conftest.err >&5
53967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53968 (exit $ac_status); } &&
53969 { ac_try='test -z "$ac_c_werror_flag"
53970 || test ! -s conftest.err'
53971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53972 (eval $ac_try) 2>&5
53974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53975 (exit $ac_status); }; } &&
53976 { ac_try='test -s conftest$ac_exeext'
53977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53978 (eval $ac_try) 2>&5
53980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53981 (exit $ac_status); }; }; then
53982 gt_cv_func_gnugettext2_libc=yes
53984 echo "$as_me: failed program was:" >&5
53985 sed 's/^/| /' conftest.$ac_ext >&5
53987 gt_cv_func_gnugettext2_libc=no
53990 rm -f conftest.err conftest.$ac_objext \
53991 conftest$ac_exeext conftest.$ac_ext
53993 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
53994 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
53996 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
54002 am_save_CPPFLAGS="$CPPFLAGS"
54004 for element in $INCICONV; do
54006 for x in $CPPFLAGS; do
54008 acl_save_prefix="$prefix"
54009 prefix="$acl_final_prefix"
54010 acl_save_exec_prefix="$exec_prefix"
54011 exec_prefix="$acl_final_exec_prefix"
54013 exec_prefix="$acl_save_exec_prefix"
54014 prefix="$acl_save_prefix"
54016 if test "X$x" = "X$element"; then
54021 if test -z "$haveit"; then
54022 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54027 { echo "$as_me:$LINENO: checking for iconv" >&5
54028 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
54029 if test "${am_cv_func_iconv+set}" = set; then
54030 echo $ECHO_N "(cached) $ECHO_C" >&6
54033 am_cv_func_iconv="no, consider installing GNU libiconv"
54035 cat >conftest.$ac_ext <<_ACEOF
54038 cat confdefs.h >>conftest.$ac_ext
54039 cat >>conftest.$ac_ext <<_ACEOF
54040 /* end confdefs.h. */
54041 #include <stdlib.h>
54046 iconv_t cd = iconv_open("","");
54047 iconv(cd,NULL,NULL,NULL,NULL);
54053 rm -f conftest.$ac_objext conftest$ac_exeext
54054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54055 (eval $ac_link) 2>conftest.er1
54057 grep -v '^ *+' conftest.er1 >conftest.err
54059 cat conftest.err >&5
54060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54061 (exit $ac_status); } &&
54062 { ac_try='test -z "$ac_c_werror_flag"
54063 || test ! -s conftest.err'
54064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54065 (eval $ac_try) 2>&5
54067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54068 (exit $ac_status); }; } &&
54069 { ac_try='test -s conftest$ac_exeext'
54070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54071 (eval $ac_try) 2>&5
54073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54074 (exit $ac_status); }; }; then
54075 am_cv_func_iconv=yes
54077 echo "$as_me: failed program was:" >&5
54078 sed 's/^/| /' conftest.$ac_ext >&5
54083 rm -f conftest.err conftest.$ac_objext \
54084 conftest$ac_exeext conftest.$ac_ext
54085 if test "$am_cv_func_iconv" != yes; then
54086 am_save_LIBS="$LIBS"
54087 LIBS="$LIBS $LIBICONV"
54088 cat >conftest.$ac_ext <<_ACEOF
54091 cat confdefs.h >>conftest.$ac_ext
54092 cat >>conftest.$ac_ext <<_ACEOF
54093 /* end confdefs.h. */
54094 #include <stdlib.h>
54099 iconv_t cd = iconv_open("","");
54100 iconv(cd,NULL,NULL,NULL,NULL);
54106 rm -f conftest.$ac_objext conftest$ac_exeext
54107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54108 (eval $ac_link) 2>conftest.er1
54110 grep -v '^ *+' conftest.er1 >conftest.err
54112 cat conftest.err >&5
54113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54114 (exit $ac_status); } &&
54115 { ac_try='test -z "$ac_c_werror_flag"
54116 || test ! -s conftest.err'
54117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54118 (eval $ac_try) 2>&5
54120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54121 (exit $ac_status); }; } &&
54122 { ac_try='test -s conftest$ac_exeext'
54123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54124 (eval $ac_try) 2>&5
54126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54127 (exit $ac_status); }; }; then
54128 am_cv_lib_iconv=yes
54129 am_cv_func_iconv=yes
54131 echo "$as_me: failed program was:" >&5
54132 sed 's/^/| /' conftest.$ac_ext >&5
54137 rm -f conftest.err conftest.$ac_objext \
54138 conftest$ac_exeext conftest.$ac_ext
54139 LIBS="$am_save_LIBS"
54143 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
54144 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
54145 if test "$am_cv_func_iconv" = yes; then
54147 cat >>confdefs.h <<\_ACEOF
54148 #define HAVE_ICONV 1
54152 if test "$am_cv_lib_iconv" = yes; then
54153 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
54154 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
54155 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
54156 echo "${ECHO_T}$LIBICONV" >&6; }
54158 CPPFLAGS="$am_save_CPPFLAGS"
54171 acl_save_prefix="$prefix"
54172 prefix="$acl_final_prefix"
54173 acl_save_exec_prefix="$exec_prefix"
54174 exec_prefix="$acl_final_exec_prefix"
54176 eval additional_includedir=\"$includedir\"
54177 eval additional_libdir=\"$libdir\"
54179 exec_prefix="$acl_save_exec_prefix"
54180 prefix="$acl_save_prefix"
54183 # Check whether --with-libintl-prefix was given.
54184 if test "${with_libintl_prefix+set}" = set; then
54185 withval=$with_libintl_prefix;
54186 if test "X$withval" = "Xno"; then
54189 if test "X$withval" = "X"; then
54191 acl_save_prefix="$prefix"
54192 prefix="$acl_final_prefix"
54193 acl_save_exec_prefix="$exec_prefix"
54194 exec_prefix="$acl_final_exec_prefix"
54196 eval additional_includedir=\"$includedir\"
54197 eval additional_libdir=\"$libdir\"
54199 exec_prefix="$acl_save_exec_prefix"
54200 prefix="$acl_save_prefix"
54203 additional_includedir="$withval/include"
54204 additional_libdir="$withval/$acl_libdirstem"
54215 names_already_handled=
54216 names_next_round='intl '
54217 while test -n "$names_next_round"; do
54218 names_this_round="$names_next_round"
54220 for name in $names_this_round; do
54222 for n in $names_already_handled; do
54223 if test "$n" = "$name"; then
54224 already_handled=yes
54228 if test -z "$already_handled"; then
54229 names_already_handled="$names_already_handled $name"
54230 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
54231 eval value=\"\$HAVE_LIB$uppername\"
54232 if test -n "$value"; then
54233 if test "$value" = yes; then
54234 eval value=\"\$LIB$uppername\"
54235 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
54236 eval value=\"\$LTLIB$uppername\"
54237 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
54246 if test $use_additional = yes; then
54247 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
54248 found_dir="$additional_libdir"
54249 found_so="$additional_libdir/lib$name.$shlibext"
54250 if test -f "$additional_libdir/lib$name.la"; then
54251 found_la="$additional_libdir/lib$name.la"
54254 if test -f "$additional_libdir/lib$name.$libext"; then
54255 found_dir="$additional_libdir"
54256 found_a="$additional_libdir/lib$name.$libext"
54257 if test -f "$additional_libdir/lib$name.la"; then
54258 found_la="$additional_libdir/lib$name.la"
54263 if test "X$found_dir" = "X"; then
54264 for x in $LDFLAGS $LTLIBINTL; do
54266 acl_save_prefix="$prefix"
54267 prefix="$acl_final_prefix"
54268 acl_save_exec_prefix="$exec_prefix"
54269 exec_prefix="$acl_final_exec_prefix"
54271 exec_prefix="$acl_save_exec_prefix"
54272 prefix="$acl_save_prefix"
54276 dir=`echo "X$x" | sed -e 's/^X-L//'`
54277 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
54279 found_so="$dir/lib$name.$shlibext"
54280 if test -f "$dir/lib$name.la"; then
54281 found_la="$dir/lib$name.la"
54284 if test -f "$dir/lib$name.$libext"; then
54286 found_a="$dir/lib$name.$libext"
54287 if test -f "$dir/lib$name.la"; then
54288 found_la="$dir/lib$name.la"
54294 if test "X$found_dir" != "X"; then
54299 if test "X$found_dir" != "X"; then
54300 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
54301 if test "X$found_so" != "X"; then
54302 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
54303 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54306 for x in $ltrpathdirs; do
54307 if test "X$x" = "X$found_dir"; then
54312 if test -z "$haveit"; then
54313 ltrpathdirs="$ltrpathdirs $found_dir"
54315 if test "$hardcode_direct" = yes; then
54316 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54318 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
54319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54321 for x in $rpathdirs; do
54322 if test "X$x" = "X$found_dir"; then
54327 if test -z "$haveit"; then
54328 rpathdirs="$rpathdirs $found_dir"
54332 for x in $LDFLAGS $LIBINTL; do
54334 acl_save_prefix="$prefix"
54335 prefix="$acl_final_prefix"
54336 acl_save_exec_prefix="$exec_prefix"
54337 exec_prefix="$acl_final_exec_prefix"
54339 exec_prefix="$acl_save_exec_prefix"
54340 prefix="$acl_save_prefix"
54342 if test "X$x" = "X-L$found_dir"; then
54347 if test -z "$haveit"; then
54348 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
54350 if test "$hardcode_minus_L" != no; then
54351 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54353 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54359 if test "X$found_a" != "X"; then
54360 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
54362 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
54365 additional_includedir=
54366 case "$found_dir" in
54367 */$acl_libdirstem | */$acl_libdirstem/)
54368 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54369 additional_includedir="$basedir/include"
54372 if test "X$additional_includedir" != "X"; then
54373 if test "X$additional_includedir" != "X/usr/include"; then
54375 if test "X$additional_includedir" = "X/usr/local/include"; then
54376 if test -n "$GCC"; then
54378 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54382 if test -z "$haveit"; then
54383 for x in $CPPFLAGS $INCINTL; do
54385 acl_save_prefix="$prefix"
54386 prefix="$acl_final_prefix"
54387 acl_save_exec_prefix="$exec_prefix"
54388 exec_prefix="$acl_final_exec_prefix"
54390 exec_prefix="$acl_save_exec_prefix"
54391 prefix="$acl_save_prefix"
54393 if test "X$x" = "X-I$additional_includedir"; then
54398 if test -z "$haveit"; then
54399 if test -d "$additional_includedir"; then
54400 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
54406 if test -n "$found_la"; then
54407 save_libdir="$libdir"
54408 case "$found_la" in
54409 */* | *\\*) . "$found_la" ;;
54410 *) . "./$found_la" ;;
54412 libdir="$save_libdir"
54413 for dep in $dependency_libs; do
54416 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54417 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
54419 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
54420 if test -n "$GCC"; then
54422 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54426 if test -z "$haveit"; then
54428 for x in $LDFLAGS $LIBINTL; do
54430 acl_save_prefix="$prefix"
54431 prefix="$acl_final_prefix"
54432 acl_save_exec_prefix="$exec_prefix"
54433 exec_prefix="$acl_final_exec_prefix"
54435 exec_prefix="$acl_save_exec_prefix"
54436 prefix="$acl_save_prefix"
54438 if test "X$x" = "X-L$additional_libdir"; then
54443 if test -z "$haveit"; then
54444 if test -d "$additional_libdir"; then
54445 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
54449 for x in $LDFLAGS $LTLIBINTL; do
54451 acl_save_prefix="$prefix"
54452 prefix="$acl_final_prefix"
54453 acl_save_exec_prefix="$exec_prefix"
54454 exec_prefix="$acl_final_exec_prefix"
54456 exec_prefix="$acl_save_exec_prefix"
54457 prefix="$acl_save_prefix"
54459 if test "X$x" = "X-L$additional_libdir"; then
54464 if test -z "$haveit"; then
54465 if test -d "$additional_libdir"; then
54466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
54473 dir=`echo "X$dep" | sed -e 's/^X-R//'`
54474 if test "$enable_rpath" != no; then
54476 for x in $rpathdirs; do
54477 if test "X$x" = "X$dir"; then
54482 if test -z "$haveit"; then
54483 rpathdirs="$rpathdirs $dir"
54486 for x in $ltrpathdirs; do
54487 if test "X$x" = "X$dir"; then
54492 if test -z "$haveit"; then
54493 ltrpathdirs="$ltrpathdirs $dir"
54498 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54501 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54504 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
54505 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
54511 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54512 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
54518 if test "X$rpathdirs" != "X"; then
54519 if test -n "$hardcode_libdir_separator"; then
54521 for found_dir in $rpathdirs; do
54522 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
54524 acl_save_libdir="$libdir"
54526 eval flag=\"$hardcode_libdir_flag_spec\"
54527 libdir="$acl_save_libdir"
54528 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54530 for found_dir in $rpathdirs; do
54531 acl_save_libdir="$libdir"
54532 libdir="$found_dir"
54533 eval flag=\"$hardcode_libdir_flag_spec\"
54534 libdir="$acl_save_libdir"
54535 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54539 if test "X$ltrpathdirs" != "X"; then
54540 for found_dir in $ltrpathdirs; do
54541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54545 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54546 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
54547 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
54548 echo $ECHO_N "(cached) $ECHO_C" >&6
54550 gt_save_CPPFLAGS="$CPPFLAGS"
54551 CPPFLAGS="$CPPFLAGS $INCINTL"
54552 gt_save_LIBS="$LIBS"
54553 LIBS="$LIBS $LIBINTL"
54554 cat >conftest.$ac_ext <<_ACEOF
54557 cat confdefs.h >>conftest.$ac_ext
54558 cat >>conftest.$ac_ext <<_ACEOF
54559 /* end confdefs.h. */
54560 #include <libintl.h>
54561 extern int _nl_msg_cat_cntr;
54566 const char *_nl_expand_alias (const char *);
54570 bindtextdomain ("", "");
54571 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54576 rm -f conftest.$ac_objext conftest$ac_exeext
54577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54578 (eval $ac_link) 2>conftest.er1
54580 grep -v '^ *+' conftest.er1 >conftest.err
54582 cat conftest.err >&5
54583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54584 (exit $ac_status); } &&
54585 { ac_try='test -z "$ac_c_werror_flag"
54586 || test ! -s conftest.err'
54587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54588 (eval $ac_try) 2>&5
54590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54591 (exit $ac_status); }; } &&
54592 { ac_try='test -s conftest$ac_exeext'
54593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54594 (eval $ac_try) 2>&5
54596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54597 (exit $ac_status); }; }; then
54598 gt_cv_func_gnugettext2_libintl=yes
54600 echo "$as_me: failed program was:" >&5
54601 sed 's/^/| /' conftest.$ac_ext >&5
54603 gt_cv_func_gnugettext2_libintl=no
54606 rm -f conftest.err conftest.$ac_objext \
54607 conftest$ac_exeext conftest.$ac_ext
54608 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
54609 LIBS="$LIBS $LIBICONV"
54610 cat >conftest.$ac_ext <<_ACEOF
54613 cat confdefs.h >>conftest.$ac_ext
54614 cat >>conftest.$ac_ext <<_ACEOF
54615 /* end confdefs.h. */
54616 #include <libintl.h>
54617 extern int _nl_msg_cat_cntr;
54622 const char *_nl_expand_alias (const char *);
54626 bindtextdomain ("", "");
54627 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54632 rm -f conftest.$ac_objext conftest$ac_exeext
54633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54634 (eval $ac_link) 2>conftest.er1
54636 grep -v '^ *+' conftest.er1 >conftest.err
54638 cat conftest.err >&5
54639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54640 (exit $ac_status); } &&
54641 { ac_try='test -z "$ac_c_werror_flag"
54642 || test ! -s conftest.err'
54643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54644 (eval $ac_try) 2>&5
54646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54647 (exit $ac_status); }; } &&
54648 { ac_try='test -s conftest$ac_exeext'
54649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54650 (eval $ac_try) 2>&5
54652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54653 (exit $ac_status); }; }; then
54654 LIBINTL="$LIBINTL $LIBICONV"
54655 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54656 gt_cv_func_gnugettext2_libintl=yes
54659 echo "$as_me: failed program was:" >&5
54660 sed 's/^/| /' conftest.$ac_ext >&5
54665 rm -f conftest.err conftest.$ac_objext \
54666 conftest$ac_exeext conftest.$ac_ext
54668 CPPFLAGS="$gt_save_CPPFLAGS"
54669 LIBS="$gt_save_LIBS"
54671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
54672 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
54675 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
54676 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
54677 && test "$PACKAGE" != gettext-runtime \
54678 && test "$PACKAGE" != gettext-tools; }; then
54679 gt_use_preinstalled_gnugettext=yes
54688 if test -n "$INTL_MACOSX_LIBS"; then
54689 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54690 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54691 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54692 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54696 if test "$gt_use_preinstalled_gnugettext" = "yes" \
54697 || test "$nls_cv_use_gnu_gettext" = "yes"; then
54699 cat >>confdefs.h <<\_ACEOF
54700 #define ENABLE_NLS 1
54708 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
54709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
54710 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
54711 echo "${ECHO_T}$USE_NLS" >&6; }
54712 if test "$USE_NLS" = "yes"; then
54713 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
54715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54716 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
54717 gt_source="external libintl"
54722 gt_source="included intl directory"
54724 { echo "$as_me:$LINENO: result: $gt_source" >&5
54725 echo "${ECHO_T}$gt_source" >&6; }
54728 if test "$USE_NLS" = "yes"; then
54730 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54731 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
54732 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
54733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
54734 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
54735 echo "${ECHO_T}$LIBINTL" >&6; }
54737 for element in $INCINTL; do
54739 for x in $CPPFLAGS; do
54741 acl_save_prefix="$prefix"
54742 prefix="$acl_final_prefix"
54743 acl_save_exec_prefix="$exec_prefix"
54744 exec_prefix="$acl_final_exec_prefix"
54746 exec_prefix="$acl_save_exec_prefix"
54747 prefix="$acl_save_prefix"
54749 if test "X$x" = "X$element"; then
54754 if test -z "$haveit"; then
54755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54762 cat >>confdefs.h <<\_ACEOF
54763 #define HAVE_GETTEXT 1
54767 cat >>confdefs.h <<\_ACEOF
54768 #define HAVE_DCGETTEXT 1
54778 INTLLIBS="$LIBINTL"
54787 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"
54789 cat >confcache <<\_ACEOF
54790 # This file is a shell script that caches the results of configure
54791 # tests run on this system so they can be shared between configure
54792 # scripts and configure runs, see configure's option --config-cache.
54793 # It is not useful on other systems. If it contains results you don't
54794 # want to keep, you may remove or edit it.
54796 # config.status only pays attention to the cache file if you give it
54797 # the --recheck option to rerun configure.
54799 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54800 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54801 # following values.
54805 # The following way of writing the cache mishandles newlines in values,
54806 # but we know of no workaround that is simple, portable, and efficient.
54807 # So, we kill variables containing newlines.
54808 # Ultrix sh set writes to stderr and can't be redirected directly,
54809 # and sets the high bit in the cache file unless we assign to the vars.
54811 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54812 eval ac_val=\$$ac_var
54816 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
54817 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
54820 _ | IFS | as_nl) ;; #(
54821 *) $as_unset $ac_var ;;
54827 case $as_nl`(ac_space=' '; set) 2>&1` in #(
54828 *${as_nl}ac_space=\ *)
54829 # `set' does not quote correctly, so add quotes (double-quote
54830 # substitution turns \\\\ into \\, and sed turns \\ into \).
54833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54836 # `set' quotes correctly as required by POSIX, so do not add quotes.
54837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
54850 if test -w $cache_file; then
54851 test "x$cache_file" != "x/dev/null" &&
54852 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
54853 echo "$as_me: updating cache $cache_file" >&6;}
54854 cat confcache >$cache_file
54856 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54857 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54863 # Let make expand exec_prefix.
54864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54866 DEFS=-DHAVE_CONFIG_H
54870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54871 # 1. Remove the extension, and $U if already installed.
54872 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54873 ac_i=`echo "$ac_i" | sed "$ac_script"`
54874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
54875 # will be set to the directory where LIBOBJS objects are built.
54876 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54877 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54879 LIBOBJS=$ac_libobjs
54881 LTLIBOBJS=$ac_ltlibobjs
54884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54885 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54886 Usually this means the macro was only invoked conditionally." >&5
54887 echo "$as_me: error: conditional \"AMDEP\" was never defined.
54888 Usually this means the macro was only invoked conditionally." >&2;}
54889 { (exit 1); exit 1; }; }
54891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54893 Usually this means the macro was only invoked conditionally." >&5
54894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54895 Usually this means the macro was only invoked conditionally." >&2;}
54896 { (exit 1); exit 1; }; }
54899 : ${CONFIG_STATUS=./config.status}
54900 ac_clean_files_save=$ac_clean_files
54901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54902 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
54904 cat >$CONFIG_STATUS <<_ACEOF
54906 # Generated by $as_me.
54907 # Run this file to recreate the current configuration.
54908 # Compiler output produced by configure, useful for debugging
54909 # configure, is in config.log if it exists.
54912 ac_cs_recheck=false
54914 SHELL=\${CONFIG_SHELL-$SHELL}
54917 cat >>$CONFIG_STATUS <<\_ACEOF
54918 ## --------------------- ##
54919 ## M4sh Initialization. ##
54920 ## --------------------- ##
54922 # Be Bourne compatible
54923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54926 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54927 # is contrary to our usage. Disable this feature.
54928 alias -g '${1+"$@"}'='"$@"'
54929 setopt NO_GLOB_SUBST
54931 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
54933 BIN_SH=xpg4; export BIN_SH # for Tru64
54934 DUALCASE=1; export DUALCASE # for MKS sh
54938 # Avoid depending upon Character Ranges.
54939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54942 as_cr_digits='0123456789'
54943 as_cr_alnum=$as_cr_Letters$as_cr_digits
54945 # The user is always right.
54946 if test "${PATH_SEPARATOR+set}" != set; then
54947 echo "#! /bin/sh" >conf$$.sh
54948 echo "exit 0" >>conf$$.sh
54950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54958 # Support unset when possible.
54959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54967 # We need space, tab and new line, in precisely that order. Quoting is
54968 # there to prevent editors from complaining about space-tab.
54969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54970 # splitting by setting IFS to empty value.)
54975 # Find who we are. Look in the path if we contain no directory separator.
54977 *[\\/]* ) as_myself=$0 ;;
54978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54979 for as_dir in $PATH
54982 test -z "$as_dir" && as_dir=.
54983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54989 # We did not find ourselves, most probably we were run as `sh COMMAND'
54990 # in which case we are not to be found in the path.
54991 if test "x$as_myself" = x; then
54994 if test ! -f "$as_myself"; then
54995 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
54996 { (exit 1); exit 1; }; }
54999 # Work around bugs in pre-3.0 UWIN ksh.
55000 for as_var in ENV MAIL MAILPATH
55001 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55009 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
55010 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
55011 LC_TELEPHONE LC_TIME
55013 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55014 eval $as_var=C; export $as_var
55016 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55020 # Required to use basename.
55021 if expr a : '\(a\)' >/dev/null 2>&1 &&
55022 test "X`expr 00001 : '.*\(...\)'`" = X001; then
55028 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55029 as_basename=basename
55035 # Name of the executable.
55036 as_me=`$as_basename "$0" ||
55037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55038 X"$0" : 'X\(//\)$' \| \
55039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
55041 sed '/^.*\/\([^/][^/]*\)\/*$/{
55060 as_lineno_1=$LINENO
55061 as_lineno_2=$LINENO
55062 test "x$as_lineno_1" != "x$as_lineno_2" &&
55063 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
55065 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
55066 # uniformly replaced by the line number. The first 'sed' inserts a
55067 # line-number line after each line using $LINENO; the second 'sed'
55068 # does the real work. The second script uses 'N' to pair each
55069 # line-number line with the line containing $LINENO, and appends
55070 # trailing '-' during substitution so that $LINENO is not a special
55071 # case at line end.
55072 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
55073 # scripts with optimization help from Paolo Bonzini. Blame Lee
55074 # E. McMahon (1931-1989) for sed's syntax. :-)
55086 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
55089 ' >$as_me.lineno &&
55090 chmod +x "$as_me.lineno" ||
55091 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
55092 { (exit 1); exit 1; }; }
55094 # Don't try to exec as it changes $[0], causing all sort of problems
55095 # (the dirname of $[0] is not the place where we might find the
55096 # original and so on. Autoconf is especially sensitive to this).
55097 . "./$as_me.lineno"
55098 # Exit status is that of the last command.
55103 if (dirname /) >/dev/null 2>&1; then
55109 ECHO_C= ECHO_N= ECHO_T=
55110 case `echo -n x` in
55112 case `echo 'x\c'` in
55113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
55120 if expr a : '\(a\)' >/dev/null 2>&1 &&
55121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
55127 rm -f conf$$ conf$$.exe conf$$.file
55128 if test -d conf$$.dir; then
55129 rm -f conf$$.dir/conf$$.file
55135 if ln -s conf$$.file conf$$ 2>/dev/null; then
55137 # ... but there are two gotchas:
55138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
55139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
55140 # In both cases, we have to default to `cp -p'.
55141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55143 elif ln conf$$.file conf$$ 2>/dev/null; then
55148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
55149 rmdir conf$$.dir 2>/dev/null
55151 if mkdir -p . 2>/dev/null; then
55154 test -d ./-p && rmdir ./-p
55158 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
55159 # systems may use methods other than mode bits to determine executability.
55160 cat >conf$$.file <<_ASEOF
55164 chmod +x conf$$.file
55165 if test -x conf$$.file >/dev/null 2>&1; then
55166 as_executable_p="test -x"
55172 # Sed expression to map a string onto a valid CPP name.
55173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55175 # Sed expression to map a string onto a valid variable name.
55176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55181 # Save the log message, to keep $[0] and so on meaningful, and to
55182 # report actual input values of CONFIG_FILES etc. instead of their
55183 # values after options handling.
55185 This file was extended by GNU coreutils $as_me 6.0-cvs, which was
55186 generated by GNU Autoconf 2.59c. Invocation command line was
55188 CONFIG_FILES = $CONFIG_FILES
55189 CONFIG_HEADERS = $CONFIG_HEADERS
55190 CONFIG_LINKS = $CONFIG_LINKS
55191 CONFIG_COMMANDS = $CONFIG_COMMANDS
55194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
55199 cat >>$CONFIG_STATUS <<_ACEOF
55200 # Files that config.status was made for.
55201 config_files="$ac_config_files"
55202 config_headers="$ac_config_headers"
55203 config_commands="$ac_config_commands"
55207 cat >>$CONFIG_STATUS <<\_ACEOF
55209 \`$as_me' instantiates files from templates according to the
55210 current configuration.
55212 Usage: $0 [OPTIONS] [FILE]...
55214 -h, --help print this help, then exit
55215 -V, --version print version number, then exit
55216 -q, --quiet do not print progress messages
55217 -d, --debug don't remove temporary files
55218 --recheck update $as_me by reconfiguring in the same conditions
55219 --file=FILE[:TEMPLATE]
55220 instantiate the configuration file FILE
55221 --header=FILE[:TEMPLATE]
55222 instantiate the configuration header FILE
55224 Configuration files:
55227 Configuration headers:
55230 Configuration commands:
55233 Report bugs to <bug-autoconf@gnu.org>."
55236 cat >>$CONFIG_STATUS <<_ACEOF
55238 GNU coreutils config.status 6.0-cvs
55239 configured by $0, generated by GNU Autoconf 2.59c,
55240 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
55242 Copyright (C) 2006 Free Software Foundation, Inc.
55243 This config.status script is free software; the Free Software Foundation
55244 gives unlimited permission to copy, distribute and modify it."
55252 cat >>$CONFIG_STATUS <<\_ACEOF
55253 # If no file are specified by the user, then we need to provide default
55254 # value. By we need to know if files were specified by the user.
55260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
55261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55272 # Handling of the options.
55273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
55276 echo "$ac_cs_version"; exit ;;
55277 --debug | --debu | --deb | --de | --d | -d )
55279 --file | --fil | --fi | --f )
55281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
55282 ac_need_defaults=false;;
55283 --header | --heade | --head | --hea )
55285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
55286 ac_need_defaults=false;;
55288 # Conflict between --help and --header
55289 { echo "$as_me: error: ambiguous option: $1
55290 Try \`$0 --help' for more information." >&2
55291 { (exit 1); exit 1; }; };;
55292 --help | --hel | -h )
55293 echo "$ac_cs_usage"; exit ;;
55294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
55298 # This is an error.
55299 -*) { echo "$as_me: error: unrecognized option: $1
55300 Try \`$0 --help' for more information." >&2
55301 { (exit 1); exit 1; }; } ;;
55303 *) ac_config_targets="$ac_config_targets $1"
55304 ac_need_defaults=false ;;
55310 ac_configure_extra_args=
55312 if $ac_cs_silent; then
55314 ac_configure_extra_args="$ac_configure_extra_args --silent"
55320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55321 ## Running $as_me. ##
55327 cat >>$CONFIG_STATUS <<_ACEOF
55328 if \$ac_cs_recheck; then
55329 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
55330 CONFIG_SHELL=$SHELL
55331 export CONFIG_SHELL
55332 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55337 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
55338 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
55339 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
55341 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
55342 # Capture the value of LINGUAS because we need it to compute CATALOGS.
55343 LINGUAS="${LINGUAS-%UNSET%}"
55348 cat >>$CONFIG_STATUS <<\_ACEOF
55350 # Handling of arguments.
55351 for ac_config_target in $ac_config_targets
55353 case $ac_config_target in
55354 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
55355 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55356 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
55357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55358 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
55359 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
55360 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
55361 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
55362 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
55363 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
55364 "tests/chgrp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
55365 "tests/chmod/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
55366 "tests/chown/Makefile") CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
55367 "tests/cp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
55368 "tests/cut/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
55369 "tests/dd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
55370 "tests/dircolors/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
55371 "tests/du/Makefile") CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
55372 "tests/expr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
55373 "tests/factor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
55374 "tests/fmt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
55375 "tests/head/Makefile") CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
55376 "tests/install/Makefile") CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
55377 "tests/join/Makefile") CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
55378 "tests/ln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
55379 "tests/ls-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
55380 "tests/ls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
55381 "tests/md5sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
55382 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
55383 "tests/mkdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
55384 "tests/mv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
55385 "tests/od/Makefile") CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
55386 "tests/pr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
55387 "tests/readlink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
55388 "tests/rm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
55389 "tests/rmdir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
55390 "tests/seq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
55391 "tests/sha1sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
55392 "tests/shred/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
55393 "tests/sort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
55394 "tests/stty/Makefile") CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
55395 "tests/sum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
55396 "tests/tac/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
55397 "tests/tail-2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
55398 "tests/tail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
55399 "tests/tee/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tee/Makefile" ;;
55400 "tests/test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
55401 "tests/touch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
55402 "tests/tr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
55403 "tests/tsort/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
55404 "tests/unexpand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
55405 "tests/uniq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
55406 "tests/wc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
55408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
55409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
55410 { (exit 1); exit 1; }; };;
55415 # If the user did not use the arguments to specify the items to instantiate,
55416 # then the envvar interface is used. Set only those that are not.
55417 # We use the long form for the default assignment because of an extremely
55418 # bizarre bug on SunOS 4.1.3.
55419 if $ac_need_defaults; then
55420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55425 # Have a temporary directory for convenience. Make it in the build tree
55426 # simply because there is no reason against having it here, and in addition,
55427 # creating and moving files from /tmp can sometimes cause problems.
55428 # Hook for its removal unless debugging.
55429 # Note that there is a small window in which the directory will not be cleaned:
55430 # after its creation but before its name has been assigned to `$tmp'.
55434 trap 'exit_status=$?
55435 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
55437 trap '{ (exit 1); exit 1; }' 1 2 13 15
55439 # Create a (secure) tmp directory for tmp files.
55442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55443 test -n "$tmp" && test -d "$tmp"
55446 tmp=./conf$$-$RANDOM
55447 (umask 077 && mkdir "$tmp")
55450 echo "$me: cannot create a temporary directory in ." >&2
55451 { (exit 1); exit 1; }
55455 # Set up the sed scripts for CONFIG_FILES section.
55458 # No need to generate the scripts if there are no CONFIG_FILES.
55459 # This happens for instance when ./config.status config.h
55460 if test -n "$CONFIG_FILES"; then
55467 for ac_last_try in false false false false false :; do
55468 cat >conf$$subs.sed <<_ACEOF
55469 SHELL!$SHELL$ac_delim
55470 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
55471 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
55472 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
55473 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
55474 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
55475 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
55476 exec_prefix!$exec_prefix$ac_delim
55477 prefix!$prefix$ac_delim
55478 program_transform_name!$program_transform_name$ac_delim
55479 bindir!$bindir$ac_delim
55480 sbindir!$sbindir$ac_delim
55481 libexecdir!$libexecdir$ac_delim
55482 datarootdir!$datarootdir$ac_delim
55483 datadir!$datadir$ac_delim
55484 sysconfdir!$sysconfdir$ac_delim
55485 sharedstatedir!$sharedstatedir$ac_delim
55486 localstatedir!$localstatedir$ac_delim
55487 includedir!$includedir$ac_delim
55488 oldincludedir!$oldincludedir$ac_delim
55489 docdir!$docdir$ac_delim
55490 infodir!$infodir$ac_delim
55491 htmldir!$htmldir$ac_delim
55492 dvidir!$dvidir$ac_delim
55493 pdfdir!$pdfdir$ac_delim
55494 psdir!$psdir$ac_delim
55495 libdir!$libdir$ac_delim
55496 localedir!$localedir$ac_delim
55497 mandir!$mandir$ac_delim
55498 DEFS!$DEFS$ac_delim
55499 ECHO_C!$ECHO_C$ac_delim
55500 ECHO_N!$ECHO_N$ac_delim
55501 ECHO_T!$ECHO_T$ac_delim
55502 LIBS!$LIBS$ac_delim
55503 build_alias!$build_alias$ac_delim
55504 host_alias!$host_alias$ac_delim
55505 target_alias!$target_alias$ac_delim
55506 build!$build$ac_delim
55507 build_cpu!$build_cpu$ac_delim
55508 build_vendor!$build_vendor$ac_delim
55509 build_os!$build_os$ac_delim
55510 host!$host$ac_delim
55511 host_cpu!$host_cpu$ac_delim
55512 host_vendor!$host_vendor$ac_delim
55513 host_os!$host_os$ac_delim
55514 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
55515 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
55516 INSTALL_DATA!$INSTALL_DATA$ac_delim
55517 CYGPATH_W!$CYGPATH_W$ac_delim
55518 PACKAGE!$PACKAGE$ac_delim
55519 VERSION!$VERSION$ac_delim
55520 ACLOCAL!$ACLOCAL$ac_delim
55521 AUTOCONF!$AUTOCONF$ac_delim
55522 AUTOMAKE!$AUTOMAKE$ac_delim
55523 AUTOHEADER!$AUTOHEADER$ac_delim
55524 MAKEINFO!$MAKEINFO$ac_delim
55525 install_sh!$install_sh$ac_delim
55526 STRIP!$STRIP$ac_delim
55527 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
55528 mkdir_p!$mkdir_p$ac_delim
55530 SET_MAKE!$SET_MAKE$ac_delim
55531 am__leading_dot!$am__leading_dot$ac_delim
55532 AMTAR!$AMTAR$ac_delim
55533 am__tar!$am__tar$ac_delim
55534 am__untar!$am__untar$ac_delim
55535 DEFAULT_POSIX2_VERSION!$DEFAULT_POSIX2_VERSION$ac_delim
55537 CFLAGS!$CFLAGS$ac_delim
55538 LDFLAGS!$LDFLAGS$ac_delim
55539 CPPFLAGS!$CPPFLAGS$ac_delim
55540 ac_ct_CC!$ac_ct_CC$ac_delim
55541 EXEEXT!$EXEEXT$ac_delim
55542 OBJEXT!$OBJEXT$ac_delim
55543 DEPDIR!$DEPDIR$ac_delim
55544 am__include!$am__include$ac_delim
55545 am__quote!$am__quote$ac_delim
55546 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
55547 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
55548 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
55549 CCDEPMODE!$CCDEPMODE$ac_delim
55550 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
55551 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
55553 GREP!$GREP$ac_delim
55554 EGREP!$EGREP$ac_delim
55555 PERL!$PERL$ac_delim
55556 RANLIB!$RANLIB$ac_delim
55557 LN_S!$LN_S$ac_delim
55558 GNU_PACKAGE!$GNU_PACKAGE$ac_delim
55559 HELP2MAN!$HELP2MAN$ac_delim
55560 OPTIONAL_BIN_PROGS!$OPTIONAL_BIN_PROGS$ac_delim
55562 DF_PROG!$DF_PROG$ac_delim
55564 ANSI2KNR!$ANSI2KNR$ac_delim
55565 LIBOBJS!$LIBOBJS$ac_delim
55568 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
55570 elif $ac_last_try; then
55571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55573 { (exit 1); exit 1; }; }
55575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55580 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
55581 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
55582 ac_eof=`expr 0$ac_eof + 1`
55585 cat >>$CONFIG_STATUS <<_ACEOF
55586 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
55587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55591 s/^/s,@/; s/!/@,|#_!!_#|/
55594 s/'"$ac_delim"'$/,g/; t
55596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55597 ' >>$CONFIG_STATUS <conf$$subs.sed
55598 rm -f conf$$subs.sed
55599 cat >>$CONFIG_STATUS <<_ACEOF
55605 for ac_last_try in false false false false false :; do
55606 cat >conf$$subs.sed <<_ACEOF
55607 STDBOOL_H!$STDBOOL_H$ac_delim
55608 HAVE__BOOL!$HAVE__BOOL$ac_delim
55609 ALLOCA!$ALLOCA$ac_delim
55610 ALLOCA_H!$ALLOCA_H$ac_delim
55611 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
55612 FNMATCH_H!$FNMATCH_H$ac_delim
55613 NEED_SETGID!$NEED_SETGID$ac_delim
55614 KMEM_GROUP!$KMEM_GROUP$ac_delim
55615 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
55616 LIB_EACCESS!$LIB_EACCESS$ac_delim
55617 POW_LIB!$POW_LIB$ac_delim
55618 EOVERFLOW!$EOVERFLOW$ac_delim
55619 YACC!$YACC$ac_delim
55620 YFLAGS!$YFLAGS$ac_delim
55621 LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
55622 LIB_GETHRXTIME!$LIB_GETHRXTIME$ac_delim
55623 GETOPT_H!$GETOPT_H$ac_delim
55624 GLIBC21!$GLIBC21$ac_delim
55625 HAVE_LONG_64BIT!$HAVE_LONG_64BIT$ac_delim
55626 HAVE_LONG_LONG_64BIT!$HAVE_LONG_LONG_64BIT$ac_delim
55627 STDINT_H!$STDINT_H$ac_delim
55628 LIB_NANOSLEEP!$LIB_NANOSLEEP$ac_delim
55629 LIB_ACL!$LIB_ACL$ac_delim
55630 LIB_FDATASYNC!$LIB_FDATASYNC$ac_delim
55631 SEQ_LIBM!$SEQ_LIBM$ac_delim
55632 LIBICONV!$LIBICONV$ac_delim
55633 LTLIBICONV!$LTLIBICONV$ac_delim
55634 LIB_CRYPT!$LIB_CRYPT$ac_delim
55635 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
55636 USE_NLS!$USE_NLS$ac_delim
55637 MSGFMT!$MSGFMT$ac_delim
55638 GMSGFMT!$GMSGFMT$ac_delim
55639 XGETTEXT!$XGETTEXT$ac_delim
55640 MSGMERGE!$MSGMERGE$ac_delim
55641 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
55642 INTLLIBS!$INTLLIBS$ac_delim
55643 LIBINTL!$LIBINTL$ac_delim
55644 LTLIBINTL!$LTLIBINTL$ac_delim
55645 POSUB!$POSUB$ac_delim
55646 LTLIBOBJS!$LTLIBOBJS$ac_delim
55649 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 40; then
55651 elif $ac_last_try; then
55652 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55654 { (exit 1); exit 1; }; }
55656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55661 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
55662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
55663 ac_eof=`expr 0$ac_eof + 1`
55666 cat >>$CONFIG_STATUS <<_ACEOF
55667 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
55668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
55671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55672 s/^/s,@/; s/!/@,|#_!!_#|/
55675 s/'"$ac_delim"'$/,g/; t
55677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55678 ' >>$CONFIG_STATUS <conf$$subs.sed
55679 rm -f conf$$subs.sed
55680 cat >>$CONFIG_STATUS <<_ACEOF
55687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55689 # trailing colons and then remove the whole line if VPATH becomes empty
55690 # (actually we leave an empty line to preserve line numbers).
55691 if test "x$srcdir" = x.; then
55692 ac_vpsub='/^[ ]*VPATH[ ]*=/{
55693 s/:*\$(srcdir):*/:/
55694 s/:*\${srcdir}:*/:/
55696 s/^\([^=]*=[ ]*\):*/\1/
55702 cat >>$CONFIG_STATUS <<\_ACEOF
55703 fi # test -n "$CONFIG_FILES"
55706 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
55709 :[FHLC]) ac_mode=$ac_tag; continue;;
55711 case $ac_mode$ac_tag in
55713 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
55714 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
55715 { (exit 1); exit 1; }; };;
55716 :[FH]-) ac_tag=-:-;;
55717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55734 -) ac_f="$tmp/stdin";;
55735 *) # Look for the file first in the build tree, then in the source tree
55736 # (if the path is not absolute). The absolute path cannot be DOS-style,
55737 # because $ac_f cannot contain `:'.
55741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55743 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55744 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55745 { (exit 1); exit 1; }; };;
55747 ac_file_inputs="$ac_file_inputs $ac_f"
55750 # Let's still pretend it is `configure' which instantiates (i.e., don't
55751 # use $as_me), people would be surprised to read:
55752 # /* config.h. Generated by config.status. */
55753 configure_input="Generated from "`IFS=:
55754 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
55755 if test x"$ac_file" != x-; then
55756 configure_input="$ac_file. $configure_input"
55757 { echo "$as_me:$LINENO: creating $ac_file" >&5
55758 echo "$as_me: creating $ac_file" >&6;}
55762 *:-:* | *:-) cat >"$tmp/stdin";;
55767 ac_dir=`$as_dirname "$ac_file" ||
55768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55769 X"$ac_file" : 'X\(//\)[^/]' \| \
55770 X"$ac_file" : 'X\(//\)$' \| \
55771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55777 /^X\(\/\/\)[^/].*/{
55790 { if $as_mkdir_p; then
55791 test -d "$ac_dir" || mkdir -p "$ac_dir"
55795 while test ! -d "$as_dir"; do
55796 as_dirs="$as_dir $as_dirs"
55797 as_dir=`$as_dirname "$as_dir" ||
55798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55799 X"$as_dir" : 'X\(//\)[^/]' \| \
55800 X"$as_dir" : 'X\(//\)$' \| \
55801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55807 /^X\(\/\/\)[^/].*/{
55821 test ! -n "$as_dirs" || mkdir $as_dirs
55822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
55823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
55824 { (exit 1); exit 1; }; }; }
55828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55831 # A ".." for each directory in $ac_dir_suffix.
55832 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55833 case $ac_top_builddir_sub in
55834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55838 ac_abs_top_builddir=$ac_pwd
55839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55840 # for backward compatibility:
55841 ac_top_builddir=$ac_top_build_prefix
55844 .) # We are building in place.
55846 ac_top_srcdir=$ac_top_builddir_sub
55847 ac_abs_top_srcdir=$ac_pwd ;;
55848 [\\/]* | ?:[\\/]* ) # Absolute name.
55849 ac_srcdir=$srcdir$ac_dir_suffix;
55850 ac_top_srcdir=$srcdir
55851 ac_abs_top_srcdir=$srcdir ;;
55852 *) # Relative name.
55853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55854 ac_top_srcdir=$ac_top_build_prefix$srcdir
55855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55868 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55873 cat >>$CONFIG_STATUS <<\_ACEOF
55874 # If the template does not know about datarootdir, expand it.
55875 # FIXME: This hack should be removed a few years after 2.60.
55876 ac_datarootdir_hack=
55878 case `sed -n '/datarootdir/ {
55887 ' $ac_file_inputs` in
55889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55893 cat >>$CONFIG_STATUS <<_ACEOF
55894 ac_datarootdir_hack='
55895 s&@datadir@&$datadir&g
55896 s&@docdir@&$docdir&g
55897 s&@infodir@&$infodir&g
55898 s&@localedir@&$localedir&g
55899 s&@mandir@&$mandir&g
55900 s&\\\${datarootdir}&$datarootdir&g' ;;
55904 # Neutralize VPATH when `$srcdir' = `.'.
55905 # Shell code in configure.ac might set extrasub.
55906 # FIXME: do we really want to maintain this feature?
55907 cat >>$CONFIG_STATUS <<_ACEOF
55911 cat >>$CONFIG_STATUS <<\_ACEOF
55913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55914 s&@configure_input@&$configure_input&;t t
55915 s&@top_builddir@&$ac_top_builddir_sub&;t t
55916 s&@srcdir@&$ac_srcdir&;t t
55917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55918 s&@top_srcdir@&$ac_top_srcdir&;t t
55919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55920 s&@builddir@&$ac_builddir&;t t
55921 s&@abs_builddir@&$ac_abs_builddir&;t t
55922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55923 s&@INSTALL@&$ac_INSTALL&;t t
55924 $ac_datarootdir_hack
55925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
55929 -) cat "$tmp/out"; rm -f "$tmp/out";;
55930 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55938 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55939 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55940 # PARAMS is the parameter list in the macro definition--in most cases, it's
55941 # just an empty string.
55943 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
55944 ac_dB='\)[ (].*$,\1define\2'
55948 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
55951 # Transform confdefs.h into a sed script `conftest.defines', that
55952 # substitutes the proper values into config.h.in to produce config.h.
55953 rm -f conftest.defines conftest.tail
55954 # First, append a space to every undef/define line, to ease matching.
55955 echo 's/$/ /' >conftest.defines
55956 # Then, protect against being on the right side of a sed subst, or in
55957 # an unquoted here document, in config.status. If some macros were
55958 # called several times there might be several #defines for the same
55959 # symbol, which is useless. But do not sort them, since the last
55960 # AC_DEFINE must be honored.
55961 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55966 s/^[ ]*#[ ]*define[ ][ ]*//
55972 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
55973 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
55974 ' >>conftest.defines
55976 # Remove the space that was appended to ease matching.
55977 # Then replace #undef with comments. This is necessary, for
55978 # example, in the case of _POSIX_SOURCE, which is predefined and required
55979 # on some systems where configure will not decide to define it.
55980 # (The regexp can be short, since the line contains either #define or #undef.)
55982 s,^[ #]*u.*,/* & */,' >>conftest.defines
55984 # Break up conftest.defines:
55985 ac_max_sed_lines=96
55987 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55988 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55989 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55991 ac_in='$ac_file_inputs'
55992 ac_out='"$tmp/out1"'
55993 ac_nxt='"$tmp/out2"'
55997 # Write a here document:
55998 echo ' # First, check the format of the line:
55999 cat >"$tmp/defines.sed" <<CEOF
56000 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
56001 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
56003 :def' >>$CONFIG_STATUS
56004 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
56006 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
56007 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
56008 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
56009 grep . conftest.tail >/dev/null || break
56010 rm -f conftest.defines
56011 mv conftest.tail conftest.defines
56013 rm -f conftest.defines conftest.tail
56015 echo "ac_result=$ac_in" >>$CONFIG_STATUS
56016 cat >>$CONFIG_STATUS <<\_ACEOF
56017 if test x"$ac_file" != x-; then
56018 echo "/* $configure_input */" >"$tmp/config.h"
56019 cat "$ac_result" >>"$tmp/config.h"
56020 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
56021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
56022 echo "$as_me: $ac_file is unchanged" >&6;}
56025 mv "$tmp/config.h" $ac_file
56028 echo "/* $configure_input */"
56032 # Compute $ac_file's index in $config_headers.
56034 for _am_header in $config_headers :; do
56035 case $_am_header in
56036 $ac_file | $ac_file:* )
56039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
56042 echo "timestamp for $ac_file" >`$as_dirname $ac_file ||
56043 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56044 X$ac_file : 'X\(//\)[^/]' \| \
56045 X$ac_file : 'X\(//\)$' \| \
56046 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
56048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56052 /^X\(\/\/\)[^/].*/{
56064 s/.*/./; q'`/stamp-h$_am_stamp_count
56067 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
56068 echo "$as_me: executing $ac_file commands" >&6;}
56073 case $ac_file$ac_mode in
56074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
56075 # Strip MF so we end up with the name of the file.
56076 mf=`echo "$mf" | sed -e 's/:.*$//'`
56077 # Check whether this is an Automake generated Makefile or not.
56078 # We used to match only the files named `Makefile.in', but
56079 # some people rename them; so instead we look at the file content.
56080 # Grep'ing the first line is not enough: some people post-process
56081 # each Makefile.in and add a new line on top of each file to say so.
56082 # So let's grep whole file.
56083 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
56084 dirpart=`$as_dirname "$mf" ||
56085 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56086 X"$mf" : 'X\(//\)[^/]' \| \
56087 X"$mf" : 'X\(//\)$' \| \
56088 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
56090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56094 /^X\(\/\/\)[^/].*/{
56110 # Extract the definition of DEPDIR, am__include, and am__quote
56111 # from the Makefile without running `make'.
56112 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
56113 test -z "$DEPDIR" && continue
56114 am__include=`sed -n 's/^am__include = //p' < "$mf"`
56115 test -z "am__include" && continue
56116 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
56117 # When using ansi2knr, U may be empty or an underscore; expand it
56118 U=`sed -n 's/^U = //p' < "$mf"`
56119 # Find all dependency output files, they are included files with
56120 # $(DEPDIR) in their names. We invoke sed twice because it is the
56121 # simplest approach to changing $(DEPDIR) to its actual value in the
56123 for file in `sed -n "
56124 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
56125 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
56126 # Make sure the directory exists.
56127 test -f "$dirpart/$file" && continue
56128 fdir=`$as_dirname "$file" ||
56129 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56130 X"$file" : 'X\(//\)[^/]' \| \
56131 X"$file" : 'X\(//\)$' \| \
56132 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
56134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56138 /^X\(\/\/\)[^/].*/{
56151 { if $as_mkdir_p; then
56152 test -d $dirpart/$fdir || mkdir -p $dirpart/$fdir
56154 as_dir=$dirpart/$fdir
56156 while test ! -d "$as_dir"; do
56157 as_dirs="$as_dir $as_dirs"
56158 as_dir=`$as_dirname "$as_dir" ||
56159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56160 X"$as_dir" : 'X\(//\)[^/]' \| \
56161 X"$as_dir" : 'X\(//\)$' \| \
56162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56168 /^X\(\/\/\)[^/].*/{
56182 test ! -n "$as_dirs" || mkdir $as_dirs
56183 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
56184 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
56185 { (exit 1); exit 1; }; }; }
56186 # echo "creating $dirpart/$file"
56187 echo '# dummy' > "$dirpart/$file"
56192 for ac_file in $CONFIG_FILES; do
56193 # Support "outfile[:infile[:infile...]]"
56195 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
56197 # PO directories have a Makefile.in generated from Makefile.in.in.
56198 case "$ac_file" in */Makefile.in)
56199 # Adjust a relative srcdir.
56200 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
56201 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
56202 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
56203 # In autoconf-2.13 it is called $ac_given_srcdir.
56204 # In autoconf-2.50 it is called $srcdir.
56205 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
56206 case "$ac_given_srcdir" in
56207 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
56208 /*) top_srcdir="$ac_given_srcdir" ;;
56209 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
56211 # Treat a directory as a PO directory if and only if it has a
56212 # POTFILES.in file. This allows packages to have multiple PO
56213 # directories under different names or in different locations.
56214 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
56215 rm -f "$ac_dir/POTFILES"
56216 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
56217 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
56218 POMAKEFILEDEPS="POTFILES.in"
56219 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
56220 # on $ac_dir but don't depend on user-specified configuration
56222 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
56223 # The LINGUAS file contains the set of available languages.
56224 if test -n "$OBSOLETE_ALL_LINGUAS"; then
56225 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
56227 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
56228 # Hide the ALL_LINGUAS assigment from automake.
56229 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
56230 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
56232 # The set of available languages was given in configure.in.
56233 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
56236 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
56237 # Compute UPDATEPOFILES
56238 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
56239 # Compute DUMMYPOFILES
56240 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
56242 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
56243 case "$ac_given_srcdir" in
56245 *) srcdirpre='$(srcdir)/' ;;
56251 for lang in $ALL_LINGUAS; do
56252 POFILES="$POFILES $srcdirpre$lang.po"
56253 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
56254 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
56255 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
56257 # CATALOGS depends on both $ac_dir and the user's LINGUAS
56258 # environment variable.
56260 if test -n "$ALL_LINGUAS"; then
56261 for presentlang in $ALL_LINGUAS; do
56263 if test "%UNSET%" != "$LINGUAS"; then
56264 desiredlanguages="$LINGUAS"
56266 desiredlanguages="$ALL_LINGUAS"
56268 for desiredlang in $desiredlanguages; do
56269 # Use the presentlang catalog if desiredlang is
56270 # a. equal to presentlang, or
56271 # b. a variant of presentlang (because in this case,
56272 # presentlang can be used as a fallback for messages
56273 # which are not translated in the desiredlang catalog).
56274 case "$desiredlang" in
56275 "$presentlang"*) useit=yes;;
56278 if test $useit = yes; then
56279 INST_LINGUAS="$INST_LINGUAS $presentlang"
56284 if test -n "$INST_LINGUAS"; then
56285 for lang in $INST_LINGUAS; do
56286 CATALOGS="$CATALOGS $lang.gmo"
56289 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
56290 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"
56291 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
56292 if test -f "$f"; then
56294 *.orig | *.bak | *~) ;;
56295 *) cat "$f" >> "$ac_dir/Makefile" ;;
56308 { (exit 0); exit 0; }
56310 chmod +x $CONFIG_STATUS
56311 ac_clean_files=$ac_clean_files_save
56314 # configure is writing to config.log, and then calls config.status.
56315 # config.status does its own redirection, appending to config.log.
56316 # Unfortunately, on DOS this fails, as config.log is still kept open
56317 # by configure, so config.status won't be able to write to it; its
56318 # output is simply discarded. So we exec the FD to /dev/null,
56319 # effectively closing config.log, so it can be properly (re)opened and
56320 # appended to by config.status. When coming back to configure, we
56321 # need to make the FD available again.
56322 if test "$no_create" != yes; then
56324 ac_config_status_args=
56325 test "$silent" = yes &&
56326 ac_config_status_args="$ac_config_status_args --quiet"
56328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
56330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
56331 # would make configure fail if this is the last instruction.
56332 $ac_cs_success || { (exit 1); exit 1; }